Skip to content
Snippets Groups Projects
Commit cdd3b572 authored by Daniel Ratiu's avatar Daniel Ratiu
Browse files

small fix

parent 87d7a135
No related branches found
No related tags found
No related merge requests found
......@@ -25,6 +25,7 @@ import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IEditorSite;
import org.eclipse.ui.PartInitException;
import org.eclipse.ui.part.EditorPart;
import org.fortiss.tooling.kernel.model.ILibraryElementReference;
import org.fortiss.tooling.kernel.service.ICommandStackService;
import org.fortiss.tooling.kernel.service.ILibraryService;
import org.fortiss.tooling.kernel.ui.extension.IModelEditor;
......@@ -163,6 +164,7 @@ public abstract class EditorBase<T extends EObject> extends EditorPart implement
/** {@inheritDoc} */
@Override
public boolean enableLibraryView() {
return !ILibraryService.INSTANCE.isLibraryElementShadow(editedObject);
return !ILibraryService.INSTANCE.isLibraryElementShadow(editedObject) &&
!(editedObject instanceof ILibraryElementReference);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment