Rename JCR explorer
authorMathieu Baudier <mbaudier@argeo.org>
Thu, 24 Feb 2011 08:36:38 +0000 (08:36 +0000)
committerMathieu Baudier <mbaudier@argeo.org>
Thu, 24 Feb 2011 08:36:38 +0000 (08:36 +0000)
git-svn-id: https://svn.argeo.org/commons/trunk@4182 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

32 files changed:
eclipse/plugins/org.argeo.eclipse.ui.jcr.explorer/.classpath [deleted file]
eclipse/plugins/org.argeo.eclipse.ui.jcr.explorer/.project [deleted file]
eclipse/plugins/org.argeo.eclipse.ui.jcr.explorer/.settings/org.eclipse.jdt.core.prefs [deleted file]
eclipse/plugins/org.argeo.eclipse.ui.jcr.explorer/META-INF/MANIFEST.MF [deleted file]
eclipse/plugins/org.argeo.eclipse.ui.jcr.explorer/META-INF/spring/commands.xml [deleted file]
eclipse/plugins/org.argeo.eclipse.ui.jcr.explorer/META-INF/spring/editors.xml [deleted file]
eclipse/plugins/org.argeo.eclipse.ui.jcr.explorer/META-INF/spring/jcr.xml [deleted file]
eclipse/plugins/org.argeo.eclipse.ui.jcr.explorer/META-INF/spring/osgi.xml [deleted file]
eclipse/plugins/org.argeo.eclipse.ui.jcr.explorer/META-INF/spring/views.xml [deleted file]
eclipse/plugins/org.argeo.eclipse.ui.jcr.explorer/build.properties [deleted file]
eclipse/plugins/org.argeo.eclipse.ui.jcr.explorer/icons/nodes.gif [deleted file]
eclipse/plugins/org.argeo.eclipse.ui.jcr.explorer/plugin.xml [deleted file]
eclipse/plugins/org.argeo.eclipse.ui.jcr.explorer/pom.xml [deleted file]
eclipse/plugins/org.argeo.eclipse.ui.jcr.explorer/src/main/java/org/argeo/eclipse/ui/jcr/explorer/JcrExplorerActivator.java [deleted file]
eclipse/plugins/org.argeo.eclipse.ui.jcr.explorer/src/main/java/org/argeo/eclipse/ui/jcr/explorer/JcrExplorerPerspective.java [deleted file]
eclipse/plugins/org.argeo.jcr.ui.explorer/.classpath [new file with mode: 0644]
eclipse/plugins/org.argeo.jcr.ui.explorer/.project [new file with mode: 0644]
eclipse/plugins/org.argeo.jcr.ui.explorer/.settings/org.eclipse.jdt.core.prefs [new file with mode: 0644]
eclipse/plugins/org.argeo.jcr.ui.explorer/META-INF/MANIFEST.MF [new file with mode: 0644]
eclipse/plugins/org.argeo.jcr.ui.explorer/META-INF/spring/commands.xml [new file with mode: 0644]
eclipse/plugins/org.argeo.jcr.ui.explorer/META-INF/spring/editors.xml [new file with mode: 0644]
eclipse/plugins/org.argeo.jcr.ui.explorer/META-INF/spring/jcr.xml [new file with mode: 0644]
eclipse/plugins/org.argeo.jcr.ui.explorer/META-INF/spring/osgi.xml [new file with mode: 0644]
eclipse/plugins/org.argeo.jcr.ui.explorer/META-INF/spring/views.xml [new file with mode: 0644]
eclipse/plugins/org.argeo.jcr.ui.explorer/build.properties [new file with mode: 0644]
eclipse/plugins/org.argeo.jcr.ui.explorer/icons/nodes.gif [new file with mode: 0644]
eclipse/plugins/org.argeo.jcr.ui.explorer/plugin.xml [new file with mode: 0644]
eclipse/plugins/org.argeo.jcr.ui.explorer/pom.xml [new file with mode: 0644]
eclipse/plugins/org.argeo.jcr.ui.explorer/src/main/java/org/argeo/eclipse/ui/jcr/explorer/JcrExplorerActivator.java [new file with mode: 0644]
eclipse/plugins/org.argeo.jcr.ui.explorer/src/main/java/org/argeo/eclipse/ui/jcr/explorer/JcrExplorerPerspective.java [new file with mode: 0644]
eclipse/plugins/pom.xml
eclipse/runtime/org.argeo.eclipse.ui/src/main/java/org/argeo/eclipse/spring/SpringExtensionFactory.java

