Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.e4.tools/templates')
-rw-r--r--bundles/org.eclipse.e4.tools/templates/part.txtjet3
1 files changed, 2 insertions, 1 deletions
diff --git a/bundles/org.eclipse.e4.tools/templates/part.txtjet b/bundles/org.eclipse.e4.tools/templates/part.txtjet
index f79efd96..a7106134 100644
--- a/bundles/org.eclipse.e4.tools/templates/part.txtjet
+++ b/bundles/org.eclipse.e4.tools/templates/part.txtjet
@@ -7,6 +7,7 @@ package <%= domainClass.getPackageFragment().getElementName() %>;
import javax.inject.Inject;
<% if( domainClass.isUsePostConstruct() ) { %>
import javax.annotation.PostConstruct;
+import org.eclipse.swt.widgets.Composite;
<% } %>
<% if( domainClass.isUsePredestroy() ) { %>
import javax.annotation.PreDestroy;
@@ -25,7 +26,7 @@ public class <%= domainClass.getName() %> {
}
<% if( domainClass.isUsePostConstruct() ) { %>
@PostConstruct
- public void <%= domainClass.getPostConstructMethodName() %>() {
+ public void <%= domainClass.getPostConstructMethodName() %>(Composite parent) {
//TODO Your code here
}
<% } %>

Back to the top