]> gerrit.simantics Code Review - simantics/platform.git/commit
Allow OpenWithMenuContribution to filter out currently active editor. 45/4545/1
authorMarko Luukkainen <marko.luukkainen@semantum.fi>
Fri, 16 Oct 2020 13:22:10 +0000 (16:22 +0300)
committerMarko Luukkainen <marko.luukkainen@semantum.fi>
Fri, 16 Oct 2020 13:22:10 +0000 (16:22 +0300)
commita864222d40e7ad77dc2aa7d6ab008535e7bea99c
tree7b21ca6c8c25b664d1c7e887c3a289064e98540b
parentf1813ca6c2012661afd6565c3a2d0c06b38ad401
Allow OpenWithMenuContribution to filter out currently active editor.

Using o.s.ui.contribution.OpenWithMenuContribution:activeEditorId in
dynamic menuContrubution class reference activates active editor
filtering. Existing OpenWith menu contributions are not affected.

Several editor adapters now return null as editorId, thus they cannot be
filtered. This should dot be a problem, since the editors most likely do
not use OpenWith menu.

gitlab #624

Change-Id: I3adc13163ac74c5e1841842ef6b958084288202f
bundles/org.simantics.document.ui/src/org/simantics/document/ui/OpenEntityDocumentAdapter.java
bundles/org.simantics.help.ui/src/org/simantics/help/ui/OpenHelpFileAdapter.java
bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/diagramEditor/OpenDiagramAdapter.java
bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/diagramEditor/OpenDiagramFromSymbolAdapter.java
bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/diagramEditor/OpenSheetAdapter.java
bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/documents/OpenMappedDocumentAdapter.java
bundles/org.simantics.ui/src/org/simantics/ui/contribution/OpenWithMenuContribution.java
bundles/org.simantics.ui/src/org/simantics/ui/workbench/editor/AbstractResourceEditorAdapter.java
bundles/org.simantics.ui/src/org/simantics/ui/workbench/editor/EditorAdapter.java
bundles/org.simantics.ui/src/org/simantics/ui/workbench/editor/GraphEditorAdapterDescriptor.java
bundles/org.simantics.ui/src/org/simantics/ui/workbench/editor/SimpleEditorAdapter.java