Bug 511757
First draft
effectively used for new project/example wizard
Change-Id: Iff4f300d695e3bea5c929dcbbfbcd97e2c27ac1a
Signed-off-by: Erwan Mahe <erwan.mahe@cea.fr>
diff --git a/gui/org.eclipse.efm.runconfiguration/build.properties b/gui/org.eclipse.efm.runconfiguration/build.properties
index 6252586..8490340 100644
--- a/gui/org.eclipse.efm.runconfiguration/build.properties
+++ b/gui/org.eclipse.efm.runconfiguration/build.properties
@@ -5,5 +5,5 @@
META-INF/,\
.,\
resources/,\
- icons/,\
+ resources/icons/,\
plugin.properties
diff --git a/gui/org.eclipse.efm.ui.newproject.examples/build.properties b/gui/org.eclipse.efm.ui.newproject.examples/build.properties
index 27c5bb0..6e19223 100644
--- a/gui/org.eclipse.efm.ui.newproject.examples/build.properties
+++ b/gui/org.eclipse.efm.ui.newproject.examples/build.properties
@@ -1,7 +1,6 @@
source.. = src/
-output.. = bin/
+output.. = target/classes/
bin.includes = plugin.xml,\
META-INF/,\
.,\
- icons/,\
examples/
diff --git a/gui/org.eclipse.efm.ui.newproject.templates/build.properties b/gui/org.eclipse.efm.ui.newproject.templates/build.properties
index b3a07d1..8a6430d 100644
--- a/gui/org.eclipse.efm.ui.newproject.templates/build.properties
+++ b/gui/org.eclipse.efm.ui.newproject.templates/build.properties
@@ -1,7 +1,5 @@
source.. = src/
output.. = target/classes/
-bin.includes = META-INF/,\
- .,\
- plugin.xml,\
- plugin.properties,\
- resources/
+bin.includes = plugin.xml,\
+ META-INF/,\
+ .
diff --git a/gui/org.eclipse.efm.ui.newproject.templates/plugin.properties b/gui/org.eclipse.efm.ui.newproject.templates/plugin.properties
deleted file mode 100644
index aded174..0000000
--- a/gui/org.eclipse.efm.ui.newproject.templates/plugin.properties
+++ /dev/null
@@ -1,12 +0,0 @@
-#################################################################################
-# Copyright (c) 2016 CEA LIST.
-# 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:
-# Benoit Maggi (CEA LIST) benoit.maggi@cea.fr - initial API and implementation
-##################################################################################
-Bundle-Name = Papyrus Training Library Wizard
-Bundle-Vendor = Eclipse Modeling Project
diff --git a/gui/org.eclipse.efm.ui.resources/.classpath b/gui/org.eclipse.efm.ui.resources/.classpath
new file mode 100644
index 0000000..b9a5b1e
--- /dev/null
+++ b/gui/org.eclipse.efm.ui.resources/.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.7"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="target/classes"/>
+</classpath>
diff --git a/gui/org.eclipse.efm.ui.resources/.gitignore b/gui/org.eclipse.efm.ui.resources/.gitignore
new file mode 100644
index 0000000..ae3c172
--- /dev/null
+++ b/gui/org.eclipse.efm.ui.resources/.gitignore
@@ -0,0 +1 @@
+/bin/
diff --git a/gui/org.eclipse.efm.ui.resources/.project b/gui/org.eclipse.efm.ui.resources/.project
new file mode 100644
index 0000000..e7b7c28
--- /dev/null
+++ b/gui/org.eclipse.efm.ui.resources/.project
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.efm.ui.resources</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/gui/org.eclipse.efm.ui.resources/.settings/org.eclipse.jdt.core.prefs b/gui/org.eclipse.efm.ui.resources/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 0000000..11f6e46
--- /dev/null
+++ b/gui/org.eclipse.efm.ui.resources/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,7 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
+org.eclipse.jdt.core.compiler.compliance=1.7
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.7
diff --git a/gui/org.eclipse.efm.ui.resources/META-INF/MANIFEST.MF b/gui/org.eclipse.efm.ui.resources/META-INF/MANIFEST.MF
new file mode 100644
index 0000000..2dc34cc
--- /dev/null
+++ b/gui/org.eclipse.efm.ui.resources/META-INF/MANIFEST.MF
@@ -0,0 +1,10 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Resources
+Bundle-SymbolicName: org.eclipse.efm.ui.resources
+Bundle-Version: 0.0.1.qualifier
+Require-Bundle: org.eclipse.core.runtime
+Export-Package: org.eclipse.efm.ui.resources
+Bundle-Vendor: CEA - LIST
+Bundle-RequiredExecutionEnvironment: JavaSE-1.7
+Bundle-ActivationPolicy: lazy
diff --git a/gui/org.eclipse.efm.ui.resources/build.properties b/gui/org.eclipse.efm.ui.resources/build.properties
new file mode 100644
index 0000000..6b13ef4
--- /dev/null
+++ b/gui/org.eclipse.efm.ui.resources/build.properties
@@ -0,0 +1,5 @@
+source.. = src/
+output.. = target/classes/
+bin.includes = META-INF/,\
+ .,\
+ icons/
diff --git a/gui/org.eclipse.efm.runconfiguration/icons/alt_diversity.png b/gui/org.eclipse.efm.ui.resources/icons/alt_diversity.png
similarity index 100%
rename from gui/org.eclipse.efm.runconfiguration/icons/alt_diversity.png
rename to gui/org.eclipse.efm.ui.resources/icons/alt_diversity.png
Binary files differ
diff --git a/gui/org.eclipse.efm.runconfiguration/icons/alt_diversity.png b/gui/org.eclipse.efm.ui.resources/icons/efm_project.png
similarity index 100%
copy from gui/org.eclipse.efm.runconfiguration/icons/alt_diversity.png
copy to gui/org.eclipse.efm.ui.resources/icons/efm_project.png
Binary files differ
diff --git a/gui/org.eclipse.efm.ui.resources/icons/genproject.gif b/gui/org.eclipse.efm.ui.resources/icons/genproject.gif
new file mode 100644
index 0000000..9acbbc6
--- /dev/null
+++ b/gui/org.eclipse.efm.ui.resources/icons/genproject.gif
Binary files differ
diff --git a/gui/org.eclipse.efm.runconfiguration/icons/sample.gif b/gui/org.eclipse.efm.ui.resources/icons/sample.gif
similarity index 100%
rename from gui/org.eclipse.efm.runconfiguration/icons/sample.gif
rename to gui/org.eclipse.efm.ui.resources/icons/sample.gif
Binary files differ
diff --git a/gui/org.eclipse.efm.ui.resources/src/org/eclipse/efm/ui/resources/UIfmlResources.java b/gui/org.eclipse.efm.ui.resources/src/org/eclipse/efm/ui/resources/UIfmlResources.java
new file mode 100644
index 0000000..c745586
--- /dev/null
+++ b/gui/org.eclipse.efm.ui.resources/src/org/eclipse/efm/ui/resources/UIfmlResources.java
@@ -0,0 +1,19 @@
+/*******************************************************************************
+ * Copyright (c) 2016 CEA LIST.
+ * 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:
+ * Erwan Mahe (CEA LIST) erwan.mahe@cea.fr - Initial API and implementation
+ *******************************************************************************/
+package org.eclipse.efm.ui.resources;
+
+public class UIfmlResources {
+
+ private static final String PROFILES_PATHMAP = "platform:/plugin/";
+
+ public static final String FML_PROFILE_PATH = PROFILES_PATHMAP + "org.eclipse.efm.formalml/resources/profile/FormalML.profile.uml";
+
+}