import org.eclipse.e4.ui.di.Focus;
import org.eclipse.e4.ui.di.Persist;
import org.eclipse.e4.ui.model.application.ui.MDirtyable;
+import org.eclipse.e4.ui.model.application.ui.basic.MPart;
import org.eclipse.e4.ui.services.EMenuService;
import org.eclipse.e4.ui.workbench.modeling.ESelectionService;
import org.eclipse.jface.viewers.ISelectionChangedListener;
private TermEditorInput input =null;
+ @Inject
+ private MPart thisPart;
+
@Inject
public DefinedTermEditorE4() {
}
viewer.addDragSupport(dndOperations, transfers, new DefinedTermDragListenerE4(viewer));
viewer.addDropSupport(dndOperations, transfers, new DefinedTermDropAdapterE4(this));
- //FIXME E4 migrate
- // setPartName(getEditorInput().getName());
-
//propagate selection
selectionChangedListener = (event -> selService.setSelection(AbstractUtility.getElementsFromSelectionChangedEvent(event)));
viewer.addSelectionChangedListener(selectionChangedListener);
input.initialiseVocabularies();
viewer.setInput(input.getVocabularies());
+ thisPart.setLabel(input.getName());
}
@Override