Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.ui/plugin.xml')
-rw-r--r--plugins/org.eclipse.emf.cdo.ui/plugin.xml38
1 files changed, 28 insertions, 10 deletions
diff --git a/plugins/org.eclipse.emf.cdo.ui/plugin.xml b/plugins/org.eclipse.emf.cdo.ui/plugin.xml
index 5018100999..497886714e 100644
--- a/plugins/org.eclipse.emf.cdo.ui/plugin.xml
+++ b/plugins/org.eclipse.emf.cdo.ui/plugin.xml
@@ -153,11 +153,19 @@
adaptableType="org.eclipse.emf.cdo.session.CDOSession"
class="org.eclipse.emf.cdo.internal.ui.CDOPropertyAdapterFactory">
<adapter type="org.eclipse.ui.views.properties.IPropertySourceProvider"/>
+ <adapter type="org.eclipse.ui.IActionFilter"/>
</factory>
<factory
adaptableType="org.eclipse.emf.cdo.view.CDOView"
class="org.eclipse.emf.cdo.internal.ui.CDOPropertyAdapterFactory">
<adapter type="org.eclipse.ui.views.properties.IPropertySourceProvider"/>
+ <adapter type="org.eclipse.ui.IActionFilter"/>
+ </factory>
+ <factory
+ adaptableType="org.eclipse.emf.ecore.EObject"
+ class="org.eclipse.emf.cdo.internal.ui.CDOPropertyAdapterFactory">
+ <adapter type="org.eclipse.ui.views.properties.IPropertySourceProvider"/>
+ <adapter type="org.eclipse.ui.IActionFilter"/>
</factory>
</extension>
@@ -184,7 +192,7 @@
point="org.eclipse.ui.popupMenus">
<objectContribution
adaptable="true"
- id="org.eclipse.emf.cdo.ui.CDOResourceNodeContributions"
+ id="org.eclipse.emf.cdo.ui.CDOResourceNodeContributionsWritableContainer"
objectClass="org.eclipse.emf.cdo.eresource.CDOResourceNode">
<action
class="org.eclipse.emf.cdo.internal.ui.actions.RemoveResourceActionDelegate"
@@ -193,25 +201,29 @@
label="%action.label.2"
tooltip="%action.tooltip.1">
</action>
+ <enablement>
+ <test property="org.eclipse.emf.cdo.object.writableContainer" value="true"/>
+ </enablement>
+ </objectContribution>
+ <objectContribution
+ adaptable="true"
+ id="org.eclipse.emf.cdo.ui.CDOResourceNodeContributionsWritable"
+ objectClass="org.eclipse.emf.cdo.eresource.CDOResourceNode">
<action
class="org.eclipse.emf.cdo.internal.ui.actions.RenameResourceActionDelegate"
id="org.eclipse.emf.cdo.ui.RenameResource"
label="%action.label.13"
tooltip="%action.tooltip.11">
</action>
+ <enablement>
+ <test property="org.eclipse.emf.cdo.object.writable" value="true"/>
+ </enablement>
</objectContribution>
<objectContribution
adaptable="true"
- id="org.eclipse.emf.cdo.ui.CDOResourceFolderContributions"
+ id="org.eclipse.emf.cdo.ui.CDOResourceFolderContributionsWritable"
objectClass="org.eclipse.emf.cdo.eresource.CDOResourceFolder">
<action
- class="org.eclipse.emf.cdo.internal.ui.actions.ImportResourceActionDelegate"
- icon="icons/full/elcl16/import_wiz.gif"
- id="org.eclipse.emf.cdo.ui.ImportResource"
- label="%action.label.9"
- tooltip="%action.tooltip.8">
- </action>
- <action
class="org.eclipse.emf.cdo.internal.ui.actions.NewBinaryResourceActionDelegate"
icon="icons/full/elcl16/NewCDOBinaryResource.gif"
id="org.eclipse.emf.cdo.ui.NewBinaryResource"
@@ -239,10 +251,13 @@
label="%action.label.4"
tooltip="%action.tooltip.3">
</action>
+ <enablement>
+ <test property="org.eclipse.emf.cdo.object.writable" value="true"/>
+ </enablement>
</objectContribution>
<objectContribution
adaptable="false"
- id="org.eclipse.emf.cdo.ui.CDOResourceActionContribution"
+ id="org.eclipse.emf.cdo.ui.CDOResourceActionContributionReadable"
objectClass="org.eclipse.emf.cdo.eresource.CDOResource">
<action
class="org.eclipse.emf.cdo.internal.ui.actions.ExportResourceActionDelegate"
@@ -251,6 +266,9 @@
label="%action.label.10"
tooltip="%action.tooltip.14">
</action>
+ <enablement>
+ <test property="org.eclipse.emf.cdo.object.readable" value="true"/>
+ </enablement>
</objectContribution>
</extension>

Back to the top