Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/org.eclipse.jet.doc-feature/feature.properties4
-rw-r--r--doc/org.eclipse.jet.doc/about.properties8
-rw-r--r--doc/org.eclipse.jet.doc/gettingStarted/deployingTransforms.xhtml2
-rw-r--r--doc/org.eclipse.jet.doc/gettingStarted/newProject.xhtml2
-rw-r--r--doc/org.eclipse.jet.doc/plugin.properties4
-rw-r--r--doc/org.eclipse.jet.doc/toc.xml2
-rw-r--r--examples/org.eclipse.jet.examples-feature/feature.properties4
-rw-r--r--examples/org.eclipse.jet.examples/META-INF/MANIFEST.MF2
-rw-r--r--examples/org.eclipse.jet.examples/about.properties8
-rw-r--r--examples/org.eclipse.jet.examples/plugin.properties2
-rw-r--r--plugins/org.eclipse.jet-feature/feature.properties4
-rw-r--r--plugins/org.eclipse.jet-feature/sourceTemplateFeature/feature.properties4
-rw-r--r--plugins/org.eclipse.jet.core/plugin.properties6
-rw-r--r--plugins/org.eclipse.jet.editor-feature/feature.properties6
-rw-r--r--plugins/org.eclipse.jet.editor/META-INF/MANIFEST.MF2
-rw-r--r--plugins/org.eclipse.jet.editor/about.properties6
-rw-r--r--plugins/org.eclipse.jet.editor/plugin.xml2
-rw-r--r--plugins/org.eclipse.jet.sdk-feature/feature.properties6
-rw-r--r--plugins/org.eclipse.jet.ui/META-INF/MANIFEST.MF2
-rw-r--r--plugins/org.eclipse.jet.ui/plugin.properties10
-rw-r--r--plugins/org.eclipse.jet.ui/src/org/eclipse/jet/ui/newproject/TemplateOverridesWizardPage.java160
-rw-r--r--plugins/org.eclipse.jet/about.properties8
-rw-r--r--plugins/org.eclipse.jet/plugin.properties4
-rw-r--r--tests/org.eclipse.jet.tests-feature/feature.properties4
-rw-r--r--tests/org.eclipse.jet.tests.core/test.xml8
-rw-r--r--tests/org.eclipse.jet.tests/test.xml6
26 files changed, 218 insertions, 58 deletions
diff --git a/doc/org.eclipse.jet.doc-feature/feature.properties b/doc/org.eclipse.jet.doc-feature/feature.properties
index 0bbb2fe..74c2a42 100644
--- a/doc/org.eclipse.jet.doc-feature/feature.properties
+++ b/doc/org.eclipse.jet.doc-feature/feature.properties
@@ -1,7 +1,7 @@
# /**
# * <copyright>
# *
-# * Copyright (c) 2004, 2005 IBM Corporation and others.
+# * Copyright (c) 2004, 2008 IBM 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
@@ -22,7 +22,7 @@ providerName=Eclipse.org
description=JET Documentation (Incubation)
# "copyright" property - text of the "Feature Update Copyright"
copyright=\
-Copyright (c) 2000, 2006 IBM Corporation and others.\n\
+Copyright (c) 2000, 2008 IBM Corporation and others.\n\
All rights reserved. This program and the accompanying materials\n\
are made available under the terms of the Eclipse Public License v1.0\n\
which accompanies this distribution, and is available at\n\
diff --git a/doc/org.eclipse.jet.doc/about.properties b/doc/org.eclipse.jet.doc/about.properties
index a749257..618f0c5 100644
--- a/doc/org.eclipse.jet.doc/about.properties
+++ b/doc/org.eclipse.jet.doc/about.properties
@@ -1,5 +1,5 @@
###############################################################################
-# Copyright (c) 2006 IBM Corporation and others.
+# Copyright (c) 2006, 2008 IBM 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
@@ -14,10 +14,10 @@
# fill-ins are supplied by about.mappings
# This file should be translated.
-blurb=Eclipse Modeling Framework Technologies - JET Documentation\n\
+blurb=Java Emitter Templates (JET) Documentation\n\
\n\
Version: {featureVersion}\n\
Build id: {0}\n\
\n\
-(c) Copyright IBM Corporation and others 2005, 2006. All rights reserved.\n\
-Visit http://www.eclipse.org/emft/projects/jet \ No newline at end of file
+(c) Copyright IBM Corporation and others 2005, 2008. All rights reserved.\n\
+Visit http://www.eclipse.org/modeling/m2t/?project=jet#jet \ No newline at end of file
diff --git a/doc/org.eclipse.jet.doc/gettingStarted/deployingTransforms.xhtml b/doc/org.eclipse.jet.doc/gettingStarted/deployingTransforms.xhtml
index c6315af..b92802d 100644
--- a/doc/org.eclipse.jet.doc/gettingStarted/deployingTransforms.xhtml
+++ b/doc/org.eclipse.jet.doc/gettingStarted/deployingTransforms.xhtml
@@ -13,7 +13,7 @@
<ul>
<li> Share the JET Project via a Team environment </li>
<li> <a href="#exportProject">Export the JET Project</a> to a "Deployable JAR", and place it in a common file system location, and have
- others reference that location in the Preferences dialog (Preference category <b>EMFT JET Transformations</b>.</li>
+ others reference that location in the Preferences dialog (Preference category <b>JET Transformations</b>.</li>
<li> Use the <a href="../references/extensionpoints/org_eclipse_jet_deployedTransforms.html">org.eclipse.jet.deployedTransforms</a>
extension point to share an exported JET Project via a standard Eclipse plug-in.</li>
<li> Include the JET Project in an Eclipse Feature. (JET Projects are Eclipse plug-ins.)</li>
diff --git a/doc/org.eclipse.jet.doc/gettingStarted/newProject.xhtml b/doc/org.eclipse.jet.doc/gettingStarted/newProject.xhtml
index 2ed6986..86197f0 100644
--- a/doc/org.eclipse.jet.doc/gettingStarted/newProject.xhtml
+++ b/doc/org.eclipse.jet.doc/gettingStarted/newProject.xhtml
@@ -12,7 +12,7 @@
<p>JET Transformations are created with a New Project Wizard.
<ul>
<li>From the menu, choose <b>File -&gt; New -&gt; Project...</b></li>
-<li>Choose the wizard <b>EMFT JET Transformations -&gt; EMFT JET Transformation Project</b></li>
+<li>Choose the wizard <b>JET Transformations -&gt; JET Transformation Project</b></li>
<li>Click <b>Next</b></li>
<li>Supply a project name. The name should be a letter follows by letters, numbers, hyphens and dots.</li>
<li>Click <b>Finish</b></li>
diff --git a/doc/org.eclipse.jet.doc/plugin.properties b/doc/org.eclipse.jet.doc/plugin.properties
index 7db2eba..851bfad 100644
--- a/doc/org.eclipse.jet.doc/plugin.properties
+++ b/doc/org.eclipse.jet.doc/plugin.properties
@@ -1,7 +1,7 @@
# /**
# * <copyright>
# *
-# * Copyright (c) 2002, 2004 IBM Corporation and others.
+# * Copyright (c) 2002, 2008 IBM 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
@@ -24,7 +24,7 @@
# append it to the end of the file, and change the code to use the new name.
# ==============================================================================
-Plugin.name=Eclipse Modeling Framework Technologies - JET Documentation (Incubation)
+Plugin.name=Java Emitter Templates (JET) Documentation (Incubation)
Provider.name=Eclipse.org
# ==============================================================================
diff --git a/doc/org.eclipse.jet.doc/toc.xml b/doc/org.eclipse.jet.doc/toc.xml
index 07c1968..a6ece84 100644
--- a/doc/org.eclipse.jet.doc/toc.xml
+++ b/doc/org.eclipse.jet.doc/toc.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<?NLS TYPE="org.eclipse.help.toc"?>
-<toc label="EMFT JET Developer Guide">
+<toc label="JET Developer Guide">
<!--
<topic label="What's New">
<anchor id="whatsnew"/>
diff --git a/examples/org.eclipse.jet.examples-feature/feature.properties b/examples/org.eclipse.jet.examples-feature/feature.properties
index 2971357..047f951 100644
--- a/examples/org.eclipse.jet.examples-feature/feature.properties
+++ b/examples/org.eclipse.jet.examples-feature/feature.properties
@@ -1,7 +1,7 @@
# /**
# * <copyright>
# *
-# * Copyright (c) 2004, 2005 IBM Corporation and others.
+# * Copyright (c) 2004, 2008 IBM 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
@@ -22,7 +22,7 @@ providerName=Eclipse.org
description=JET Examples (Incubation)
# "copyright" property - text of the "Feature Update Copyright"
copyright=\
-Copyright (c) 2000, 2006 IBM Corporation and others.\n\
+Copyright (c) 2000, 2008 IBM Corporation and others.\n\
All rights reserved. This program and the accompanying materials\n\
are made available under the terms of the Eclipse Public License v1.0\n\
which accompanies this distribution, and is available at\n\
diff --git a/examples/org.eclipse.jet.examples/META-INF/MANIFEST.MF b/examples/org.eclipse.jet.examples/META-INF/MANIFEST.MF
index 307a8d5..32f37d6 100644
--- a/examples/org.eclipse.jet.examples/META-INF/MANIFEST.MF
+++ b/examples/org.eclipse.jet.examples/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.jet.examples
-Bundle-Version: 0.8.0.qualifier
+Bundle-Version: 0.9.0.qualifier
Bundle-ClassPath: examples.jar
Bundle-Vendor: %providerName
Bundle-Localization: plugin
diff --git a/examples/org.eclipse.jet.examples/about.properties b/examples/org.eclipse.jet.examples/about.properties
index 63081c3..a5ab167 100644
--- a/examples/org.eclipse.jet.examples/about.properties
+++ b/examples/org.eclipse.jet.examples/about.properties
@@ -1,5 +1,5 @@
###############################################################################
-# Copyright (c) 2006 IBM Corporation and others.
+# Copyright (c) 2006, 2008 IBM 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
@@ -14,10 +14,10 @@
# fill-ins are supplied by about.mappings
# This file should be translated.
-blurb=Eclipse Modeling Framework Technologies - JET Examples\n\
+blurb=Java Emitter Templates (JET) Examples\n\
\n\
Version: {featureVersion}\n\
Build id: {0}\n\
\n\
-(c) Copyright IBM Corporation and others 2005, 2006. All rights reserved.\n\
-Visit http://www.eclipse.org/emft/projects/jet \ No newline at end of file
+(c) Copyright IBM Corporation and others 2005, 2008. All rights reserved.\n\
+Visit http://www.eclipse.org/modeling/m2t/?project=jet#jet \ No newline at end of file
diff --git a/examples/org.eclipse.jet.examples/plugin.properties b/examples/org.eclipse.jet.examples/plugin.properties
index 7915f4b..99874b1 100644
--- a/examples/org.eclipse.jet.examples/plugin.properties
+++ b/examples/org.eclipse.jet.examples/plugin.properties
@@ -29,6 +29,6 @@
# %%% END OF TRANSLATED PROPERTIES %%%
# ====================================================================
-pluginName = Eclipse Modeling Framework Technologies - JET Examples (Incubation)
+pluginName = Java Emitter Templates (JET) Examples (Incubation)
providerName = Eclipse.org
diff --git a/plugins/org.eclipse.jet-feature/feature.properties b/plugins/org.eclipse.jet-feature/feature.properties
index 7ff742e..6899ed1 100644
--- a/plugins/org.eclipse.jet-feature/feature.properties
+++ b/plugins/org.eclipse.jet-feature/feature.properties
@@ -1,7 +1,7 @@
# /**
# * <copyright>
# *
-# * Copyright (c) 2005, 2006 IBM Corporation and others.
+# * Copyright (c) 2005, 2008 IBM 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
@@ -48,7 +48,7 @@ description=Java Emitter Templates (JET) (Incubation)
# "copyright" property - text of the "Feature Update Copyright"
copyright=\
-Copyright (c) 2000, 2006 IBM Corporation and others.\n\
+Copyright (c) 2000, 2008 IBM Corporation and others.\n\
All rights reserved. This program and the accompanying materials\n\
are made available under the terms of the Eclipse Public License v1.0\n\
which accompanies this distribution, and is available at\n\
diff --git a/plugins/org.eclipse.jet-feature/sourceTemplateFeature/feature.properties b/plugins/org.eclipse.jet-feature/sourceTemplateFeature/feature.properties
index f9a47e1..57d3c13 100644
--- a/plugins/org.eclipse.jet-feature/sourceTemplateFeature/feature.properties
+++ b/plugins/org.eclipse.jet-feature/sourceTemplateFeature/feature.properties
@@ -1,5 +1,5 @@
###############################################################################
-# Copyright (c) 2003, 2005 IBM Corporation and others.
+# Copyright (c) 2003, 2008 IBM 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
@@ -28,7 +28,7 @@ description=API documentation and source code zips for Java Emitter Templates (J
# "copyright" property - text of the "Feature Update Copyright"
copyright=\
-Copyright (c) 2000, 2006 IBM Corporation and others.\n\
+Copyright (c) 2000, 2008 IBM Corporation and others.\n\
All rights reserved. This program and the accompanying materials\n\
are made available under the terms of the Eclipse Public License v1.0\n\
which accompanies this distribution, and is available at\n\
diff --git a/plugins/org.eclipse.jet.core/plugin.properties b/plugins/org.eclipse.jet.core/plugin.properties
index 1b04c60..ce28a03 100644
--- a/plugins/org.eclipse.jet.core/plugin.properties
+++ b/plugins/org.eclipse.jet.core/plugin.properties
@@ -1,5 +1,5 @@
###############################################################################
-# Copyright (c) 2005, 2007 IBM Corporation and others.
+# Copyright (c) 2005, 2008 IBM 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
@@ -11,7 +11,7 @@
# <copyright>
# </copyright>
#
-# $Id: plugin.properties,v 1.3 2007/09/12 16:29:46 pelder Exp $
+# $Id: plugin.properties,v 1.4 2008/02/11 17:22:44 pelder Exp $
# ====================================================================
# To code developer:
@@ -25,5 +25,5 @@
# %%% END OF TRANSLATED PROPERTIES %%%
# ====================================================================
-pluginName = Eclipse Modeling Framework Technologies - JET Core (Incubation)
+pluginName = Java Emitter Templates (JET) Core (Incubation)
providerName = Eclipse.org
diff --git a/plugins/org.eclipse.jet.editor-feature/feature.properties b/plugins/org.eclipse.jet.editor-feature/feature.properties
index fb4e163..ab8721e 100644
--- a/plugins/org.eclipse.jet.editor-feature/feature.properties
+++ b/plugins/org.eclipse.jet.editor-feature/feature.properties
@@ -1,7 +1,7 @@
# /**
# * <copyright>
# *
-# * Copyright (c) 2004, 2005 IBM Corporation and others.
+# * Copyright (c) 2004, 2008 IBM 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
@@ -12,7 +12,7 @@
# *
# * </copyright>
# *
-# * $Id: feature.properties,v 1.2 2007/09/12 16:29:34 pelder Exp $
+# * $Id: feature.properties,v 1.3 2008/02/11 17:22:46 pelder Exp $
# */
# NLS_MESSAGEFORMAT_VAR
@@ -22,7 +22,7 @@ providerName=Eclipse.org
description=JET Editor (Incubation)
# "copyright" property - text of the "Feature Update Copyright"
copyright=\
-Copyright (c) 2000, 2007 IBM Corporation and others.\n\
+Copyright (c) 2000, 2008 IBM Corporation and others.\n\
All rights reserved. This program and the accompanying materials\n\
are made available under the terms of the Eclipse Public License v1.0\n\
which accompanies this distribution, and is available at\n\
diff --git a/plugins/org.eclipse.jet.editor/META-INF/MANIFEST.MF b/plugins/org.eclipse.jet.editor/META-INF/MANIFEST.MF
index 2dacf83..d1cc3cd 100644
--- a/plugins/org.eclipse.jet.editor/META-INF/MANIFEST.MF
+++ b/plugins/org.eclipse.jet.editor/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginrName
Bundle-SymbolicName: org.eclipse.jet.editor; singleton:=true
-Bundle-Version: 0.8.0.qualifier
+Bundle-Version: 0.9.0.qualifier
Bundle-Activator: org.eclipse.jet.internal.editor.Activator
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)",
diff --git a/plugins/org.eclipse.jet.editor/about.properties b/plugins/org.eclipse.jet.editor/about.properties
index 0740627..e772ff5 100644
--- a/plugins/org.eclipse.jet.editor/about.properties
+++ b/plugins/org.eclipse.jet.editor/about.properties
@@ -1,5 +1,5 @@
###############################################################################
-# Copyright (c) 2006 IBM Corporation and others.
+# Copyright (c) 2006, 2008 IBM 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
@@ -14,10 +14,10 @@
# fill-ins are supplied by about.mappings
# This file should be translated.
-blurb=Eclipse Modeling Framework Technologies - JET Examples\n\
+blurb=Java Emitter Templates (JET) Editor\n\
\n\
Version: {featureVersion}\n\
Build id: {0}\n\
\n\
-(c) Copyright IBM Corporation and others 2005, 2007. All rights reserved.\n\
+(c) Copyright IBM Corporation and others 2005, 2008. All rights reserved.\n\
Visit http://www.eclipse.org/modeling/m2t/?project=jet#jet \ No newline at end of file
diff --git a/plugins/org.eclipse.jet.editor/plugin.xml b/plugins/org.eclipse.jet.editor/plugin.xml
index e9fd574..8f612b7 100644
--- a/plugins/org.eclipse.jet.editor/plugin.xml
+++ b/plugins/org.eclipse.jet.editor/plugin.xml
@@ -12,7 +12,7 @@
extensions="jet"
icon="icons/full/obj16/JETTemplateFile.gif"
id="org.eclipse.jet.editor.JETEditor"
- name="EMFT - Java Emitter Templates Editor">
+ name="JET - Java Emitter Templates Editor">
</editor>
</extension>
<extension
diff --git a/plugins/org.eclipse.jet.sdk-feature/feature.properties b/plugins/org.eclipse.jet.sdk-feature/feature.properties
index 0ea60b5..6b7795f 100644
--- a/plugins/org.eclipse.jet.sdk-feature/feature.properties
+++ b/plugins/org.eclipse.jet.sdk-feature/feature.properties
@@ -1,7 +1,7 @@
# /**
# * <copyright>
# *
-# * Copyright (c) 2004, 2007 IBM Corporation and others.
+# * Copyright (c) 2004, 2008 IBM 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
@@ -12,7 +12,7 @@
# *
# * </copyright>
# *
-# * $Id: feature.properties,v 1.2 2007/09/12 16:29:48 pelder Exp $
+# * $Id: feature.properties,v 1.3 2008/02/11 17:22:51 pelder Exp $
# */
# NLS_MESSAGEFORMAT_VAR
@@ -23,7 +23,7 @@ description=JET SDK includes JET, JET UI, source code, test code and code exampl
# "copyright" property - text of the "Feature Update Copyright"
copyright=\
-Copyright (c) 2000, 2007 IBM Corporation and others.\n\
+Copyright (c) 2000, 2008 IBM Corporation and others.\n\
All rights reserved. This program and the accompanying materials\n\
are made available under the terms of the Eclipse Public License v1.0\n\
which accompanies this distribution, and is available at\n\
diff --git a/plugins/org.eclipse.jet.ui/META-INF/MANIFEST.MF b/plugins/org.eclipse.jet.ui/META-INF/MANIFEST.MF
index 3224997..249e91a 100644
--- a/plugins/org.eclipse.jet.ui/META-INF/MANIFEST.MF
+++ b/plugins/org.eclipse.jet.ui/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.jet.ui;singleton:=true
-Bundle-Version: 0.8.0.qualifier
+Bundle-Version: 0.9.0.qualifier
Bundle-Activator: org.eclipse.jet.ui.Activator
Bundle-Vendor: %providerName
Bundle-Localization: plugin
diff --git a/plugins/org.eclipse.jet.ui/plugin.properties b/plugins/org.eclipse.jet.ui/plugin.properties
index d742841..35ee6fc 100644
--- a/plugins/org.eclipse.jet.ui/plugin.properties
+++ b/plugins/org.eclipse.jet.ui/plugin.properties
@@ -1,5 +1,5 @@
###############################################################################
-# Copyright (c) 2005, 2007 IBM Corporation and others.
+# Copyright (c) 2005, 2008 IBM 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
@@ -11,7 +11,7 @@
pluginName = JET Transformations UI Plug-in (Incubation)
providerName = Eclipse.org
-newWizards.jet2Project.name = EMFT JET Transformation Project
+newWizards.jet2Project.name = JET Transformation Project
newWizards.jet2Project.description = Create a JET Transformation Project
editors.jet2.name = JET Editor
@@ -30,11 +30,11 @@ popupMenus.action.unload = Unload
launchShortcut.label = JET Transformation
launchShortcut.contextLabel = Input for JET Transformation
-prefPage.jet.title = EMFT JET Transformations
+prefPage.jet.title = JET Transformations
prefpage.jet.compilerOptions.title = Compiler Options
-propPage.jet.title = EMFT JET Compiler
+propPage.jet.title = JET Compiler
-jet.wizards.category.name = EMFT JET Transformations
+jet.wizards.category.name = JET Transformations
runtime.error.label = JET Runtime Error
diff --git a/plugins/org.eclipse.jet.ui/src/org/eclipse/jet/ui/newproject/TemplateOverridesWizardPage.java b/plugins/org.eclipse.jet.ui/src/org/eclipse/jet/ui/newproject/TemplateOverridesWizardPage.java
new file mode 100644
index 0000000..e2953f9
--- /dev/null
+++ b/plugins/org.eclipse.jet.ui/src/org/eclipse/jet/ui/newproject/TemplateOverridesWizardPage.java
@@ -0,0 +1,160 @@
+/**
+ *
+ */
+package org.eclipse.jet.ui.newproject;
+
+import org.eclipse.jface.layout.GridDataFactory;
+import org.eclipse.jface.layout.GridLayoutFactory;
+import org.eclipse.jface.viewers.CellEditor;
+import org.eclipse.jface.viewers.ColumnPixelData;
+import org.eclipse.jface.viewers.ColumnWeightData;
+import org.eclipse.jface.viewers.ComboBoxCellEditor;
+import org.eclipse.jface.viewers.ICellModifier;
+import org.eclipse.jface.viewers.IStructuredContentProvider;
+import org.eclipse.jface.viewers.ITableLabelProvider;
+import org.eclipse.jface.viewers.LabelProvider;
+import org.eclipse.jface.viewers.TableLayout;
+import org.eclipse.jface.viewers.TableViewer;
+import org.eclipse.jface.viewers.Viewer;
+import org.eclipse.jface.wizard.WizardPage;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Table;
+import org.eclipse.swt.widgets.TableColumn;
+import org.eclipse.swt.widgets.TableItem;
+
+/**
+ * @author pelder
+ *
+ */
+public class TemplateOverridesWizardPage extends WizardPage {
+
+ private static final class TemplatesLabelProvider extends LabelProvider implements
+ ITableLabelProvider {
+ public Image getColumnImage(Object element, int columnIndex) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public String getColumnText(Object element, int columnIndex) {
+ String[] data = (String[]) element;
+ return columnIndex > 0 ? data[columnIndex - 1] : "";
+ }
+ }
+
+ protected TemplateOverridesWizardPage(String pageName) {
+ super(pageName);
+ setTitle("Override Templates");
+ setDescription("Select templates to override");
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets.Composite)
+ */
+ public void createControl(Composite parent) {
+
+ initializeDialogUnits(parent);
+
+ Composite composite = new Composite(parent, SWT.NONE);
+ setControl(composite);
+ GridLayoutFactory.fillDefaults().applyTo(composite);
+
+ Label lblTemplates = new Label(composite, SWT.None);
+ lblTemplates.setText("Select templates to override:");
+ GridDataFactory.fillDefaults().applyTo(lblTemplates);
+
+ Table tblTemplates = new Table(composite,
+ SWT.CHECK|SWT.H_SCROLL|SWT.V_SCROLL|SWT.BORDER|SWT.MULTI|SWT.FULL_SELECTION|SWT.HIDE_SELECTION);
+
+ tblTemplates.setHeaderVisible(true);
+ TableLayout tl = new TableLayout();
+ tblTemplates.setLayout(tl);
+
+ TableColumn tcSelection = new TableColumn(tblTemplates, SWT.NONE,0);
+ tcSelection.setResizable(false);
+ tl.addColumnData(new ColumnPixelData(convertWidthInCharsToPixels(3), false, true));
+
+ TableColumn tcAction = new TableColumn(tblTemplates, SWT.NONE, 1);
+ tcAction.setText("Action");
+ tcAction.setResizable(true);
+ tl.addColumnData(new ColumnPixelData(convertWidthInCharsToPixels(10), false, true));
+
+ TableColumn tcTemplatePath = new TableColumn(tblTemplates, SWT.NONE, 2);
+ tcTemplatePath.setText("Template Path");
+ tcTemplatePath.setResizable(true);
+ tl.addColumnData(new ColumnWeightData(100));
+
+ GridDataFactory.fillDefaults().grab(true, true).applyTo(tblTemplates);
+
+
+ final TableViewer vwrTemplates = new TableViewer(tblTemplates);
+ vwrTemplates.setColumnProperties(new String[] {"selected", "action", "templatePath"});
+ vwrTemplates.setCellEditors(new CellEditor[] {
+ null,
+ new ComboBoxCellEditor(vwrTemplates.getTable(), new String[] {"Extend", "Copy"},SWT.READ_ONLY),
+ null,
+ });
+
+
+ vwrTemplates.setContentProvider(new IStructuredContentProvider() {
+
+ public void dispose() {
+ }
+
+ public void inputChanged(Viewer viewer, Object oldInput,
+ Object newInput) {
+ }
+
+ public Object[] getElements(Object inputElement) {
+// Element e = null;
+// final NodeList elements = e.getElementsByTagName("template");
+// Object[] result = new Object[elements.getLength()];
+// for (int i = 0; i < result.length; i++) {
+// result[i] = elements.item(i);
+// }
+// return result;
+ return new Object[] {
+ new String[] {"hi", "templates/main.jet"},
+ new String[] {"ho", "templates/dump.jet"}
+ };
+ }
+
+ });
+
+ vwrTemplates.setCellModifier(new ICellModifier() {
+
+ public boolean canModify(Object element, String property) {
+ // TODO Auto-generated method stub
+ return "action".equals(property);
+ }
+
+ public Object getValue(Object element, String property) {
+ // TODO Auto-generated method stub
+ String[] data = (String[]) element;
+ if("action".equals(property)) {
+ return "Copy".equals(data[0]) ? new Integer(1) : new Integer(0);
+ } else if( "templatePath".equals(property)){
+ return data[1];
+ }
+ return "";
+ }
+
+ public void modify(Object element, String property, Object value) {
+ String[] data = (String[]) ((TableItem)element).getData();
+ if("action".equals(property)) {
+ data[0] = ((Integer)value).intValue() == 0 ? "Extend" : "Copy";
+ vwrTemplates.update((Object)data, null);
+// vwrTemplates.refresh();
+ }
+ }});
+
+ vwrTemplates.setLabelProvider(new TemplatesLabelProvider());
+
+ vwrTemplates.setInput(new Object());
+
+
+ }
+
+}
diff --git a/plugins/org.eclipse.jet/about.properties b/plugins/org.eclipse.jet/about.properties
index a6308eb..057ceb6 100644
--- a/plugins/org.eclipse.jet/about.properties
+++ b/plugins/org.eclipse.jet/about.properties
@@ -1,5 +1,5 @@
###############################################################################
-# Copyright (c) 2006 IBM Corporation and others.
+# Copyright (c) 2006, 2008 IBM 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
@@ -14,10 +14,10 @@
# fill-ins are supplied by about.mappings
# This file should be translated.
-blurb=Eclipse Modeling Framework Technologies - JET\n\
+blurb=Java Emitter Templates (JET)\n\
\n\
Version: {featureVersion}\n\
Build id: {0}\n\
\n\
-(c) Copyright IBM Corporation and others 2005, 2006. All rights reserved.\n\
-Visit http://www.eclipse.org/emft/projects/jet \ No newline at end of file
+(c) Copyright IBM Corporation and others 2005, 2008. All rights reserved.\n\
+Visit http://www.eclipse.org/modeling/m2t/?project=jet#jet \ No newline at end of file
diff --git a/plugins/org.eclipse.jet/plugin.properties b/plugins/org.eclipse.jet/plugin.properties
index 7b04fe3..3b95455 100644
--- a/plugins/org.eclipse.jet/plugin.properties
+++ b/plugins/org.eclipse.jet/plugin.properties
@@ -1,5 +1,5 @@
###############################################################################
-# Copyright (c) 2005, 2006 IBM Corporation and others.
+# Copyright (c) 2005, 2008 IBM 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
@@ -25,7 +25,7 @@
# %%% END OF TRANSLATED PROPERTIES %%%
# ====================================================================
-pluginName = Eclipse Modeling Framework Technologies - JET (Incubation)
+pluginName = Java Emitter Templates (JET) - (Incubation)
providerName = Eclipse.org
jet2Launch.name = JET Transformation
diff --git a/tests/org.eclipse.jet.tests-feature/feature.properties b/tests/org.eclipse.jet.tests-feature/feature.properties
index 9f28475..aa0c2ae 100644
--- a/tests/org.eclipse.jet.tests-feature/feature.properties
+++ b/tests/org.eclipse.jet.tests-feature/feature.properties
@@ -1,7 +1,7 @@
# /**
# * <copyright>
# *
-# * Copyright (c) 2005 IBM Corporation and others.
+# * Copyright (c) 2005, 2008 IBM 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
@@ -43,7 +43,7 @@ description=Java Emitter Templates (JET) Tests (Incubation)
# "copyright" property - text of the "Feature Update Copyright"
copyright=\
-Copyright (c) 2000, 2006 IBM Corporation and others.\n\
+Copyright (c) 2000, 2008 IBM Corporation and others.\n\
All rights reserved. This program and the accompanying materials\n\
are made available under the terms of the Eclipse Public License v1.0\n\
which accompanies this distribution, and is available at\n\
diff --git a/tests/org.eclipse.jet.tests.core/test.xml b/tests/org.eclipse.jet.tests.core/test.xml
index bcddd44..7c9a031 100644
--- a/tests/org.eclipse.jet.tests.core/test.xml
+++ b/tests/org.eclipse.jet.tests.core/test.xml
@@ -14,7 +14,7 @@
*
* </copyright>
*
- * $Id: test.xml,v 1.1 2007/04/04 15:24:17 pelder Exp $
+ * $Id: test.xml,v 1.2 2008/02/11 17:22:42 pelder Exp $
*/
-->
@@ -39,10 +39,10 @@
<!-- This target defines the tests that need to be run. -->
<target name="suite">
- <property name="emft-folder" value="${eclipse-home}/emf_folder"/>
- <delete dir="${emft-folder}" quiet="true"/>
+ <property name="m2t-folder" value="${eclipse-home}/emf_folder"/>
+ <delete dir="${m2t-folder}" quiet="true"/>
<ant target="core-test" antfile="${library-file}" dir="${eclipse-home}">
- <property name="data-dir" value="${emft-folder}"/>
+ <property name="data-dir" value="${m2t-folder}"/>
<property name="plugin-name" value="${plugin-name}"/>
<property name="classname" value="org.eclipse.jet.tests.core.AllToolsSuites"/>
</ant>
diff --git a/tests/org.eclipse.jet.tests/test.xml b/tests/org.eclipse.jet.tests/test.xml
index ddf5e9e..28b23da 100644
--- a/tests/org.eclipse.jet.tests/test.xml
+++ b/tests/org.eclipse.jet.tests/test.xml
@@ -39,10 +39,10 @@
<!-- This target defines the tests that need to be run. -->
<target name="suite">
- <property name="emft-folder" value="${eclipse-home}/emf_folder"/>
- <delete dir="${emft-folder}" quiet="true"/>
+ <property name="m2t-folder" value="${eclipse-home}/emf_folder"/>
+ <delete dir="${m2t-folder}" quiet="true"/>
<ant target="core-test" antfile="${library-file}" dir="${eclipse-home}">
- <property name="data-dir" value="${emft-folder}"/>
+ <property name="data-dir" value="${m2t-folder}"/>
<property name="plugin-name" value="${plugin-name}"/>
<property name="classname" value="org.eclipse.jet.tests.AllSuites"/>
</ant>

Back to the top