+ refactor to separate runtime and module project under eclipse plugin.
authorBruno Sinou <bsinou@argeo.org>
Mon, 8 Nov 2010 16:04:55 +0000 (16:04 +0000)
committerBruno Sinou <bsinou@argeo.org>
Mon, 8 Nov 2010 16:04:55 +0000 (16:04 +0000)
+ add some pom to prepare the deployment
+ clean client rcp & ui project (change src & target folder)

git-svn-id: https://svn.argeo.org/slc/trunk@3866 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

eclipse/plugins/runtime/org.argeo.slc.client.commons/.classpath [new file with mode: 0644]
eclipse/plugins/runtime/org.argeo.slc.client.commons/.project [new file with mode: 0644]
eclipse/plugins/runtime/org.argeo.slc.client.commons/.settings/org.eclipse.jdt.core.prefs [new file with mode: 0644]
eclipse/plugins/runtime/org.argeo.slc.client.commons/META-INF/MANIFEST.MF [new file with mode: 0644]
eclipse/plugins/runtime/org.argeo.slc.client.commons/build.properties [new file with mode: 0644]
eclipse/plugins/runtime/org.argeo.slc.client.commons/pom.xml [new file with mode: 0644]
eclipse/plugins/runtime/org.argeo.slc.client.commons/src/main/java/org/argeo/slc/client/ui/ClientUiPlugin.java [new file with mode: 0644]

diff --git a/eclipse/plugins/runtime/org.argeo.slc.client.commons/.classpath b/eclipse/plugins/runtime/org.argeo.slc.client.commons/.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/runtime/org.argeo.slc.client.commons/.project b/eclipse/plugins/runtime/org.argeo.slc.client.commons/.project
new file mode 100644 (file)
index 0000000..377e326
--- /dev/null
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+       <name>org.argeo.slc.client.commons</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/runtime/org.argeo.slc.client.commons/.settings/org.eclipse.jdt.core.prefs b/eclipse/plugins/runtime/org.argeo.slc.client.commons/.settings/org.eclipse.jdt.core.prefs
new file mode 100644 (file)
index 0000000..c1d561a
--- /dev/null
@@ -0,0 +1,8 @@
+#Mon Nov 08 17:00:09 CET 2010
+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/runtime/org.argeo.slc.client.commons/META-INF/MANIFEST.MF b/eclipse/plugins/runtime/org.argeo.slc.client.commons/META-INF/MANIFEST.MF
new file mode 100644 (file)
index 0000000..589be19
--- /dev/null
@@ -0,0 +1,10 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Client commons
+Bundle-SymbolicName: org.argeo.slc.client.commons;singleton:=true
+Bundle-Version: 1.0.0.qualifier
+Require-Bundle: org.eclipse.ui;resolution:=optional,
+ org.eclipse.core.runtime;resolution:=optional
+Bundle-ActivationPolicy: lazy
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
+Export-Package: org.argeo.slc.client.ui
diff --git a/eclipse/plugins/runtime/org.argeo.slc.client.commons/build.properties b/eclipse/plugins/runtime/org.argeo.slc.client.commons/build.properties
new file mode 100644 (file)
index 0000000..99c5852
--- /dev/null
@@ -0,0 +1,7 @@
+source.. = src/main/java
+output.. = target/classes
+bin.includes = plugin.xml,\
+               META-INF/,\
+               .,\
+               icons/
+               
\ No newline at end of file
diff --git a/eclipse/plugins/runtime/org.argeo.slc.client.commons/pom.xml b/eclipse/plugins/runtime/org.argeo.slc.client.commons/pom.xml
new file mode 100644 (file)
index 0000000..6662d1f
--- /dev/null
@@ -0,0 +1,46 @@
+<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.slc.eclipse</groupId>
+               <artifactId>runtime</artifactId>
+               <version>0.13.0-SNAPSHOT</version>
+               <relativePath>..</relativePath>
+       </parent>
+       <artifactId>org.argeo.slc.client.commons</artifactId>
+       <name>SLC Client Commons</name>
+       <packaging>jar</packaging>
+       <dependencies>
+               <!-- SLC -->
+               <dependency>
+                       <groupId>org.argeo.slc.runtime</groupId>
+                       <artifactId>org.argeo.slc.core</artifactId>
+                       <version>${project.version}</version>
+               </dependency>
+
+               <dependency>
+                       <groupId>org.argeo.slc.runtime</groupId>
+                       <artifactId>org.argeo.slc.server</artifactId>
+                       <version>${project.version}</version>
+               </dependency>
+               <!-- Commons -->
+               <dependency>
+                       <groupId>org.argeo.commons.eclipse</groupId>
+                       <artifactId>org.argeo.eclipse.ui</artifactId>
+                       <version>${version.argeo-commons}</version>
+               </dependency>
+               <!-- Eclipse -->
+               <dependency>
+                       <groupId>org.eclipse.ui</groupId>
+                       <artifactId>org.eclipse.ui</artifactId>
+               </dependency>
+               <dependency>
+                       <groupId>org.eclipse.core</groupId>
+                       <artifactId>org.eclipse.core.runtime</artifactId>
+               </dependency>
+               <dependency>
+                       <groupId>org.eclipse.swt</groupId>
+                       <artifactId>org.eclipse.swt.gtk.linux.x86_64</artifactId>
+               </dependency>
+       </dependencies>
+</project>
diff --git a/eclipse/plugins/runtime/org.argeo.slc.client.commons/src/main/java/org/argeo/slc/client/ui/ClientUiPlugin.java b/eclipse/plugins/runtime/org.argeo.slc.client.commons/src/main/java/org/argeo/slc/client/ui/ClientUiPlugin.java
new file mode 100644 (file)
index 0000000..7148f0f
--- /dev/null
@@ -0,0 +1,88 @@
+package org.argeo.slc.client.ui;
+
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.jface.resource.ImageRegistry;
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class ClientUiPlugin extends AbstractUIPlugin {
+
+       // The plug-in ID
+       public static final String PLUGIN_ID = "org.argeo.slc.client.ui";
+
+       // The shared instance
+       private static ClientUiPlugin plugin;
+
+       private BundleContext bundleContext;
+
+       /**
+        * The constructor
+        */
+       public ClientUiPlugin() {
+       }
+
+       /*
+        * (non-Javadoc)
+        * 
+        * @see
+        * org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext
+        * )
+        */
+       public void start(BundleContext context) throws Exception {
+               super.start(context);
+               this.bundleContext = 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 ClientUiPlugin getDefault() {
+               return plugin;
+       }
+
+       /**
+        * Returns an image descriptor for the image file at the given plug-in
+        * relative path
+        * 
+        * @param path
+        *            the path
+        * @return the image descriptor
+        */
+       public static ImageDescriptor getImageDescriptor(String path) {
+               return imageDescriptorFromPlugin(PLUGIN_ID, path);
+       }
+
+       @Override
+       protected void initializeImageRegistry(ImageRegistry reg) {
+               reg.put("agent", getImageDescriptor("icons/computer.png"));
+               reg.put("executionModule", getImageDescriptor("icons/archive.png"));
+               reg.put("folder", getImageDescriptor("icons/folder.png"));
+               reg.put("flow", getImageDescriptor("icons/system.png"));
+               reg.put("processes", getImageDescriptor("icons/processes.gif"));
+               reg.put("passedTest", getImageDescriptor("icons/passed.gif"));
+               reg.put("failedTest", getImageDescriptor("icons/error.gif"));
+       }
+
+       public BundleContext getBundleContext() {
+               return bundleContext;
+       }
+
+}