From 057beabac3fdfe7d03cc734f4e65b395b7e7cdd6 Mon Sep 17 00:00:00 2001 From: Sergey Zverlov <zverlov@fortiss.org> Date: Fri, 4 Mar 2016 13:51:41 +0000 Subject: [PATCH] RP Plugins created (ui) refs 2506 --- .../trunk/.classpath | 7 ++ .../trunk/.project | 28 ++++++++ .../trunk/META-INF/MANIFEST.MF | 13 ++++ .../trunk/build.properties | 10 +++ .../trunk/plugin.properties | 7 ++ .../trunk/plugin.xml | 12 ++++ .../trunk/pom.xml | 21 ++++++ .../ui/AF3PlatformRaspberryUIActivator.java | 68 +++++++++++++++++++ .../trunk/pom.xml | 4 +- 9 files changed, 168 insertions(+), 2 deletions(-) create mode 100644 org.fortiss.af3.platform.raspberry.ui/trunk/.classpath create mode 100644 org.fortiss.af3.platform.raspberry.ui/trunk/.project create mode 100644 org.fortiss.af3.platform.raspberry.ui/trunk/META-INF/MANIFEST.MF create mode 100644 org.fortiss.af3.platform.raspberry.ui/trunk/build.properties create mode 100644 org.fortiss.af3.platform.raspberry.ui/trunk/plugin.properties create mode 100644 org.fortiss.af3.platform.raspberry.ui/trunk/plugin.xml create mode 100644 org.fortiss.af3.platform.raspberry.ui/trunk/pom.xml create mode 100644 org.fortiss.af3.platform.raspberry.ui/trunk/src/org/fortiss/af3/platform/raspberry/ui/AF3PlatformRaspberryUIActivator.java diff --git a/org.fortiss.af3.platform.raspberry.ui/trunk/.classpath b/org.fortiss.af3.platform.raspberry.ui/trunk/.classpath new file mode 100644 index 00000000..6046c7a0 --- /dev/null +++ b/org.fortiss.af3.platform.raspberry.ui/trunk/.classpath @@ -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/JavaSE-1.6"/> + <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> + <classpathentry kind="src" path="src"/> + <classpathentry kind="output" path="build"/> +</classpath> diff --git a/org.fortiss.af3.platform.raspberry.ui/trunk/.project b/org.fortiss.af3.platform.raspberry.ui/trunk/.project new file mode 100644 index 00000000..b36b3e2e --- /dev/null +++ b/org.fortiss.af3.platform.raspberry.ui/trunk/.project @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>org.fortiss.af3.platform.raspberry.ui</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/org.fortiss.af3.platform.raspberry.ui/trunk/META-INF/MANIFEST.MF b/org.fortiss.af3.platform.raspberry.ui/trunk/META-INF/MANIFEST.MF new file mode 100644 index 00000000..03836d23 --- /dev/null +++ b/org.fortiss.af3.platform.raspberry.ui/trunk/META-INF/MANIFEST.MF @@ -0,0 +1,13 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: Fortiss AF3 Platform Raspberry UI +Bundle-SymbolicName: org.fortiss.af3.platform.raspberry.ui;singleton:=true +Bundle-Version: 2.9.0.qualifier +Bundle-Activator: org.fortiss.af3.platform.raspberry.ui.AF3PlatformRaspberryUIActivator +Require-Bundle: org.eclipse.ui.ide;bundle-version="3.7.0";visibility:=reexport, + org.fortiss.af3.project.ui;bundle-version="1.0.0";visibility:=reexport, + org.fortiss.tooling.base.ui;bundle-version="1.0.0";visibility:=reexport +Bundle-ActivationPolicy: lazy +Bundle-RequiredExecutionEnvironment: JavaSE-1.8 +Bundle-Vendor: fortiss GmbH +Export-Package: org.fortiss.af3.platform.raspberry.ui diff --git a/org.fortiss.af3.platform.raspberry.ui/trunk/build.properties b/org.fortiss.af3.platform.raspberry.ui/trunk/build.properties new file mode 100644 index 00000000..c514c7fd --- /dev/null +++ b/org.fortiss.af3.platform.raspberry.ui/trunk/build.properties @@ -0,0 +1,10 @@ +# <copyright> +# </copyright> +# +# $Id$ + +bin.includes = .,\ + META-INF/,\ + plugin.xml +source.. = src/ +output.. = build/ \ No newline at end of file diff --git a/org.fortiss.af3.platform.raspberry.ui/trunk/plugin.properties b/org.fortiss.af3.platform.raspberry.ui/trunk/plugin.properties new file mode 100644 index 00000000..35dca873 --- /dev/null +++ b/org.fortiss.af3.platform.raspberry.ui/trunk/plugin.properties @@ -0,0 +1,7 @@ +# <copyright> +# </copyright> +# +# $Id$ + +pluginName = Fortiss AF3 Base Project UI +providerName = fortiss GmbH diff --git a/org.fortiss.af3.platform.raspberry.ui/trunk/plugin.xml b/org.fortiss.af3.platform.raspberry.ui/trunk/plugin.xml new file mode 100644 index 00000000..1efe8a1e --- /dev/null +++ b/org.fortiss.af3.platform.raspberry.ui/trunk/plugin.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?eclipse version="3.0"?> + +<!-- + <copyright> + </copyright> + + $Id$ +--> +<plugin> + +</plugin> diff --git a/org.fortiss.af3.platform.raspberry.ui/trunk/pom.xml b/org.fortiss.af3.platform.raspberry.ui/trunk/pom.xml new file mode 100644 index 00000000..924914f3 --- /dev/null +++ b/org.fortiss.af3.platform.raspberry.ui/trunk/pom.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + $Id$ + @version $Rev$ + @ConQAT.Rating RED Hash: E1674C4A6DD3CBC4A7B7E85232D9695F +--> +<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/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> + <groupId>org.fortiss.af3</groupId> + <artifactId>org.fortiss.af3.platform.raspberry.ui</artifactId> + <packaging>eclipse-plugin</packaging> + + <parent> + <groupId>org.fortiss.std.pom</groupId> + <artifactId>std-parent-pom-indigo</artifactId> + <version>1.0</version> + <relativePath>../fortiss-std-env/maven-build/pom.xml</relativePath> + </parent> + + <version>2.9.0-SNAPSHOT</version> +</project> \ No newline at end of file diff --git a/org.fortiss.af3.platform.raspberry.ui/trunk/src/org/fortiss/af3/platform/raspberry/ui/AF3PlatformRaspberryUIActivator.java b/org.fortiss.af3.platform.raspberry.ui/trunk/src/org/fortiss/af3/platform/raspberry/ui/AF3PlatformRaspberryUIActivator.java new file mode 100644 index 00000000..e65c3d27 --- /dev/null +++ b/org.fortiss.af3.platform.raspberry.ui/trunk/src/org/fortiss/af3/platform/raspberry/ui/AF3PlatformRaspberryUIActivator.java @@ -0,0 +1,68 @@ +/*--------------------------------------------------------------------------+ +$Id$ +| | +| Copyright 2011 ForTISS GmbH | +| | +| Licensed under the Apache License, Version 2.0 (the "License"); | +| you may not use this file except in compliance with the License. | +| You may obtain a copy of the License at | +| | +| http://www.apache.org/licenses/LICENSE-2.0 | +| | +| Unless required by applicable law or agreed to in writing, software | +| distributed under the License is distributed on an "AS IS" BASIS, | +| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | +| See the License for the specific language governing permissions and | +| limitations under the License. | ++--------------------------------------------------------------------------*/ +package org.fortiss.af3.platform.raspberry.ui; + +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. + * + * @author hoelzl + * @author $Author$ + * @version $Rev$ + * @ConQAT.Rating RED Hash: 250D9EED7E36588B51D8F1B3F968B2FB + */ +public class AF3PlatformRaspberryUIActivator extends AbstractUIPlugin { + + /** The plug-in ID. */ + public static final String PLUGIN_ID = AF3PlatformRaspberryUIActivator.class.getPackage().getName(); //$NON-NLS-1$ + + /** The shared instance. */ + private static AF3PlatformRaspberryUIActivator plugin; + + /** Constructor. */ + public AF3PlatformRaspberryUIActivator() { + // do nothing + } + + /** {@inheritDoc} */ + @Override + public void start(BundleContext context) throws Exception { + super.start(context); + plugin = this; + } + + /** {@inheritDoc} */ + @Override + public void stop(BundleContext context) throws Exception { + plugin = null; + super.stop(context); + } + + /** Returns the shared instance. */ + public static AF3PlatformRaspberryUIActivator getDefault() { + return plugin; + } + + /** Returns the image descriptor for the given icon file. */ + public static ImageDescriptor getImageDescriptor(String path) { + return imageDescriptorFromPlugin(PLUGIN_ID, path); + } +} diff --git a/org.fortiss.af3.platform.raspberry/trunk/pom.xml b/org.fortiss.af3.platform.raspberry/trunk/pom.xml index 49f36675..3622f7b7 100644 --- a/org.fortiss.af3.platform.raspberry/trunk/pom.xml +++ b/org.fortiss.af3.platform.raspberry/trunk/pom.xml @@ -7,7 +7,7 @@ <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/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>org.fortiss.af3</groupId> - <artifactId>org.fortiss.af3.base.project</artifactId> + <artifactId>org.fortiss.af3.platform.raspberry</artifactId> <packaging>eclipse-plugin</packaging> <parent> @@ -17,5 +17,5 @@ <relativePath>../fortiss-std-env/maven-build/pom.xml</relativePath> </parent> - <version>2.8.0-SNAPSHOT</version> + <version>2.9.0-SNAPSHOT</version> </project> \ No newline at end of file -- GitLab