[jbosstools-commits] JBoss Tools SVN: r44071 - in trunk/common/plugins/org.jboss.tools.common.ui: src/org/jboss/tools/common/ui/wizard/service and 1 other directory.
jbosstools-commits at lists.jboss.org
jbosstools-commits at lists.jboss.org
Wed Sep 26 19:36:13 EDT 2012
Author: scabanovich
Date: 2012-09-26 19:36:13 -0400 (Wed, 26 Sep 2012)
New Revision: 44071
Modified:
trunk/common/plugins/org.jboss.tools.common.ui/META-INF/MANIFEST.MF
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/wizard/service/NewServiceCreationWizard.java
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/wizard/service/NewServiceWizardPage.java
Log:
JBIDE-9443
https://issues.jboss.org/browse/JBIDE-9443
New Service Provider wizard.
Modified: trunk/common/plugins/org.jboss.tools.common.ui/META-INF/MANIFEST.MF
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.ui/META-INF/MANIFEST.MF 2012-09-26 23:04:29 UTC (rev 44070)
+++ trunk/common/plugins/org.jboss.tools.common.ui/META-INF/MANIFEST.MF 2012-09-26 23:36:13 UTC (rev 44071)
@@ -10,7 +10,7 @@
org.eclipse.ui;bundle-version="3.7.0",
org.eclipse.core.runtime;bundle-version="3.7.0",
org.eclipse.jdt.core;bundle-version="3.7.0",
- org.eclipse.jdt.ui;bundle-version="3.7.0",
+ org.eclipse.jdt.ui;bundle-version="3.7.0";visibility:=reexport,
org.eclipse.core.resources;bundle-version="3.7.100",
org.eclipse.ui.ide;bundle-version="3.7.0",
org.eclipse.jst.j2ee.ui;bundle-version="1.1.500",
@@ -45,6 +45,7 @@
org.jboss.tools.common.ui.widget.editor,
org.jboss.tools.common.ui.widget.field,
org.jboss.tools.common.ui.wizard,
+ org.jboss.tools.common.ui.wizard.service,
org.jboss.tools.common.ui.xpl
Bundle-Vendor: %Bundle-Vendor.0
Bundle-Localization: plugin
Modified: trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/wizard/service/NewServiceCreationWizard.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/wizard/service/NewServiceCreationWizard.java 2012-09-26 23:04:29 UTC (rev 44070)
+++ trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/wizard/service/NewServiceCreationWizard.java 2012-09-26 23:36:13 UTC (rev 44071)
@@ -38,11 +38,16 @@
*/
public class NewServiceCreationWizard extends NewElementWizard {
protected NewTypeWizardPage fPage;
+ boolean openEditorAfterFinish = true;
public NewServiceCreationWizard() {
setWindowTitle(CommonUIMessages.NEW_SERVICE_WIZARD_TITLE);
}
+ public void setOpenEditorAfterFinish(boolean b) {
+ openEditorAfterFinish = b;
+ }
+
/*
* @see Wizard#createPages
*/
@@ -72,7 +77,7 @@
CommonUIPlugin.getDefault().logError(e);
}
}
- if (res) {
+ if (res && openEditorAfterFinish) {
IResource resource= fPage.getModifiedResource();
if (resource != null) {
selectAndReveal(resource);
Modified: trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/wizard/service/NewServiceWizardPage.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/wizard/service/NewServiceWizardPage.java 2012-09-26 23:04:29 UTC (rev 44070)
+++ trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/wizard/service/NewServiceWizardPage.java 2012-09-26 23:36:13 UTC (rev 44071)
@@ -229,6 +229,10 @@
});
}
+ public void setServiceType(String typeName) {
+ interfaceField.setValue(typeName);
+ }
+
protected void onInterfaceChange() {
interfaceNameStatus = new StatusInfo();
String q = interfaceField == null ? "" : interfaceField.getValue().toString().trim();
More information about the jbosstools-commits
mailing list