Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [e4-dev] Adding a part dynamically

Hi Lars,

It works now. I already figured out that the parent ID of my descriptor was not correct and I replaced it with the parent id of the PartStack, so it appears it has to be the parent id of the application.(e4xmi).

So problem solved

Tnx for your assitance guys!

Greetz,
Tom




>  -------Original Message-------
>  From: Lars Vogel <lars.vogel@xxxxxxxxxxxxxx>
>  To: E4 Project developer mailing list <e4-dev@xxxxxxxxxxx>
>  Subject: Re: [e4-dev] Adding a part dynamically
>  Sent: 19 Mar '10 03:03
>  
>  Tom, my description should be fixed now. Please see:
>  http://www.vogella.de/articles/EclipseE4/article.html#contribute_descriptorcomponents
>  
>  2010/3/18 Lars Vogel <lars.vogel@xxxxxxxxxxxxxx>:
>  > Ups. I believe I have an error in my tutorial. I'm very sorry for
>  > this. I use the parentID: "_m8-RoS2LEd-RMdxMTPbEkQ", which is
>  > incorrect.
>  >
>  > Change the id of your application in Application.e4xmi to
>  > "myapplication". Then the following should find the right parent.
>  >
>  > <?xml version="1.0" encoding="ASCII"?>
>  > <application:ModelComponents xmi:version="2.0"
>  > xmlns:xmi="http://www.omg.org/XMI";
>  > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>  > xmlns:application="http://www.eclipse.org/ui/2008/UIModel";
>  > xsi:schemaLocation="http://www.eclipse.org/ui/2008/UIModel
>  > ../../org.eclipse.e4.ui.model.workbench/model/UIElements.ecore"
>  > xmi:id="_UW9TZfr3Ed6gmo7caOxU9h">
>  >  <components xmi:id="_UW9TZfr3Ed6gmo7caOxU9q"
>  > id="_UW9TZfr3Ed6gmo7caOxU9q" parentID="myapplication">
>  >   <descriptors id="de.vogella.e4.rcp.modelcontribution.parts.View2"
>  > URI="platform:/plugin/de.vogella.e4.rcp.modelcontribution/de.vogella.e4.rcp.modelcontribution.parts.View2"
>  > label="My Model Component" category="_m-UVdy2LEd-RMdxMTPbEkQ"/>
>  >  </components>
>  > </application:ModelComponents>
>  >
>  >
>  > I'll try to update the tutorial soon (tonight or tomorrow).
>  >
>  > 2010/3/18 Paul Webster <pwebster@xxxxxxxxxxxxxxxxxxx>:
>  >> On Thu, Mar 18, 2010 at 5:56 PM, tom <tom@xxxxxxxxxxxxxx> wrote:
>  >>> Still no luck for getting the descriptor stuff working.
>  >>> I'm getting now this error in the console: Unable to find feature named "descriptors"
>  >>>
>  >>> I'm using the build I20100317-2100
>  >>
>  >> What does your model component xmi look like?  if it is complaining
>  >> about a "feature" it means it cannot find a matching named feature in
>  >> the target.  ex: you can only add descriptors to the application.  No
>  >> where else.
>  >>
>  >> PW
>  >>
>  >> --
>  >> Paul Webster
>  >> Hi floor.  Make me a sammich! - GIR
>  >> _______________________________________________
>  >> e4-dev mailing list
>  >> e4-dev@xxxxxxxxxxx
>  >> https://dev.eclipse.org/mailman/listinfo/e4-dev
>  >>
>  >
>  >
>  >
>  > --
>  > Lars
>  > http://www.vogella.de - Tutorials about Java, Eclipse and Web programming
>  > http://www.twitter.com/vogella - Lars on Twitter
>  >
>  
>  
>  
>  --
>  Lars
>  http://www.vogella.de - Tutorials about Java, Eclipse and Web programming
>  http://www.twitter.com/vogella - Lars on Twitter
>  _______________________________________________
>  e4-dev mailing list
>  e4-dev@xxxxxxxxxxx
>  https://dev.eclipse.org/mailman/listinfo/e4-dev
>  


Back to the top