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

Reply via email to