EditorService editorService = appWin.getEditorService();
return editorService;
}
private Editor createNewEditor(final InterchangeLauncher launcher) {
UiProviderEditor editor = new UiProviderEditor(launcher.getUi(), EDITOR_ID, "Open Project") {
@Override
public boolean removeFromWindow(boolean useForce) {
getObject().removeLaunchListener(launcherListener);
getObject().hibernate();
return super.removeFromWindow(useForce);
}
@Override
public InterchangeLauncher getObject() {
return launcher;
}
};
editor.setIcon(CommonIcons.OPEN_16);
return editor;
}