diff --git a/eclipse/plugins/org.argeo.eclipse.ui.jcr.explorer/.classpath b/eclipse/plugins/org.argeo.eclipse.ui.jcr.explorer/.classpath
deleted file mode 100644 (file)
index 92f19d2..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
-       <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
-       <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
-       <classpathentry kind="src" path="src/main/java"/>
-       <classpathentry kind="output" path="target/classes"/>
-</classpath>
diff --git a/eclipse/plugins/org.argeo.eclipse.ui.jcr.explorer/.project b/eclipse/plugins/org.argeo.eclipse.ui.jcr.explorer/.project
deleted file mode 100644 (file)
index 52ceb32..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
-       <name>org.argeo.eclipse.ui.jcr.explorer</name>
-       <comment></comment>
-       <projects>
-       </projects>
-       <buildSpec>
-               <buildCommand>
-                       <name>org.eclipse.jdt.core.javabuilder</name>
-                       <arguments>
-                       </arguments>
-               </buildCommand>
-               <buildCommand>
-                       <name>org.eclipse.pde.ManifestBuilder</name>
-                       <arguments>
-                       </arguments>
-               </buildCommand>
-               <buildCommand>
-                       <name>org.eclipse.pde.SchemaBuilder</name>
-                       <arguments>
-                       </arguments>
-               </buildCommand>
-       </buildSpec>
-       <natures>
-               <nature>org.eclipse.pde.PluginNature</nature>
-               <nature>org.eclipse.jdt.core.javanature</nature>
-       </natures>
-</projectDescription>
diff --git a/eclipse/plugins/org.argeo.eclipse.ui.jcr.explorer/.settings/org.eclipse.jdt.core.prefs b/eclipse/plugins/org.argeo.eclipse.ui.jcr.explorer/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644 (file)
index 992c5d7..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-#Thu Feb 24 08:49:06 CET 2011
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
-org.eclipse.jdt.core.compiler.compliance=1.5
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.5
diff --git a/eclipse/plugins/org.argeo.eclipse.ui.jcr.explorer/META-INF/MANIFEST.MF b/eclipse/plugins/org.argeo.eclipse.ui.jcr.explorer/META-INF/MANIFEST.MF
deleted file mode 100644 (file)
index 9f54df0..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: JCR Explorer
-Bundle-SymbolicName: org.argeo.eclipse.ui.jcr.explorer;singleton:=true
-Bundle-Version: 1.0.0.qualifier
-Bundle-Activator: org.argeo.eclipse.ui.jcr.explorer.JcrExplorerActivator
-Bundle-Vendor: Argeo
-Require-Bundle: org.eclipse.ui;resolution:=optional,
- org.eclipse.core.runtime
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
-Bundle-ActivationPolicy: lazy
-Import-Package: javax.jcr;version="2.0.0",
- org.argeo.eclipse.spring,
- org.argeo.eclipse.ui.jcr.commands,
- org.argeo.eclipse.ui.jcr.editors,
- org.argeo.eclipse.ui.jcr.views,
- org.argeo.jcr
diff --git a/eclipse/plugins/org.argeo.eclipse.ui.jcr.explorer/META-INF/spring/commands.xml b/eclipse/plugins/org.argeo.eclipse.ui.jcr.explorer/META-INF/spring/commands.xml
deleted file mode 100644 (file)
index 325951d..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<beans xmlns="http://www.springframework.org/schema/beans"
-       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
-       xsi:schemaLocation="http://www.springframework.org/schema/beans
-        http://www.springframework.org/schema/beans/spring-beans.xsd">
-
-       <bean id="openGenericJcrQueryEditor"
-               class="org.argeo.eclipse.ui.jcr.commands.OpenGenericJcrQueryEditor"
-               scope="prototype">
-               <property name="editorId"
-                       value="org.argeo.slc.client.ui.dist.genericJcrQueryEditor" />
-       </bean>
-</beans>
diff --git a/eclipse/plugins/org.argeo.eclipse.ui.jcr.explorer/META-INF/spring/editors.xml b/eclipse/plugins/org.argeo.eclipse.ui.jcr.explorer/META-INF/spring/editors.xml
deleted file mode 100644 (file)
index 8ddc5bf..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<beans xmlns="http://www.springframework.org/schema/beans"
-       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:util="http://www.springframework.org/schema/util"
-       xmlns:p="http://www.springframework.org/schema/p"
-       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
-        http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd">
-
-       <bean id="genericJcrQueryEditor"
-               class="org.argeo.eclipse.ui.jcr.editors.GenericJcrQueryEditor" scope="prototype">
-               <property name="session" ref="jcrSession" />
-       </bean>
-</beans>
diff --git a/eclipse/plugins/org.argeo.eclipse.ui.jcr.explorer/META-INF/spring/jcr.xml b/eclipse/plugins/org.argeo.eclipse.ui.jcr.explorer/META-INF/spring/jcr.xml
deleted file mode 100644 (file)
index 2701948..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<beans xmlns="http://www.springframework.org/schema/beans"
-       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:util="http://www.springframework.org/schema/util"
-       xmlns:p="http://www.springframework.org/schema/p"
-       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
-        http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd">
-
-       <bean id="repositoryRegister" class="org.argeo.jcr.DefaultRepositoryRegister">
-       </bean>
-</beans>
diff --git a/eclipse/plugins/org.argeo.eclipse.ui.jcr.explorer/META-INF/spring/osgi.xml b/eclipse/plugins/org.argeo.eclipse.ui.jcr.explorer/META-INF/spring/osgi.xml
deleted file mode 100644 (file)
index 0e87da8..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>\r
-<beans:beans xmlns="http://www.springframework.org/schema/osgi"\r
-       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:beans="http://www.springframework.org/schema/beans"\r
-       xmlns:osgi="http://www.springframework.org/schema/osgi"\r
-       xsi:schemaLocation="http://www.springframework.org/schema/osgi  \r
-       http://www.springframework.org/schema/osgi/spring-osgi-1.1.xsd\r
-       http://www.springframework.org/schema/beans   \r
-       http://www.springframework.org/schema/beans/spring-beans-2.5.xsd"\r
-       osgi:default-timeout="30000">\r
-\r
-       <set id="repositories" interface="javax.jcr.Repository">\r
-               <listener ref="repositoryRegister" bind-method="register"\r
-                       unbind-method="unregister" />\r
-       </set>\r
-</beans:beans>
\ No newline at end of file
diff --git a/eclipse/plugins/org.argeo.eclipse.ui.jcr.explorer/META-INF/spring/views.xml b/eclipse/plugins/org.argeo.eclipse.ui.jcr.explorer/META-INF/spring/views.xml
deleted file mode 100644 (file)
index eed1f48..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<beans xmlns="http://www.springframework.org/schema/beans"
-       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
-       xsi:schemaLocation="http://www.springframework.org/schema/beans
-        http://www.springframework.org/schema/beans/spring-beans.xsd">
-
-       <!-- Views -->
-       <bean id="browserView" class="org.argeo.eclipse.ui.jcr.views.GenericJcrBrowser"
-               scope="prototype">
-               <property name="repositoryRegister" ref="repositoryRegister" />
-       </bean>
-</beans>
diff --git a/eclipse/plugins/org.argeo.eclipse.ui.jcr.explorer/build.properties b/eclipse/plugins/org.argeo.eclipse.ui.jcr.explorer/build.properties
deleted file mode 100644 (file)
index 5fc538b..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-source.. = src/main/java/
-output.. = target/classes/
-bin.includes = META-INF/,\
-               .
diff --git a/eclipse/plugins/org.argeo.eclipse.ui.jcr.explorer/icons/nodes.gif b/eclipse/plugins/org.argeo.eclipse.ui.jcr.explorer/icons/nodes.gif
deleted file mode 100644 (file)
index bba3dbc..0000000
Binary files a/eclipse/plugins/org.argeo.eclipse.ui.jcr.explorer/icons/nodes.gif and /dev/null differ
diff --git a/eclipse/plugins/org.argeo.eclipse.ui.jcr.explorer/plugin.xml b/eclipse/plugins/org.argeo.eclipse.ui.jcr.explorer/plugin.xml
deleted file mode 100644 (file)
index 8b3957c..0000000
+++ /dev/null
@@ -1,71 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.4"?>
-<plugin>
-   <extension
-         point="org.eclipse.ui.perspectiveExtensions">
-      <perspectiveExtension
-            targetID="jcrExplorerPerspective">
-         <view
-               relative="upperLeft"
-               relationship="stack"
-               id="browserView">
-         </view>
-      </perspectiveExtension>
-   </extension>
-   <extension
-         point="org.eclipse.ui.perspectives">
-      <perspective
-            class="org.argeo.eclipse.ui.jcr.explorer.JcrExplorerPerspective"
-            icon="icons/nodes.gif"
-            id="jcrExplorerPerspective"
-            name="JCR Explorer">
-      </perspective>
-   </extension>
-   <extension
-         point="org.eclipse.ui.views">
-          <view
-                class="org.argeo.eclipse.spring.SpringExtensionFactory"
-                id="browserView"
-                name="Browser">
-          </view>
-   </extension>
-   <extension
-           point="org.eclipse.ui.editors">
-            <editor
-                 class="org.argeo.eclipse.spring.SpringExtensionFactory"
-              id="genericJcrQueryEditor"
-              name="JCR Query"
-              icon="icons/nodes.gif"
-              default="false">
-        </editor>
-     </extension>
-       <extension
-         point="org.eclipse.ui.commands">
-               <command
-            defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
-            id="openGenericJcrQueryEditor"
-            name="OpenGenericJcrQueryEditor ">
-       </command>
-    </extension>
-       <extension
-         id="menu:org.eclipse.ui.main.menu"
-         point="org.eclipse.ui.menus">
-        <!-- Queries --> 
-               <menuContribution
-                allPopups="false"
-                locationURI="menu:org.eclipse.ui.main.menu?after=edit">
-               <menu label="Queries"
-              mnemonic="Queries"
-              id="queryMenu">
-                <command
-                      commandId="openGenericJcrQueryEditor"
-                      disabledIcon="icons/saveDisabled.gif"
-                      icon="icons/results.gif"
-                      label="JCR Query"
-                      style="push"
-                      tooltip="Open JCR query editor">
-                </command>
-             </menu>
-          </menuContribution>
-       </extension>
-</plugin>
diff --git a/eclipse/plugins/org.argeo.eclipse.ui.jcr.explorer/pom.xml b/eclipse/plugins/org.argeo.eclipse.ui.jcr.explorer/pom.xml
deleted file mode 100644 (file)
index 79e9c03..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-       <modelVersion>4.0.0</modelVersion>
-       <parent>
-               <groupId>org.argeo.commons.eclipse</groupId>
-               <version>0.2.3-SNAPSHOT</version>
-               <artifactId>plugins</artifactId>
-               <relativePath>..</relativePath>
-       </parent>
-       <artifactId>org.argeo.eclipse.ui.jcr.explorer</artifactId>
-       <name>Commons JCR Explorer</name>
-       <packaging>jar</packaging>
-       <dependencies>
-               <dependency>
-                       <groupId>org.argeo.commons.eclipse</groupId>
-                       <artifactId>org.argeo.eclipse.ui.jucr</artifactId>
-                       <version>0.2.3-SNAPSHOT</version>
-               </dependency>
-
-               <!-- RCP only dependency, needed at compile time -->
-               <dependency>
-                       <groupId>org.argeo.commons.eclipse</groupId>
-                       <artifactId>org.argeo.eclipse.dep.rcp</artifactId>
-                       <version>0.2.3-SNAPSHOT</version>
-                       <scope>provided</scope>
-               </dependency>
-       </dependencies>
-</project>
diff --git a/eclipse/plugins/org.argeo.eclipse.ui.jcr.explorer/src/main/java/org/argeo/eclipse/ui/jcr/explorer/JcrExplorerActivator.java b/eclipse/plugins/org.argeo.eclipse.ui.jcr.explorer/src/main/java/org/argeo/eclipse/ui/jcr/explorer/JcrExplorerActivator.java
deleted file mode 100644 (file)
index 9a00a70..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-package org.argeo.eclipse.ui.jcr.explorer;
-
-import org.eclipse.ui.plugin.AbstractUIPlugin;
-import org.osgi.framework.BundleContext;
-
-/**
- * The activator class controls the plug-in life cycle
- */
-public class JcrExplorerActivator extends AbstractUIPlugin {
-
-       // The plug-in ID
-       public static final String PLUGIN_ID = "org.argeo.eclipse.ui.jcr.explorer"; //$NON-NLS-1$
-
-       // The shared instance
-       private static JcrExplorerActivator plugin;
-       
-       /**
-        * The constructor
-        */
-       public JcrExplorerActivator() {
-       }
-
-       /*
-        * (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 JcrExplorerActivator getDefault() {
-               return plugin;
-       }
-
-}
diff --git a/eclipse/plugins/org.argeo.eclipse.ui.jcr.explorer/src/main/java/org/argeo/eclipse/ui/jcr/explorer/JcrExplorerPerspective.java b/eclipse/plugins/org.argeo.eclipse.ui.jcr.explorer/src/main/java/org/argeo/eclipse/ui/jcr/explorer/JcrExplorerPerspective.java
deleted file mode 100644 (file)
index cdce20e..0000000
+++ /dev/null
@@ -1,17 +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 void createInitialLayout(IPageLayout layout) {
-               layout.setEditorAreaVisible(true);
-
-               IFolderLayout main = layout.createFolder("upperLeft", IPageLayout.LEFT,
-                               0.5f, layout.getEditorArea());
-
-       }
-
-}
diff --git a/eclipse/plugins/org.argeo.jcr.ui.explorer/.classpath b/eclipse/plugins/org.argeo.jcr.ui.explorer/.classpath
new file mode 100644 (file)
index 0000000..92f19d2
--- /dev/null
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+       <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+       <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+       <classpathentry kind="src" path="src/main/java"/>
+       <classpathentry kind="output" path="target/classes"/>
+</classpath>
diff --git a/eclipse/plugins/org.argeo.jcr.ui.explorer/.project b/eclipse/plugins/org.argeo.jcr.ui.explorer/.project
new file mode 100644 (file)
index 0000000..162cd6b
--- /dev/null
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+       <name>org.argeo.jcr.ui.explorer</name>
+       <comment></comment>
+       <projects>
+       </projects>
+       <buildSpec>
+               <buildCommand>
+                       <name>org.eclipse.jdt.core.javabuilder</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
+               <buildCommand>
+                       <name>org.eclipse.pde.ManifestBuilder</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
+               <buildCommand>
+                       <name>org.eclipse.pde.SchemaBuilder</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
+       </buildSpec>
+       <natures>
+               <nature>org.eclipse.pde.PluginNature</nature>
+               <nature>org.eclipse.jdt.core.javanature</nature>
+       </natures>
+</projectDescription>
diff --git a/eclipse/plugins/org.argeo.jcr.ui.explorer/.settings/org.eclipse.jdt.core.prefs b/eclipse/plugins/org.argeo.jcr.ui.explorer/.settings/org.eclipse.jdt.core.prefs
new file mode 100644 (file)
index 0000000..992c5d7
--- /dev/null
@@ -0,0 +1,8 @@
+#Thu Feb 24 08:49:06 CET 2011
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.5
diff --git a/eclipse/plugins/org.argeo.jcr.ui.explorer/META-INF/MANIFEST.MF b/eclipse/plugins/org.argeo.jcr.ui.explorer/META-INF/MANIFEST.MF
new file mode 100644 (file)
index 0000000..9c645c9
--- /dev/null
@@ -0,0 +1,17 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: JCR Explorer
+Bundle-SymbolicName: org.argeo.jcr.ui.explorer;singleton:=true
+Bundle-Version: 1.0.0.qualifier
+Bundle-Activator: org.argeo.eclipse.ui.jcr.explorer.JcrExplorerActivator
+Bundle-Vendor: Argeo
+Require-Bundle: org.eclipse.ui;resolution:=optional,
+ org.eclipse.core.runtime
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
+Bundle-ActivationPolicy: lazy
+Import-Package: javax.jcr;version="2.0.0",
+ org.argeo.eclipse.spring,
+ org.argeo.eclipse.ui.jcr.commands,
+ org.argeo.eclipse.ui.jcr.editors,
+ org.argeo.eclipse.ui.jcr.views,
+ org.argeo.jcr
diff --git a/eclipse/plugins/org.argeo.jcr.ui.explorer/META-INF/spring/commands.xml b/eclipse/plugins/org.argeo.jcr.ui.explorer/META-INF/spring/commands.xml
new file mode 100644 (file)
index 0000000..325951d
--- /dev/null
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<beans xmlns="http://www.springframework.org/schema/beans"
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
+       xsi:schemaLocation="http://www.springframework.org/schema/beans
+        http://www.springframework.org/schema/beans/spring-beans.xsd">
+
+       <bean id="openGenericJcrQueryEditor"
+               class="org.argeo.eclipse.ui.jcr.commands.OpenGenericJcrQueryEditor"
+               scope="prototype">
+               <property name="editorId"
+                       value="org.argeo.slc.client.ui.dist.genericJcrQueryEditor" />
+       </bean>
+</beans>
diff --git a/eclipse/plugins/org.argeo.jcr.ui.explorer/META-INF/spring/editors.xml b/eclipse/plugins/org.argeo.jcr.ui.explorer/META-INF/spring/editors.xml
new file mode 100644 (file)
index 0000000..8ddc5bf
--- /dev/null
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<beans xmlns="http://www.springframework.org/schema/beans"
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:util="http://www.springframework.org/schema/util"
+       xmlns:p="http://www.springframework.org/schema/p"
+       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
+        http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd">
+
+       <bean id="genericJcrQueryEditor"
+               class="org.argeo.eclipse.ui.jcr.editors.GenericJcrQueryEditor" scope="prototype">
+               <property name="session" ref="jcrSession" />
+       </bean>
+</beans>
diff --git a/eclipse/plugins/org.argeo.jcr.ui.explorer/META-INF/spring/jcr.xml b/eclipse/plugins/org.argeo.jcr.ui.explorer/META-INF/spring/jcr.xml
new file mode 100644 (file)
index 0000000..2701948
--- /dev/null
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<beans xmlns="http://www.springframework.org/schema/beans"
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:util="http://www.springframework.org/schema/util"
+       xmlns:p="http://www.springframework.org/schema/p"
+       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
+        http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd">
+
+       <bean id="repositoryRegister" class="org.argeo.jcr.DefaultRepositoryRegister">
+       </bean>
+</beans>
diff --git a/eclipse/plugins/org.argeo.jcr.ui.explorer/META-INF/spring/osgi.xml b/eclipse/plugins/org.argeo.jcr.ui.explorer/META-INF/spring/osgi.xml
new file mode 100644 (file)
index 0000000..0e87da8
--- /dev/null
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<beans:beans xmlns="http://www.springframework.org/schema/osgi"\r
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:beans="http://www.springframework.org/schema/beans"\r
+       xmlns:osgi="http://www.springframework.org/schema/osgi"\r
+       xsi:schemaLocation="http://www.springframework.org/schema/osgi  \r
+       http://www.springframework.org/schema/osgi/spring-osgi-1.1.xsd\r
+       http://www.springframework.org/schema/beans   \r
+       http://www.springframework.org/schema/beans/spring-beans-2.5.xsd"\r
+       osgi:default-timeout="30000">\r
+\r
+       <set id="repositories" interface="javax.jcr.Repository">\r
+               <listener ref="repositoryRegister" bind-method="register"\r
+                       unbind-method="unregister" />\r
+       </set>\r
+</beans:beans>
\ No newline at end of file
diff --git a/eclipse/plugins/org.argeo.jcr.ui.explorer/META-INF/spring/views.xml b/eclipse/plugins/org.argeo.jcr.ui.explorer/META-INF/spring/views.xml
new file mode 100644 (file)
index 0000000..eed1f48
--- /dev/null
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<beans xmlns="http://www.springframework.org/schema/beans"
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
+       xsi:schemaLocation="http://www.springframework.org/schema/beans
+        http://www.springframework.org/schema/beans/spring-beans.xsd">
+
+       <!-- Views -->
+       <bean id="browserView" class="org.argeo.eclipse.ui.jcr.views.GenericJcrBrowser"
+               scope="prototype">
+               <property name="repositoryRegister" ref="repositoryRegister" />
+       </bean>
+</beans>
diff --git a/eclipse/plugins/org.argeo.jcr.ui.explorer/build.properties b/eclipse/plugins/org.argeo.jcr.ui.explorer/build.properties
new file mode 100644 (file)
index 0000000..5fc538b
--- /dev/null
@@ -0,0 +1,4 @@
+source.. = src/main/java/
+output.. = target/classes/
+bin.includes = META-INF/,\
+               .
diff --git a/eclipse/plugins/org.argeo.jcr.ui.explorer/icons/nodes.gif b/eclipse/plugins/org.argeo.jcr.ui.explorer/icons/nodes.gif
new file mode 100644 (file)
index 0000000..bba3dbc
Binary files /dev/null and b/eclipse/plugins/org.argeo.jcr.ui.explorer/icons/nodes.gif differ
diff --git a/eclipse/plugins/org.argeo.jcr.ui.explorer/plugin.xml b/eclipse/plugins/org.argeo.jcr.ui.explorer/plugin.xml
new file mode 100644 (file)
index 0000000..8b3957c
--- /dev/null
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.4"?>
+<plugin>
+   <extension
+         point="org.eclipse.ui.perspectiveExtensions">
+      <perspectiveExtension
+            targetID="jcrExplorerPerspective">
+         <view
+               relative="upperLeft"
+               relationship="stack"
+               id="browserView">
+         </view>
+      </perspectiveExtension>
+   </extension>
+   <extension
+         point="org.eclipse.ui.perspectives">
+      <perspective
+            class="org.argeo.eclipse.ui.jcr.explorer.JcrExplorerPerspective"
+            icon="icons/nodes.gif"
+            id="jcrExplorerPerspective"
+            name="JCR Explorer">
+      </perspective>
+   </extension>
+   <extension
+         point="org.eclipse.ui.views">
+          <view
+                class="org.argeo.eclipse.spring.SpringExtensionFactory"
+                id="browserView"
+                name="Browser">
+          </view>
+   </extension>
+   <extension
+           point="org.eclipse.ui.editors">
+            <editor
+                 class="org.argeo.eclipse.spring.SpringExtensionFactory"
+              id="genericJcrQueryEditor"
+              name="JCR Query"
+              icon="icons/nodes.gif"
+              default="false">
+        </editor>
+     </extension>
+       <extension
+         point="org.eclipse.ui.commands">
+               <command
+            defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
+            id="openGenericJcrQueryEditor"
+            name="OpenGenericJcrQueryEditor ">
+       </command>
+    </extension>
+       <extension
+         id="menu:org.eclipse.ui.main.menu"
+         point="org.eclipse.ui.menus">
+        <!-- Queries --> 
+               <menuContribution
+                allPopups="false"
+                locationURI="menu:org.eclipse.ui.main.menu?after=edit">
+               <menu label="Queries"
+              mnemonic="Queries"
+              id="queryMenu">
+                <command
+                      commandId="openGenericJcrQueryEditor"
+                      disabledIcon="icons/saveDisabled.gif"
+                      icon="icons/results.gif"
+                      label="JCR Query"
+                      style="push"
+                      tooltip="Open JCR query editor">
+                </command>
+             </menu>
+          </menuContribution>
+       </extension>
+</plugin>
diff --git a/eclipse/plugins/org.argeo.jcr.ui.explorer/pom.xml b/eclipse/plugins/org.argeo.jcr.ui.explorer/pom.xml
new file mode 100644 (file)
index 0000000..277e44a
--- /dev/null
@@ -0,0 +1,27 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+       <modelVersion>4.0.0</modelVersion>
+       <parent>
+               <groupId>org.argeo.commons.eclipse</groupId>
+               <version>0.2.3-SNAPSHOT</version>
+               <artifactId>plugins</artifactId>
+               <relativePath>..</relativePath>
+       </parent>
+       <artifactId>org.argeo.jcr.ui.explorer</artifactId>
+       <name>Commons JCR Explorer</name>
+       <packaging>jar</packaging>
+       <dependencies>
+               <dependency>
+                       <groupId>org.argeo.commons.eclipse</groupId>
+                       <artifactId>org.argeo.eclipse.ui.jucr</artifactId>
+                       <version>0.2.3-SNAPSHOT</version>
+               </dependency>
+
+               <!-- RCP only dependency, needed at compile time -->
+               <dependency>
+                       <groupId>org.argeo.commons.eclipse</groupId>
+                       <artifactId>org.argeo.eclipse.dep.rcp</artifactId>
+                       <version>0.2.3-SNAPSHOT</version>
+                       <scope>provided</scope>
+               </dependency>
+       </dependencies>
+</project>
diff --git a/eclipse/plugins/org.argeo.jcr.ui.explorer/src/main/java/org/argeo/eclipse/ui/jcr/explorer/JcrExplorerActivator.java b/eclipse/plugins/org.argeo.jcr.ui.explorer/src/main/java/org/argeo/eclipse/ui/jcr/explorer/JcrExplorerActivator.java
new file mode 100644 (file)
index 0000000..9a00a70
--- /dev/null
@@ -0,0 +1,50 @@
+package org.argeo.eclipse.ui.jcr.explorer;
+
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class JcrExplorerActivator extends AbstractUIPlugin {
+
+       // The plug-in ID
+       public static final String PLUGIN_ID = "org.argeo.eclipse.ui.jcr.explorer"; //$NON-NLS-1$
+
+       // The shared instance
+       private static JcrExplorerActivator plugin;
+       
+       /**
+        * The constructor
+        */
+       public JcrExplorerActivator() {
+       }
+
+       /*
+        * (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 JcrExplorerActivator getDefault() {
+               return plugin;
+       }
+
+}
diff --git a/eclipse/plugins/org.argeo.jcr.ui.explorer/src/main/java/org/argeo/eclipse/ui/jcr/explorer/JcrExplorerPerspective.java b/eclipse/plugins/org.argeo.jcr.ui.explorer/src/main/java/org/argeo/eclipse/ui/jcr/explorer/JcrExplorerPerspective.java
new file mode 100644 (file)
index 0000000..cdce20e
--- /dev/null
@@ -0,0 +1,17 @@
+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 void createInitialLayout(IPageLayout layout) {
+               layout.setEditorAreaVisible(true);
+
+               IFolderLayout main = layout.createFolder("upperLeft", IPageLayout.LEFT,
+                               0.5f, layout.getEditorArea());
+
+       }
+
+}
index 64b508624a0512d96d5b8d296008ce96fdeb202e..3d2271ba7280773d7a4111d47672b077c753339c 100644 (file)
@@ -10,7 +10,7 @@
        <name>Commons Eclipse plugins</name>
        <packaging>pom</packaging>
        <modules>
-               <module>org.argeo.eclipse.ui.jcr.explorer</module>
+               <module>org.argeo.jcr.ui.explorer</module>
        </modules>
        <build>
                <resources>
index 49a226d39339bf15d5a7dffb3884f79709896897..f20e1d1249f70c8e3a73fddaee6226ac9ee0e95d 100644 (file)
@@ -62,11 +62,6 @@ public class SpringExtensionFactory implements IExecutableExtensionFactory,
 \r
        public void setInitializationData(IConfigurationElement config,\r
                        String propertyName, Object data) throws CoreException {\r
-               String beanName = getBeanName(data, config);\r
-               if (beanName == null)\r
-                       throw new ArgeoException("Cannot find bean name for extension "\r
-                                       + config);\r
-\r
                String bundleSymbolicName = config.getContributor().getName();\r
                ApplicationContext appContext = ApplicationContextTracker\r
                                .getApplicationContext(bundleSymbolicName);\r
@@ -75,6 +70,11 @@ public class SpringExtensionFactory implements IExecutableExtensionFactory,
                                        "Cannot find application context for bundle "\r
                                                        + bundleSymbolicName);\r
 \r
+               String beanName = getBeanName(data, config);\r
+               if (beanName == null)\r
+                       throw new ArgeoException("Cannot find bean name for extension "\r
+                                       + config);\r
+\r
                this.bean = appContext.getBean(beanName);\r
                if (this.bean instanceof IExecutableExtension) {\r
                        ((IExecutableExtension) this.bean).setInitializationData(config,\r