Author: vrubezhny
Date: 2007-09-21 13:50:13 -0400 (Fri, 21 Sep 2007)
New Revision: 3762
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/internal/project/facet/SeamInstallWizardPage.java
Log:
http://jira.jboss.org/jira/browse/JBIDE-932 Seam facet wizard forgets what was chosen
last
Last saved profiles loading is added
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/internal/project/facet/SeamInstallWizardPage.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/internal/project/facet/SeamInstallWizardPage.java 2007-09-21
17:40:42 UTC (rev 3761)
+++
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/internal/project/facet/SeamInstallWizardPage.java 2007-09-21
17:50:13 UTC (rev 3762)
@@ -90,8 +90,12 @@
final IFieldEditor jBossSeamHomeEditor = IFieldEditorFactory.INSTANCE
.createComboWithButton(ISeamFacetDataModelProperties.SEAM_RUNTIME_NAME,
"Seam Runtime", getRuntimeNames(),
- SeamRuntimeManager.getInstance().getDefaultRuntime()==null?
- "":SeamRuntimeManager.getInstance().getDefaultRuntime().getName(),
+ ("".equals(SeamFacetPreference
+ .getStringPreference(SeamFacetPreference.SEAM_RUNTIME_NAME)) ?
+ (SeamRuntimeManager.getInstance().getDefaultRuntime()==null?
+ "":SeamRuntimeManager.getInstance().getDefaultRuntime().getName()) :
+ SeamFacetPreference
+ .getStringPreference(SeamFacetPreference.SEAM_RUNTIME_NAME)),
true, new NewSeamRuntimeAction(), (IValidator)null);
// IFieldEditor jBossSeamHomeEditor = IFieldEditorFactory.INSTANCE
@@ -114,7 +118,11 @@
ISeamFacetDataModelProperties.SEAM_CONNECTION_PROFILE,
"Connection profile:",
getProfileNameList(),
- getProfileNameList().contains("DefaultDS")?"DefaultDS":"",
+ ("".equals(SeamCorePlugin.getDefault().getPluginPreferences()
+ .getString((SeamFacetPreference.SEAM_DEFAULT_CONNECTION_PROFILE))) ?
+ (getProfileNameList().contains("DefaultDS")?"DefaultDS":""):
+ SeamCorePlugin.getDefault().getPluginPreferences()
+ .getString((SeamFacetPreference.SEAM_DEFAULT_CONNECTION_PROFILE))),
true, new EditConnectionProfileAction(),
new NewConnectionProfileAction(),
ValidatorFactory.NO_ERRORS_VALIDATOR);