Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Riley2018-02-09 08:23:33 -0500
committerDoug Schaefer2018-02-09 11:36:42 -0500
commit5e27e4c377577bfa4535abd74fb9bcc5ad1696b2 (patch)
tree747723df501e5fa6f232e5e0b45380162b526401
parentd50aec4c2a049c2555bc354eff0c1e4050db1a77 (diff)
downloadorg.eclipse.cdt-5e27e4c377577bfa4535abd74fb9bcc5ad1696b2.tar.gz
org.eclipse.cdt-5e27e4c377577bfa4535abd74fb9bcc5ad1696b2.tar.xz
org.eclipse.cdt-5e27e4c377577bfa4535abd74fb9bcc5ad1696b2.zip
Bug 530941 - Ignore editor file unless editor is active
Change-Id: Ie755f80cc01f55c0d4b9b704ff40008b8bb841af Signed-off-by: William Riley <william.riley@renesas.com>
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/plugin.xml26
1 files changed, 22 insertions, 4 deletions
diff --git a/build/org.eclipse.cdt.managedbuilder.ui/plugin.xml b/build/org.eclipse.cdt.managedbuilder.ui/plugin.xml
index 39299a9a31..e9df66e8a4 100644
--- a/build/org.eclipse.cdt.managedbuilder.ui/plugin.xml
+++ b/build/org.eclipse.cdt.managedbuilder.ui/plugin.xml
@@ -103,14 +103,23 @@
<test property="org.eclipse.cdt.ui.checkPreference"
value="org.eclipse.core.resources/description.autobuilding=false"/>
<or>
- <reference
- definitionId="org.eclipse.cdt.managedbuilder.ui.isBuildableFileOpenInEditor"/>
<with variable="selection">
<iterate ifEmpty="false">
<reference
definitionId="org.eclipse.cdt.managedbuilder.ui.isBuildableFile"/>
</iterate>
</with>
+ <and>
+ <reference
+ definitionId="org.eclipse.cdt.managedbuilder.ui.isBuildableFileOpenInEditor">
+ </reference>
+ <with
+ variable="activePart">
+ <instanceof
+ value="org.eclipse.ui.IEditorPart">
+ </instanceof>
+ </with>
+ </and>
</or>
</and>
</visibleWhen>
@@ -124,14 +133,23 @@
<test property="org.eclipse.cdt.ui.checkPreference"
value="org.eclipse.core.resources/description.autobuilding=false"/>
<or>
- <reference
- definitionId="org.eclipse.cdt.managedbuilder.ui.isBuildableFileOpenInEditor"/>
<with variable="selection">
<iterate ifEmpty="false">
<reference
definitionId="org.eclipse.cdt.managedbuilder.ui.isBuildableFile"/>
</iterate>
</with>
+ <and>
+ <reference
+ definitionId="org.eclipse.cdt.managedbuilder.ui.isBuildableFileOpenInEditor">
+ </reference>
+ <with
+ variable="activePart">
+ <instanceof
+ value="org.eclipse.ui.IEditorPart">
+ </instanceof>
+ </with>
+ </and>
</or>
</and>
</visibleWhen>

Back to the top