Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Spiridenok2014-03-29 04:37:46 -0400
committerLars Vogel2014-04-01 12:12:12 -0400
commitf003cb3d6fc984f23b4a49f9824bd7d23296b1e6 (patch)
tree826c6753af4a687e2e2514fc281fb2d6bdb08aa4
parentcdaa8501a8c2fdc93485fc43c188e61daa23864d (diff)
downloadorg.eclipse.e4.tools-I20140401-2200.tar.gz
org.eclipse.e4.tools-I20140401-2200.tar.xz
org.eclipse.e4.tools-I20140401-2200.zip
Bug 412672 - [e4xmi] Class URI in ToolControl is not a link like inI20140401-2200
MPart. Change-Id: Ie203975efbe2b17592b037cf3530cccebfa67efd Signed-off-by: Dmitry Spiridenok <d.spiridenok@gmail.com>
-rw-r--r--bundles/org.eclipse.e4.tools.emf.editor3x/plugin.xml3
-rw-r--r--bundles/org.eclipse.e4.tools.emf.editor3x/src/org/eclipse/e4/tools/emf/editor3x/extension/ToolControlContributionEditor.java128
-rw-r--r--bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/ToolControlEditor.java23
-rw-r--r--bundles/org.eclipse.e4.tools/OSGI-INF/l10n/bundle.properties1
-rw-r--r--bundles/org.eclipse.e4.tools/icons/full/obj16/ToolControl.gifbin0 -> 377 bytes
-rw-r--r--bundles/org.eclipse.e4.tools/plugin.xml8
-rw-r--r--bundles/org.eclipse.e4.tools/src/org/eclipse/e4/internal/tools/wizards/classes/NewToolControlClassWizard.java132
-rw-r--r--bundles/org.eclipse.e4.tools/src/org/eclipse/e4/internal/tools/wizards/classes/templates/ToolControlTemplate.java54
-rw-r--r--bundles/org.eclipse.e4.tools/templates/toolControl.txtjet23
9 files changed, 368 insertions, 4 deletions
diff --git a/bundles/org.eclipse.e4.tools.emf.editor3x/plugin.xml b/bundles/org.eclipse.e4.tools.emf.editor3x/plugin.xml
index 05d1907e..0d404193 100644
--- a/bundles/org.eclipse.e4.tools.emf.editor3x/plugin.xml
+++ b/bundles/org.eclipse.e4.tools.emf.editor3x/plugin.xml
@@ -26,6 +26,9 @@
<contributionClassCreator
class="org.eclipse.e4.tools.emf.editor3x.extension.DynamicMenuContributionContributionEditor">
</contributionClassCreator>
+ <contributionClassCreator
+ class="org.eclipse.e4.tools.emf.editor3x.extension.ToolControlContributionEditor">
+ </contributionClassCreator>
</extension>
<extension
point="org.eclipse.ui.preferencePages">
diff --git a/bundles/org.eclipse.e4.tools.emf.editor3x/src/org/eclipse/e4/tools/emf/editor3x/extension/ToolControlContributionEditor.java b/bundles/org.eclipse.e4.tools.emf.editor3x/src/org/eclipse/e4/tools/emf/editor3x/extension/ToolControlContributionEditor.java
new file mode 100644
index 00000000..e5e472e4
--- /dev/null
+++ b/bundles/org.eclipse.e4.tools.emf.editor3x/src/org/eclipse/e4/tools/emf/editor3x/extension/ToolControlContributionEditor.java
@@ -0,0 +1,128 @@
+/*******************************************************************************
+ * Copyright (c) 2014 BestSolution.at 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:
+ * Dmitry Spiridenok <d.spiridenok@gmail.com> - Bug 412672
+ ******************************************************************************/
+package org.eclipse.e4.tools.emf.editor3x.extension;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.ResourcesPlugin;
+import org.eclipse.e4.internal.tools.wizards.classes.NewToolControlClassWizard;
+import org.eclipse.e4.tools.emf.ui.common.IContributionClassCreator;
+import org.eclipse.e4.ui.model.application.MContribution;
+import org.eclipse.e4.ui.model.application.commands.impl.CommandsPackageImpl;
+import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl;
+import org.eclipse.e4.ui.model.application.ui.menu.impl.MenuPackageImpl;
+import org.eclipse.emf.common.command.Command;
+import org.eclipse.emf.common.util.URI;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.edit.command.SetCommand;
+import org.eclipse.emf.edit.domain.EditingDomain;
+import org.eclipse.jdt.core.ICompilationUnit;
+import org.eclipse.jdt.core.IJavaProject;
+import org.eclipse.jdt.core.IType;
+import org.eclipse.jdt.core.JavaCore;
+import org.eclipse.jdt.core.JavaModelException;
+import org.eclipse.jdt.ui.JavaUI;
+import org.eclipse.jface.dialogs.MessageDialog;
+import org.eclipse.jface.viewers.StructuredSelection;
+import org.eclipse.jface.window.Window;
+import org.eclipse.jface.wizard.WizardDialog;
+import org.eclipse.swt.widgets.Shell;
+import org.eclipse.ui.PartInitException;
+
+public class ToolControlContributionEditor implements IContributionClassCreator {
+ public void createOpen(MContribution contribution, EditingDomain domain, IProject project, Shell shell) {
+ createOpen(contribution, domain, project, shell, false);
+ }
+
+ private void createOpen(MContribution contribution, EditingDomain domain, IProject project, Shell shell, boolean forceNew) {
+ if( forceNew || contribution.getContributionURI() == null || contribution.getContributionURI().trim().length() == 0 || !contribution.getContributionURI().startsWith("bundleclass:") ) {
+ NewToolControlClassWizard wizard = new NewToolControlClassWizard(contribution.getContributionURI());
+ wizard.init( null, new StructuredSelection(project));
+ WizardDialog dialog = new WizardDialog(shell, wizard);
+ if( dialog.open() == Window.OK ) {
+ IFile f = wizard.getFile();
+ ICompilationUnit el = JavaCore.createCompilationUnitFrom(f);
+ try {
+ String fullyQualified;
+ if( el.getPackageDeclarations() != null && el.getPackageDeclarations().length > 0 ) {
+ String packageName = el.getPackageDeclarations()[0].getElementName();
+ String className = wizard.getDomainClass().getName();
+ if( packageName.trim().length() > 0 ) {
+ fullyQualified = packageName + "." + className;
+ } else {
+ fullyQualified = className;
+ }
+ } else {
+ fullyQualified = wizard.getDomainClass().getName();
+ }
+
+ Command cmd = SetCommand.create(domain, contribution, ApplicationPackageImpl.Literals.CONTRIBUTION__CONTRIBUTION_URI, "bundleclass://" + Util.getBundleSymbolicName(f.getProject()) + "/" + fullyQualified);
+ if( cmd.canExecute() ) {
+ domain.getCommandStack().execute(cmd);
+ }
+ } catch (JavaModelException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ }
+ } else {
+ URI uri = URI.createURI(contribution.getContributionURI());
+ if (uri.hasAuthority() && uri.segmentCount() == 1) {
+ String symbolicName = uri.authority();
+ String fullyQualified = uri.segment(0);
+ IProject p = ResourcesPlugin.getWorkspace().getRoot().getProject(symbolicName);
+
+ if( ! p.exists() ) {
+ for( IProject check : ResourcesPlugin.getWorkspace().getRoot().getProjects() ) {
+ String name = Util.getBundleSymbolicName(check);
+ if( symbolicName.equals(name) ) {
+ p = check;
+ break;
+ }
+ }
+ }
+
+ // TODO If this is not a WS-Resource we need to open differently
+ if (p != null) {
+ IJavaProject jp = JavaCore.create(p);
+ IType t = null;
+ try {
+ if (p.exists()){
+ t = jp.findType(fullyQualified);
+ }
+ else
+ {
+ IJavaProject pprim = JavaCore.create(project);
+ t = pprim.findType(fullyQualified);
+ }
+ if( t != null ) {
+ JavaUI.openInEditor(t);
+ } else {
+ createOpen(contribution, domain, project, shell, true);
+ }
+ } catch (JavaModelException e) {
+ createOpen(contribution, domain, project, shell, true);
+ } catch (PartInitException e) {
+ MessageDialog.openError(shell, "Failed to open editor", e.getMessage());
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ }
+ } else {
+ MessageDialog.openError(shell, "Invalid URL", "The current url is invalid");
+ }
+ }
+ }
+
+ public boolean isSupported(EClass element) {
+ return Util.isTypeOrSuper(MenuPackageImpl.Literals.TOOL_CONTROL,element);
+ }
+}
diff --git a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/ToolControlEditor.java b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/ToolControlEditor.java
index 1b123014..b07392ac 100644
--- a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/ToolControlEditor.java
+++ b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/ToolControlEditor.java
@@ -8,6 +8,7 @@
* Contributors:
* Tom Schindl <tom.schindl@bestsolution.at> - initial API and implementation
* Lars Vogel <Lars.Vogel@gmail.com> - Ongoing maintenance
+ * Dmitry Spiridenok <d.spiridenok@gmail.com> - Bug 412672
******************************************************************************/
package org.eclipse.e4.tools.emf.ui.internal.common.component;
@@ -16,6 +17,7 @@ import org.eclipse.core.databinding.observable.list.IObservableList;
import org.eclipse.core.databinding.observable.value.WritableValue;
import org.eclipse.core.resources.IProject;
import org.eclipse.e4.core.di.annotations.Optional;
+import org.eclipse.e4.tools.emf.ui.common.IContributionClassCreator;
import org.eclipse.e4.tools.emf.ui.common.Util;
import org.eclipse.e4.tools.emf.ui.common.component.AbstractComponentEditor;
import org.eclipse.e4.tools.emf.ui.internal.ResourceProvider;
@@ -28,6 +30,7 @@ import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl;
import org.eclipse.e4.ui.model.application.ui.MUIElement;
import org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl;
import org.eclipse.e4.ui.model.application.ui.menu.MToolControl;
+import org.eclipse.e4.ui.model.application.ui.menu.impl.MenuPackageImpl;
import org.eclipse.emf.databinding.EMFDataBindingContext;
import org.eclipse.emf.databinding.FeaturePath;
import org.eclipse.emf.databinding.edit.EMFEditProperties;
@@ -49,6 +52,7 @@ import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Link;
import org.eclipse.swt.widgets.Text;
public class ToolControlEditor extends AbstractComponentEditor {
@@ -154,9 +158,22 @@ public class ToolControlEditor extends AbstractComponentEditor {
// ------------------------------------------------------------
{
- Label l = new Label(parent, SWT.NONE);
- l.setText(Messages.ToolControlEditor_ClassURI);
- l.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END));
+ final IContributionClassCreator c = getEditor().getContributionCreator(MenuPackageImpl.Literals.TOOL_CONTROL);
+ if (project != null && c != null) {
+ final Link lnk = new Link(parent, SWT.NONE);
+ lnk.setText("<A>" + Messages.ToolControlEditor_ClassURI + "</A>"); //$NON-NLS-1$//$NON-NLS-2$
+ lnk.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END));
+ lnk.addSelectionListener(new SelectionAdapter() {
+ @Override
+ public void widgetSelected(SelectionEvent e) {
+ c.createOpen((MContribution) getMaster().getValue(), getEditingDomain(), project, lnk.getShell());
+ }
+ });
+ } else {
+ Label l = new Label(parent, SWT.NONE);
+ l.setText(Messages.ToolControlEditor_ClassURI);
+ l.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END));
+ }
Text t = new Text(parent, SWT.BORDER);
TextPasteHandler.createFor(t);
diff --git a/bundles/org.eclipse.e4.tools/OSGI-INF/l10n/bundle.properties b/bundles/org.eclipse.e4.tools/OSGI-INF/l10n/bundle.properties
index fc83b8cd..2445b90e 100644
--- a/bundles/org.eclipse.e4.tools/OSGI-INF/l10n/bundle.properties
+++ b/bundles/org.eclipse.e4.tools/OSGI-INF/l10n/bundle.properties
@@ -8,5 +8,6 @@ wizard.name.1 = New Model Fragment
wizard.name.2 = New Handler Class
wizard.name.3 = New Part Class
wizard.name.4 = New Addon Class
+wizard.name.5 = New Tool Control Class
Bundle-Name = Tools
Bundle-Vendor = Eclipse.org \ No newline at end of file
diff --git a/bundles/org.eclipse.e4.tools/icons/full/obj16/ToolControl.gif b/bundles/org.eclipse.e4.tools/icons/full/obj16/ToolControl.gif
new file mode 100644
index 00000000..3e53cbdc
--- /dev/null
+++ b/bundles/org.eclipse.e4.tools/icons/full/obj16/ToolControl.gif
Binary files differ
diff --git a/bundles/org.eclipse.e4.tools/plugin.xml b/bundles/org.eclipse.e4.tools/plugin.xml
index 4efad6a0..8a6a20cf 100644
--- a/bundles/org.eclipse.e4.tools/plugin.xml
+++ b/bundles/org.eclipse.e4.tools/plugin.xml
@@ -60,6 +60,12 @@
id="org.eclipse.e4.tools.newaddon"
name="%wizard.name.4">
</wizard>
+ <wizard
+ category="org.eclipse.e4.tools/org.eclipse.e4.tools.classes"
+ class="org.eclipse.e4.internal.tools.wizards.classes.NewToolControlClassWizard"
+ icon="icons/full/obj16/ToolControl.gif"
+ id="org.eclipse.e4.tools.newtoolcontrol"
+ name="%wizard.name.5">
+ </wizard>
</extension>
-
</plugin>
diff --git a/bundles/org.eclipse.e4.tools/src/org/eclipse/e4/internal/tools/wizards/classes/NewToolControlClassWizard.java b/bundles/org.eclipse.e4.tools/src/org/eclipse/e4/internal/tools/wizards/classes/NewToolControlClassWizard.java
new file mode 100644
index 00000000..43804f70
--- /dev/null
+++ b/bundles/org.eclipse.e4.tools/src/org/eclipse/e4/internal/tools/wizards/classes/NewToolControlClassWizard.java
@@ -0,0 +1,132 @@
+/*******************************************************************************
+ * Copyright (c) 2014 BestSolution.at 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:
+ * Dmitry Spiridenok <d.spiridenok@gmail.com> - Bug 412672
+ ******************************************************************************/
+package org.eclipse.e4.internal.tools.wizards.classes;
+
+import java.util.Set;
+
+import org.eclipse.core.databinding.DataBindingContext;
+import org.eclipse.core.databinding.beans.BeanProperties;
+import org.eclipse.core.resources.ResourcesPlugin;
+import org.eclipse.e4.internal.tools.wizards.classes.AbstractNewClassPage.JavaClass;
+import org.eclipse.e4.internal.tools.wizards.classes.templates.ToolControlTemplate;
+import org.eclipse.jdt.core.IPackageFragmentRoot;
+import org.eclipse.jface.databinding.swt.IWidgetValueProperty;
+import org.eclipse.jface.databinding.swt.WidgetProperties;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.widgets.Button;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Text;
+
+public class NewToolControlClassWizard extends AbstractNewClassWizard {
+ private String initialString;
+
+ public NewToolControlClassWizard(String contributionURI) {
+ this.initialString = contributionURI;
+ }
+
+ public NewToolControlClassWizard() {
+ // Intentionally left empty
+ }
+
+ @Override
+ protected String getContent() {
+ ToolControlTemplate template = new ToolControlTemplate();
+ return template.generate(getDomainClass());
+ }
+
+ @Override
+ public void addPages() {
+ addPage(new AbstractNewClassPage("Classinformation",
+ "New Tool Control",
+ "Create a new tool control class", root, ResourcesPlugin.getWorkspace().getRoot(),initialString) {
+
+ @Override
+ protected JavaClass createInstance() {
+ return new ToolControlClass(root);
+ }
+
+ @Override
+ protected void createFields(Composite parent, DataBindingContext dbc) {
+ IWidgetValueProperty textProp = WidgetProperties.text(SWT.Modify);
+ {
+ Label l = new Label(parent, SWT.NONE);
+ l.setText("Create GUI Method");
+
+ Text t = new Text(parent, SWT.BORDER);
+ t.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
+ dbc.bindValue(
+ textProp.observe(t),
+ BeanProperties.value("createGuiMethodName").observe(
+ getClazz()));
+
+ l = new Label(parent, SWT.NONE);
+ }
+ {
+ Label l = new Label(parent, SWT.NONE);
+ l.setText("Create Default Constructor");
+
+// Text t = new Text(parent, SWT.BORDER);
+// t.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
+// dbc.bindValue(textProp.observe(t),
+// BeanProperties.value("defaultConstructorName")
+// .observe(getClazz()));
+// dbc.bindValue(
+// WidgetProperties.enabled().observe(t),
+// BeanProperties.value("useDefaultConstructor").observe(
+// getClazz()));
+
+ Button b = new Button(parent, SWT.CHECK);
+ dbc.bindValue(
+ WidgetProperties.selection().observe(b),
+ BeanProperties.value("createDefaultConstructor").observe(
+ getClazz()));
+ }
+ }
+ });
+ }
+
+ @Override
+ protected Set<String> getRequiredBundles() {
+ Set<String> set = super.getRequiredBundles();
+ set.add("org.eclipse.e4.core.di");
+ return set;
+ }
+
+ public static class ToolControlClass extends JavaClass {
+ private String createGuiMethodName = "createGui";
+ private boolean createDefaultCostructor = false;
+
+ public ToolControlClass(IPackageFragmentRoot root) {
+ super(root);
+ }
+
+ public String getCreateGuiMethodName() {
+ return createGuiMethodName;
+ }
+
+ public void setCreateGuiMethodName(String createGuiMethodName) {
+ support.firePropertyChange("createGuiMethodName",
+ this.createGuiMethodName,
+ this.createGuiMethodName = createGuiMethodName);
+ }
+
+ public boolean isCreateDefaultConstructor() {
+ return createDefaultCostructor;
+ }
+
+ public void setCreateDefaultConstructor(boolean createDefaultConstructor) {
+ support.firePropertyChange("createDefaultConstructor", this.createDefaultCostructor,
+ this.createDefaultCostructor = createDefaultConstructor);
+ }
+ }
+}
diff --git a/bundles/org.eclipse.e4.tools/src/org/eclipse/e4/internal/tools/wizards/classes/templates/ToolControlTemplate.java b/bundles/org.eclipse.e4.tools/src/org/eclipse/e4/internal/tools/wizards/classes/templates/ToolControlTemplate.java
new file mode 100644
index 00000000..5a0405f5
--- /dev/null
+++ b/bundles/org.eclipse.e4.tools/src/org/eclipse/e4/internal/tools/wizards/classes/templates/ToolControlTemplate.java
@@ -0,0 +1,54 @@
+package org.eclipse.e4.internal.tools.wizards.classes.templates;
+
+import org.eclipse.e4.internal.tools.wizards.classes.NewToolControlClassWizard.ToolControlClass;
+
+public class ToolControlTemplate
+{
+ protected static String nl;
+ public static synchronized ToolControlTemplate create(String lineSeparator)
+ {
+ nl = lineSeparator;
+ ToolControlTemplate result = new ToolControlTemplate();
+ nl = null;
+ return result;
+ }
+
+ public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl;
+ protected final String TEXT_1 = "package ";
+ protected final String TEXT_2 = ";";
+ protected final String TEXT_3 = NL + NL + "import javax.annotation.PostConstruct;";
+ protected final String TEXT_4 = NL + "import javax.inject.Inject;";
+ protected final String TEXT_5 = NL + NL + "public class ";
+ protected final String TEXT_6 = " {" + NL + "\t";
+ protected final String TEXT_7 = NL + "\t@Inject" + NL + "\tpublic ";
+ protected final String TEXT_8 = "() {" + NL + "\t\t" + NL + "\t}" + NL + "\t";
+ protected final String TEXT_9 = NL + "\t@PostConstruct" + NL + "\tpublic void ";
+ protected final String TEXT_10 = "() {" + NL + "\t\t" + NL + "\t}" + NL + "}";
+
+ public String generate(Object argument)
+ {
+ final StringBuffer stringBuffer = new StringBuffer();
+ ToolControlClass domainClass = (ToolControlClass)argument;
+ if( domainClass.getPackageFragment() != null && domainClass.getPackageFragment().getElementName().trim().length() > 0 ) {
+ stringBuffer.append(TEXT_1);
+ stringBuffer.append( domainClass.getPackageFragment().getElementName() );
+ stringBuffer.append(TEXT_2);
+ }
+ stringBuffer.append(TEXT_3);
+ if( domainClass.isCreateDefaultConstructor() ) {
+ stringBuffer.append(TEXT_4);
+ }
+ stringBuffer.append(TEXT_5);
+ stringBuffer.append( domainClass.getName() );
+ stringBuffer.append(TEXT_6);
+ if( domainClass.isCreateDefaultConstructor() ) {
+ stringBuffer.append(TEXT_7);
+ stringBuffer.append( domainClass.getName() );
+ stringBuffer.append(TEXT_8);
+ }
+ stringBuffer.append(TEXT_9);
+ stringBuffer.append( domainClass.getCreateGuiMethodName() );
+ stringBuffer.append(TEXT_10);
+ return stringBuffer.toString();
+ }
+}
diff --git a/bundles/org.eclipse.e4.tools/templates/toolControl.txtjet b/bundles/org.eclipse.e4.tools/templates/toolControl.txtjet
new file mode 100644
index 00000000..524631cd
--- /dev/null
+++ b/bundles/org.eclipse.e4.tools/templates/toolControl.txtjet
@@ -0,0 +1,23 @@
+<%@ jet package="org.eclipse.e4.internal.tools.wizards.classes.templates" class="ToolControlTemplate" imports="org.eclipse.e4.internal.tools.wizards.classes.NewToolControlClassWizard.ToolControlClass" %>
+<% ToolControlClass domainClass = (ToolControlClass)argument; %>
+<% if( domainClass.getPackageFragment() != null && domainClass.getPackageFragment().getElementName().trim().length() > 0 ) { %>
+package <%= domainClass.getPackageFragment().getElementName() %>;
+<% } %>
+
+import javax.annotation.PostConstruct;
+<% if( domainClass.isCreateDefaultConstructor() ) { %>
+import javax.inject.Inject;
+<% } %>
+
+public class <%= domainClass.getName() %> {
+ <% if( domainClass.isCreateDefaultConstructor() ) { %>
+ @Inject
+ public <%= domainClass.getName() %>() {
+
+ }
+ <% } %>
+ @PostConstruct
+ public void <%= domainClass.getCreateGuiMethodName() %>() {
+
+ }
+} \ No newline at end of file

Back to the top