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 <[email protected]>
>  To: tom <[email protected]>, E4 Project developer mailing list 
> <[email protected]>
>  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 <[email protected]>:
>  > 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
>  > [email protected]
>  > 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
>  
_______________________________________________
e4-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/e4-dev

Reply via email to