Skip to content
Snippets Groups Projects
Commit d27383a4 authored by Erlend Stav's avatar Erlend Stav
Browse files

Updated to support new AAL Studio core menu system and feature now uses the common branding plugin

parent 84adbd2e
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ Manifest-Version: 1.0 ...@@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2 Bundle-ManifestVersion: 2
Bundle-Name: Transformation Command Bundle-Name: Transformation Command
Bundle-SymbolicName: org.universaal.tools.transformationcommand;singleton:=true Bundle-SymbolicName: org.universaal.tools.transformationcommand;singleton:=true
Bundle-Version: 0.2.1 Bundle-Version: 0.2.2
Bundle-Vendor: universAAL Bundle-Vendor: universAAL
Require-Bundle: org.eclipse.ui, Require-Bundle: org.eclipse.ui,
org.eclipse.core.resources;bundle-version="3.0.0", org.eclipse.core.resources;bundle-version="3.0.0",
......
...@@ -71,17 +71,12 @@ ...@@ -71,17 +71,12 @@
<extension <extension
point="org.eclipse.ui.menus"> point="org.eclipse.ui.menus">
<menuContribution <menuContribution
locationURI="menu:org.eclipse.ui.main.menu?after=additions"> locationURI="menu:org.universaal.tools.AALStudio.menu?after=transform">
<menu <command
label="AAL Studio" commandId="org.universaal.tools.transformationcommand.commands.ontUML2Java"
mnemonic="U" id="org.universaal.tools.transformationcommand.menu.ontUML2Java"
id="org.universaal.tools.AALStudio.menu"> style="push">
<command </command>
commandId="org.universaal.tools.transformationcommand.commands.ontUML2Java"
id="org.universaal.tools.transformationcommand.menu.ontUML2Java"
style="push">
</command>
</menu>
</menuContribution> </menuContribution>
<menuContribution <menuContribution
locationURI="popup:org.eclipse.ui.popup.any?after=additions"> locationURI="popup:org.eclipse.ui.popup.any?after=additions">
...@@ -120,15 +115,16 @@ ...@@ -120,15 +115,16 @@
<extension <extension
point="org.eclipse.ui.preferencePages"> point="org.eclipse.ui.preferencePages">
<page <page
category="org.universaal.tools.AALStudio" category="org.universaal.tools.transformationcommand.transformations"
class="org.universaal.tools.transformationcommand.preferences.Uml2JavaPreferencePage" class="org.universaal.tools.transformationcommand.preferences.Uml2JavaPreferencePage"
id="org.universaal.tools.transformationcommand.uml2java" id="org.universaal.tools.transformationcommand.uml2java"
name="Transform UML2Java"> name="Transform UML2Java">
</page> </page>
<page <page
class="org.universaal.tools.transformationcommand.preferences.PreferencePageRoot" category="org.universaal.tools.AALStudio"
id="org.universaal.tools.AALStudio" class="org.universaal.tools.transformationcommand.preferences.TransformationsPreferencePage"
name="AAL Studio"> id="org.universaal.tools.transformationcommand.transformations"
name="Transformations">
</page> </page>
</extension> </extension>
<extension <extension
......
package org.universaal.tools.transformationcommand.preferences; package org.universaal.tools.transformationcommand.preferences;
import org.eclipse.jface.preference.FieldEditorPreferencePage; import org.eclipse.jface.preference.FieldEditorPreferencePage;
import org.eclipse.ui.IWorkbench; import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPreferencePage; import org.eclipse.ui.IWorkbenchPreferencePage;
import org.universaal.tools.transformationcommand.activator.Activator; import org.universaal.tools.transformationcommand.activator.Activator;
public class PreferencePageRoot public class TransformationsPreferencePage extends FieldEditorPreferencePage
extends FieldEditorPreferencePage implements IWorkbenchPreferencePage {
implements IWorkbenchPreferencePage {
public TransformationsPreferencePage() {
public PreferencePageRoot() { super(GRID);
super(GRID); setPreferenceStore(Activator.getDefault().getPreferenceStore());
setPreferenceStore(Activator.getDefault().getPreferenceStore()); setDescription("Please see subcategories for options related to each transformation");
setDescription("Please see subcategories for options related to different " + }
"kinds of transformation commands.");
} @Override
public void init(IWorkbench workbench) {
@Override // Intentionally left blank
public void init(IWorkbench workbench) { }
// TODO Auto-generated method stub
@Override
} protected void createFieldEditors() {
// Intentionally left blank
@Override }
protected void createFieldEditors() {
// TODO Auto-generated method stub }
\ No newline at end of file
}
}
...@@ -13,15 +13,15 @@ public class Uml2JavaPreferencePage ...@@ -13,15 +13,15 @@ public class Uml2JavaPreferencePage
extends FieldEditorPreferencePage extends FieldEditorPreferencePage
implements IWorkbenchPreferencePage { implements IWorkbenchPreferencePage {
StringFieldEditor absolutePath; StringFieldEditor pathName;
BooleanFieldEditor absoluteBoolean; BooleanFieldEditor absoluteBoolean;
public Uml2JavaPreferencePage() { public Uml2JavaPreferencePage() {
super(GRID); super(GRID);
setPreferenceStore(Activator.getDefault().getPreferenceStore()); setPreferenceStore(Activator.getDefault().getPreferenceStore());
setDescription("Please enter a path for the files to be saved to. " + setDescription("Please enter a path for the files to be saved to. " +
"If \" Use absolute path\" is not checked, the files will be put in " + "If \" Use absolute path\" is not checked, the path refers to a folder " +
"the project folder."); "relative to the project folder.");
} }
@Override @Override
...@@ -31,10 +31,10 @@ implements IWorkbenchPreferencePage { ...@@ -31,10 +31,10 @@ implements IWorkbenchPreferencePage {
@Override @Override
protected void createFieldEditors() { protected void createFieldEditors() {
absoluteBoolean = new BooleanFieldEditor(PreferenceConstants.P_UML2JAVA_ABSOLUTE_BOOLEAN, "Use absolute path.", getFieldEditorParent()); absoluteBoolean = new BooleanFieldEditor(PreferenceConstants.P_UML2JAVA_ABSOLUTE_BOOLEAN, "Use absolute path.", getFieldEditorParent());
absolutePath = new StringFieldEditor(PreferenceConstants.P_UML2JAVA_PATH, "Please enter the desired path.", getFieldEditorParent()); pathName = new StringFieldEditor(PreferenceConstants.P_UML2JAVA_PATH, "Please enter the desired path.", getFieldEditorParent());
addField(absoluteBoolean); addField(absoluteBoolean);
addField(absolutePath); addField(pathName);
} }
......
...@@ -203,6 +203,7 @@ public interface ' ontologyName 'Namespace { ...@@ -203,6 +203,7 @@ public interface ' ontologyName 'Namespace {
// Import universAAL packages. // Import universAAL packages.
// Note that generator currently imports a fixed set of classes. This will be improved in the future // Note that generator currently imports a fixed set of classes. This will be improved in the future
'import org.universAAL.middleware.owl.Restriction;\n' 'import org.universAAL.middleware.owl.Restriction;\n'
'import org.universAAL.middleware.rdf.TypeMapper;\n'
'import org.universAAL.middleware.service.owl.Service;\n' 'import org.universAAL.middleware.service.owl.Service;\n'
'import org.universAAL.ontology.phThing.Device;\n\n' 'import org.universAAL.ontology.phThing.Device;\n\n'
} }
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<feature <feature
id="org.universaal.tools.transformationfeature" id="org.universaal.tools.transformationfeature"
label="universAAL Transformations" label="AAL Studio Transformations"
version="0.2.1" version="0.2.2"
provider-name="universAAL"> provider-name="universAAL"
plugin="org.universaal.tools.aalstudio.core">
<description url="http://www.universaal.org/"> <description url="http://www.universaal.org/">
This feature contains transformations supporting modelling based This feature contains transformations supporting modelling based
...@@ -236,7 +237,8 @@ development for the universAAL platform. ...@@ -236,7 +237,8 @@ development for the universAAL platform.
</url> </url>
<requires> <requires>
<import feature="org.eclipse.mofscript" version="1.3" match="greaterOrEqual"/> <import feature="org.eclipse.mofscript" version="1.4.0" match="greaterOrEqual"/>
<import feature="org.universaal.tools.aalstudio.feature" version="0.3.0" match="greaterOrEqual"/>
</requires> </requires>
<plugin <plugin
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment