summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-07-25 04:51:50 (EDT)
committerEike Stepper2007-07-25 04:51:50 (EDT)
commit13235c74afe23fa978ccd61ce5b0d8c60b01c69d (patch)
treeaf0eeee3d8dcfaf6d4aae4e8c28a4a4344374e19
parentda069c264ff4585c449466f36e1b49fd48d142b9 (diff)
downloadcdo-13235c74afe23fa978ccd61ce5b0d8c60b01c69d.zip
cdo-13235c74afe23fa978ccd61ce5b0d8c60b01c69d.tar.gz
cdo-13235c74afe23fa978ccd61ce5b0d8c60b01c69d.tar.bz2
*** empty log message ***
-rw-r--r--plugins/org.eclipse.emf.cdo.ui/META-INF/MANIFEST.MF1
-rw-r--r--plugins/org.eclipse.emf.cdo.ui/icons/full/wizban/PackageManager.gifbin0 -> 3028 bytes
-rw-r--r--plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/SharedIcons.java4
-rw-r--r--plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/ManagePackagesAction.java35
-rw-r--r--plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/RegisterCDOPackageAction.java4
5 files changed, 42 insertions, 2 deletions
diff --git a/plugins/org.eclipse.emf.cdo.ui/META-INF/MANIFEST.MF b/plugins/org.eclipse.emf.cdo.ui/META-INF/MANIFEST.MF
index 569d9d1..922cac2 100644
--- a/plugins/org.eclipse.emf.cdo.ui/META-INF/MANIFEST.MF
+++ b/plugins/org.eclipse.emf.cdo.ui/META-INF/MANIFEST.MF
@@ -17,6 +17,7 @@ Require-Bundle: org.eclipse.core.runtime,
org.eclipse.emf.cdo.server.db
Export-Package: org.eclipse.emf.cdo.internal.ui;version="0.8.0",
org.eclipse.emf.cdo.internal.ui.actions;version="0.8.0",
+ org.eclipse.emf.cdo.internal.ui.dialogs;version="0.8.0",
org.eclipse.emf.cdo.internal.ui.editor;version="0.8.0",
org.eclipse.emf.cdo.internal.ui.views;version="0.8.0",
org.eclipse.emf.cdo.internal.ui.wizards;version="0.8.0",
diff --git a/plugins/org.eclipse.emf.cdo.ui/icons/full/wizban/PackageManager.gif b/plugins/org.eclipse.emf.cdo.ui/icons/full/wizban/PackageManager.gif
new file mode 100644
index 0000000..25980e9
--- /dev/null
+++ b/plugins/org.eclipse.emf.cdo.ui/icons/full/wizban/PackageManager.gif
Binary files differ
diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/SharedIcons.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/SharedIcons.java
index b55ed9f..5f721f3 100644
--- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/SharedIcons.java
+++ b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/SharedIcons.java
@@ -31,6 +31,8 @@ public class SharedIcons
private static final String VIEW = "view16/";
+ private static final String WIZBAN = "wizban/";
+
public static final String ETOOL_OPEN_SESSION = ETOOL + "open_session";
public static final String ETOOL_OPEN_EDITOR = ETOOL + "open_editor";
@@ -51,6 +53,8 @@ public class SharedIcons
public static final String VIEW_SESSIONS = VIEW + "cdo_sessions";
+ public static final String WIZBAN_PACKAGE_MANAGER = WIZBAN + "PackageManager";
+
public static Image getImage(String key)
{
key = mangleKey(key);
diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/ManagePackagesAction.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/ManagePackagesAction.java
new file mode 100644
index 0000000..1fb6d16
--- /dev/null
+++ b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/ManagePackagesAction.java
@@ -0,0 +1,35 @@
+package org.eclipse.emf.cdo.internal.ui.actions;
+
+import org.eclipse.emf.cdo.CDOSession;
+import org.eclipse.emf.cdo.internal.ui.dialogs.PackageManagerDialog;
+
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.ui.IWorkbenchPage;
+
+/**
+ * @author Eike Stepper
+ */
+public class ManagePackagesAction extends SessionAction
+{
+ private static final String TITLE = "Package Manager";
+
+ private static final String TOOL_TIP = "Browse and install model packages";
+
+ public ManagePackagesAction(IWorkbenchPage page, CDOSession session)
+ {
+ super(page, TITLE, TOOL_TIP, null, session);
+ }
+
+ @Override
+ protected void preRun(IWorkbenchPage page) throws Exception
+ {
+ PackageManagerDialog dialog = new PackageManagerDialog(page, getSession());
+ dialog.open();
+ cancel();
+ }
+
+ @Override
+ protected void doRun(IWorkbenchPage page, IProgressMonitor monitor) throws Exception
+ {
+ }
+} \ No newline at end of file
diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/RegisterCDOPackageAction.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/RegisterCDOPackageAction.java
index a2fb54f..66f91e9 100644
--- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/RegisterCDOPackageAction.java
+++ b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/RegisterCDOPackageAction.java
@@ -29,9 +29,9 @@ import org.eclipse.ui.IWorkbenchPage;
*/
public class RegisterCDOPackageAction extends RegisterPackageAction
{
- public static final IHistory<String> HISTORY = new PreferenceHistory(OM.PREF_HISTORY_REGISTER_CDO_PACKAGE);
+ public static final IHistory<String> HISTORY = new PreferenceHistory(OM.PREF_HISTORY_REGISTER_PACKAGE);
- private static final String TITLE = "Register CDO Package";
+ private static final String TITLE = "Register Package";
private EPackage.Registry registry = EPackage.Registry.INSTANCE;