Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jwt-dev] Creating an editor sheet, need current model element

Hello,

I'm adding my own editor sheet, which will be a more elaborate form than the property tab can be.

One of the examples (ExampleSheet2) populates the form with info from the core Package element.  

if (editor.getModel() instanceof org.eclipse.jwt.meta.model.core.NamedElement) {
if (((org.eclipse.jwt.meta.model.core.Package) editor.getModel()).getName() != null)
nameField.setText(((org.eclipse.jwt.meta.model.core.Package) editor.getModel()).getName());
}

I want to get the currently selected ActivityNode model element instead.  How do I grab that?

Thanks,

Eric

Back to the top