Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2015-07-26 15:06:38 +0000
committerEike Stepper2015-07-26 15:06:38 +0000
commit983167d98f5e832754c895d6dd0763ddf45ea9a0 (patch)
tree20f00c34873460195455705ba417ad0383931200 /plugins/org.eclipse.emf.cdo.explorer.ui
parent703821d7d29c2429ba8d6643b5634095d83b1556 (diff)
downloadcdo-983167d98f5e832754c895d6dd0763ddf45ea9a0.tar.gz
cdo-983167d98f5e832754c895d6dd0763ddf45ea9a0.tar.xz
cdo-983167d98f5e832754c895d6dd0763ddf45ea9a0.zip
[458349] Consolidate UI - Add ShowInPropertiesView actions
Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=458349
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.explorer.ui')
-rw-r--r--plugins/org.eclipse.emf.cdo.explorer.ui/src/org/eclipse/emf/cdo/explorer/ui/checkouts/actions/ShowInActionProvider.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/plugins/org.eclipse.emf.cdo.explorer.ui/src/org/eclipse/emf/cdo/explorer/ui/checkouts/actions/ShowInActionProvider.java b/plugins/org.eclipse.emf.cdo.explorer.ui/src/org/eclipse/emf/cdo/explorer/ui/checkouts/actions/ShowInActionProvider.java
index aa320ad15a..55247467f5 100644
--- a/plugins/org.eclipse.emf.cdo.explorer.ui/src/org/eclipse/emf/cdo/explorer/ui/checkouts/actions/ShowInActionProvider.java
+++ b/plugins/org.eclipse.emf.cdo.explorer.ui/src/org/eclipse/emf/cdo/explorer/ui/checkouts/actions/ShowInActionProvider.java
@@ -79,10 +79,14 @@ public class ShowInActionProvider extends AbstractActionProvider<Object>
{
public static final String TITLE = "Show In";
+ public static final String PROPERTIES_VIEW_ID = "org.eclipse.ui.views.PropertySheet";
+
public static final String HISTORY_VIEW_ID = "org.eclipse.team.ui.GenericHistoryView";
private static final String ID = ShowInActionProvider.class.getName();
+ private static final boolean PROPERTIES_SUPPORT_AVAILABLE = Support.PROPERTIES.isAvailable();
+
private static final boolean HISTORY_SUPPORT_AVAILABLE = Support.HISTORY.isAvailable();
private static final String DASHBOARD_KEY = CDOCheckoutDashboard.class.getName();
@@ -133,6 +137,11 @@ public class ShowInActionProvider extends AbstractActionProvider<Object>
filled |= addAction(menu, repository, new ShowInSessionsViewAction(page, repository, null));
+ if (PROPERTIES_SUPPORT_AVAILABLE)
+ {
+ filled |= addAction(menu, repository, new ShowInViewAction(page, PROPERTIES_VIEW_ID));
+ }
+
if (HISTORY_SUPPORT_AVAILABLE)
{
filled |= addAction(menu, repository.getSession(), new ShowInHistoryAction(page, repository.getSession()));
@@ -192,6 +201,11 @@ public class ShowInActionProvider extends AbstractActionProvider<Object>
filled |= addAction(menu, checkout, new ShowInViewAction(page, CDOTimeMachineView.ID));
}
+ if (PROPERTIES_SUPPORT_AVAILABLE)
+ {
+ filled |= addAction(menu, checkout, new ShowInViewAction(page, PROPERTIES_VIEW_ID));
+ }
+
if (HISTORY_SUPPORT_AVAILABLE)
{
filled |= addAction(menu, checkout.getView(), new ShowInHistoryAction(page, checkout.getView()));
@@ -204,6 +218,11 @@ public class ShowInActionProvider extends AbstractActionProvider<Object>
EObject eObject = (EObject)selectedElement;
if (CDOExplorerUtil.getCheckout(eObject) != null)
{
+ if (PROPERTIES_SUPPORT_AVAILABLE)
+ {
+ filled |= addAction(menu, eObject, new ShowInViewAction(page, PROPERTIES_VIEW_ID));
+ }
+
if (HISTORY_SUPPORT_AVAILABLE)
{
filled |= addAction(menu, eObject, new ShowInHistoryAction(page, eObject));

Back to the top