Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2010-10-18 04:26:22 +0000
committerEike Stepper2010-10-18 04:26:22 +0000
commitbca08a9d9f75251f399e95baa65a54fe17c451f8 (patch)
treea90a4643e33d07c7d48165bb85acad3ef8eb13ce /plugins/org.eclipse.emf.cdo.ui.location/src
parent70fe1d651c5496c5214d09e69b0da481a43b5792 (diff)
downloadcdo-bca08a9d9f75251f399e95baa65a54fe17c451f8.tar.gz
cdo-bca08a9d9f75251f399e95baa65a54fe17c451f8.tar.xz
cdo-bca08a9d9f75251f399e95baa65a54fe17c451f8.zip
[327405] Provide an offline CDOWorkspace with Checkout/Update/Commit workflows
https://bugs.eclipse.org/bugs/show_bug.cgi?id=327405
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.ui.location/src')
-rw-r--r--plugins/org.eclipse.emf.cdo.ui.location/src/org/eclipse/emf/cdo/ui/internal/location/NewRepositoryLocationDialog.java (renamed from plugins/org.eclipse.emf.cdo.ui.location/src/org/eclipse/emf/cdo/ui/internal/location/NewRepositoryDialog.java)9
-rw-r--r--plugins/org.eclipse.emf.cdo.ui.location/src/org/eclipse/emf/cdo/ui/internal/location/RepositoryLocationsView.java (renamed from plugins/org.eclipse.emf.cdo.ui.location/src/org/eclipse/emf/cdo/ui/internal/location/RepositoriesView.java)8
-rw-r--r--plugins/org.eclipse.emf.cdo.ui.location/src/org/eclipse/emf/cdo/ui/internal/location/bundle/OM.java52
3 files changed, 61 insertions, 8 deletions
diff --git a/plugins/org.eclipse.emf.cdo.ui.location/src/org/eclipse/emf/cdo/ui/internal/location/NewRepositoryDialog.java b/plugins/org.eclipse.emf.cdo.ui.location/src/org/eclipse/emf/cdo/ui/internal/location/NewRepositoryLocationDialog.java
index 3f6fb21709..88beb0b5a2 100644
--- a/plugins/org.eclipse.emf.cdo.ui.location/src/org/eclipse/emf/cdo/ui/internal/location/NewRepositoryDialog.java
+++ b/plugins/org.eclipse.emf.cdo.ui.location/src/org/eclipse/emf/cdo/ui/internal/location/NewRepositoryLocationDialog.java
@@ -10,9 +10,9 @@ import org.eclipse.ui.IWorkbenchPage;
/**
* @author Eike Stepper
*/
-public class NewRepositoryDialog extends TitleAreaDialog
+public class NewRepositoryLocationDialog extends TitleAreaDialog
{
- public NewRepositoryDialog(IWorkbenchPage page)
+ public NewRepositoryLocationDialog(IWorkbenchPage page)
{
super(page.getWorkbenchWindow().getShell());
setShellStyle(getShellStyle() | SWT.APPLICATION_MODAL | SWT.MAX | SWT.TITLE | SWT.RESIZE);
@@ -22,14 +22,15 @@ public class NewRepositoryDialog extends TitleAreaDialog
protected void configureShell(Shell newShell)
{
super.configureShell(newShell);
- newShell.setText("New Repository");
+ newShell.setText("New Repository Location");
}
@Override
protected Control createDialogArea(Composite parent)
{
- setTitle("New Repository");
+ setTitle("New Repository Location");
// setTitleImage(SharedIcons.getImage(SharedIcons.WIZBAN_PACKAGE_MANAGER));
+
return null;
}
}
diff --git a/plugins/org.eclipse.emf.cdo.ui.location/src/org/eclipse/emf/cdo/ui/internal/location/RepositoriesView.java b/plugins/org.eclipse.emf.cdo.ui.location/src/org/eclipse/emf/cdo/ui/internal/location/RepositoryLocationsView.java
index 77e5cd40de..232aa8a2e1 100644
--- a/plugins/org.eclipse.emf.cdo.ui.location/src/org/eclipse/emf/cdo/ui/internal/location/RepositoriesView.java
+++ b/plugins/org.eclipse.emf.cdo.ui.location/src/org/eclipse/emf/cdo/ui/internal/location/RepositoryLocationsView.java
@@ -43,9 +43,9 @@ import java.util.List;
/**
* @author Eike Stepper
*/
-public class RepositoriesView extends ViewPart
+public class RepositoryLocationsView extends ViewPart
{
- public static final String ID = "org.eclipse.emf.cdo.ui.ide.RepositoriesView";
+ public static final String ID = "org.eclipse.emf.cdo.ui.location.RepositoryLocationsView";
private TreeViewer viewer;
@@ -57,7 +57,7 @@ public class RepositoriesView extends ViewPart
private Action doubleClickAction;
- public RepositoriesView()
+ public RepositoryLocationsView()
{
}
@@ -91,7 +91,7 @@ public class RepositoriesView extends ViewPart
{
public void menuAboutToShow(IMenuManager manager)
{
- RepositoriesView.this.fillContextMenu(manager);
+ RepositoryLocationsView.this.fillContextMenu(manager);
}
});
diff --git a/plugins/org.eclipse.emf.cdo.ui.location/src/org/eclipse/emf/cdo/ui/internal/location/bundle/OM.java b/plugins/org.eclipse.emf.cdo.ui.location/src/org/eclipse/emf/cdo/ui/internal/location/bundle/OM.java
new file mode 100644
index 0000000000..80e1a868d3
--- /dev/null
+++ b/plugins/org.eclipse.emf.cdo.ui.location/src/org/eclipse/emf/cdo/ui/internal/location/bundle/OM.java
@@ -0,0 +1,52 @@
+/**
+ * Copyright (c) 2004 - 2010 Eike Stepper (Berlin, Germany) and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Eike Stepper - initial API and implementation
+ * Victor Roldan Betancort - maintenance
+ */
+package org.eclipse.emf.cdo.ui.internal.location.bundle;
+
+import org.eclipse.net4j.util.om.OMBundle;
+import org.eclipse.net4j.util.om.OMPlatform;
+import org.eclipse.net4j.util.om.log.OMLogger;
+import org.eclipse.net4j.util.om.trace.OMTracer;
+import org.eclipse.net4j.util.ui.UIActivator;
+
+import org.eclipse.jface.resource.ImageDescriptor;
+
+/**
+ * The <em>Operations & Maintenance</em> class of this bundle.
+ *
+ * @author Eike Stepper
+ */
+public abstract class OM
+{
+ public static final String BUNDLE_ID = "org.eclipse.emf.cdo.ui.location"; //$NON-NLS-1$
+
+ public static final OMBundle BUNDLE = OMPlatform.INSTANCE.bundle(BUNDLE_ID, OM.class);
+
+ public static final OMLogger LOG = BUNDLE.logger();
+
+ public static final OMTracer DEBUG = BUNDLE.tracer("debug"); //$NON-NLS-1$
+
+ public static ImageDescriptor getImageDescriptor(String imageFilePath)
+ {
+ return Activator.imageDescriptorFromPlugin(BUNDLE_ID, imageFilePath);
+ }
+
+ /**
+ * @author Eike Stepper
+ */
+ public static final class Activator extends UIActivator
+ {
+ public Activator()
+ {
+ super(BUNDLE);
+ }
+ }
+}

Back to the top