Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvlorenzo2012-09-14 12:49:07 +0000
committervlorenzo2012-09-14 12:49:07 +0000
commit5e148e1c6ec3124522f01a57771cc671bdf98ac9 (patch)
treef696fd3d0c3a6402139afe9ee11e21ba9fcd9173 /incoming
parentc496967a58351209c6300b1f4b064baead895e00 (diff)
downloadorg.eclipse.papyrus-5e148e1c6ec3124522f01a57771cc671bdf98ac9.tar.gz
org.eclipse.papyrus-5e148e1c6ec3124522f01a57771cc671bdf98ac9.tar.xz
org.eclipse.papyrus-5e148e1c6ec3124522f01a57771cc671bdf98ac9.zip
351695: [developer] Create a new plugin to edit project files
https://bugs.eclipse.org/bugs/show_bug.cgi?id=351695
Diffstat (limited to 'incoming')
-rw-r--r--incoming/org.eclipse.papyrus.eclipse.project.editors/src/org/eclipse/papyrus/eclipse/project/editors/interfaces/IEMFFacetProjectEditor.java16
-rw-r--r--incoming/org.eclipse.papyrus.eclipse.project.editors/src/org/eclipse/papyrus/eclipse/project/editors/interfaces/IJavaProjectEditor.java13
-rw-r--r--incoming/org.eclipse.papyrus.eclipse.project.editors/src/org/eclipse/papyrus/eclipse/project/editors/project/EMFFacetProjectEditor.java22
-rw-r--r--incoming/org.eclipse.papyrus.eclipse.project.editors/src/org/eclipse/papyrus/eclipse/project/editors/project/FeatureProjectEditor.java13
-rw-r--r--incoming/org.eclipse.papyrus.eclipse.project.editors/src/org/eclipse/papyrus/eclipse/project/editors/project/JavaProjectEditor.java23
5 files changed, 86 insertions, 1 deletions
diff --git a/incoming/org.eclipse.papyrus.eclipse.project.editors/src/org/eclipse/papyrus/eclipse/project/editors/interfaces/IEMFFacetProjectEditor.java b/incoming/org.eclipse.papyrus.eclipse.project.editors/src/org/eclipse/papyrus/eclipse/project/editors/interfaces/IEMFFacetProjectEditor.java
index 6a8c3a1fb51..707b0846ef3 100644
--- a/incoming/org.eclipse.papyrus.eclipse.project.editors/src/org/eclipse/papyrus/eclipse/project/editors/interfaces/IEMFFacetProjectEditor.java
+++ b/incoming/org.eclipse.papyrus.eclipse.project.editors/src/org/eclipse/papyrus/eclipse/project/editors/interfaces/IEMFFacetProjectEditor.java
@@ -72,6 +72,22 @@ public interface IEMFFacetProjectEditor extends IJavaProjectEditor/* , IManifest
* the version of the dependency
*/
public void addDependency(final String dependency, final String version);
+
+ /**
+ * Gets the plugin editor.
+ *
+ * @return the plugin editor
+ */
+ public IPluginProjectEditor getPluginEditor();
+
+
+
+ /**
+ * Gets the manifest editor.
+ *
+ * @return the manifest editor
+ */
+ public IManifestEditor getManifestEditor() ;
}
diff --git a/incoming/org.eclipse.papyrus.eclipse.project.editors/src/org/eclipse/papyrus/eclipse/project/editors/interfaces/IJavaProjectEditor.java b/incoming/org.eclipse.papyrus.eclipse.project.editors/src/org/eclipse/papyrus/eclipse/project/editors/interfaces/IJavaProjectEditor.java
index 348e51f8d9d..1f10e6be699 100644
--- a/incoming/org.eclipse.papyrus.eclipse.project.editors/src/org/eclipse/papyrus/eclipse/project/editors/interfaces/IJavaProjectEditor.java
+++ b/incoming/org.eclipse.papyrus.eclipse.project.editors/src/org/eclipse/papyrus/eclipse/project/editors/interfaces/IJavaProjectEditor.java
@@ -32,6 +32,19 @@ public interface IJavaProjectEditor extends IBuildEditor {
* the path of the java source folder
*/
public void addJavaSourceFolder(final String path);
+ /**
+ * Gets the classpath editor.
+ *
+ * @return the classpath editor
+ */
+ public IClasspathEditor getClasspathEditor();
+
+ /**
+ * Gets the builds the editor.
+ *
+ * @return the builds the editor
+ */
+ public IBuildEditor getBuildEditor();
}
diff --git a/incoming/org.eclipse.papyrus.eclipse.project.editors/src/org/eclipse/papyrus/eclipse/project/editors/project/EMFFacetProjectEditor.java b/incoming/org.eclipse.papyrus.eclipse.project.editors/src/org/eclipse/papyrus/eclipse/project/editors/project/EMFFacetProjectEditor.java
index 91e42ce01d3..b329e0cfd33 100644
--- a/incoming/org.eclipse.papyrus.eclipse.project.editors/src/org/eclipse/papyrus/eclipse/project/editors/project/EMFFacetProjectEditor.java
+++ b/incoming/org.eclipse.papyrus.eclipse.project.editors/src/org/eclipse/papyrus/eclipse/project/editors/project/EMFFacetProjectEditor.java
@@ -52,6 +52,28 @@ public class EMFFacetProjectEditor extends JavaProjectEditor implements IEMFFace
*/
private final IManifestEditor manifestEditor;
+
+ /**
+ * Gets the plugin editor.
+ *
+ * @return the plugin editor
+ */
+ public IPluginProjectEditor getPluginEditor() {
+ return pluginEditor;
+ }
+
+
+
+ /**
+ * Gets the manifest editor.
+ *
+ * @return the manifest editor
+ */
+ public IManifestEditor getManifestEditor() {
+ return manifestEditor;
+ }
+
+
/**
*
* Constructor.
diff --git a/incoming/org.eclipse.papyrus.eclipse.project.editors/src/org/eclipse/papyrus/eclipse/project/editors/project/FeatureProjectEditor.java b/incoming/org.eclipse.papyrus.eclipse.project.editors/src/org/eclipse/papyrus/eclipse/project/editors/project/FeatureProjectEditor.java
index 8b341fbc39d..462464cd975 100644
--- a/incoming/org.eclipse.papyrus.eclipse.project.editors/src/org/eclipse/papyrus/eclipse/project/editors/project/FeatureProjectEditor.java
+++ b/incoming/org.eclipse.papyrus.eclipse.project.editors/src/org/eclipse/papyrus/eclipse/project/editors/project/FeatureProjectEditor.java
@@ -1,3 +1,16 @@
+/*****************************************************************************
+ * Copyright (c) 2011 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:
+ * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
package org.eclipse.papyrus.eclipse.project.editors.project;
import java.io.IOException;
diff --git a/incoming/org.eclipse.papyrus.eclipse.project.editors/src/org/eclipse/papyrus/eclipse/project/editors/project/JavaProjectEditor.java b/incoming/org.eclipse.papyrus.eclipse.project.editors/src/org/eclipse/papyrus/eclipse/project/editors/project/JavaProjectEditor.java
index b6244e62603..3e3406cedf7 100644
--- a/incoming/org.eclipse.papyrus.eclipse.project.editors/src/org/eclipse/papyrus/eclipse/project/editors/project/JavaProjectEditor.java
+++ b/incoming/org.eclipse.papyrus.eclipse.project.editors/src/org/eclipse/papyrus/eclipse/project/editors/project/JavaProjectEditor.java
@@ -1,7 +1,7 @@
/*****************************************************************************
* Copyright (c) 2011 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
@@ -39,6 +39,27 @@ public class JavaProjectEditor extends ProjectEditor implements IJavaProjectEdit
/** the java project */
private final IJavaProject javaProject;
+
+
+ /**
+ * Gets the classpath editor.
+ *
+ * @return the classpath editor
+ */
+ public IClasspathEditor getClasspathEditor() {
+ return classpathEditor;
+ }
+
+
+ /**
+ * Gets the builds the editor.
+ *
+ * @return the builds the editor
+ */
+ public IBuildEditor getBuildEditor() {
+ return buildEditor;
+ }
+
/** the classpath editor */
private final IClasspathEditor classpathEditor;

Back to the top