Commit 1a74bac6 authored by Philip Makedonski's avatar Philip Makedonski
Browse files

* restructured wizards, pending further refinement, #141

parent 51e7c384
Loading
Loading
Loading
Loading
Loading
+15 −15
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@
			default="true"
			extensions="tdltx"
			id="org.etsi.mts.tdl.TDLtx"
			name="TDLtx Editor">
			name="TDL Textual Editor">
		</editor>
	</extension>
	<extension point="org.eclipse.e4.ui.css.swt.theme">	
@@ -87,7 +87,7 @@
		<page
			class="org.etsi.mts.tdl.ui.TDLtxExecutableExtensionFactory:org.eclipse.xtext.ui.editor.preferences.LanguageRootPreferencePage"
			id="org.etsi.mts.tdl.TDLtx"
			name="TDLtx">
			name="TDL Textual">
			<keywordReference id="org.etsi.mts.tdl.ui.keyword_TDLtx"/>
		</page>
		<page
@@ -110,7 +110,7 @@
		<page
			class="org.etsi.mts.tdl.ui.TDLtxExecutableExtensionFactory:org.eclipse.xtext.ui.editor.preferences.LanguageRootPreferencePage"
			id="org.etsi.mts.tdl.TDLtx"
			name="TDLtx">
			name="TDL Textual">
			<keywordReference id="org.etsi.mts.tdl.ui.keyword_TDLtx"/>
			<enabledWhen>
				<adapt type="org.eclipse.core.resources.IProject"/>
@@ -122,7 +122,7 @@
		point="org.eclipse.ui.keywords">
		<keyword
			id="org.etsi.mts.tdl.ui.keyword_TDLtx"
			label="TDLtx"/>
			label="TDL Textual"/>
	</extension>
	<extension
		point="org.eclipse.ui.commands">
@@ -216,7 +216,7 @@
			base-type="org.eclipse.core.runtime.text"
			file-extensions="tdltx"
			id="org.etsi.mts.tdl.TDLtx.contenttype"
			name="TDLtx File"
			name="TDL Textual File"
			priority="normal">
		</content-type>
	</extension>
@@ -237,21 +237,21 @@
	<!-- marker definitions for org.etsi.mts.tdl.TDLtx -->
	<extension
			id="tdltx.check.fast"
			name="TDLtx Problem"
			name="TDL Problem"
			point="org.eclipse.core.resources.markers">
		<super type="org.eclipse.xtext.ui.check.fast"/>
		<persistent value="true"/>
	</extension>
	<extension
			id="tdltx.check.normal"
			name="TDLtx Problem"
			name="TDL Problem"
			point="org.eclipse.core.resources.markers">
		<super type="org.eclipse.xtext.ui.check.normal"/>
		<persistent value="true"/>
	</extension>
	<extension
			id="tdltx.check.expensive"
			name="TDLtx Problem"
			name="TDL Problem"
			point="org.eclipse.core.resources.markers">
		<super type="org.eclipse.xtext.ui.check.expensive"/>
		<persistent value="true"/>
@@ -420,7 +420,7 @@
	<extension point="org.eclipse.compare.contentMergeViewers">
		<viewer id="org.etsi.mts.tdl.TDLtx.compare.contentMergeViewers"
			class="org.etsi.mts.tdl.ui.TDLtxExecutableExtensionFactory:org.eclipse.xtext.ui.compare.InjectableViewerCreator"
			extensions="tdltx" label="TDLtx Compare">
			extensions="tdltx" label="TDL Textual Compare">
		</viewer>
		<contentTypeBinding
			contentTypeId="org.etsi.mts.tdl.TDLtx.contenttype"
@@ -440,13 +440,13 @@
	</extension>
	<extension
		point="org.eclipse.ui.newWizards">
		<category id="org.etsi.mts.tdl.ui.category" name="TDLtx">
		<category id="org.etsi.mts.tdl.ui.category" name="TDL">
		</category>
		<wizard
			category="org.etsi.mts.tdl.ui.category"
			class="org.etsi.mts.tdl.ui.TDLtxExecutableExtensionFactory:org.eclipse.xtext.ui.wizard.template.TemplateNewProjectWizard"
			id="org.etsi.mts.tdl.ui.wizard.TDLtxNewProjectWizard"
			name="TDLtx Project"
			name="TDL Textual Project"
			icon="icons/new_TDLtx_proj.gif"
			project="true">
		</wizard>
