From: Bruno Sinou Date: Tue, 6 Sep 2011 10:08:28 +0000 (+0000) Subject: Jcr Explorer refactoring and packaging X-Git-Tag: argeo-commons-2.1.30~1171 X-Git-Url: http://git.argeo.org/?a=commitdiff_plain;h=cce5db75aee4892fea107497f880799e55749401;p=lgpl%2Fargeo-commons.git Jcr Explorer refactoring and packaging git-svn-id: https://svn.argeo.org/commons/trunk@4721 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc --- diff --git a/server/plugins/org.argeo.jcr.ui.explorer/src/main/java/org/argeo/eclipse/ui/jcr/explorer/JcrExplorerPerspective.java b/server/plugins/org.argeo.jcr.ui.explorer/src/main/java/org/argeo/eclipse/ui/jcr/explorer/JcrExplorerPerspective.java deleted file mode 100644 index 020bf06ae..000000000 --- a/server/plugins/org.argeo.jcr.ui.explorer/src/main/java/org/argeo/eclipse/ui/jcr/explorer/JcrExplorerPerspective.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.argeo.eclipse.ui.jcr.explorer; - -import org.eclipse.ui.IFolderLayout; -import org.eclipse.ui.IPageLayout; -import org.eclipse.ui.IPerspectiveFactory; - -public class JcrExplorerPerspective implements IPerspectiveFactory { - public static String BROWSER_VIEW_ID = JcrExplorerPlugin.ID - + ".browserView"; - - public void createInitialLayout(IPageLayout layout) { - layout.setEditorAreaVisible(true); - - IFolderLayout upperLeft = layout.createFolder(JcrExplorerPlugin.ID - + ".upperLeft", IPageLayout.LEFT, 0.4f, layout.getEditorArea()); - upperLeft.addView(BROWSER_VIEW_ID); - } - -} diff --git a/server/plugins/org.argeo.jcr.ui.explorer/src/main/java/org/argeo/eclipse/ui/jcr/explorer/JcrExplorerPlugin.java b/server/plugins/org.argeo.jcr.ui.explorer/src/main/java/org/argeo/eclipse/ui/jcr/explorer/JcrExplorerPlugin.java deleted file mode 100644 index b5e9af31d..000000000 --- a/server/plugins/org.argeo.jcr.ui.explorer/src/main/java/org/argeo/eclipse/ui/jcr/explorer/JcrExplorerPlugin.java +++ /dev/null @@ -1,61 +0,0 @@ -package org.argeo.eclipse.ui.jcr.explorer; - -import org.eclipse.jface.resource.ImageDescriptor; -import org.eclipse.ui.plugin.AbstractUIPlugin; -import org.osgi.framework.BundleContext; - -/** - * The activator class controls the plug-in life cycle - */ -public class JcrExplorerPlugin extends AbstractUIPlugin { - - // The plug-in ID - public static final String ID = "org.argeo.jcr.ui.explorer"; //$NON-NLS-1$ - - // The shared instance - private static JcrExplorerPlugin plugin; - - /** - * The constructor - */ - public JcrExplorerPlugin() { - } - - /* - * (non-Javadoc) - * - * @see - * org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext - * ) - */ - public void start(BundleContext context) throws Exception { - super.start(context); - plugin = this; - } - - /* - * (non-Javadoc) - * - * @see - * org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext - * ) - */ - public void stop(BundleContext context) throws Exception { - plugin = null; - super.stop(context); - } - - /** - * Returns the shared instance - * - * @return the shared instance - */ - public static JcrExplorerPlugin getDefault() { - return plugin; - } - - public static ImageDescriptor getImageDescriptor(String path) { - return imageDescriptorFromPlugin(ID, path); - } - -} diff --git a/server/plugins/org.argeo.jcr.ui.explorer/src/main/java/org/argeo/eclipse/ui/jcr/explorer/JcrExplorerView.java b/server/plugins/org.argeo.jcr.ui.explorer/src/main/java/org/argeo/eclipse/ui/jcr/explorer/JcrExplorerView.java deleted file mode 100644 index 1a923c574..000000000 --- a/server/plugins/org.argeo.jcr.ui.explorer/src/main/java/org/argeo/eclipse/ui/jcr/explorer/JcrExplorerView.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.argeo.eclipse.ui.jcr.explorer; - -import org.argeo.eclipse.ui.jcr.views.GenericJcrBrowser; - -public class JcrExplorerView extends GenericJcrBrowser { - -}