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

I'll have a look to see if I get it sorted out.
Will come back with my results.

Tnx for the help !

Greetz,
Tom


>  -------Original Message-------
>  From: Lars Vogel <lars.vogel@xxxxxxxxxxxxxx>
>  To: tom <tom@xxxxxxxxxxxxxx>, E4 Project developer mailing list <e4-dev@xxxxxxxxxxx>
>  Subject: Re: [e4-dev] Adding a part dynamically
>  Sent: 18 Mar '10 17:38
>  
>  Hi Tom,
>  
>  my tutorial should work. Are you using the correct Part ID?
>  
>  Cheers, Lars
>  
>  2010/3/18 tom <tom@xxxxxxxxxxxxxx>:
>  > Hi,
>  >
>  > I looked at the instructions of the snipptes page for opening a part dynamically with a Part Descriptor. I also looked to the E4 tutorial of Lars Vogel however I don't get it working
>  >
>  > If I  use the following code
>  >
>  > MWindow window = (MWindow) context.get(MWindow.class.getName());
>  > MApplication app = (MApplication) (MUIElement) window.getParent();
>  > EList<MPartDescriptor> descriptorList = app.getDescriptors();
>  > for( MPartDescriptor descriptorList : desc ){
>  > if( partDesc.getId().equals( PartToOpen.ID ) ){
>  > MPart part = servicePart.showPart( partDesc.getId() );
>  >                break;
>  >        }
>  > }
>  >
>  > Nothing is happening when I select a command to add (in this case) a view dynamically. It appears when I debug that the "descriptorList" is empty. What am I doing wrong?
>  >
>  > Any assistance would be great,
>  >
>  > Tnx in advance,
>  > Greetz,
>  > Tom
>  > _______________________________________________
>  > 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
>  


Back to the top