@@ -480,7 +480,7 @@
				-->
				<command
					commandId="org.eclipse.ui.newWizard"
					tooltip="Create a new TDLtx project">
					tooltip="Create a new TDL Textual project">
					<parameter
						name="newWizardId"
						value="org.etsi.mts.tdl.ui.wizard.TDLtxNewProjectWizard">
@@ -491,13 +491,13 @@
	</extension>
	<extension
		point="org.eclipse.ui.newWizards">
		<category id="org.etsi.mts.tdl.ui.category" name="TDLtx">
		<category id="org.etsi.mts.tdl.ui.category" name="TDL">
		</category>
		<wizard
			category="org.etsi.mts.tdl.ui.category"
			class="org.etsi.mts.tdl.ui.TDLtxExecutableExtensionFactory:org.eclipse.xtext.ui.wizard.template.TemplateNewFileWizard"
			id="org.etsi.mts.tdl.ui.wizard.TDLtxNewFileWizard"
			name="TDLtx File"
			name="TDL Textual Model"
			icon="icons/new_TDLtx_file.png">
		</wizard>
	</extension>
@@ -530,7 +530,7 @@
				-->
				<command
					commandId="org.eclipse.ui.newWizard"
					tooltip="Create a new TDLtx file">
					tooltip="Create a new TDL Textual file">
					<parameter
						name="newWizardId"
						value="org.etsi.mts.tdl.ui.wizard.TDLtxNewFileWizard">
