Author: scabanovich
Date: 2011-05-31 16:37:05 -0400 (Tue, 31 May 2011)
New Revision: 31689
Modified:
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/preferences/SeverityConfigurationBlock.java
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/preferences/SeverityPreferencesMessages.java
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/preferences/SeverityPreferencesMessages.properties
Log:
JBIDE-9028
https://issues.jboss.org/browse/JBIDE-9028
Modified:
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/preferences/SeverityConfigurationBlock.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/preferences/SeverityConfigurationBlock.java 2011-05-31
20:31:34 UTC (rev 31688)
+++
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/preferences/SeverityConfigurationBlock.java 2011-05-31
20:37:05 UTC (rev 31689)
@@ -98,6 +98,8 @@
addMaxNumberOfMarkersField(composite);
+ addWrongBuilderOrderField(composite);
+
GridLayout layout= new GridLayout(nColumns, false);
layout.marginHeight= 0;
layout.marginWidth= 0;
@@ -142,6 +144,12 @@
text.setTextLimit(6);
}
+ protected void addWrongBuilderOrderField(Composite composite) {
+ if(getWrongBuilderOrderKey() != null) {
+ addComboBox(composite, SeverityPreferencesMessages.WRONG_BUILDER_ORDER,
getWrongBuilderOrderKey(), errorWarningIgnore, errorWarningIgnoreLabels, 0);
+ }
+ }
+
private IStatus validateMaxNumberProblems() {
String number = getValue(getMaxNumberOfProblemsKey());
StatusInfo status= new StatusInfo();
@@ -162,6 +170,15 @@
abstract protected Key getMaxNumberOfProblemsKey();
+ /**
+ * Returns Key object for preference controlling builders order if it is relevant.
+ * If builders order is not relevant, returns null.
+ * @return unique key or null
+ */
+ protected Key getWrongBuilderOrderKey() {
+ return null;
+ }
+
@Override
protected Control createContents(Composite parent) {
fPixelConverter = new PixelConverter(parent);
Modified:
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/preferences/SeverityPreferencesMessages.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/preferences/SeverityPreferencesMessages.java 2011-05-31
20:31:34 UTC (rev 31688)
+++
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/preferences/SeverityPreferencesMessages.java 2011-05-31
20:37:05 UTC (rev 31689)
@@ -29,6 +29,7 @@
public static String VALIDATOR_CONFIGURATION_BLOCK_WARNING;
public static String ENABLE_VALIDATION;
public static String MAX_NUMBER_OF_MARKERS;
+ public static String WRONG_BUILDER_ORDER;
static {
NLS.initializeMessages(BUNDLE_NAME, SeverityPreferencesMessages.class);
Modified:
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/preferences/SeverityPreferencesMessages.properties
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/preferences/SeverityPreferencesMessages.properties 2011-05-31
20:31:34 UTC (rev 31688)
+++
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/preferences/SeverityPreferencesMessages.properties 2011-05-31
20:37:05 UTC (rev 31689)
@@ -20,4 +20,5 @@
ENABLE_VALIDATION=Enable validation
-MAX_NUMBER_OF_MARKERS=Maximum number of problems reported per file:
\ No newline at end of file
+MAX_NUMBER_OF_MARKERS=Maximum number of problems reported per file:
+WRONG_BUILDER_ORDER=Wrong order of project builders:
\ No newline at end of file