import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.contexts.IContextService;
+import org.eclipse.ui.views.contentoutline.IContentOutlinePage;
import org.simantics.scl.ui.editor.SCLSourceViewerConfigurationNew;
import org.simantics.scl.ui.editor2.SCLModuleEditor2;
super.createPartControl(parent);
getSite().getService(IContextService.class).activateContext("org.simantics.modeling.ui.scl.scriptEditor.context");
}
+
+ @Override
+ public <T> T getAdapter(Class<T> adapter) {
+ // No outline view for scripts
+ if (IContentOutlinePage.class.equals(adapter)) {
+ return null;
+ }
+
+ return super.getAdapter(adapter);
+ }
}