+2 −0
Original line number Diff line number Diff line
@@ -22,6 +22,8 @@ public class Messages extends NLS {
	public static String TDLtxLibrary_Description;
	public static String TDLtxProjectBase_Label;
	public static String TDLtxProjectBase_Description;
	public static String TDLtxProjectExecutable_Label;
	public static String TDLtxProjectExecutable_Description;
	
	static {
	// initialize resource bundle
+2 −2
Original line number Diff line number Diff line
@@ -18,8 +18,8 @@ import org.eclipse.ui.ide.IDE
import org.eclipse.swt.widgets.Display

//TODO: customise
@ProjectTemplate(label="TDLtx Base", icon="project_template.png", description="<p><b>TDLtx</b></p>
<p>This is a parameterized project for TDLtx. You can set a parameter to modify the content in the generated file
@ProjectTemplate(label="TDL Textual for Test Purposes", icon="project_template.png", description="<p><b>TDL Textual for Test Purposes</b></p>
<p>TODO: This is a parameterized project for TDLtx. You can set a parameter to modify the content in the generated file
and a parameter to set the path the file is created in.</p><p><img href=\"project_template.png\"/></p>")
final class TDLtxProjectBase { 
    //TODO: remove after testing
+12 −10
Original line number Diff line number Diff line
TDLtxProject_Label=TDLtx
TDLtxProject_Description=<p><b>TDLtx</b></p> <p>This is a parameterized project for TDLtx. You can set a parameter to modify the content in the generated file and a parameter to set the path the file is created in.</p><p><img href="project_template.png"/></p>
TDLtxFile_Label=TDLtx
TDLtxFile_Description=Create a new package for TDLtx.
TDLtxProject_Label=TDL Textual Project
TDLtxProject_Description=<p><b>TDL Textual Project</b></p> <p>TODO: This is a parameterized project for TDL Textual. You can set a parameter to modify the content in the generated file and a parameter to set the path the file is created in.</p><p><img href="project_template.png"/></p>
TDLtxFile_Label=TDL Textual Model
TDLtxFile_Description=Create a new package as a TDL Textual Model.
TDLtxFileExtras_Label=Data definitions import from OpenAPI
TDLtxFileExtras_Description=Create a new package for TDLtx from OpenAPI data definitions.
TDLtxProjectWithOpenAPI_Label=TDLtx with OpenAPI
TDLtxProjectWithOpenAPI_Description=<p><b>TDLtx with OpenAPI</b></p> <p>This is a parameterized project for TDLtx with the option to import data definitions from OpenAPI.  You can set a parameter to modify the content in the generated file and a parameter to set the path the file is created in.</p><p><img href="project_template.png"/></p>
TDLtxProjectWithOpenAPI_Label=TDL Textual with OpenAPI
TDLtxProjectWithOpenAPI_Description=<p><b>TDL Textual with OpenAPI</b></p> <p>TODO: This is a parameterized project for TDL Textual with the option to import data definitions from OpenAPI.  You can set a parameter to modify the content in the generated file and a parameter to set the path the file is created in.</p><p><img href="project_template.png"/></p>
TDLtxFileFromOpenAPI_Label=Data definitions import from OpenAPI
TDLtxFileFromOpenAPI_Description=Create a new package for TDLtx from OpenAPI data definitions.
TDLtxLibrary_Label=TDLtx Library
TDLtxFileFromOpenAPI_Description=Create a new package from OpenAPI data definitions as TDL Textual Model.
TDLtxLibrary_Label=TDL Textual Library
TDLtxLibrary_Description=Add library for TDL.
TDLtxProjectBase_Label=TDLtx Base
TDLtxProjectBase_Description=<p><b>TDLtx</b></p> <p>This is a parameterized project for TDLtx. You can set a parameter to modify the content in the generated file and a parameter to set the path the file is created in.</p><p><img href="project_template.png"/></p>
TDLtxProjectBase_Label=TDL Textual for Test Purposes
TDLtxProjectBase_Description=<p><b>TDL Textual for Test Purposes</b></p> <p>TODO: This is a parameterized project for TDLtx. You can set a parameter to modify the content in the generated file and a parameter to set the path the file is created in.</p><p><img href="project_template.png"/></p>
TDLtxProjectExecutable_Label=TDL Textual Project for Executable Tests
TDLtxProjectExecutable_Description=<p><b>TDL Textual for Executable Tests</b></p> <p>TODO: This is a parameterized project for TDL Textual. You can set a parameter to modify the content in the generated file and a parameter to set the path the file is created in.</p><p><img href="project_template.png"/></p>
+8 −8
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@
			default="true"
			extensions="tdltxi"
			id="org.etsi.mts.tdl.TDLtxi"
			name="TDLtxi Editor">
			name="TDL Textual Editor (indentation-based)">
		</editor>
	</extension>
	<extension
@@ -80,7 +80,7 @@
		<page
			class="org.etsi.mts.tdl.ui.TDLtxiExecutableExtensionFactory:org.eclipse.xtext.ui.editor.preferences.LanguageRootPreferencePage"
			id="org.etsi.mts.tdl.TDLtxi"
			name="TDLtxi">
			name="TDL Textual (indentation-based)">
			<keywordReference id="org.etsi.mts.tdl.ui.keyword_TDLtxi"/>
		</page>
		<page
@@ -103,7 +103,7 @@
		<page
			class="org.etsi.mts.tdl.ui.TDLtxiExecutableExtensionFactory:org.eclipse.xtext.ui.editor.preferences.LanguageRootPreferencePage"
			id="org.etsi.mts.tdl.TDLtxi"
			name="TDLtxi">
			name="TDL Textual (indentation-based)">
			<keywordReference id="org.etsi.mts.tdl.ui.keyword_TDLtxi"/>
			<enabledWhen>
				<adapt type="org.eclipse.core.resources.IProject"/>
@@ -115,7 +115,7 @@
		point="org.eclipse.ui.keywords">
		<keyword
			id="org.etsi.mts.tdl.ui.keyword_TDLtxi"
			label="TDLtxi"/>
			label="TDL Textual (indentation-based)"/>
	</extension>
	<extension
		point="org.eclipse.ui.commands">
@@ -209,7 +209,7 @@
			base-type="org.eclipse.core.runtime.text"
			file-extensions="tdltxi"
			id="org.etsi.mts.tdl.TDLtxi.contenttype"
			name="TDLtxi File"
			name="TDL Textual Model (indentation-based)"
			priority="normal">
		</content-type>
	</extension>
@@ -230,21 +230,21 @@
	<!-- marker definitions for org.etsi.mts.tdl.TDLtxi -->
	<extension
			id="tdltxi.check.fast"
			name="TDLtxi Problem"
			name="TDL Problem"
			point="org.eclipse.core.resources.markers">
		<super type="org.eclipse.xtext.ui.check.fast"/>
		<persistent value="true"/>
	</extension>
	<extension
			id="tdltxi.check.normal"
			name="TDLtxi Problem"
			name="TDL Problem"
			point="org.eclipse.core.resources.markers">
		<super type="org.eclipse.xtext.ui.check.normal"/>
		<persistent value="true"/>
	</extension>
	<extension
			id="tdltxi.check.expensive"
			name="TDLtxi Problem"
			name="TDL Problem"
			point="org.eclipse.core.resources.markers">
		<super type="org.eclipse.xtext.ui.check.expensive"/>
		<persistent value="true"/>
Loading