Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuergen Haug2015-05-21 08:56:06 +0000
committerJuergen Haug2015-05-21 08:56:06 +0000
commit0bd75218501b453c9b31287f4e21dc07a685f344 (patch)
tree71bf1e26ca8e5444795e63ba016f94baf5c330e2 /plugins/org.eclipse.etrice.ui.common.base
parent46391ed4bc90fbe4c6592f9ba6290df77af6f11c (diff)
downloadorg.eclipse.etrice-0bd75218501b453c9b31287f4e21dc07a685f344.tar.gz
org.eclipse.etrice-0bd75218501b453c9b31287f4e21dc07a685f344.tar.xz
org.eclipse.etrice-0bd75218501b453c9b31287f4e21dc07a685f344.zip
[ui] hide remove feature in diagrams
Diffstat (limited to 'plugins/org.eclipse.etrice.ui.common.base')
-rw-r--r--plugins/org.eclipse.etrice.ui.common.base/src/org/eclipse/etrice/ui/common/base/support/CantRemoveFeature.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/org.eclipse.etrice.ui.common.base/src/org/eclipse/etrice/ui/common/base/support/CantRemoveFeature.java b/plugins/org.eclipse.etrice.ui.common.base/src/org/eclipse/etrice/ui/common/base/support/CantRemoveFeature.java
index b04e01334..08b604741 100644
--- a/plugins/org.eclipse.etrice.ui.common.base/src/org/eclipse/etrice/ui/common/base/support/CantRemoveFeature.java
+++ b/plugins/org.eclipse.etrice.ui.common.base/src/org/eclipse/etrice/ui/common/base/support/CantRemoveFeature.java
@@ -13,6 +13,7 @@
package org.eclipse.etrice.ui.common.base.support;
import org.eclipse.graphiti.features.IFeatureProvider;
+import org.eclipse.graphiti.features.context.IContext;
import org.eclipse.graphiti.features.context.IRemoveContext;
import org.eclipse.graphiti.features.impl.DefaultRemoveFeature;
@@ -35,5 +36,13 @@ public class CantRemoveFeature extends DefaultRemoveFeature {
public boolean canRemove(IRemoveContext context) {
return false;
}
+
+ /**
+ * don't show user
+ */
+ @Override
+ public boolean isAvailable(IContext context) {
+ return false;
+ }
}

Back to the top