Author: scabanovich
Date: 2008-03-11 10:58:33 -0400 (Tue, 11 Mar 2008)
New Revision: 6846
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamSettingsPreferencePage.java
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamWizardFactory.java
Log:
JBIDE-1322
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamSettingsPreferencePage.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamSettingsPreferencePage.java 2008-03-11
14:35:12 UTC (rev 6845)
+++
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamSettingsPreferencePage.java 2008-03-11
14:58:33 UTC (rev 6846)
@@ -183,7 +183,7 @@
ISeamFacetDataModelProperties.SEAM_EJB_PROJECT,
SeamPreferencesMessages.SEAM_SETTINGS_PREFERENCES_PAGE_EJB_PROJECT,
getEjbProjectName(),
- true);
+ true, false);
registerEditor(ejbProjectEditor, deploymentGroup);
Group viewGroup = createGroup(
@@ -263,7 +263,7 @@
registerEditor(createTestCheckBox, testGroup);
- IFieldEditor testProjectEditor =
SeamWizardFactory.createSeamProjectSelectionFieldEditor(ISeamFacetDataModelProperties.SEAM_TEST_PROJECT,
SeamPreferencesMessages.SEAM_SETTINGS_PREFERENCE_PAGE_TEST_PROJECT,
getTestProjectName(),false);
+ IFieldEditor testProjectEditor =
SeamWizardFactory.createSeamProjectSelectionFieldEditor(ISeamFacetDataModelProperties.SEAM_TEST_PROJECT,
SeamPreferencesMessages.SEAM_SETTINGS_PREFERENCE_PAGE_TEST_PROJECT,
getTestProjectName(),false, false);
registerEditor(testProjectEditor, testGroup);
sourceFolder = getTestSourceFolder();
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamWizardFactory.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamWizardFactory.java 2008-03-11
14:35:12 UTC (rev 6845)
+++
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamWizardFactory.java 2008-03-11
14:58:33 UTC (rev 6846)
@@ -49,14 +49,15 @@
*
*/
public class SeamWizardFactory {
-
+
/**
* @param defaultSelection
* @param allowAllProjects If "false" show only projects with seam nature.
* @return
*/
- public static IFieldEditor createSeamProjectSelectionFieldEditor(String name, String
label, String defaultSelection, boolean allowAllProjects) {
- if(allowAllProjects) {
+ public static IFieldEditor createSeamProjectSelectionFieldEditor(String name, String
label, String defaultSelection,
+ boolean allowAllProjects, boolean editSettings) {
+ if(!editSettings) {
return IFieldEditorFactory.INSTANCE.createButtonFieldEditor(
name, label, defaultSelection,
new SelectSeamProjectAction(allowAllProjects),
ValidatorFactory.NO_ERRORS_VALIDATOR);
@@ -80,7 +81,7 @@
*/
public static IFieldEditor createSeamProjectSelectionFieldEditor(
String defaultSelection) {
- return createSeamProjectSelectionFieldEditor(IParameter.SEAM_PROJECT_NAME,
SeamUIMessages.SEAM_WIZARD_FACTORY_SEAM_PROJECT, defaultSelection, false);
+ return createSeamProjectSelectionFieldEditor(IParameter.SEAM_PROJECT_NAME,
SeamUIMessages.SEAM_WIZARD_FACTORY_SEAM_PROJECT, defaultSelection, false, true);
}
/**