Author: akazakov
Date: 2007-07-21 13:12:00 -0400 (Sat, 21 Jul 2007)
New Revision: 2580
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamPreferencesMessages.java
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamPreferencesMessages.properties
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamValidatorConfigurationBlock.java
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamValidatorPreferencePage.java
Log:
http://jira.jboss.com/jira/browse/EXIN-327 EL Validation
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamPreferencesMessages.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamPreferencesMessages.java 2007-07-21
17:11:16 UTC (rev 2579)
+++
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamPreferencesMessages.java 2007-07-21
17:12:00 UTC (rev 2580)
@@ -63,8 +63,11 @@
public static String SeamValidatorConfigurationBlock_pb_duplicateVariableName_label;
public static String SeamValidatorConfigurationBlock_pb_unknownVariableName_label;
+ //Seam Expression language
+ public static String SeamValidatorConfigurationBlock_section_el;
+ public static String SeamValidatorConfigurationBlock_pb_invalidExpression_label;
+
static {
NLS.initializeMessages(BUNDLE_NAME, SeamPreferencesMessages.class);
}
-
-}
+}
\ No newline at end of file
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamPreferencesMessages.properties
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamPreferencesMessages.properties 2007-07-21
17:11:16 UTC (rev 2579)
+++
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamPreferencesMessages.properties 2007-07-21
17:12:00 UTC (rev 2580)
@@ -51,4 +51,8 @@
##Section Context variables
SeamValidatorConfigurationBlock_section_variable=Context variables
SeamValidatorConfigurationBlock_pb_duplicateVariableName_label=Duplicate variable name:
-SeamValidatorConfigurationBlock_pb_unknownVariableName_label=Unknown variable name:
\ No newline at end of file
+SeamValidatorConfigurationBlock_pb_unknownVariableName_label=Unknown variable name:
+
+##Seam Expression language
+SeamValidatorConfigurationBlock_section_el=Expression language
+SeamValidatorConfigurationBlock_pb_invalidExpression_label=Invalid Expression:
\ No newline at end of file
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamValidatorConfigurationBlock.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamValidatorConfigurationBlock.java 2007-07-21
17:11:16 UTC (rev 2579)
+++
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamValidatorConfigurationBlock.java 2007-07-21
17:12:00 UTC (rev 2580)
@@ -109,6 +109,13 @@
}
);
+ private static SectionDescription SECTION_EL = new SectionDescription(
+ SeamPreferencesMessages.SeamValidatorConfigurationBlock_section_el,
+ new String[][]{
+ {SeamPreferences.INVALID_EXPRESSION,
SeamPreferencesMessages.SeamValidatorConfigurationBlock_pb_invalidExpression_label},
+ }
+ );
+
private static SectionDescription[] ALL_SECTIONS = new SectionDescription[]{
SECTION_COMPONENT,
SECTION_ENTITY,
@@ -116,6 +123,7 @@
SECTION_FACTORY,
SECTION_BIJECTION,
SECTION_VARIABLE,
+ SECTION_EL
};
private static Key PREF_NON_UNIQUE_COMPONENT_NAME =
getSeamKey(SeamPreferences.NONUNIQUE_COMPONENT_NAME);
@@ -202,7 +210,7 @@
for (int j = 0; j < section.options.length; j++) {
OptionDescription option = section.options[j];
- label = option.label;
+ label = option.label;
addComboBox(inner, label, option.key, errorWarningIgnore, errorWarningIgnoreLabels,
defaultIndent);
}
}
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamValidatorPreferencePage.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamValidatorPreferencePage.java 2007-07-21
17:11:16 UTC (rev 2579)
+++
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamValidatorPreferencePage.java 2007-07-21
17:12:00 UTC (rev 2580)
@@ -23,9 +23,9 @@
public class SeamValidatorPreferencePage extends PropertyAndPreferencePage {
public static final String PREF_ID =
"org.jboss.tools.seam.ui.preferences.SeamValidatorPreferencePage";
public static final String PROP_ID =
"org.jboss.tools.seam.ui.propertyPages.SeamValidatorPreferencePage";
-
+
private SeamValidatorConfigurationBlock fConfigurationBlock;
-
+
public SeamValidatorPreferencePage() {
setPreferenceStore(SeamCorePlugin.getDefault().getPreferenceStore());
setTitle("Seam Validator");
@@ -54,7 +54,7 @@
public void createControl(Composite parent) {
IWorkbenchPreferenceContainer container = (IWorkbenchPreferenceContainer)
getContainer();
fConfigurationBlock = new
SeamValidatorConfigurationBlock(getNewStatusChangedListener(), getProject(), container);
-
+
super.createControl(parent);
if (isProjectPreferencePage()) {
// help goes here
@@ -72,7 +72,7 @@
}
super.dispose();
}
-
+
/*
* @see
org.eclipse.jdt.internal.ui.preferences.PropertyAndPreferencePage#enableProjectSpecificSettings(boolean)
*/
@@ -82,7 +82,7 @@
fConfigurationBlock.useProjectSpecificSettings(useProjectSpecificSettings);
}
}
-
+
/*
* @see org.eclipse.jface.preference.IPreferencePage#performDefaults()
*/
@@ -102,7 +102,7 @@
}
return super.performOk();
}
-
+
/*
* @see org.eclipse.jface.preference.IPreferencePage#performApply()
*/
@@ -111,5 +111,4 @@
fConfigurationBlock.performApply();
}
}
-
-}
+}
\ No newline at end of file