Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoratikhomirov2006-04-14 12:53:35 +0000
committeratikhomirov2006-04-14 12:53:35 +0000
commit31af636b1240b40c93a121a88fd947712620d07d (patch)
treed0f7610d84bfd44779faac7681eea9f942052e8e /plugins/org.eclipse.gmf.codegen.lite.ui
parent55ba9a90f8b12cd4f04051ab8576ca4ff3cb5b5a (diff)
downloadorg.eclipse.gmf-tooling-31af636b1240b40c93a121a88fd947712620d07d.tar.gz
org.eclipse.gmf-tooling-31af636b1240b40c93a121a88fd947712620d07d.tar.xz
org.eclipse.gmf-tooling-31af636b1240b40c93a121a88fd947712620d07d.zip
[bblajer] #136702 Code generation targeting pure-GEF runtime
refactoring to reuse action from codegen.ui for now
Diffstat (limited to 'plugins/org.eclipse.gmf.codegen.lite.ui')
-rw-r--r--plugins/org.eclipse.gmf.codegen.lite.ui/.classpath7
-rw-r--r--plugins/org.eclipse.gmf.codegen.lite.ui/.cvsignore1
-rw-r--r--plugins/org.eclipse.gmf.codegen.lite.ui/.project28
-rw-r--r--plugins/org.eclipse.gmf.codegen.lite.ui/META-INF/MANIFEST.MF14
-rw-r--r--plugins/org.eclipse.gmf.codegen.lite.ui/build.properties16
-rw-r--r--plugins/org.eclipse.gmf.codegen.lite.ui/plugin.properties14
-rw-r--r--plugins/org.eclipse.gmf.codegen.lite.ui/plugin.xml21
-rw-r--r--plugins/org.eclipse.gmf.codegen.lite.ui/src/org/eclipse/gmf/internal/codegen/lite/popup/actions/ExecuteTemplatesAction.java26
8 files changed, 127 insertions, 0 deletions
diff --git a/plugins/org.eclipse.gmf.codegen.lite.ui/.classpath b/plugins/org.eclipse.gmf.codegen.lite.ui/.classpath
new file mode 100644
index 000000000..751c8f2e5
--- /dev/null
+++ b/plugins/org.eclipse.gmf.codegen.lite.ui/.classpath
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/plugins/org.eclipse.gmf.codegen.lite.ui/.cvsignore b/plugins/org.eclipse.gmf.codegen.lite.ui/.cvsignore
new file mode 100644
index 000000000..ba077a403
--- /dev/null
+++ b/plugins/org.eclipse.gmf.codegen.lite.ui/.cvsignore
@@ -0,0 +1 @@
+bin
diff --git a/plugins/org.eclipse.gmf.codegen.lite.ui/.project b/plugins/org.eclipse.gmf.codegen.lite.ui/.project
new file mode 100644
index 000000000..01f52ce33
--- /dev/null
+++ b/plugins/org.eclipse.gmf.codegen.lite.ui/.project
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.gmf.codegen.lite.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/plugins/org.eclipse.gmf.codegen.lite.ui/META-INF/MANIFEST.MF b/plugins/org.eclipse.gmf.codegen.lite.ui/META-INF/MANIFEST.MF
new file mode 100644
index 000000000..a178b1201
--- /dev/null
+++ b/plugins/org.eclipse.gmf.codegen.lite.ui/META-INF/MANIFEST.MF
@@ -0,0 +1,14 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: %pluginName
+Bundle-SymbolicName: org.eclipse.gmf.codegen.lite.ui;singleton:=true
+Bundle-Version: 1.0.0.qualifier
+Bundle-Vendor: %providerName
+Bundle-Localization: plugin
+Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.2.0,4.0.0)",
+ org.eclipse.core.resources;bundle-version="[3.2.0,4.0.0)",
+ org.eclipse.ui;bundle-version="[3.2.0,4.0.0)",
+ org.eclipse.gmf.codegen;bundle-version="[1.0.0,2.0.0)",
+ org.eclipse.gmf.codegen.lite;bundle-version="[1.0.0,2.0.0)",
+ org.eclipse.gmf.codegen.ui;bundle-version="[1.0.0,2.0.0)"
+Eclipse-LazyStart: true
diff --git a/plugins/org.eclipse.gmf.codegen.lite.ui/build.properties b/plugins/org.eclipse.gmf.codegen.lite.ui/build.properties
new file mode 100644
index 000000000..841c290ef
--- /dev/null
+++ b/plugins/org.eclipse.gmf.codegen.lite.ui/build.properties
@@ -0,0 +1,16 @@
+###############################################################################
+# Copyright (c) 2006 Borland Software Corporation and others.
+# 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:
+# Borland Software Corporation - initial API and implementation
+###############################################################################
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .,\
+ plugin.xml,\
+ plugin.properties
diff --git a/plugins/org.eclipse.gmf.codegen.lite.ui/plugin.properties b/plugins/org.eclipse.gmf.codegen.lite.ui/plugin.properties
new file mode 100644
index 000000000..822aef4d6
--- /dev/null
+++ b/plugins/org.eclipse.gmf.codegen.lite.ui/plugin.properties
@@ -0,0 +1,14 @@
+###############################################################################
+# Copyright (c) 2006 Borland Software Corporation and others.
+# 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:
+# Borland Software Corporation - initial API and implementation
+###############################################################################
+pluginName = GMF Pure-GEF Code Generation UI
+providerName = Eclipse.org
+
+generatecode.action=Generate &pure-GEF diagram code
diff --git a/plugins/org.eclipse.gmf.codegen.lite.ui/plugin.xml b/plugins/org.eclipse.gmf.codegen.lite.ui/plugin.xml
new file mode 100644
index 000000000..e6951aeef
--- /dev/null
+++ b/plugins/org.eclipse.gmf.codegen.lite.ui/plugin.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.0"?>
+<plugin>
+ <extension
+ point="org.eclipse.ui.popupMenus">
+ <objectContribution
+ adaptable="true"
+ id="gmf.codegen.ui.contribution2"
+ nameFilter="*.gmfgen"
+ objectClass="org.eclipse.core.resources.IFile">
+ <action
+ label="%generatecode.action"
+ class="org.eclipse.gmf.internal.codegen.lite.popup.actions.ExecuteTemplatesAction"
+ menubarPath="additions"
+ enablesFor="1"
+ id="gmf.codegen.ui.step2Action">
+ </action>
+ </objectContribution>
+ </extension>
+
+</plugin>
diff --git a/plugins/org.eclipse.gmf.codegen.lite.ui/src/org/eclipse/gmf/internal/codegen/lite/popup/actions/ExecuteTemplatesAction.java b/plugins/org.eclipse.gmf.codegen.lite.ui/src/org/eclipse/gmf/internal/codegen/lite/popup/actions/ExecuteTemplatesAction.java
new file mode 100644
index 000000000..733a52a29
--- /dev/null
+++ b/plugins/org.eclipse.gmf.codegen.lite.ui/src/org/eclipse/gmf/internal/codegen/lite/popup/actions/ExecuteTemplatesAction.java
@@ -0,0 +1,26 @@
+/*
+ * Copyright (c) 2006 Borland Software Corporation
+ *
+ * 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:
+ * Artem Tikhomirov (Borland) - initial API and implementation
+ */
+package org.eclipse.gmf.internal.codegen.lite.popup.actions;
+
+import java.lang.reflect.InvocationTargetException;
+
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.gmf.internal.codegen.lite.Generator;
+
+public class ExecuteTemplatesAction extends org.eclipse.gmf.internal.codegen.popup.actions.ExecuteTemplatesAction {
+
+ public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
+ Generator g = new Generator(getGenModel());
+ g.run(monitor);
+ myRunStatus = g.getRunStatus();
+ }
+}

Back to the top