How to add a new view with a fragment [message #1005156] |
Thu, 24 January 2013 15:08 |
Eclipse User |
|
|
|
I cannot find a tutorial on how to add a new view with a fragment. Is it
right to select org.eclipse.e4.legacy.ide.application as Element Id for
the fragment and children as feature name? What to do next? I get an
exception if I then just want to add a Part ass a child for this fragment.
best regards,
Gilbert
|
|
|
|
|
|
Re: How to add a new view with a fragment [message #1005395 is a reply to message #1005371] |
Fri, 25 January 2013 08:57 |
Eclipse User |
|
|
|
Ok, it didn't work. I get the exception that a PartStack cannot be added
to a MWindow. In my fragment I used the feature "children" of the
application and added a PartStack and a Part into it. No success
Other ideas?
best regards,
Gilbert
Jan Weidauer wrote:
> Sorry, problems with my mailing program.
>
> What I wanted to say was that in my RCP application I added a part stack
> and took the id of this part stack as element id of the fragment in my
> contribution fragment. There I defined a part and that worked well.
> I think you have to define a container where to put parts in.
>
> Greets,
>
> Jan
>
|
|
|
|
|
Re: How to add a new view with a fragment [message #1005439 is a reply to message #1005409] |
Fri, 25 January 2013 12:59 |
Eclipse User |
|
|
|
The "children" feature of a window is a structured graph (a tree) of items to be rendered. You can't just add an MPartStack and expect it to be rendered correctly. Install the Application Model Editor from the Eclipse Marketplace (oops, I never updated it for 4.2.1) and use the live editor to examine an existing window.
Extending the model within Eclipse RCP is not for the faint of heart primarily because adding a view or editor requires some special setup to be properly rendered by the compatibility layer.
Brian.
|
|
|
Powered by
FUDForum. Page generated in 0.03185 seconds