Skip to content

Commit

Permalink
Fixed the behavior of the R editor popup menu commandss
Browse files Browse the repository at this point in the history
they are now visible in the popup menu only whent the R editor view is selected/active
  • Loading branch information
Valentin Georgiev committed Aug 30, 2011
1 parent 69dead7 commit 3e90b7d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 4 additions & 2 deletions plugins/net.bioclipse.r.ui/META-INF/MANIFEST.MF
Expand Up @@ -11,10 +11,12 @@ Require-Bundle: org.eclipse.core.runtime,
net.bioclipse.scripting.ui,
org.eclipse.ui,
net.bioclipse.r,
net.bioclipse.r.business;bundle-version="2.5.0",
net.bioclipse.r.business,
net.bioclipse.business,
org.eclipse.jface.text,
org.eclipse.ui.editors
org.eclipse.ui.editors,
org.eclipse.ui.ide,
org.eclipse.core.resources
Bundle-ActivationPolicy: lazy
Export-Package: net.bioclipse.r.ui,
net.bioclipse.r.ui.views
Expand Down
8 changes: 4 additions & 4 deletions plugins/net.bioclipse.r.ui/plugin.xml
Expand Up @@ -64,10 +64,10 @@
<command
commandId="net.bioclipse.r.ui.runRSnippet"
label="Run selected R snippet">

<visibleWhen>
<iterate operator="and" ifEmpty="false">
<adapt type="org.eclipse.jface.text.ITextSelection" />
<adapt type="org.eclipse.jface.text.ITextSelection" />
<reference definitionId="net.bioclipse.r.ui.editors.REditor.active" />
</iterate>
</visibleWhen>
</command>
Expand All @@ -78,10 +78,10 @@
<command
commandId="net.bioclipse.r.ui.runRAll"
label="Run R script">

<visibleWhen>
<iterate operator="and" ifEmpty="false">
<adapt type="org.eclipse.jface.text.ITextSelection" />
<adapt type="org.eclipse.jface.text.ITextSelection" />
<reference definitionId="net.bioclipse.r.ui.editors.REditor.active" />
</iterate>
</visibleWhen>
</command>
Expand Down

0 comments on commit 3e90b7d

Please sign in to comment.