mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 17:05:26 +02:00
Bug 342013 Code Analysis launch options not externalized
This commit is contained in:
parent
39e579aa0a
commit
667c8f071f
4 changed files with 25 additions and 10 deletions
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2009,2010 Alena Laskavaia
|
||||
* Copyright (c) 2009, 2011 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
|
||||
|
@ -7,6 +7,7 @@
|
|||
*
|
||||
* Contributors:
|
||||
* Alena Laskavaia - initial API and implementation
|
||||
* IBM Corporation
|
||||
*******************************************************************************/
|
||||
package org.eclipse.cdt.codan.internal.ui;
|
||||
|
||||
|
@ -30,6 +31,7 @@ public class CodanUIMessages extends NLS {
|
|||
public static String ProblemsTreeEditor_NameColumn;
|
||||
public static String ProblemsTreeEditor_Problems;
|
||||
public static String ProblemsTreeEditor_SeverityColumn;
|
||||
public static String ProblemsTreeEditor_ToolTip;
|
||||
public static String OverlayPage_Use_Workspace_Settings;
|
||||
public static String OverlayPage_Use_Project_Settings;
|
||||
public static String OverlayPage_Configure_Workspace_Settings;
|
||||
|
@ -80,6 +82,10 @@ public class CodanUIMessages extends NLS {
|
|||
public static String ExclusionInclusionEntryDialog_ChooseExclusionPattern_description;
|
||||
public static String ExclusionInclusionEntryDialog_ChooseInclusionPattern_title;
|
||||
public static String ExclusionInclusionEntryDialog_ChooseInclusionPattern_description;
|
||||
public static String LaunchModesPropertyPage_RunAsYouType;
|
||||
public static String LaunchModesPropertyPage_RunOnDemand;
|
||||
public static String LaunchModesPropertyPage_RunOnFullBuild;
|
||||
public static String LaunchModesPropertyPage_RunOnIncrementalBuild;
|
||||
static {
|
||||
// initialize resource bundle
|
||||
NLS.initializeMessages(BUNDLE_NAME, CodanUIMessages.class);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
###############################################################################
|
||||
# Copyright (c) 2010 Alena Laskavaia and others.
|
||||
# Copyright (c) 2010, 2011 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
|
||||
|
@ -7,6 +7,7 @@
|
|||
#
|
||||
# Contributors:
|
||||
# Alena Laskavaia - initial API and implementation
|
||||
# IBM Corporation
|
||||
###############################################################################
|
||||
BuildPropertyPage_RunAsYouType=Run as you &type (selected checkers)
|
||||
BuildPropertyPage_RunWithBuild=&Run with build
|
||||
|
@ -33,6 +34,7 @@ ParametersComposite_Severity=Severity
|
|||
ProblemsTreeEditor_NameColumn=Name
|
||||
ProblemsTreeEditor_Problems=Problems
|
||||
ProblemsTreeEditor_SeverityColumn=Severity
|
||||
ProblemsTreeEditor_ToolTip=Sample Message:
|
||||
OverlayPage_Use_Workspace_Settings=Use &workspace settings
|
||||
OverlayPage_Use_Project_Settings=Use pr&oject settings
|
||||
OverlayPage_Configure_Workspace_Settings=&Configure Workspace Settings...
|
||||
|
@ -87,4 +89,8 @@ ExclusionInclusionEntryDialog_ChooseExclusionPattern_title=Exclusion Pattern Sel
|
|||
ExclusionInclusionEntryDialog_ChooseExclusionPattern_description=&Choose a folder or file to exclude:
|
||||
|
||||
ExclusionInclusionEntryDialog_ChooseInclusionPattern_title=Inclusion Pattern Selection
|
||||
ExclusionInclusionEntryDialog_ChooseInclusionPattern_description=&Choose a folder or file to include:
|
||||
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
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2010 Alena Laskavaia and others.
|
||||
* Copyright (c) 2010, 2011 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
|
||||
|
@ -7,6 +7,7 @@
|
|||
*
|
||||
* Contributors:
|
||||
* Alena Laskavaia - initial API and implementation
|
||||
* IBM Corporation
|
||||
*******************************************************************************/
|
||||
package org.eclipse.cdt.codan.internal.ui.preferences;
|
||||
|
||||
|
@ -18,6 +19,7 @@ import org.eclipse.cdt.codan.core.model.Checkers;
|
|||
import org.eclipse.cdt.codan.core.model.IChecker;
|
||||
import org.eclipse.cdt.codan.core.model.IProblem;
|
||||
import org.eclipse.cdt.codan.internal.core.CheckersRegistry;
|
||||
import org.eclipse.cdt.codan.internal.ui.CodanUIMessages;
|
||||
import org.eclipse.jface.preference.BooleanFieldEditor;
|
||||
import org.eclipse.jface.preference.FieldEditor;
|
||||
import org.eclipse.jface.preference.FieldEditorPreferencePage;
|
||||
|
@ -54,11 +56,11 @@ public class LaunchModesPropertyPage extends FieldEditorPreferencePage {
|
|||
*/
|
||||
@Override
|
||||
protected void createFieldEditors() {
|
||||
addField(new BooleanFieldEditor(CheckerLaunchMode.RUN_ON_FULL_BUILD.name(), "Run on full build", getFieldEditorParent()));
|
||||
addField(new BooleanFieldEditor(CheckerLaunchMode.RUN_ON_INC_BUILD.name(), "Run on incremental build", getFieldEditorParent()));
|
||||
addField(new BooleanFieldEditor(CheckerLaunchMode.RUN_ON_DEMAND.name(), "Run on demand", getFieldEditorParent()));
|
||||
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()));
|
||||
if (runInEditor) {
|
||||
addField(new BooleanFieldEditor(CheckerLaunchMode.RUN_AS_YOU_TYPE.name(), "Run as you type", getFieldEditorParent()));
|
||||
addField(new BooleanFieldEditor(CheckerLaunchMode.RUN_AS_YOU_TYPE.name(), CodanUIMessages.LaunchModesPropertyPage_RunAsYouType, getFieldEditorParent()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2009, 2010 Alena Laskavaia
|
||||
* Copyright (c) 2009, 2011 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
|
||||
|
@ -7,6 +7,7 @@
|
|||
*
|
||||
* Contributors:
|
||||
* Alena Laskavaia - initial API and implementation
|
||||
* IBM Corporation
|
||||
*******************************************************************************/
|
||||
package org.eclipse.cdt.codan.internal.ui.preferences;
|
||||
|
||||
|
@ -225,7 +226,7 @@ public class ProblemsTreeEditor extends CheckedTreeEditor {
|
|||
toolTip = wrapText(description, wrapLen);
|
||||
toolTip += "\n\n"; //$NON-NLS-1$
|
||||
}
|
||||
toolTip += "Sample Message:";
|
||||
toolTip += CodanUIMessages.ProblemsTreeEditor_ToolTip;
|
||||
toolTip += "\n "; //$NON-NLS-1$
|
||||
toolTip += wrapText(sampleMessage, wrapLen);
|
||||
return toolTip;
|
||||
|
|
Loading…
Add table
Reference in a new issue