Skip to content

Commit 5ee9c26

Browse files
oleosterhagenmickaelistria
authored andcommitted
Limit the visibility of "Find References" to the active Generic Editor
The visibility of this menu item must be restricted because other editors like the Xtext Editor come with their own "Find References" action. Fixes https://bugs.eclipse.org/bugs/show_bug.cgi?id=564610
1 parent 940c352 commit 5ee9c26

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

bundles/org.eclipse.ui.genericeditor/META-INF/MANIFEST.MF

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
22
Bundle-ManifestVersion: 2
33
Bundle-Name: %Bundle-Name
44
Bundle-SymbolicName: org.eclipse.ui.genericeditor;singleton:=true
5-
Bundle-Version: 1.3.100.qualifier
5+
Bundle-Version: 1.3.200.qualifier
66
Bundle-Vendor: %Bundle-Vendor
77
Bundle-RequiredExecutionEnvironment: JavaSE-17
88
Require-Bundle: org.eclipse.ui.workbench.texteditor;bundle-version="3.10.0",

bundles/org.eclipse.ui.genericeditor/plugin.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,11 @@
112112
<command
113113
commandId="org.eclipse.ui.genericeditor.findReferences"
114114
style="push">
115+
<visibleWhen>
116+
<reference
117+
definitionId="org.eclipse.ui.genericeditor.GenericEditor.active">
118+
</reference>
119+
</visibleWhen>
115120
</command>
116121
</menuContribution>
117122
<menuContribution

0 commit comments

Comments
 (0)