Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2012-04-29 02:15:29 -0400
committerSergey Prigogin2012-04-29 02:15:29 -0400
commitc8e3a663f086576315829965ed39f65104c54408 (patch)
tree49778734eacb00363ceff5eb06fc73d8ccc0974e /codan/org.eclipse.cdt.codan.ui
parent07924ceeebace85c88a1547acb8438733122d7fc (diff)
downloadorg.eclipse.cdt-c8e3a663f086576315829965ed39f65104c54408.tar.gz
org.eclipse.cdt-c8e3a663f086576315829965ed39f65104c54408.tar.xz
org.eclipse.cdt-c8e3a663f086576315829965ed39f65104c54408.zip
Eliminated redundant checker runs.
Diffstat (limited to 'codan/org.eclipse.cdt.codan.ui')
-rw-r--r--codan/org.eclipse.cdt.codan.ui/src/org/eclipse/cdt/codan/internal/ui/CodanUIMessages.properties18
-rw-r--r--codan/org.eclipse.cdt.codan.ui/src/org/eclipse/cdt/codan/internal/ui/preferences/LaunchModesPropertyPage.java31
2 files changed, 14 insertions, 35 deletions
diff --git a/codan/org.eclipse.cdt.codan.ui/src/org/eclipse/cdt/codan/internal/ui/CodanUIMessages.properties b/codan/org.eclipse.cdt.codan.ui/src/org/eclipse/cdt/codan/internal/ui/CodanUIMessages.properties
index b00af0adff..c182829b4a 100644
--- a/codan/org.eclipse.cdt.codan.ui/src/org/eclipse/cdt/codan/internal/ui/CodanUIMessages.properties
+++ b/codan/org.eclipse.cdt.codan.ui/src/org/eclipse/cdt/codan/internal/ui/CodanUIMessages.properties
@@ -1,5 +1,5 @@
###############################################################################
-# Copyright (c) 2010, 2011 Alena Laskavaia and others.
+# Copyright (c) 2010, 2012 Alena Laskavaia and others.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
@@ -74,13 +74,13 @@ ExclusionInclusionEntryDialog_exclude_add_title=Add Exclusion Pattern
ExclusionInclusionEntryDialog_exclude_edit_title=Edit Exclusion Pattern
ExclusionInclusionEntryDialog_exclude_description=Enter a pattern for excluding files from the source folder. Allowed wildcards are '*', '?' and '**'. Examples: 'src/util/a*.c', 'src/util/', '**/Test*'.
-ExclusionInclusionEntryDialog_exclude_pattern_label=E&xclusion pattern (Path relative to ''{0}''):
+ExclusionInclusionEntryDialog_exclude_pattern_label=E&xclusion pattern (path relative to ''{0}''):
ExclusionInclusionEntryDialog_include_add_title=Add Inclusion Pattern
ExclusionInclusionEntryDialog_include_edit_title=Edit Inclusion Pattern
ExclusionInclusionEntryDialog_include_description=Enter a pattern for including files to the source folder. Allowed wildcards are '*', '?' and '**'. Examples: 'src/util/a*.c', 'src/util/', '**/Test*'.
-ExclusionInclusionEntryDialog_include_pattern_label=I&nclusion pattern (Path relative to ''{0}''):
+ExclusionInclusionEntryDialog_include_pattern_label=I&nclusion pattern (path relative to ''{0}''):
ExclusionInclusionEntryDialog_pattern_button=Bro&wse...
@@ -93,9 +93,9 @@ ExclusionInclusionEntryDialog_ChooseExclusionPattern_description=&Choose a folde
ExclusionInclusionEntryDialog_ChooseInclusionPattern_title=Inclusion Pattern Selection
ExclusionInclusionEntryDialog_ChooseInclusionPattern_description=&Choose a folder or file to include:
-LaunchModesPropertyPage_RunAsYouType=Run as you type
-LaunchModesPropertyPage_RunOnDemand=Run on demand
-LaunchModesPropertyPage_RunOnFullBuild=Run on full build
-LaunchModesPropertyPage_RunOnIncrementalBuild=Run on incremental build
-LaunchModesPropertyPage_RunOnFileSave=Run on file save
-LaunchModesPropertyPage_RunOnFileOpen=Run on file open
+LaunchModesPropertyPage_RunAsYouType=Run as you &type
+LaunchModesPropertyPage_RunOnFileOpen=Run on file &open
+LaunchModesPropertyPage_RunOnFileSave=Run on file &save
+LaunchModesPropertyPage_RunOnIncrementalBuild=Run on i&ncremental build
+LaunchModesPropertyPage_RunOnFullBuild=Run on &full build
+LaunchModesPropertyPage_RunOnDemand=Run on &demand
diff --git a/codan/org.eclipse.cdt.codan.ui/src/org/eclipse/cdt/codan/internal/ui/preferences/LaunchModesPropertyPage.java b/codan/org.eclipse.cdt.codan.ui/src/org/eclipse/cdt/codan/internal/ui/preferences/LaunchModesPropertyPage.java
index 2c3e929e4b..b703df8bc8 100644
--- a/codan/org.eclipse.cdt.codan.ui/src/org/eclipse/cdt/codan/internal/ui/preferences/LaunchModesPropertyPage.java
+++ b/codan/org.eclipse.cdt.codan.ui/src/org/eclipse/cdt/codan/internal/ui/preferences/LaunchModesPropertyPage.java
@@ -51,45 +51,24 @@ public class LaunchModesPropertyPage extends FieldEditorPreferencePage {
super.noDefaultAndApplyButton();
}
- /*
- * (non-Javadoc)
- *
- * @see
- * org.eclipse.jface.preference.FieldEditorPreferencePage#createFieldEditors
- * ()
- */
@Override
protected void createFieldEditors() {
- addField(new BooleanFieldEditor(CheckerLaunchMode.RUN_ON_FULL_BUILD.name(), CodanUIMessages.LaunchModesPropertyPage_RunOnFullBuild, getFieldEditorParent()));
- addField(new BooleanFieldEditor(CheckerLaunchMode.RUN_ON_INC_BUILD.name(), CodanUIMessages.LaunchModesPropertyPage_RunOnIncrementalBuild, getFieldEditorParent()));
- addField(new BooleanFieldEditor(CheckerLaunchMode.RUN_ON_DEMAND.name(), CodanUIMessages.LaunchModesPropertyPage_RunOnDemand, getFieldEditorParent()));
- addField(new BooleanFieldEditor(CheckerLaunchMode.RUN_ON_FILE_OPEN.name(), CodanUIMessages.LaunchModesPropertyPage_RunOnFileOpen, getFieldEditorParent()));
- addField(new BooleanFieldEditor(CheckerLaunchMode.RUN_ON_FILE_SAVE.name(), CodanUIMessages.LaunchModesPropertyPage_RunOnFileSave, getFieldEditorParent()));
if (runInEditor) {
addField(new BooleanFieldEditor(CheckerLaunchMode.RUN_AS_YOU_TYPE.name(), CodanUIMessages.LaunchModesPropertyPage_RunAsYouType, getFieldEditorParent()));
}
+ addField(new BooleanFieldEditor(CheckerLaunchMode.RUN_ON_FILE_OPEN.name(), CodanUIMessages.LaunchModesPropertyPage_RunOnFileOpen, getFieldEditorParent()));
+ addField(new BooleanFieldEditor(CheckerLaunchMode.RUN_ON_FILE_SAVE.name(), CodanUIMessages.LaunchModesPropertyPage_RunOnFileSave, getFieldEditorParent()));
+ addField(new BooleanFieldEditor(CheckerLaunchMode.RUN_ON_INC_BUILD.name(), CodanUIMessages.LaunchModesPropertyPage_RunOnIncrementalBuild, getFieldEditorParent()));
+ addField(new BooleanFieldEditor(CheckerLaunchMode.RUN_ON_FULL_BUILD.name(), CodanUIMessages.LaunchModesPropertyPage_RunOnFullBuild, getFieldEditorParent()));
+ addField(new BooleanFieldEditor(CheckerLaunchMode.RUN_ON_DEMAND.name(), CodanUIMessages.LaunchModesPropertyPage_RunOnDemand, getFieldEditorParent()));
}
- /*
- * (non-Javadoc)
- *
- * @see
- * org.eclipse.jface.preference.FieldEditorPreferencePage#addField(org.eclipse
- * .jface.preference.FieldEditor)
- */
@Override
protected void addField(FieldEditor editor) {
editors.add(editor);
super.addField(editor);
}
- /**
- *
- */
- protected void configureProjectSettings() {
- // TODO Auto-generated method stub
- }
-
@Override
public boolean performOk() {
boolean result = super.performOk();

Back to the top