1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-21 21:52:10 +02:00

Bug 492304 - Fix NLS warnings

Eclipse warns if a String literal does not have a `//$NON-NLS-<n>$`
entry at the end of the line. However, for historic or formatting
reasons, many such occurrences in the CDT source have an intermediate
whitespace, such as `// $NON-NLS-<n>$`

Fix these so that the whitespace is removed between the // and $
characters.

Change-Id: Idc12398fe6e9d619af1d0b1b73fb8b6180da223c
Signed-off-by: Alex Blewitt <alex.blewitt@gmail.com>
This commit is contained in:
Alex Blewitt 2016-04-23 15:33:27 +01:00
parent b2db3a489c
commit 12904409a3
84 changed files with 317 additions and 317 deletions

View file

@ -1,5 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2008, 2015 Red Hat Inc.. and others * Copyright (c) 2008, 2016 Red Hat Inc. and others
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -42,7 +42,7 @@ public class AutotoolsNewProjectNature implements IProjectNature {
/** /**
* @since 1.3 * @since 1.3
*/ */
public static final String REMOTE_BUILDER_ID = "org.eclipse.ptp.rdt.sync.cdt.core.SyncBuilder"; // $NON-NLS-1$ public static final String REMOTE_BUILDER_ID = "org.eclipse.ptp.rdt.sync.cdt.core.SyncBuilder"; //$NON-NLS-1$
public static final String OLD_AUTOTOOLS_BUILDER_ID = "org.eclipse.linuxtools.cdt.autotools.genmakebuilder"; //$NON-NLS-1$ public static final String OLD_AUTOTOOLS_BUILDER_ID = "org.eclipse.linuxtools.cdt.autotools.genmakebuilder"; //$NON-NLS-1$
private IProject project; private IProject project;

View file

@ -1,5 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2012 Red Hat Inc. and others. * Copyright (c) 2012, 2016 Red Hat Inc. and others.
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -12,59 +12,59 @@ package org.eclipse.cdt.autotools.core;
*/ */
public class AutotoolsOptionConstants { public class AutotoolsOptionConstants {
// IAutotoolOption Names // IAutotoolOption Names
public static final String TOOL_CONFIGURE = "configure"; // $NON-NLS-1$ public static final String TOOL_CONFIGURE = "configure"; //$NON-NLS-1$
public static final String CATEGORY_GENERAL = "general"; // $NON-NLS-1$ public static final String CATEGORY_GENERAL = "general"; //$NON-NLS-1$
public static final String OPT_CONFIGDIR = "configdir"; // $NON-NLS-1$ public static final String OPT_CONFIGDIR = "configdir"; //$NON-NLS-1$
public static final String OPT_CACHE_FILE = "cache-file"; // $NON-NLS-1$ public static final String OPT_CACHE_FILE = "cache-file"; //$NON-NLS-1$
public static final String OPT_HELP = "help"; // $NON-NLS-1$ public static final String OPT_HELP = "help"; //$NON-NLS-1$
public static final String OPT_NO_CREATE = "no-create"; // $NON-NLS-1$ public static final String OPT_NO_CREATE = "no-create"; //$NON-NLS-1$
public static final String OPT_QUIET = "quiet"; // $NON-NLS-1$ public static final String OPT_QUIET = "quiet"; //$NON-NLS-1$
public static final String OPT_VERSION = "version"; // $NON-NLS-1$ public static final String OPT_VERSION = "version"; //$NON-NLS-1$
public static final String CATEGORY_PLATFORM = "platform"; // $NON-NLS-1$ public static final String CATEGORY_PLATFORM = "platform"; //$NON-NLS-1$
public static final String OPT_HOST = "host"; // $NON-NLS-1$ public static final String OPT_HOST = "host"; //$NON-NLS-1$
public static final String OPT_BUILD = "build"; // $NON-NLS-1$ public static final String OPT_BUILD = "build"; //$NON-NLS-1$
public static final String OPT_TARGET = "target"; // $NON-NLS-1$ public static final String OPT_TARGET = "target"; //$NON-NLS-1$
public static final String CATEGORY_DIRECTORIES = "directories"; // $NON-NLS-1$ public static final String CATEGORY_DIRECTORIES = "directories"; //$NON-NLS-1$
public static final String OPT_PREFIX = "prefix"; // $NON-NLS-1$ public static final String OPT_PREFIX = "prefix"; //$NON-NLS-1$
public static final String OPT_EXEC_PREFIX = "exec-prefix"; // $NON-NLS-1$ public static final String OPT_EXEC_PREFIX = "exec-prefix"; //$NON-NLS-1$
public static final String OPT_LIBDIR = "libdir"; // $NON-NLS-1$ public static final String OPT_LIBDIR = "libdir"; //$NON-NLS-1$
public static final String OPT_BINDIR = "bindir"; // $NON-NLS-1$ public static final String OPT_BINDIR = "bindir"; //$NON-NLS-1$
public static final String OPT_SBINDIR = "sbindir"; // $NON-NLS-1$ public static final String OPT_SBINDIR = "sbindir"; //$NON-NLS-1$
public static final String OPT_INCLUDEDIR = "includedir"; // $NON-NLS-1$ public static final String OPT_INCLUDEDIR = "includedir"; //$NON-NLS-1$
public static final String OPT_DATADIR = "datadir"; // $NON-NLS-1$ public static final String OPT_DATADIR = "datadir"; //$NON-NLS-1$
public static final String OPT_SYSCONFDIR = "sysconfdir"; // $NON-NLS-1$ public static final String OPT_SYSCONFDIR = "sysconfdir"; //$NON-NLS-1$
public static final String OPT_INFODIR = "infodir"; // $NON-NLS-1$ public static final String OPT_INFODIR = "infodir"; //$NON-NLS-1$
public static final String OPT_MANDIR = "mandir"; // $NON-NLS-1$ public static final String OPT_MANDIR = "mandir"; //$NON-NLS-1$
public static final String OPT_SRCDIR = "srcdir"; // $NON-NLS-1$ public static final String OPT_SRCDIR = "srcdir"; //$NON-NLS-1$
public static final String OPT_LOCALSTATEDIR = "localstatedir"; // $NON-NLS-1$ public static final String OPT_LOCALSTATEDIR = "localstatedir"; //$NON-NLS-1$
public static final String OPT_SHAREDSTATEDIR = "sharedstatedir"; // $NON-NLS-1$ public static final String OPT_SHAREDSTATEDIR = "sharedstatedir"; //$NON-NLS-1$
public static final String OPT_LIBEXECDIR = "libexecdir"; // $NON-NLS-1$ public static final String OPT_LIBEXECDIR = "libexecdir"; //$NON-NLS-1$
public static final String OPT_OLDINCLUDEDIR = "oldincludedir"; // $NON-NLS-1$ public static final String OPT_OLDINCLUDEDIR = "oldincludedir"; //$NON-NLS-1$
public static final String CATEGORY_FILENAMES = "filenames"; // $NON-NLS-1$ public static final String CATEGORY_FILENAMES = "filenames"; //$NON-NLS-1$
public static final String OPT_PROGRAM_PREFIX = "program-prefix"; // $NON-NLS-1$ public static final String OPT_PROGRAM_PREFIX = "program-prefix"; //$NON-NLS-1$
public static final String OPT_PROGRAM_SUFFIX = "program-suffix"; // $NON-NLS-1$ public static final String OPT_PROGRAM_SUFFIX = "program-suffix"; //$NON-NLS-1$
public static final String OPT_PROGRAM_TRANSFORM_NAME = "program-transform-name"; // $NON-NLS-1$ public static final String OPT_PROGRAM_TRANSFORM_NAME = "program-transform-name"; //$NON-NLS-1$
public static final String CATEGORY_FEATURES = "features"; // $NON-NLS-1$ public static final String CATEGORY_FEATURES = "features"; //$NON-NLS-1$
public static final String OPT_ENABLE_MAINTAINER_MODE = "enable-maintainer-mode"; // $NON-NLS-1$ public static final String OPT_ENABLE_MAINTAINER_MODE = "enable-maintainer-mode"; //$NON-NLS-1$
public static final String FLAG_CFLAGS = "CFLAGS"; // $NON-NLS-1$ public static final String FLAG_CFLAGS = "CFLAGS"; //$NON-NLS-1$
/** /**
* @since 1.4 * @since 1.4
*/ */
public static final String FLAG_CFLAGS_FLAGS = "CFLAGS|CXXFLAGS"; // $NON-NLS-1$ public static final String FLAG_CFLAGS_FLAGS = "CFLAGS|CXXFLAGS"; //$NON-NLS-1$
public static final String OPT_CFLAGS_DEBUG = "cflags-debug"; // $NON-NLS-1$ public static final String OPT_CFLAGS_DEBUG = "cflags-debug"; //$NON-NLS-1$
public static final String OPT_CFLAGS_GPROF = "cflags-gprof"; // $NON-NLS-1$ public static final String OPT_CFLAGS_GPROF = "cflags-gprof"; //$NON-NLS-1$
public static final String OPT_CFLAGS_GCOV = "cflags-gcov"; // $NON-NLS-1$ public static final String OPT_CFLAGS_GCOV = "cflags-gcov"; //$NON-NLS-1$
public static final String OPT_USER = "user"; // $NON-NLS-1$ public static final String OPT_USER = "user"; //$NON-NLS-1$
public static final String TOOL_AUTOGEN = "autogen"; // $NON-NLS-1$ public static final String TOOL_AUTOGEN = "autogen"; //$NON-NLS-1$
public static final String CATEGORY_OPTIONS = "options"; // $NON-NLS-1$ public static final String CATEGORY_OPTIONS = "options"; //$NON-NLS-1$
public static final String OPT_AUTOGENOPTS = "autogenOpts"; // $NON-NLS-1$ public static final String OPT_AUTOGENOPTS = "autogenOpts"; //$NON-NLS-1$
/** /**
* @since 2.0 * @since 2.0
*/ */
public static final String CATEGORY_ENVVAR = "cat_envvar"; // $NON-NLS-1$ public static final String CATEGORY_ENVVAR = "cat_envvar"; //$NON-NLS-1$
/** /**
* @since 2.0 * @since 2.0
*/ */
public final static String OPT_ENVVAR = "env_vars"; // $NON-NLS-1$ public final static String OPT_ENVVAR = "env_vars"; //$NON-NLS-1$
} }

View file

@ -1,5 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2009, 2016 Red Hat Inc.and others. * Copyright (c) 2009, 2016 Red Hat Inc. and others.
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -777,7 +777,7 @@ public class AutotoolsNewMakeGenerator extends MarkerGenerator {
protected IPath getConfigurePath(List<String> envVars, List<String> cmdParms) { protected IPath getConfigurePath(List<String> envVars, List<String> cmdParms) {
IPath configPath; IPath configPath;
IConfigureOption configOption = toolsCfg.getOption(CONFIGURE_TOOL_ID); IConfigureOption configOption = toolsCfg.getOption(CONFIGURE_TOOL_ID);
String command = "configure"; // $NON-NLS-1$ String command = "configure"; //$NON-NLS-1$
if (configOption != null) if (configOption != null)
command = stripEnvVars(configOption.getValue().trim(), envVars); command = stripEnvVars(configOption.getValue().trim(), envVars);
@ -809,7 +809,7 @@ public class AutotoolsNewMakeGenerator extends MarkerGenerator {
protected IPath getAutogenPath(List<String> envVars, List<String> cmdParms) { protected IPath getAutogenPath(List<String> envVars, List<String> cmdParms) {
IPath autogenPath; IPath autogenPath;
IConfigureOption autogenOption = toolsCfg.getOption(AUTOGEN_TOOL_ID); IConfigureOption autogenOption = toolsCfg.getOption(AUTOGEN_TOOL_ID);
String command = "autogen.sh"; // $NON-NLS-1$ String command = "autogen.sh"; //$NON-NLS-1$
if (autogenOption != null) if (autogenOption != null)
command = stripEnvVars(autogenOption.getValue().trim(), envVars); command = stripEnvVars(autogenOption.getValue().trim(), envVars);
@ -1219,14 +1219,14 @@ public class AutotoolsNewMakeGenerator extends MarkerGenerator {
// For Windows/Mac, check for PWD environment variable being passed. // For Windows/Mac, check for PWD environment variable being passed.
// Remove it for now as it is causing errors in configuration. // Remove it for now as it is causing errors in configuration.
// Fix for bug #343879 // Fix for bug #343879
if (!removePWD || !variables[i].getName().equals("PWD")) { // $NON-NLS-1$ if (!removePWD || !variables[i].getName().equals("PWD")) { //$NON-NLS-1$
String value = variables[i].getValue(); String value = variables[i].getValue();
// The following is a work-around for bug #407580. Configure doesn't recognize // The following is a work-around for bug #407580. Configure doesn't recognize
// a directory with a trailing separator at the end is equivalent to the same // a directory with a trailing separator at the end is equivalent to the same
// directory without that trailing separator. This problem can cause // directory without that trailing separator. This problem can cause
// configure to try and link a file to itself (e.g. projects with a GnuMakefile) and // configure to try and link a file to itself (e.g. projects with a GnuMakefile) and
// obliterate the contents. Thus, we remove the trailing separator to be safe. // obliterate the contents. Thus, we remove the trailing separator to be safe.
if (variables[i].getName().equals("PWD")) { // $NON-NLS-1$ if (variables[i].getName().equals("PWD")) { //$NON-NLS-1$
if (value.charAt(value.length()-1) == IPath.SEPARATOR) if (value.charAt(value.length()-1) == IPath.SEPARATOR)
value = value.substring(0, value.length() - 1); value = value.substring(0, value.length() - 1);
} }

View file

@ -1,5 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2007, 2012 Red Hat Inc. * Copyright (c) 2007, 2016 Red Hat Inc. and others.
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -16,41 +16,41 @@ import org.eclipse.core.runtime.QualifiedName;
public class AutotoolsPropertyConstants { public class AutotoolsPropertyConstants {
static final String PREFIX = AutotoolsPlugin.getUniqueIdentifier() + "."; // $NON-NLS-1$ static final String PREFIX = AutotoolsPlugin.getUniqueIdentifier() + "."; //$NON-NLS-1$
static final String PREFIX_COMPAT = "org.eclipse.linuxtools.cdt.autotools."; // $NON-NLS-1$ static final String PREFIX_COMPAT = "org.eclipse.linuxtools.cdt.autotools."; //$NON-NLS-1$
public static final String AUTOMAKE_VERSION_STRING = "AutoconfEditorAutomakeVersion"; // $NON-NLS-1$ public static final String AUTOMAKE_VERSION_STRING = "AutoconfEditorAutomakeVersion"; //$NON-NLS-1$
public static final QualifiedName AUTOMAKE_VERSION = new QualifiedName(PREFIX, AUTOMAKE_VERSION_STRING); public static final QualifiedName AUTOMAKE_VERSION = new QualifiedName(PREFIX, AUTOMAKE_VERSION_STRING);
public static final QualifiedName AUTOMAKE_VERSION_COMPAT = new QualifiedName(PREFIX_COMPAT, AUTOMAKE_VERSION_STRING); public static final QualifiedName AUTOMAKE_VERSION_COMPAT = new QualifiedName(PREFIX_COMPAT, AUTOMAKE_VERSION_STRING);
public static final String AUTOCONF_VERSION_STRING = "AutoconfEditorAutoconfVersion"; // $NON-NLS-1$ public static final String AUTOCONF_VERSION_STRING = "AutoconfEditorAutoconfVersion"; //$NON-NLS-1$
public static final QualifiedName AUTOCONF_VERSION = new QualifiedName(PREFIX, AUTOCONF_VERSION_STRING); public static final QualifiedName AUTOCONF_VERSION = new QualifiedName(PREFIX, AUTOCONF_VERSION_STRING);
public static final QualifiedName AUTOCONF_VERSION_COMPAT = new QualifiedName(PREFIX_COMPAT, AUTOCONF_VERSION_STRING); public static final QualifiedName AUTOCONF_VERSION_COMPAT = new QualifiedName(PREFIX_COMPAT, AUTOCONF_VERSION_STRING);
public static final String AUTOCONF_MACRO_VERSIONING = "AutoconfEditorMacroVersioning"; // $NON-NLS-1$ public static final String AUTOCONF_MACRO_VERSIONING = "AutoconfEditorMacroVersioning"; //$NON-NLS-1$
public static final QualifiedName AUTOCONF_TOOL = new QualifiedName(PREFIX, "AutoconfToolPath"); // $NON-NLS-1$ public static final QualifiedName AUTOCONF_TOOL = new QualifiedName(PREFIX, "AutoconfToolPath"); //$NON-NLS-1$
public static final QualifiedName AUTOMAKE_TOOL = new QualifiedName(PREFIX, "AutomakeToolPath"); // $NON-NLS-1$ public static final QualifiedName AUTOMAKE_TOOL = new QualifiedName(PREFIX, "AutomakeToolPath"); //$NON-NLS-1$
public static final QualifiedName ACLOCAL_TOOL = new QualifiedName(PREFIX, "AclocalToolPath"); // $NON-NLS-1$ public static final QualifiedName ACLOCAL_TOOL = new QualifiedName(PREFIX, "AclocalToolPath"); //$NON-NLS-1$
public static final QualifiedName AUTOHEADER_TOOL = new QualifiedName(PREFIX, "AutoheaderToolPath"); // $NON-NLS-1$ public static final QualifiedName AUTOHEADER_TOOL = new QualifiedName(PREFIX, "AutoheaderToolPath"); //$NON-NLS-1$
public static final QualifiedName AUTORECONF_TOOL = new QualifiedName(PREFIX, "AutoreconfToolPath"); // $NON-NLS-1$ public static final QualifiedName AUTORECONF_TOOL = new QualifiedName(PREFIX, "AutoreconfToolPath"); //$NON-NLS-1$
public static final QualifiedName LIBTOOLIZE_TOOL = new QualifiedName(PREFIX, "LibtoolizePath"); // $NON-NLS-1$ public static final QualifiedName LIBTOOLIZE_TOOL = new QualifiedName(PREFIX, "LibtoolizePath"); //$NON-NLS-1$
public static final QualifiedName CLEAN_DELETE = new QualifiedName(PREFIX, "CleanDelete"); // $NON-NLS-1$ public static final QualifiedName CLEAN_DELETE = new QualifiedName(PREFIX, "CleanDelete"); //$NON-NLS-1$
public static final QualifiedName CLEAN_MAKE_TARGET = new QualifiedName(PREFIX, "CleanMakeTarget"); // $NON-NLS-1$ public static final QualifiedName CLEAN_MAKE_TARGET = new QualifiedName(PREFIX, "CleanMakeTarget"); //$NON-NLS-1$
public static final QualifiedName SCANNER_USE_MAKE_W = new QualifiedName(PREFIX, "ScannerUseMakeW"); public static final QualifiedName SCANNER_USE_MAKE_W = new QualifiedName(PREFIX, "ScannerUseMakeW");
public static final QualifiedName AUTO_BUILD_NAME = new QualifiedName(PREFIX, "AutoBuildName"); // $NON-NLS-1$ public static final QualifiedName AUTO_BUILD_NAME = new QualifiedName(PREFIX, "AutoBuildName"); //$NON-NLS-1$
public static final QualifiedName OPEN_INCLUDE = new QualifiedName(PREFIX, "IncludeResourceMapping"); // $NON-NLS-1$ public static final QualifiedName OPEN_INCLUDE = new QualifiedName(PREFIX, "IncludeResourceMapping"); //$NON-NLS-1$
public static final QualifiedName OPEN_INCLUDE_P = new QualifiedName(PREFIX, "PersistentIncludeResourceMapping"); //$NON-NLS-1$ public static final QualifiedName OPEN_INCLUDE_P = new QualifiedName(PREFIX, "PersistentIncludeResourceMapping"); //$NON-NLS-1$
public static final QualifiedName SCANNER_INFO_DIRTY = new QualifiedName(PREFIX, "ScannerInfoDirty"); // $NON-NLSp-1$ public static final QualifiedName SCANNER_INFO_DIRTY = new QualifiedName(PREFIX, "ScannerInfoDirty"); // $NON-NLSp-1$
public static final String[] fACVersions = {"2.13", "2.59", "2.61", "2.68"}; // $NON-NLS-1$ public static final String[] fACVersions = {"2.13", "2.59", "2.61", "2.68"}; //$NON-NLS-1$
public static final String AC_VERSION_2_13 = fACVersions[0]; public static final String AC_VERSION_2_13 = fACVersions[0];
public static final String AC_VERSION_2_59 = fACVersions[1]; public static final String AC_VERSION_2_59 = fACVersions[1];
public static final String AC_VERSION_2_61 = fACVersions[2]; public static final String AC_VERSION_2_61 = fACVersions[2];
public static final String AC_VERSION_2_68 = fACVersions[3]; public static final String AC_VERSION_2_68 = fACVersions[3];
public static final String LATEST_AC_VERSION = fACVersions[fACVersions.length - 1]; public static final String LATEST_AC_VERSION = fACVersions[fACVersions.length - 1];
public static final String[] fAMVersions = {"1.4-p6", "1.9.5", "1.9.6", "1.11.1"}; // $NON-NLS-1$ public static final String[] fAMVersions = {"1.4-p6", "1.9.5", "1.9.6", "1.11.1"}; //$NON-NLS-1$
public static final String LATEST_AM_VERSION = fAMVersions[fAMVersions.length - 1]; public static final String LATEST_AM_VERSION = fAMVersions[fAMVersions.length - 1];
public static final String CLEAN_MAKE_TARGET_DEFAULT = "distclean"; // $NON-NLS-1$ public static final String CLEAN_MAKE_TARGET_DEFAULT = "distclean"; //$NON-NLS-1$
public static final String TRUE = "true"; // $NON-NLS-1$ public static final String TRUE = "true"; //$NON-NLS-1$
public static final String FALSE = "false"; // $NON-NLS-1$ public static final String FALSE = "false"; //$NON-NLS-1$
} }

View file

@ -1,5 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2009, 2016 Red Hat Inc. * Copyright (c) 2009, 2016 Red Hat Inc. and others.
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -73,9 +73,9 @@ public class AutotoolsConfiguration implements IAConfiguration {
new Option(AutotoolsOptionConstants.TOOL_CONFIGURE, IConfigureOption.TOOL), new Option(AutotoolsOptionConstants.TOOL_CONFIGURE, IConfigureOption.TOOL),
new Option(AutotoolsOptionConstants.CATEGORY_GENERAL, IConfigureOption.CATEGORY), new Option(AutotoolsOptionConstants.CATEGORY_GENERAL, IConfigureOption.CATEGORY),
new Option(AutotoolsOptionConstants.OPT_CONFIGDIR, IConfigureOption.INTERNAL), new Option(AutotoolsOptionConstants.OPT_CONFIGDIR, IConfigureOption.INTERNAL),
new Option(AutotoolsOptionConstants.OPT_CACHE_FILE, "cache_file", IConfigureOption.STRING), // $NON-NLS-1$ new Option(AutotoolsOptionConstants.OPT_CACHE_FILE, "cache_file", IConfigureOption.STRING), //$NON-NLS-1$
new Option(AutotoolsOptionConstants.OPT_HELP, IConfigureOption.BIN), new Option(AutotoolsOptionConstants.OPT_HELP, IConfigureOption.BIN),
new Option(AutotoolsOptionConstants.OPT_NO_CREATE, "no_create", IConfigureOption.BIN), // $NON-NLS-1$ new Option(AutotoolsOptionConstants.OPT_NO_CREATE, "no_create", IConfigureOption.BIN), //$NON-NLS-1$
new Option(AutotoolsOptionConstants.OPT_QUIET, IConfigureOption.BIN), new Option(AutotoolsOptionConstants.OPT_QUIET, IConfigureOption.BIN),
new Option(AutotoolsOptionConstants.OPT_VERSION, IConfigureOption.BIN), new Option(AutotoolsOptionConstants.OPT_VERSION, IConfigureOption.BIN),
new Option(AutotoolsOptionConstants.CATEGORY_PLATFORM, IConfigureOption.CATEGORY), new Option(AutotoolsOptionConstants.CATEGORY_PLATFORM, IConfigureOption.CATEGORY),
@ -84,7 +84,7 @@ public class AutotoolsConfiguration implements IAConfiguration {
new Option(AutotoolsOptionConstants.OPT_TARGET, IConfigureOption.STRING), new Option(AutotoolsOptionConstants.OPT_TARGET, IConfigureOption.STRING),
new Option(AutotoolsOptionConstants.CATEGORY_DIRECTORIES, IConfigureOption.CATEGORY), new Option(AutotoolsOptionConstants.CATEGORY_DIRECTORIES, IConfigureOption.CATEGORY),
new Option(AutotoolsOptionConstants.OPT_PREFIX, IConfigureOption.STRING), new Option(AutotoolsOptionConstants.OPT_PREFIX, IConfigureOption.STRING),
new Option(AutotoolsOptionConstants.OPT_EXEC_PREFIX, "exec_prefix", IConfigureOption.STRING), // $NON-NLS-1$ new Option(AutotoolsOptionConstants.OPT_EXEC_PREFIX, "exec_prefix", IConfigureOption.STRING), //$NON-NLS-1$
new Option(AutotoolsOptionConstants.OPT_LIBDIR, IConfigureOption.STRING), new Option(AutotoolsOptionConstants.OPT_LIBDIR, IConfigureOption.STRING),
new Option(AutotoolsOptionConstants.OPT_BINDIR, IConfigureOption.STRING), new Option(AutotoolsOptionConstants.OPT_BINDIR, IConfigureOption.STRING),
new Option(AutotoolsOptionConstants.OPT_SBINDIR, IConfigureOption.STRING), new Option(AutotoolsOptionConstants.OPT_SBINDIR, IConfigureOption.STRING),
@ -99,19 +99,19 @@ public class AutotoolsConfiguration implements IAConfiguration {
new Option(AutotoolsOptionConstants.OPT_LIBEXECDIR, IConfigureOption.STRING), new Option(AutotoolsOptionConstants.OPT_LIBEXECDIR, IConfigureOption.STRING),
new Option(AutotoolsOptionConstants.OPT_OLDINCLUDEDIR, IConfigureOption.STRING), new Option(AutotoolsOptionConstants.OPT_OLDINCLUDEDIR, IConfigureOption.STRING),
new Option(AutotoolsOptionConstants.CATEGORY_FILENAMES, IConfigureOption.CATEGORY), new Option(AutotoolsOptionConstants.CATEGORY_FILENAMES, IConfigureOption.CATEGORY),
new Option(AutotoolsOptionConstants.OPT_PROGRAM_PREFIX, "program_prefix", IConfigureOption.STRING), // $NON-NLS-1$ new Option(AutotoolsOptionConstants.OPT_PROGRAM_PREFIX, "program_prefix", IConfigureOption.STRING), //$NON-NLS-1$
new Option(AutotoolsOptionConstants.OPT_PROGRAM_SUFFIX, "program_suffix", IConfigureOption.STRING), // $NON-NLS-1$ new Option(AutotoolsOptionConstants.OPT_PROGRAM_SUFFIX, "program_suffix", IConfigureOption.STRING), //$NON-NLS-1$
new Option(AutotoolsOptionConstants.OPT_PROGRAM_TRANSFORM_NAME, "program_transform_name", IConfigureOption.STRING), // $NON-NLS-1$ new Option(AutotoolsOptionConstants.OPT_PROGRAM_TRANSFORM_NAME, "program_transform_name", IConfigureOption.STRING), //$NON-NLS-1$
new Option(AutotoolsOptionConstants.CATEGORY_ENVVAR, IConfigureOption.CATEGORY), new Option(AutotoolsOptionConstants.CATEGORY_ENVVAR, IConfigureOption.CATEGORY),
new Option(AutotoolsOptionConstants.OPT_ENVVAR, IConfigureOption.ENVVAR), new Option(AutotoolsOptionConstants.OPT_ENVVAR, IConfigureOption.ENVVAR),
new Option(AutotoolsOptionConstants.CATEGORY_FEATURES, IConfigureOption.CATEGORY), new Option(AutotoolsOptionConstants.CATEGORY_FEATURES, IConfigureOption.CATEGORY),
new Option(AutotoolsOptionConstants.OPT_ENABLE_MAINTAINER_MODE, "enable_maintainer_mode", IConfigureOption.BIN), // $NON-NLS-1$ new Option(AutotoolsOptionConstants.OPT_ENABLE_MAINTAINER_MODE, "enable_maintainer_mode", IConfigureOption.BIN), //$NON-NLS-1$
new Option(AutotoolsOptionConstants.FLAG_CFLAGS, "cflags", AutotoolsOptionConstants.FLAG_CFLAGS_FLAGS, IConfigureOption.FLAG), // $NON-NLS-1$ new Option(AutotoolsOptionConstants.FLAG_CFLAGS, "cflags", AutotoolsOptionConstants.FLAG_CFLAGS_FLAGS, IConfigureOption.FLAG), //$NON-NLS-1$
new Option(AutotoolsOptionConstants.OPT_CFLAGS_DEBUG, "cflags_debug", IConfigureOption.FLAGVALUE), // $NON-NLS-1$ // $NON-NLS-2$ new Option(AutotoolsOptionConstants.OPT_CFLAGS_DEBUG, "cflags_debug", IConfigureOption.FLAGVALUE), //$NON-NLS-1$ //$NON-NLS-2$
new Option(AutotoolsOptionConstants.OPT_CFLAGS_GPROF, "cflags_gprof", IConfigureOption.FLAGVALUE), // $NON-NLS-1$ // $NON-NLS-2$ new Option(AutotoolsOptionConstants.OPT_CFLAGS_GPROF, "cflags_gprof", IConfigureOption.FLAGVALUE), //$NON-NLS-1$ //$NON-NLS-2$
new Option(AutotoolsOptionConstants.OPT_CFLAGS_GCOV, "cflags_gcov", IConfigureOption.FLAGVALUE), // $NON-NLS-1$ // $NON-NLS-2$ new Option(AutotoolsOptionConstants.OPT_CFLAGS_GCOV, "cflags_gcov", IConfigureOption.FLAGVALUE), //$NON-NLS-1$ //$NON-NLS-2$
new Option(AutotoolsOptionConstants.OPT_USER, IConfigureOption.MULTIARG), new Option(AutotoolsOptionConstants.OPT_USER, IConfigureOption.MULTIARG),
new Option(AutotoolsOptionConstants.TOOL_AUTOGEN, "autogen", "autogen.sh", IConfigureOption.TOOL), // $NON-NLS-1$ new Option(AutotoolsOptionConstants.TOOL_AUTOGEN, "autogen", "autogen.sh", IConfigureOption.TOOL), //$NON-NLS-1$
new Option(AutotoolsOptionConstants.CATEGORY_OPTIONS, IConfigureOption.CATEGORY), new Option(AutotoolsOptionConstants.CATEGORY_OPTIONS, IConfigureOption.CATEGORY),
new Option(AutotoolsOptionConstants.OPT_AUTOGENOPTS, IConfigureOption.MULTIARG), new Option(AutotoolsOptionConstants.OPT_AUTOGENOPTS, IConfigureOption.MULTIARG),
}; };

View file

@ -1,5 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2009, 2015 Red Hat Inc. * Copyright (c) 2009, 2016 Red Hat Inc. and others.
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -202,15 +202,15 @@ public class AutotoolsConfigurationManager implements IResourceChangeListener {
Document d = db.parse(dirFile); Document d = db.parse(dirFile);
Element e = d.getDocumentElement(); Element e = d.getDocumentElement();
// Get the stored configuration data // Get the stored configuration data
NodeList cfgs = e.getElementsByTagName("configuration"); // $NON-NLS-1$ NodeList cfgs = e.getElementsByTagName("configuration"); //$NON-NLS-1$
for (int x = 0; x < cfgs.getLength(); ++x) { for (int x = 0; x < cfgs.getLength(); ++x) {
Node n = cfgs.item(x); Node n = cfgs.item(x);
NamedNodeMap attrs = n.getAttributes(); NamedNodeMap attrs = n.getAttributes();
// Originally we used the configuration name, but now we use // Originally we used the configuration name, but now we use
// the ConfigurationDescription id which is unique. Check for // the ConfigurationDescription id which is unique. Check for
// id first, but fall back to name for older .autotools files. // id first, but fall back to name for older .autotools files.
Node nameNode = attrs.getNamedItem("name"); // $NON-NLS-1$ Node nameNode = attrs.getNamedItem("name"); //$NON-NLS-1$
Node cfgIdNode = attrs.getNamedItem("id"); // $NON-NLS-1$ Node cfgIdNode = attrs.getNamedItem("id"); //$NON-NLS-1$
String cfgId = null; String cfgId = null;
if (cfgIdNode != null) if (cfgIdNode != null)
cfgId = cfgIdNode.getNodeValue(); cfgId = cfgIdNode.getNodeValue();
@ -227,16 +227,16 @@ public class AutotoolsConfigurationManager implements IResourceChangeListener {
NodeList l = n.getChildNodes(); NodeList l = n.getChildNodes();
for (int y = 0; y < l.getLength(); ++y) { for (int y = 0; y < l.getLength(); ++y) {
Node child = l.item(y); Node child = l.item(y);
if (child.getNodeName().equals("option")) { // $NON-NLS-1$ if (child.getNodeName().equals("option")) { //$NON-NLS-1$
NamedNodeMap optionAttrs = child.getAttributes(); NamedNodeMap optionAttrs = child.getAttributes();
Node id = optionAttrs.getNamedItem("id"); // $NON-NLS-1$ Node id = optionAttrs.getNamedItem("id"); //$NON-NLS-1$
Node value = optionAttrs.getNamedItem("value"); // $NON-NLS-1$ Node value = optionAttrs.getNamedItem("value"); //$NON-NLS-1$
if (id != null && value != null) if (id != null && value != null)
cfg.setOption(id.getNodeValue(), value.getNodeValue()); cfg.setOption(id.getNodeValue(), value.getNodeValue());
} else if (child.getNodeName().equals("flag")) { //$NON-NLS-1$ } else if (child.getNodeName().equals("flag")) { //$NON-NLS-1$
// read in flag values // read in flag values
NamedNodeMap optionAttrs = child.getAttributes(); NamedNodeMap optionAttrs = child.getAttributes();
Node id = optionAttrs.getNamedItem("id"); // $NON-NLS-1$ Node id = optionAttrs.getNamedItem("id"); //$NON-NLS-1$
String idValue = id.getNodeValue(); String idValue = id.getNodeValue();
IConfigureOption opt = cfg.getOption(idValue); IConfigureOption opt = cfg.getOption(idValue);
if (opt instanceof FlagConfigureOption) { if (opt instanceof FlagConfigureOption) {
@ -245,8 +245,8 @@ public class AutotoolsConfigurationManager implements IResourceChangeListener {
Node flagChild = l2.item(z); Node flagChild = l2.item(z);
if (flagChild.getNodeName().equals("flagvalue")) { //$NON-NLS-1$ if (flagChild.getNodeName().equals("flagvalue")) { //$NON-NLS-1$
NamedNodeMap optionAttrs2 = flagChild.getAttributes(); NamedNodeMap optionAttrs2 = flagChild.getAttributes();
Node id2 = optionAttrs2.getNamedItem("id"); // $NON-NLS-1$ Node id2 = optionAttrs2.getNamedItem("id"); //$NON-NLS-1$
Node value = optionAttrs2.getNamedItem("value"); // $NON-NLS-1$ Node value = optionAttrs2.getNamedItem("value"); //$NON-NLS-1$
cfg.setOption(id2.getNodeValue(), value.getNodeValue()); cfg.setOption(id2.getNodeValue(), value.getNodeValue());
} }
} }
@ -347,7 +347,7 @@ public class AutotoolsConfigurationManager implements IResourceChangeListener {
ITool tool = tools[j]; ITool tool = tools[j];
if (tool.getName().equals("configure")) { //$NON-NLS-1$ if (tool.getName().equals("configure")) { //$NON-NLS-1$
IOption option = IOption option =
tool.getOptionBySuperClassId("org.eclipse.linuxtools.cdt.autotools.core.option.configure.name"); // $NON-NLS-1$ tool.getOptionBySuperClassId("org.eclipse.linuxtools.cdt.autotools.core.option.configure.name"); //$NON-NLS-1$
IHoldsOptions h = tool; IHoldsOptions h = tool;
try { try {
IOption optionToSet = h.getOptionToSet(option, false); IOption optionToSet = h.getOptionToSet(option, false);
@ -379,7 +379,7 @@ public class AutotoolsConfigurationManager implements IResourceChangeListener {
try (PrintWriter p = new PrintWriter(new BufferedWriter(new FileWriter(f)))) { try (PrintWriter p = new PrintWriter(new BufferedWriter(new FileWriter(f)))) {
Map<String, IAConfiguration> cfgs = configs.get(projectName); Map<String, IAConfiguration> cfgs = configs.get(projectName);
p.println("<?xml version=\"1.0\" encoding=\"UTF-8\"?>"); //$NON-NLS-1$ p.println("<?xml version=\"1.0\" encoding=\"UTF-8\"?>"); //$NON-NLS-1$
p.println("<configurations>"); // $NON-NLS-1$ p.println("<configurations>"); //$NON-NLS-1$
Option[] optionList = AutotoolsConfiguration.getOptionList(); Option[] optionList = AutotoolsConfiguration.getOptionList();
// Before saving, force any cloning to occur via the option // Before saving, force any cloning to occur via the option
// value handler. // value handler.
@ -409,12 +409,12 @@ public class AutotoolsConfigurationManager implements IResourceChangeListener {
String childName = children.get(k); String childName = children.get(k);
IConfigureOption childopt = cfg.getOption(childName); IConfigureOption childopt = cfg.getOption(childName);
p.println("<flagvalue id=\"" + childopt.getName() + "\" value=\"" //$NON-NLS-1$ //$NON-NLS-2$ p.println("<flagvalue id=\"" + childopt.getName() + "\" value=\"" //$NON-NLS-1$ //$NON-NLS-2$
+ xmlEscape(childopt.getValue()) + "\"/>"); // $NON-NLS-3$ + xmlEscape(childopt.getValue()) + "\"/>"); //$NON-NLS-3$
} }
p.println("</flag>"); //$NON-NLS-1$ p.println("</flag>"); //$NON-NLS-1$
} else if (!opt.isCategory() && !opt.isFlagValue()) } else if (!opt.isCategory() && !opt.isFlagValue())
p.println("<option id=\"" + option.getName() + "\" value=\"" + xmlEscape(opt.getValue()) //$NON-NLS-1$ //$NON-NLS-2$ p.println("<option id=\"" + option.getName() + "\" value=\"" + xmlEscape(opt.getValue()) //$NON-NLS-1$ //$NON-NLS-2$
+ "\"/>"); // $NON-NLS-3$ + "\"/>"); //$NON-NLS-3$
} }
p.println("</configuration>"); //$NON-NLS-1$ p.println("</configuration>"); //$NON-NLS-1$
// Sync name field as this configuration is now // Sync name field as this configuration is now
@ -453,7 +453,7 @@ public class AutotoolsConfigurationManager implements IResourceChangeListener {
if (cfgs == null) if (cfgs == null)
return; return;
p.println("<?xml version=\"1.0\" encoding=\"UTF-8\"?>"); //$NON-NLS-1$ p.println("<?xml version=\"1.0\" encoding=\"UTF-8\"?>"); //$NON-NLS-1$
p.println("<configurations>"); // $NON-NLS-1$ p.println("<configurations>"); //$NON-NLS-1$
Option[] optionList = AutotoolsConfiguration.getOptionList(); Option[] optionList = AutotoolsConfiguration.getOptionList();
HashSet<String> savedIds = new HashSet<>(); HashSet<String> savedIds = new HashSet<>();
setSyncing(true); setSyncing(true);
@ -470,7 +470,7 @@ public class AutotoolsConfigurationManager implements IResourceChangeListener {
Option option = optionList[j]; Option option = optionList[j];
IConfigureOption opt = cfg.getOption(option.getName()); IConfigureOption opt = cfg.getOption(option.getName());
if (!opt.isCategory()) if (!opt.isCategory())
p.println("<option id=\"" + option.getName() + "\" value=\"" + opt.getValue() + "\"/>"); //$NON-NLS-1$ //$NON-NLS-2$ // $NON-NLS-3$ p.println("<option id=\"" + option.getName() + "\" value=\"" + opt.getValue() + "\"/>"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
} }
p.println("</configuration>"); //$NON-NLS-1$ p.println("</configuration>"); //$NON-NLS-1$
syncNameField(cfgd); syncNameField(cfgd);
@ -489,7 +489,7 @@ public class AutotoolsConfigurationManager implements IResourceChangeListener {
Option option = optionList[j]; Option option = optionList[j];
IConfigureOption opt = cfg.getOption(option.getName()); IConfigureOption opt = cfg.getOption(option.getName());
if (!opt.isCategory()) if (!opt.isCategory())
p.println("<option id=\"" + option.getName() + "\" value=\"" + opt.getValue() + "\"/>"); //$NON-NLS-1$ //$NON-NLS-2$ // $NON-NLS-3$ p.println("<option id=\"" + option.getName() + "\" value=\"" + opt.getValue() + "\"/>"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
} }
p.println("</configuration>"); //$NON-NLS-1$ p.println("</configuration>"); //$NON-NLS-1$
} }

View file

@ -1,5 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2007, 2016 Red Hat Inc.. * Copyright (c) 2007, 2016 Red Hat Inc. and others.
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -68,8 +68,8 @@ public class AutotoolsOptionValueHandler extends ManagedOptionValueHandler
// ignore // ignore
} }
if (autoName == null || autoName.equals(AutotoolsPropertyConstants.TRUE)) { if (autoName == null || autoName.equals(AutotoolsPropertyConstants.TRUE)) {
autoNameTemplate = "${workspace_loc:/" + project.getName() + // $NON-NLS-1$ autoNameTemplate = "${workspace_loc:/" + project.getName() + //$NON-NLS-1$
"}/build-" + fixName(configuration.getName()); // $NON-NLS-1$ "}/build-" + fixName(configuration.getName()); //$NON-NLS-1$
IBuilder cfgBuilder = configuration.getEditableBuilder(); IBuilder cfgBuilder = configuration.getEditableBuilder();
cfgBuilder.setBuildPath(autoNameTemplate); cfgBuilder.setBuildPath(autoNameTemplate);
} }

View file

@ -1,5 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2009, 2015 Red Hat Inc. * Copyright (c) 2009, 2016 Red Hat Inc. and others.
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -37,7 +37,7 @@ public class BinConfigureOption extends AbstractConfigurationOption {
if (isParmSet()) if (isParmSet())
return getParameterName(); return getParameterName();
else else
return ""; // $NON-NLS-1$ return ""; //$NON-NLS-1$
} }
@Override @Override
@ -48,7 +48,7 @@ public class BinConfigureOption extends AbstractConfigurationOption {
@Override @Override
public void setValue(String value) { public void setValue(String value) {
boolean oldValue = this.value; boolean oldValue = this.value;
if (value.equals("true")) // $NON-NLS-1$ if (value.equals("true")) //$NON-NLS-1$
this.value = true; this.value = true;
else else
this.value = false; this.value = false;

View file

@ -1,5 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2009, 2015 Red Hat Inc. * Copyright (c) 2009, 2016 Red Hat Inc. and others.
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -51,7 +51,7 @@ public class ConfigureTool extends AbstractConfigurationOption {
@Override @Override
public String getParameter() { public String getParameter() {
return ""; // $NON-NLS-1$ return ""; //$NON-NLS-1$
} }
@Override @Override

View file

@ -1,5 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2009, 2015 Red Hat Inc. * Copyright (c) 2009, 2016 Red Hat Inc. and others.
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -16,12 +16,12 @@ public class InternalConfigureOption extends AbstractConfigurationOption {
public InternalConfigureOption(String name, AutotoolsConfiguration cfg) { public InternalConfigureOption(String name, AutotoolsConfiguration cfg) {
super(name, cfg); super(name, cfg);
this.value = ""; // $NON-NLS-1$ this.value = ""; //$NON-NLS-1$
} }
public InternalConfigureOption(String name, String msgName, AutotoolsConfiguration cfg) { public InternalConfigureOption(String name, String msgName, AutotoolsConfiguration cfg) {
super(name, msgName, cfg); super(name, msgName, cfg);
this.value = ""; // $NON-NLS-1$ this.value = ""; //$NON-NLS-1$
} }
private InternalConfigureOption(String name, AutotoolsConfiguration cfg, private InternalConfigureOption(String name, AutotoolsConfiguration cfg,

View file

@ -1,5 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2009, 2015 Red Hat Inc. * Copyright (c) 2009, 2016 Red Hat Inc. and others.
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -22,12 +22,12 @@ public class MultiArgConfigureOption extends AbstractConfigurationOption {
public MultiArgConfigureOption(String name, AutotoolsConfiguration cfg) { public MultiArgConfigureOption(String name, AutotoolsConfiguration cfg) {
super(name, cfg); super(name, cfg);
this.value = ""; // $NON-NLS-1$ this.value = ""; //$NON-NLS-1$
} }
public MultiArgConfigureOption(String name, String msgName, AutotoolsConfiguration cfg) { public MultiArgConfigureOption(String name, String msgName, AutotoolsConfiguration cfg) {
super(name, msgName, cfg); super(name, msgName, cfg);
this.value = ""; // $NON-NLS-1$ this.value = ""; //$NON-NLS-1$
} }
private MultiArgConfigureOption(String name, AutotoolsConfiguration cfg, private MultiArgConfigureOption(String name, AutotoolsConfiguration cfg,

View file

@ -1,5 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2009, 2015 Red Hat Inc. * Copyright (c) 2009, 2016 Red Hat Inc. and others.
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -17,12 +17,12 @@ public class StringConfigureOption extends AbstractConfigurationOption {
public StringConfigureOption(String name, AutotoolsConfiguration cfg) { public StringConfigureOption(String name, AutotoolsConfiguration cfg) {
super(name, cfg); super(name, cfg);
this.value = ""; // $NON-NLS-1$ this.value = ""; //$NON-NLS-1$
} }
public StringConfigureOption(String name, String msgName, AutotoolsConfiguration cfg) { public StringConfigureOption(String name, String msgName, AutotoolsConfiguration cfg) {
super(name, msgName, cfg); super(name, msgName, cfg);
this.value = ""; // $NON-NLS-1$ this.value = ""; //$NON-NLS-1$
} }
private StringConfigureOption(String name, AutotoolsConfiguration cfg, private StringConfigureOption(String name, AutotoolsConfiguration cfg,
@ -52,7 +52,7 @@ public class StringConfigureOption extends AbstractConfigurationOption {
@Override @Override
public String getParameter() { public String getParameter() {
if (isParmSet()) if (isParmSet())
return getParameterName() + "=" + getValue(); // $NON-NLS-1$ return getParameterName() + "=" + getValue(); //$NON-NLS-1$
return ""; return "";
} }

View file

@ -1,5 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2016 IBM Corporation. * Copyright (c) 2016 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -22,12 +22,12 @@ public class VariableConfigureOption extends AbstractConfigurationOption {
public VariableConfigureOption(String name, AutotoolsConfiguration cfg) { public VariableConfigureOption(String name, AutotoolsConfiguration cfg) {
super(name, cfg); super(name, cfg);
this.value = ""; // $NON-NLS-1$ this.value = ""; //$NON-NLS-1$
} }
public VariableConfigureOption(String name, String transformedName, AutotoolsConfiguration autotoolsConfiguration) { public VariableConfigureOption(String name, String transformedName, AutotoolsConfiguration autotoolsConfiguration) {
super(name, transformedName, autotoolsConfiguration); super(name, transformedName, autotoolsConfiguration);
this.value = ""; // $NON-NLS-1$ this.value = ""; //$NON-NLS-1$
} }
public VariableConfigureOption(String name, AutotoolsConfiguration cfg, String value) { public VariableConfigureOption(String name, AutotoolsConfiguration cfg, String value) {

View file

@ -1,5 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2008, 2015 Red Hat Inc. and others. * Copyright (c) 2008, 2016 Red Hat Inc. and others.
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -533,16 +533,16 @@ public class UpdateConfigureTest {
Document d = db.parse(dirFile); Document d = db.parse(dirFile);
Element e = d.getDocumentElement(); Element e = d.getDocumentElement();
// Get the stored configuration data // Get the stored configuration data
NodeList cfgs = e.getElementsByTagName("configuration"); // $NON-NLS-1$ NodeList cfgs = e.getElementsByTagName("configuration"); //$NON-NLS-1$
for (int x = 0; x < cfgs.getLength(); ++x) { for (int x = 0; x < cfgs.getLength(); ++x) {
Node n = cfgs.item(x); Node n = cfgs.item(x);
NodeList l = n.getChildNodes(); NodeList l = n.getChildNodes();
for (int y = 0; y < l.getLength(); ++y) { for (int y = 0; y < l.getLength(); ++y) {
Node child = l.item(y); Node child = l.item(y);
if (child.getNodeName().equals("option")) { // $NON-NLS-1$ if (child.getNodeName().equals("option")) { //$NON-NLS-1$
NamedNodeMap optionAttrs = child.getAttributes(); NamedNodeMap optionAttrs = child.getAttributes();
Node id = optionAttrs.getNamedItem("id"); // $NON-NLS-1$ Node id = optionAttrs.getNamedItem("id"); //$NON-NLS-1$
Node value = optionAttrs.getNamedItem("value"); // $NON-NLS-1$ Node value = optionAttrs.getNamedItem("value"); //$NON-NLS-1$
// Verify the bindir option is updated // Verify the bindir option is updated
if (id.equals(AutotoolsOptionConstants.OPT_BINDIR)) if (id.equals(AutotoolsOptionConstants.OPT_BINDIR))
assertEquals(value, "/usr/bin"); //$NON-NLS-1$ assertEquals(value, "/usr/bin"); //$NON-NLS-1$

View file

@ -1,5 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2010, 2015 Red Hat Inc.. * Copyright (c) 2010, 2016 Red Hat Inc. and others.
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -112,7 +112,7 @@ public class SetConfigurationParameter extends AbstractTest {
Document d = db.parse(f); Document d = db.parse(f);
Element e = d.getDocumentElement(); Element e = d.getDocumentElement();
// Get the stored configuration data // Get the stored configuration data
NodeList cfgs = e.getElementsByTagName("configuration"); // $NON-NLS-1$ NodeList cfgs = e.getElementsByTagName("configuration"); //$NON-NLS-1$
assertTrue(cfgs.getLength() > 0); assertTrue(cfgs.getLength() > 0);
Node n = cfgs.item(0); Node n = cfgs.item(0);
NodeList l = n.getChildNodes(); NodeList l = n.getChildNodes();
@ -120,10 +120,10 @@ public class SetConfigurationParameter extends AbstractTest {
boolean foundUser = false; boolean foundUser = false;
for (int y = 0; y < l.getLength(); ++y) { for (int y = 0; y < l.getLength(); ++y) {
Node child = l.item(y); Node child = l.item(y);
if (child.getNodeName().equals("option")) { // $NON-NLS-1$ if (child.getNodeName().equals("option")) { //$NON-NLS-1$
NamedNodeMap optionAttrs = child.getAttributes(); NamedNodeMap optionAttrs = child.getAttributes();
Node idNode = optionAttrs.getNamedItem("id"); // $NON-NLS-1$ Node idNode = optionAttrs.getNamedItem("id"); //$NON-NLS-1$
Node valueNode = optionAttrs.getNamedItem("value"); // $NON-NLS-1$ Node valueNode = optionAttrs.getNamedItem("value"); //$NON-NLS-1$
assertNotNull(idNode); assertNotNull(idNode);
assertNotNull(valueNode); assertNotNull(valueNode);
String id = idNode.getNodeValue(); String id = idNode.getNodeValue();
@ -331,7 +331,7 @@ public class SetConfigurationParameter extends AbstractTest {
Document d = db.parse(f); Document d = db.parse(f);
Element e = d.getDocumentElement(); Element e = d.getDocumentElement();
// Get the stored configuration data // Get the stored configuration data
NodeList cfgs = e.getElementsByTagName("configuration"); // $NON-NLS-1$ NodeList cfgs = e.getElementsByTagName("configuration"); //$NON-NLS-1$
assertEquals(3, cfgs.getLength()); assertEquals(3, cfgs.getLength());
int foundUser = 0; int foundUser = 0;
for (int x = 0; x < cfgs.getLength(); ++x) { for (int x = 0; x < cfgs.getLength(); ++x) {
@ -341,10 +341,10 @@ public class SetConfigurationParameter extends AbstractTest {
// --enable-jeff // --enable-jeff
for (int y = 0; y < l.getLength(); ++y) { for (int y = 0; y < l.getLength(); ++y) {
Node child = l.item(y); Node child = l.item(y);
if (child.getNodeName().equals("option")) { // $NON-NLS-1$ if (child.getNodeName().equals("option")) { //$NON-NLS-1$
NamedNodeMap optionAttrs = child.getAttributes(); NamedNodeMap optionAttrs = child.getAttributes();
Node idNode = optionAttrs.getNamedItem("id"); // $NON-NLS-1$ Node idNode = optionAttrs.getNamedItem("id"); //$NON-NLS-1$
Node valueNode = optionAttrs.getNamedItem("value"); // $NON-NLS-1$ Node valueNode = optionAttrs.getNamedItem("value"); //$NON-NLS-1$
assertNotNull(idNode); assertNotNull(idNode);
assertNotNull(valueNode); assertNotNull(valueNode);
String id = idNode.getNodeValue(); String id = idNode.getNodeValue();

View file

@ -56,7 +56,7 @@ public class AutotoolsUIPluginImages {
public static final String IMG_OBJS_WHILE= NAME_PREFIX + "while_obj.gif"; //$NON-NLS-1$ public static final String IMG_OBJS_WHILE= NAME_PREFIX + "while_obj.gif"; //$NON-NLS-1$
public static final String IMG_OBJS_ACMACRO= NAME_PREFIX + "acmacro_obj.gif"; //$NON-NLS-1$ public static final String IMG_OBJS_ACMACRO= NAME_PREFIX + "acmacro_obj.gif"; //$NON-NLS-1$
public static final String IMG_OBJS_AMMACRO= NAME_PREFIX + "ammacro_obj.gif"; //$NON-NLS-1$ public static final String IMG_OBJS_AMMACRO= NAME_PREFIX + "ammacro_obj.gif"; //$NON-NLS-1$
public static final String IMG_OBJS_ACMACRO_ARG = NAME_PREFIX + "acmacro_arg_obj.gif"; // $NON-NLS-1$ public static final String IMG_OBJS_ACMACRO_ARG = NAME_PREFIX + "acmacro_arg_obj.gif"; //$NON-NLS-1$
public static final String IMG_BUILD_CONFIG = NAME_PREFIX + "build_configs.gif"; //$NON-NLS-1$ public static final String IMG_BUILD_CONFIG = NAME_PREFIX + "build_configs.gif"; //$NON-NLS-1$
public static final String IMG_CFG_CATEGORY = NAME_PREFIX + "config_category.gif"; //$NON-NLS-1$ public static final String IMG_CFG_CATEGORY = NAME_PREFIX + "config_category.gif"; //$NON-NLS-1$
public static final String IMG_CFG_TOOL = NAME_PREFIX + "config_tool.gif"; //$NON-NLS-1$ public static final String IMG_CFG_TOOL = NAME_PREFIX + "config_tool.gif"; //$NON-NLS-1$

View file

@ -1,5 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2000, 2012 IBM Corporation and others. * Copyright (c) 2000, 2016 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -32,7 +32,7 @@ import org.eclipse.swt.widgets.Shell;
*/ */
public class OptionalMessageDialog extends MessageDialog { public class OptionalMessageDialog extends MessageDialog {
// String constants for widgets // String constants for widgets
private static final String CHECKBOX_TEXT= MakeUIMessages.getResourceString("OptionalMessageDialog_dontShowAgain"); // $NON-NLS-1$ private static final String CHECKBOX_TEXT= MakeUIMessages.getResourceString("OptionalMessageDialog_dontShowAgain"); //$NON-NLS-1$
// Dialog store id constants // Dialog store id constants
private static final String STORE_ID= "OptionalMessageDialog.hide."; //$NON-NLS-1$ private static final String STORE_ID= "OptionalMessageDialog.hide."; //$NON-NLS-1$

View file

@ -1,5 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2009, 2016 Red Hat Inc.. * Copyright (c) 2009, 2016 Red Hat Inc. and others.
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -294,7 +294,7 @@ public abstract class AbstractAutotoolsHandler extends AbstractHandler {
consoleHeader[2] = project.getName(); consoleHeader[2] = project.getName();
buf.append(System.getProperty("line.separator", "\n")); //$NON-NLS-1$ //$NON-NLS-2$ buf.append(System.getProperty("line.separator", "\n")); //$NON-NLS-1$ //$NON-NLS-2$
String invokeMsg = InvokeMessages.getFormattedString("InvokeAction.console.message", //$NON-NLS-1$ String invokeMsg = InvokeMessages.getFormattedString("InvokeAction.console.message", //$NON-NLS-1$
new String[] { actionName, execDir.toString() }); // $NON-NLS-1$ new String[] { actionName, execDir.toString() }); //$NON-NLS-1$
buf.append(invokeMsg); buf.append(invokeMsg);
buf.append(System.getProperty("line.separator", "\n")); //$NON-NLS-1$ //$NON-NLS-2$ buf.append(System.getProperty("line.separator", "\n")); //$NON-NLS-1$ //$NON-NLS-2$
buf.append(System.getProperty("line.separator", "\n")); //$NON-NLS-1$ //$NON-NLS-2$ buf.append(System.getProperty("line.separator", "\n")); //$NON-NLS-1$ //$NON-NLS-2$

View file

@ -1,5 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2007, 2016 Red Hat Inc. * Copyright (c) 2007, 2016 Red Hat Inc. and others.
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -30,14 +30,14 @@ import org.eclipse.swt.widgets.Text;
public class AutotoolsBuildPropertyPage extends AbstractCBuildPropertyTab { public class AutotoolsBuildPropertyPage extends AbstractCBuildPropertyTab {
private String TRUE = "true"; // $NON-NLS-1$ private String TRUE = "true"; //$NON-NLS-1$
private String FALSE = "false"; // $NON-NLS-1$ private String FALSE = "false"; //$NON-NLS-1$
private String CLEAN_DELETE_LABEL = "CleanDelete.label"; // $NON-NLS-1$ private String CLEAN_DELETE_LABEL = "CleanDelete.label"; //$NON-NLS-1$
private String CLEAN_MAKE_LABEL = "CleanMake.label"; // $NON-NLS-1$ private String CLEAN_MAKE_LABEL = "CleanMake.label"; //$NON-NLS-1$
private String CLEAN_MAKETARGET_LABEL = "CleanMakeTarget.label"; // $NON-NLS-1$ private String CLEAN_MAKETARGET_LABEL = "CleanMakeTarget.label"; //$NON-NLS-1$
private String CLEAN_MAKETARGET_TOOLTIP = "CleanMakeTarget.tooltip"; // $NON-NLS-1$ private String CLEAN_MAKETARGET_TOOLTIP = "CleanMakeTarget.tooltip"; //$NON-NLS-1$
private String AUTO_BUILDNAME_LABEL = "AutoBuildName.label"; // $NON-NLS-1$ private String AUTO_BUILDNAME_LABEL = "AutoBuildName.label"; //$NON-NLS-1$
private String AUTO_BUILDNAME_TOOLTIP = "AutoBuildName.tooltip"; // $NON-NLS-1$ private String AUTO_BUILDNAME_TOOLTIP = "AutoBuildName.tooltip"; //$NON-NLS-1$
protected Button fCleanDelete; protected Button fCleanDelete;
protected Button fCleanMake; protected Button fCleanMake;

View file

@ -1,5 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2007, 2015 Red Hat Inc. * Copyright (c) 2007, 2016 Red Hat Inc. and others.
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -24,12 +24,12 @@ import org.eclipse.swt.widgets.Text;
public class AutotoolsToolsPropertyTab extends AbstractAutotoolsCPropertyTab { public class AutotoolsToolsPropertyTab extends AbstractAutotoolsCPropertyTab {
public static final String DEFAULT_ACLOCAL = "aclocal"; // $NON-NLS-1$ public static final String DEFAULT_ACLOCAL = "aclocal"; //$NON-NLS-1$
public static final String DEFAULT_AUTOMAKE = "automake"; // $NON-NLS-1$ public static final String DEFAULT_AUTOMAKE = "automake"; //$NON-NLS-1$
public static final String DEFAULT_AUTOCONF = "autoconf"; // $NON-NLS-1$ public static final String DEFAULT_AUTOCONF = "autoconf"; //$NON-NLS-1$
public static final String DEFAULT_AUTOHEADER = "autoheader"; // $NON-NLS-1$ public static final String DEFAULT_AUTOHEADER = "autoheader"; //$NON-NLS-1$
public static final String DEFAULT_AUTORECONF = "autoreconf"; // $NON-NLS-1$ public static final String DEFAULT_AUTORECONF = "autoreconf"; //$NON-NLS-1$
public static final String DEFAULT_LIBTOOLIZE = "libtoolize"; // $NON-NLS-1$ public static final String DEFAULT_LIBTOOLIZE = "libtoolize"; //$NON-NLS-1$
protected Text fAclocalPath; protected Text fAclocalPath;
protected Text fAutomakePath; protected Text fAutomakePath;
@ -73,7 +73,7 @@ public class AutotoolsToolsPropertyTab extends AbstractAutotoolsCPropertyTab {
/* text window for aclocal path */ /* text window for aclocal path */
fAclocalPath = new Text(composite, SWT.BORDER | SWT.SINGLE); fAclocalPath = new Text(composite, SWT.BORDER | SWT.SINGLE);
fAclocalPath.setToolTipText(AutotoolsPropertyMessages.getString("Autotools.aclocalPath.tooltip")); // $NON-NLS-1$ fAclocalPath.setToolTipText(AutotoolsPropertyMessages.getString("Autotools.aclocalPath.tooltip")); //$NON-NLS-1$
gd= new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING | GridData.VERTICAL_ALIGN_BEGINNING | GridData.FILL_HORIZONTAL); gd= new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING | GridData.VERTICAL_ALIGN_BEGINNING | GridData.FILL_HORIZONTAL);
fAclocalPath.setLayoutData(gd); fAclocalPath.setLayoutData(gd);
@ -85,7 +85,7 @@ public class AutotoolsToolsPropertyTab extends AbstractAutotoolsCPropertyTab {
/* text window for automake path */ /* text window for automake path */
fAutomakePath = new Text(composite, SWT.BORDER | SWT.SINGLE); fAutomakePath = new Text(composite, SWT.BORDER | SWT.SINGLE);
fAutomakePath.setToolTipText(AutotoolsPropertyMessages.getString("Autotools.automakePath.tooltip")); // $NON-NLS-1# fAutomakePath.setToolTipText(AutotoolsPropertyMessages.getString("Autotools.automakePath.tooltip")); //$NON-NLS-1#
gd= new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING | GridData.VERTICAL_ALIGN_BEGINNING | GridData.FILL_HORIZONTAL); gd= new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING | GridData.VERTICAL_ALIGN_BEGINNING | GridData.FILL_HORIZONTAL);
fAutomakePath.setLayoutData(gd); fAutomakePath.setLayoutData(gd);
@ -97,7 +97,7 @@ public class AutotoolsToolsPropertyTab extends AbstractAutotoolsCPropertyTab {
/* text window for autoconf path */ /* text window for autoconf path */
fAutoconfPath = new Text(composite, SWT.BORDER | SWT.SINGLE); fAutoconfPath = new Text(composite, SWT.BORDER | SWT.SINGLE);
fAutoconfPath.setToolTipText(AutotoolsPropertyMessages.getString("Autotools.autoconfPath.tooltip")); // $NON-NLS-1$ fAutoconfPath.setToolTipText(AutotoolsPropertyMessages.getString("Autotools.autoconfPath.tooltip")); //$NON-NLS-1$
gd= new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING | GridData.VERTICAL_ALIGN_BEGINNING | GridData.FILL_HORIZONTAL); gd= new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING | GridData.VERTICAL_ALIGN_BEGINNING | GridData.FILL_HORIZONTAL);
fAutoconfPath.setLayoutData(gd); fAutoconfPath.setLayoutData(gd);
@ -109,7 +109,7 @@ public class AutotoolsToolsPropertyTab extends AbstractAutotoolsCPropertyTab {
/* text window for autoheader path */ /* text window for autoheader path */
fAutoheaderPath = new Text(composite, SWT.BORDER | SWT.SINGLE); fAutoheaderPath = new Text(composite, SWT.BORDER | SWT.SINGLE);
fAutoheaderPath.setToolTipText(AutotoolsPropertyMessages.getString("Autotools.autoheaderPath.tooltip")); // $NON-NLS-1$ fAutoheaderPath.setToolTipText(AutotoolsPropertyMessages.getString("Autotools.autoheaderPath.tooltip")); //$NON-NLS-1$
gd= new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING | GridData.VERTICAL_ALIGN_BEGINNING | GridData.FILL_HORIZONTAL); gd= new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING | GridData.VERTICAL_ALIGN_BEGINNING | GridData.FILL_HORIZONTAL);
fAutoheaderPath.setLayoutData(gd); fAutoheaderPath.setLayoutData(gd);
@ -121,7 +121,7 @@ public class AutotoolsToolsPropertyTab extends AbstractAutotoolsCPropertyTab {
/* text window for autoreconf path */ /* text window for autoreconf path */
fAutoreconfPath = new Text(composite, SWT.BORDER | SWT.SINGLE); fAutoreconfPath = new Text(composite, SWT.BORDER | SWT.SINGLE);
fAutoreconfPath.setToolTipText(AutotoolsPropertyMessages.getString("Autotools.autoreconfPath.tooltip")); // $NON-NLS-1$ fAutoreconfPath.setToolTipText(AutotoolsPropertyMessages.getString("Autotools.autoreconfPath.tooltip")); //$NON-NLS-1$
gd= new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING | GridData.VERTICAL_ALIGN_BEGINNING | GridData.FILL_HORIZONTAL); gd= new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING | GridData.VERTICAL_ALIGN_BEGINNING | GridData.FILL_HORIZONTAL);
fAutoreconfPath.setLayoutData(gd); fAutoreconfPath.setLayoutData(gd);
@ -133,7 +133,7 @@ public class AutotoolsToolsPropertyTab extends AbstractAutotoolsCPropertyTab {
/* text window for libtoolize path */ /* text window for libtoolize path */
fLibtoolizePath = new Text(composite, SWT.BORDER | SWT.SINGLE); fLibtoolizePath = new Text(composite, SWT.BORDER | SWT.SINGLE);
fLibtoolizePath.setToolTipText(AutotoolsPropertyMessages.getString("Autotools.libtoolizePath.tooltip")); // $NON-NLS-1$ fLibtoolizePath.setToolTipText(AutotoolsPropertyMessages.getString("Autotools.libtoolizePath.tooltip")); //$NON-NLS-1$
gd= new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING | GridData.VERTICAL_ALIGN_BEGINNING | GridData.FILL_HORIZONTAL); gd= new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING | GridData.VERTICAL_ALIGN_BEGINNING | GridData.FILL_HORIZONTAL);
fLibtoolizePath.setLayoutData(gd); fLibtoolizePath.setLayoutData(gd);

View file

@ -1,5 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2003, 2015 IBM Corporation and others. * Copyright (c) 2003, 2016 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -47,9 +47,9 @@ import org.eclipse.ui.model.WorkbenchLabelProvider;
@Deprecated @Deprecated
public class ReferenceBlock extends AbstractCOptionPage { public class ReferenceBlock extends AbstractCOptionPage {
private static final String PREFIX = "ReferenceBlock"; // $NON-NLS-1$ //$NON-NLS-1$ private static final String PREFIX = "ReferenceBlock"; //$NON-NLS-1$ //$NON-NLS-1$
private static final String LABEL = PREFIX + ".label"; // $NON-NLS-1$ //$NON-NLS-1$ private static final String LABEL = PREFIX + ".label"; //$NON-NLS-1$ //$NON-NLS-1$
private static final String DESC = PREFIX + ".desc"; // $NON-NLS-1$ //$NON-NLS-1$ private static final String DESC = PREFIX + ".desc"; //$NON-NLS-1$ //$NON-NLS-1$
private CheckboxTableViewer referenceProjectsViewer; private CheckboxTableViewer referenceProjectsViewer;

View file

@ -1,5 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2015 QNX Software Systems and others. * Copyright (c) 2015, 2016 QNX Software Systems and others.
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -128,7 +128,7 @@ public class GCCPathToolChainProvider implements IToolChainProvider {
} }
if (version != null) { if (version != null) {
if (target != null) { if (target != null) {
return version + " " + target; // $NON-NLS-1$ return version + " " + target; //$NON-NLS-1$
} else { } else {
return version; return version;
} }

View file

@ -63,7 +63,7 @@ public class CMakeBuildConfiguration extends CBuildConfiguration {
// TODO need to figure out which builder to call. Hardcoding to make // TODO need to figure out which builder to call. Hardcoding to make
// for now. // for now.
List<String> command = Arrays.asList("make"); List<String> command = Arrays.asList("make");
ProcessBuilder processBuilder = new ProcessBuilder(command).directory(buildDir.toFile()); // $NON-NLS-1$ ProcessBuilder processBuilder = new ProcessBuilder(command).directory(buildDir.toFile()); //$NON-NLS-1$
Process process = processBuilder.start(); Process process = processBuilder.start();
outStream.write(String.join(" ", command) + '\n'); //$NON-NLS-1$ outStream.write(String.join(" ", command) + '\n'); //$NON-NLS-1$

View file

@ -92,8 +92,8 @@ public class MakeScannerInfo implements IScannerInfo {
if (symbol.length() == 0) { if (symbol.length() == 0) {
continue; continue;
} }
String key = ""; // $NON-NLS-1$ String key = ""; //$NON-NLS-1$
String value = ""; // $NON-NLS-1$ String value = ""; //$NON-NLS-1$
int index = symbol.indexOf("="); //$NON-NLS-1$ int index = symbol.indexOf("="); //$NON-NLS-1$
if (index != -1) { if (index != -1) {
key = symbol.substring(0, index).trim(); key = symbol.substring(0, index).trim();

View file

@ -62,7 +62,7 @@ public class NullMakefile extends AbstractMakefile {
@Override @Override
public String toString() { public String toString() {
return ""; // $NON-NLS-1$ return ""; //$NON-NLS-1$
} }
@Override @Override

View file

@ -625,7 +625,7 @@ public class GNUMakefile extends AbstractMakefile implements IGNUMakefile {
} }
directories = dirs.toArray(new String[0]); directories = dirs.toArray(new String[0]);
if (pattern == null) { if (pattern == null) {
pattern = ""; // $NON-NLS-1$ pattern = ""; //$NON-NLS-1$
} }
return new VPath(this, pattern, directories); return new VPath(this, pattern, directories);
} }

View file

@ -108,7 +108,7 @@ public class CCommandDSC {
@Override @Override
public String toString() { public String toString() {
String commandAsString = ""; // $NON-NLS-1$ String commandAsString = ""; //$NON-NLS-1$
for (Iterator<KVStringPair> i = compilerCommand.iterator(); i.hasNext(); ) { for (Iterator<KVStringPair> i = compilerCommand.iterator(); i.hasNext(); ) {
KVStringPair optionPair = i.next(); KVStringPair optionPair = i.next();
String value = optionPair.getValue(); String value = optionPair.getValue();
@ -128,7 +128,7 @@ public class CCommandDSC {
* @return the command line to run the scanner discovery. * @return the command line to run the scanner discovery.
*/ */
public String getSCDRunnableCommand(boolean quoteIncludePaths, boolean quoteDefines) { public String getSCDRunnableCommand(boolean quoteIncludePaths, boolean quoteDefines) {
String commandAsString = ""; // $NON-NLS-1$ String commandAsString = ""; //$NON-NLS-1$
for (Iterator<KVStringPair> i = compilerCommand.iterator(); i.hasNext(); ) { for (Iterator<KVStringPair> i = compilerCommand.iterator(); i.hasNext(); ) {
KVStringPair optionPair = i.next(); KVStringPair optionPair = i.next();
if (optionPair.getKey().equals(SCDOptionsEnum.COMMAND.toString())) { if (optionPair.getKey().equals(SCDOptionsEnum.COMMAND.toString())) {
@ -167,7 +167,7 @@ public class CCommandDSC {
* @return the compiler command * @return the compiler command
*/ */
public String getCompilerName() { public String getCompilerName() {
String compiler = ""; // $NON-NLS-1$ String compiler = ""; //$NON-NLS-1$
for (Iterator<KVStringPair> i = compilerCommand.iterator(); i.hasNext(); ) { for (Iterator<KVStringPair> i = compilerCommand.iterator(); i.hasNext(); ) {
KVStringPair optionPair = i.next(); KVStringPair optionPair = i.next();
if (optionPair.getKey().equals(SCDOptionsEnum.COMMAND.toString())) { if (optionPair.getKey().equals(SCDOptionsEnum.COMMAND.toString())) {

View file

@ -1071,7 +1071,7 @@ public class ManagedBuildTestHelper {
rcbsTool = rcConfig.createTool(null,rcbsToolId + "." + ManagedBuildManager.getRandomNumber(),rcbsToolName,false); //$NON-NLS-1$ rcbsTool = rcConfig.createTool(null,rcbsToolId + "." + ManagedBuildManager.getRandomNumber(),rcbsToolName,false); //$NON-NLS-1$
rcbsTool.setCustomBuildStep(true); rcbsTool.setCustomBuildStep(true);
IInputType rcbsToolInputType = rcbsTool.createInputType(null,rcbsToolInputTypeId + "." + ManagedBuildManager.getRandomNumber(),rcbsToolInputTypeName,false); //$NON-NLS-1$ IInputType rcbsToolInputType = rcbsTool.createInputType(null,rcbsToolInputTypeId + "." + ManagedBuildManager.getRandomNumber(),rcbsToolInputTypeName,false); //$NON-NLS-1$
IAdditionalInput rcbsToolInputTypeAdditionalInput = rcbsToolInputType.createAdditionalInput(""); // $NON-NLS-1$ IAdditionalInput rcbsToolInputTypeAdditionalInput = rcbsToolInputType.createAdditionalInput(""); //$NON-NLS-1$
rcbsToolInputTypeAdditionalInput.setKind(IAdditionalInput.KIND_ADDITIONAL_INPUT_DEPENDENCY); rcbsToolInputTypeAdditionalInput.setKind(IAdditionalInput.KIND_ADDITIONAL_INPUT_DEPENDENCY);
rcbsTool.createOutputType(null,rcbsToolOutputTypeId + "." + ManagedBuildManager.getRandomNumber(),rcbsToolOutputTypeName,false); //$NON-NLS-1$ rcbsTool.createOutputType(null,rcbsToolOutputTypeId + "." + ManagedBuildManager.getRandomNumber(),rcbsToolOutputTypeName,false); //$NON-NLS-1$
} }

View file

@ -33,7 +33,7 @@ public class ManagedBuildCommandLineGenerator implements
// Concatenate the tool name and the passed in command name // Concatenate the tool name and the passed in command name
info.commandName = tool.getName() + commandName; info.commandName = tool.getName() + commandName;
// Put out the flags backwards // Put out the flags backwards
String myflags = ""; // $NON-NLS-1$ String myflags = ""; //$NON-NLS-1$
for (int i = flags.length - 1; i >= 0; i--) { for (int i = flags.length - 1; i >= 0; i--) {
if (i < flags.length - 1) myflags += " "; if (i < flags.length - 1) myflags += " ";
myflags += flags[i]; myflags += flags[i];
@ -41,7 +41,7 @@ public class ManagedBuildCommandLineGenerator implements
info.commandFlags = myflags; info.commandFlags = myflags;
// Alphabetize the inputs and add foo.cpp // Alphabetize the inputs and add foo.cpp
String[] inputs = new String[inputResources.length + 1]; String[] inputs = new String[inputResources.length + 1];
String myinputs = ""; // $NON-NLS-1$ String myinputs = ""; //$NON-NLS-1$
for (int i=0; i<inputResources.length; i++) { for (int i=0; i<inputResources.length; i++) {
inputs[i] = inputResources[i]; inputs[i] = inputResources[i];
} }

View file

@ -165,7 +165,7 @@ public class ManagedProjectUpdateTests extends TestCase {
IStatus.OK, IStatus.OK,
"org.eclipse.cdt.managedbuilder.core.tests", "org.eclipse.cdt.managedbuilder.core.tests",
IStatus.OK, IStatus.OK,
"", // $NON-NLS-1$ "", //$NON-NLS-1$
null); null);
} }
}; };

View file

@ -167,7 +167,7 @@ public class ResourceBuildCoreTests extends TestCase {
// Get the project build properties. // Get the project build properties.
ITool tools[] = defaultConfig.getFilteredTools(); ITool tools[] = defaultConfig.getFilteredTools();
Tool projTool = null; Tool projTool = null;
String projBuildProps = ""; // $NON-NLS-1$ String projBuildProps = ""; //$NON-NLS-1$
for (int i = 0; i < tools.length; i++) { for (int i = 0; i < tools.length; i++) {
if( tools[i].buildsFileType(extString) ) { if( tools[i].buildsFileType(extString) ) {
// Get the build properties of a project in default configuration // Get the build properties of a project in default configuration

View file

@ -63,12 +63,12 @@ public class Test30_2_CommandLineGenerator implements
info.commandOutputPrefix = outputPrefix; info.commandOutputPrefix = outputPrefix;
info.commandOutput = outputName; info.commandOutput = outputName;
info.commandLinePattern = commandLinePattern; info.commandLinePattern = commandLinePattern;
info.commandInputs = ""; // $NON-NLS-1$ info.commandInputs = ""; //$NON-NLS-1$
for (int i = 0; i < inputResources.length; i++) { for (int i = 0; i < inputResources.length; i++) {
if (i > 0) info.commandInputs += " "; if (i > 0) info.commandInputs += " ";
info.commandInputs += inputResources[i]; info.commandInputs += inputResources[i];
} }
info.commandFlags = ""; // $NON-NLS-1$ info.commandFlags = ""; //$NON-NLS-1$
IOption opt = tool.getOptionBySuperClassId("test30_2.tar-list.filename"); IOption opt = tool.getOptionBySuperClassId("test30_2.tar-list.filename");
String optVal = ""; String optVal = "";
try { try {

View file

@ -1914,7 +1914,7 @@ public class ManagedBuildManager extends AbstractCExtension {
// throw new CoreException(new Status(IStatus.ERROR, // throw new CoreException(new Status(IStatus.ERROR,
// ManagedBuilderCorePlugin.PLUGIN_ID, // ManagedBuilderCorePlugin.PLUGIN_ID,
// IStatus.ERROR, // IStatus.ERROR,
// "", // $NON-NLS-1$ // "", //$NON-NLS-1$
// null)); // null));
// } // }
// //

View file

@ -131,7 +131,7 @@ public class ManagedBuilderCorePlugin extends Plugin {
// IStatus.OK, // IStatus.OK,
// ManagedBuilderCorePlugin.getUniqueIdentifier(), // ManagedBuilderCorePlugin.getUniqueIdentifier(),
// IStatus.OK, // IStatus.OK,
// "", // $NON-NLS-1$ // "", //$NON-NLS-1$
// null); // null);
// } // }
// }; // };

View file

@ -2242,7 +2242,7 @@ public class BuildDescription implements IBuildDescription {
if(!type.isInput()){ if(!type.isInput()){
String var = type.getLinkId(); String var = type.getLinkId();
if(var == null) if(var == null)
var = ""; // $NON-NLS-1$ var = ""; //$NON-NLS-1$
Set<BuildIOType> set = fVarToAddlInSetMap.get(var); Set<BuildIOType> set = fVarToAddlInSetMap.get(var);
if(set != null){ if(set != null){

View file

@ -521,7 +521,7 @@ public class BuildStep implements IBuildStep {
private String listToString(String[] list, String delimiter){ private String listToString(String[] list, String delimiter){
if(list == null || list.length == 0) if(list == null || list.length == 0)
return ""; // $NON-NLS-1$ return ""; //$NON-NLS-1$
StringBuilder buf = new StringBuilder(list[0]); StringBuilder buf = new StringBuilder(list[0]);

View file

@ -218,7 +218,7 @@ public class AdditionalInput implements IAdditionalInput {
str = ADDITIONAL_INPUT_DEPENDENCY; str = ADDITIONAL_INPUT_DEPENDENCY;
break; break;
default: default:
str = ""; // $NON-NLS-1$ str = ""; //$NON-NLS-1$
break; break;
} }
element.setAttribute(IAdditionalInput.KIND, str); element.setAttribute(IAdditionalInput.KIND, str);

View file

@ -621,7 +621,7 @@ public class CommonBuilder extends ACBuilder {
status = new MultiStatus( status = new MultiStatus(
ManagedBuilderCorePlugin.getUniqueIdentifier(), ManagedBuilderCorePlugin.getUniqueIdentifier(),
IStatus.ERROR, IStatus.ERROR,
"", // $NON-NLS-1$ "", //$NON-NLS-1$
null); null);
} }
@ -638,7 +638,7 @@ public class CommonBuilder extends ACBuilder {
status = new MultiStatus( status = new MultiStatus(
ManagedBuilderCorePlugin.getUniqueIdentifier(), ManagedBuilderCorePlugin.getUniqueIdentifier(),
IStatus.ERROR, IStatus.ERROR,
"", // $NON-NLS-1$ "", //$NON-NLS-1$
null); null);
} }
@ -657,7 +657,7 @@ public class CommonBuilder extends ACBuilder {
status = new MultiStatus( status = new MultiStatus(
ManagedBuilderCorePlugin.getUniqueIdentifier(), ManagedBuilderCorePlugin.getUniqueIdentifier(),
IStatus.OK, IStatus.OK,
"", // $NON-NLS-1$ "", //$NON-NLS-1$
null); null);
} }
@ -814,7 +814,7 @@ public class CommonBuilder extends ACBuilder {
if (buildType == FULL_BUILD || buildType == INCREMENTAL_BUILD) { if (buildType == FULL_BUILD || buildType == INCREMENTAL_BUILD) {
consoleHeader[0] = ManagedMakeMessages.getResourceString("ManagedMakeBuider.type.incremental"); //$NON-NLS-1$ consoleHeader[0] = ManagedMakeMessages.getResourceString("ManagedMakeBuider.type.incremental"); //$NON-NLS-1$
} else { } else {
consoleHeader[0] = ""; // $NON-NLS-1$ consoleHeader[0] = ""; //$NON-NLS-1$
outputError(projName, "The given build type is not supported in this context"); //$NON-NLS-1$ outputError(projName, "The given build type is not supported in this context"); //$NON-NLS-1$
} }
consoleHeader[1] = configName; consoleHeader[1] = configName;
@ -1015,7 +1015,7 @@ public class CommonBuilder extends ACBuilder {
// return new MultiStatus( // return new MultiStatus(
// ManagedBuilderCorePlugin.getUniqueIdentifier(), // ManagedBuilderCorePlugin.getUniqueIdentifier(),
// severity, // severity,
// "", // $NON-NLS-1$ // "", //$NON-NLS-1$
// null); // null);
// } // }

View file

@ -86,7 +86,7 @@ public class FolderInfo extends ResourceInfo implements IFolderInfo {
toolChain.setUnusedChildren(parTc.getUnusedChildren()); toolChain.setUnusedChildren(parTc.getUnusedChildren());
ITool tools[] = parTc.getTools(); ITool tools[] = parTc.getTools();
String subId = ""; // $NON-NLS-1$ String subId = ""; //$NON-NLS-1$
for (ITool tool : tools) { for (ITool tool : tools) {
ITool extTool = ManagedBuildManager.getExtensionTool(tool); ITool extTool = ManagedBuildManager.getExtensionTool(tool);
if(extTool == null) if(extTool == null)

View file

@ -369,7 +369,7 @@ public class GeneratedMakefileBuilder extends ACBuilder {
if (buildType == FULL_BUILD || buildType == INCREMENTAL_BUILD) { if (buildType == FULL_BUILD || buildType == INCREMENTAL_BUILD) {
consoleHeader[0] = ManagedMakeMessages.getResourceString(TYPE_INC); consoleHeader[0] = ManagedMakeMessages.getResourceString(TYPE_INC);
} else { } else {
consoleHeader[0] = ""; // $NON-NLS-1$ consoleHeader[0] = ""; //$NON-NLS-1$
outputError(getProject().getName(), "The given build type is not supported in this context"); //$NON-NLS-1$ outputError(getProject().getName(), "The given build type is not supported in this context"); //$NON-NLS-1$
} }
consoleHeader[1] = configName; consoleHeader[1] = configName;

View file

@ -157,7 +157,7 @@ public class ManagedBuildInfo implements IManagedBuildInfo, IScannerInfo {
*/ */
@Override @Override
public String getBuildArtifactExtension() { public String getBuildArtifactExtension() {
String ext = ""; // $NON-NLS-1$ String ext = ""; //$NON-NLS-1$
IConfiguration config = getDefaultConfiguration(); IConfiguration config = getDefaultConfiguration();
if (config != null) { if (config != null) {
ext = config.getArtifactExtension(); ext = config.getArtifactExtension();
@ -171,7 +171,7 @@ public class ManagedBuildInfo implements IManagedBuildInfo, IScannerInfo {
@Override @Override
public String getBuildArtifactName() { public String getBuildArtifactName() {
// Get the default configuration and use its value // Get the default configuration and use its value
String name = ""; // $NON-NLS-1$ String name = ""; //$NON-NLS-1$
IConfiguration config = getDefaultConfiguration(); IConfiguration config = getDefaultConfiguration();
if (config != null) { if (config != null) {
name = config.getArtifactName(); name = config.getArtifactName();
@ -185,7 +185,7 @@ public class ManagedBuildInfo implements IManagedBuildInfo, IScannerInfo {
@Override @Override
public String getCleanCommand() { public String getCleanCommand() {
// Get from the model // Get from the model
String command = ""; // $NON-NLS-1$ String command = ""; //$NON-NLS-1$
IConfiguration config = getDefaultConfiguration(); IConfiguration config = getDefaultConfiguration();
if (config != null) { if (config != null) {
command = config.getCleanCommand(); command = config.getCleanCommand();
@ -200,7 +200,7 @@ public class ManagedBuildInfo implements IManagedBuildInfo, IScannerInfo {
public String getConfigurationName() { public String getConfigurationName() {
// Return the human-readable name of the default configuration // Return the human-readable name of the default configuration
IConfiguration config = getDefaultConfiguration(); IConfiguration config = getDefaultConfiguration();
return config == null ? "" : config.getName(); // $NON-NLS-1$ return config == null ? "" : config.getName(); //$NON-NLS-1$
} }
/* (non-Javadoc) /* (non-Javadoc)
@ -361,7 +361,7 @@ public class ManagedBuildInfo implements IManagedBuildInfo, IScannerInfo {
@Override @Override
public String getToolFlagsForConfiguration(String extension, IPath inputLocation, IPath outputLocation){ public String getToolFlagsForConfiguration(String extension, IPath inputLocation, IPath outputLocation){
// Treat null extensions as an empty string // Treat null extensions as an empty string
String ext = extension == null ? "" : extension; // $NON-NLS-1$ String ext = extension == null ? "" : extension; //$NON-NLS-1$
// Get all the tools for the current config // Get all the tools for the current config
ITool[] tools = getFilteredTools(); ITool[] tools = getFilteredTools();
@ -480,7 +480,7 @@ public class ManagedBuildInfo implements IManagedBuildInfo, IScannerInfo {
@Override @Override
public String getPrebuildStep() { public String getPrebuildStep() {
// Get the default configuration and use its value // Get the default configuration and use its value
String name = ""; // $NON-NLS-1$ String name = ""; //$NON-NLS-1$
IConfiguration config = getDefaultConfiguration(); IConfiguration config = getDefaultConfiguration();
if (config != null) { if (config != null) {
name = config.getPrebuildStep(); name = config.getPrebuildStep();
@ -496,7 +496,7 @@ public class ManagedBuildInfo implements IManagedBuildInfo, IScannerInfo {
@Override @Override
public String getPostbuildStep() { public String getPostbuildStep() {
// Get the default configuration and use its value // Get the default configuration and use its value
String name = ""; // $NON-NLS-1$ String name = ""; //$NON-NLS-1$
IConfiguration config = getDefaultConfiguration(); IConfiguration config = getDefaultConfiguration();
if (config != null) { if (config != null) {
name = config.getPostbuildStep(); name = config.getPostbuildStep();
@ -512,7 +512,7 @@ public class ManagedBuildInfo implements IManagedBuildInfo, IScannerInfo {
@Override @Override
public String getPreannouncebuildStep() { public String getPreannouncebuildStep() {
// Get the default configuration and use its value // Get the default configuration and use its value
String name = ""; // $NON-NLS-1$ String name = ""; //$NON-NLS-1$
IConfiguration config = getDefaultConfiguration(); IConfiguration config = getDefaultConfiguration();
if (config != null) { if (config != null) {
name = config.getPreannouncebuildStep(); name = config.getPreannouncebuildStep();
@ -528,7 +528,7 @@ public class ManagedBuildInfo implements IManagedBuildInfo, IScannerInfo {
@Override @Override
public String getPostannouncebuildStep() { public String getPostannouncebuildStep() {
// Get the default configuration and use its value // Get the default configuration and use its value
String name = ""; // $NON-NLS-1$ String name = ""; //$NON-NLS-1$
IConfiguration config = getDefaultConfiguration(); IConfiguration config = getDefaultConfiguration();
if (config != null) { if (config != null) {
name = config.getPostannouncebuildStep(); name = config.getPostannouncebuildStep();
@ -593,7 +593,7 @@ public class ManagedBuildInfo implements IManagedBuildInfo, IScannerInfo {
@Override @Override
public String getToolForConfiguration(String extension) { public String getToolForConfiguration(String extension) {
// Treat a null argument as an empty string // Treat a null argument as an empty string
String ext = extension == null ? "" : extension; // $NON-NLS-1$ String ext = extension == null ? "" : extension; //$NON-NLS-1$
// Get all the tools for the current config // Get all the tools for the current config
ITool[] tools = getFilteredTools(); ITool[] tools = getFilteredTools();
for (int index = 0; index < tools.length; index++) { for (int index = 0; index < tools.length; index++) {
@ -1291,7 +1291,7 @@ public class ManagedBuildInfo implements IManagedBuildInfo, IScannerInfo {
String[] tokens = val.split("="); //$NON-NLS-1$ String[] tokens = val.split("="); //$NON-NLS-1$
String key = tokens[0].trim(); String key = tokens[0].trim();
String value = (tokens.length > 1) ? tokens[1].trim() : ""; // $NON-NLS-1$ String value = (tokens.length > 1) ? tokens[1].trim() : ""; //$NON-NLS-1$
// Make sure the current entries do not contain a duplicate // Make sure the current entries do not contain a duplicate
boolean add = true; boolean add = true;
Iterator<IPathEntry> entryIter = entries.listIterator(); Iterator<IPathEntry> entryIter = entries.listIterator();

View file

@ -42,7 +42,7 @@ import org.osgi.framework.Version;
*/ */
public class OptionCategory extends BuildObject implements IOptionCategory { public class OptionCategory extends BuildObject implements IOptionCategory {
private static final String EMPTY_STRING = ""; // $NON-NLS-1$ private static final String EMPTY_STRING = ""; //$NON-NLS-1$
private static final IOptionCategory[] emtpyCategories = new IOptionCategory[0]; private static final IOptionCategory[] emtpyCategories = new IOptionCategory[0];
// Parent and children // Parent and children

View file

@ -382,7 +382,7 @@ public class OptionReference implements IOption {
return name; return name;
} catch (BuildException e) {} } catch (BuildException e) {}
} }
return ""; // $NON-NLS-1$ return ""; //$NON-NLS-1$
} }
@Override @Override
@ -396,7 +396,7 @@ public class OptionReference implements IOption {
return name; return name;
} catch (BuildException e) {} } catch (BuildException e) {}
} }
return ""; // $NON-NLS-1$ return ""; //$NON-NLS-1$
} }
@Override @Override
@ -410,7 +410,7 @@ public class OptionReference implements IOption {
return id; return id;
} catch (BuildException e) {} } catch (BuildException e) {}
} }
return ""; // $NON-NLS-1$ return ""; //$NON-NLS-1$
} }
@Override @Override
@ -424,7 +424,7 @@ public class OptionReference implements IOption {
return id; return id;
} catch (BuildException e) {} } catch (BuildException e) {}
} }
return ""; // $NON-NLS-1$ return ""; //$NON-NLS-1$
} }
@Override @Override

View file

@ -387,7 +387,7 @@ public class ResourceChangeHandler implements IResourceChangeListener, ISavePart
IStatus.OK, IStatus.OK,
ManagedBuilderCorePlugin.getUniqueIdentifier(), ManagedBuilderCorePlugin.getUniqueIdentifier(),
IStatus.OK, IStatus.OK,
"", // $NON-NLS-1$ "", //$NON-NLS-1$
null); null);
} }
}; };

View file

@ -137,7 +137,7 @@ public class ResourceConfiguration extends ResourceInfo implements IFileInfo {
setManagedBuildRevision(folderInfo.getParent().getManagedBuildRevision()); setManagedBuildRevision(folderInfo.getParent().getManagedBuildRevision());
setDirty(false); setDirty(false);
toolsToInvoke = ""; // $NON-NLS-1$ toolsToInvoke = ""; //$NON-NLS-1$
rcbsApplicability = KIND_DISABLE_RCBS_TOOL; rcbsApplicability = KIND_DISABLE_RCBS_TOOL;
@ -149,7 +149,7 @@ public class ResourceConfiguration extends ResourceInfo implements IFileInfo {
} }
// Add the resource specific tools to this resource. // Add the resource specific tools to this resource.
ITool tools[] = folderInfo.getFilteredTools(); ITool tools[] = folderInfo.getFilteredTools();
String subId = ""; // $NON-NLS-1$ String subId = ""; //$NON-NLS-1$
for (int i = 0; i < tools.length; i++) { for (int i = 0; i < tools.length; i++) {
if( tools[i].buildsFileType(extString) ) { if( tools[i].buildsFileType(extString) ) {
baseTool = tools[i]; baseTool = tools[i];
@ -552,10 +552,10 @@ public class ResourceConfiguration extends ResourceInfo implements IFileInfo {
* An empty string implies treat as if no resource configuration, i.e., use project level tool. * An empty string implies treat as if no resource configuration, i.e., use project level tool.
* This getter routine returns an ITool[] to consumers (i.e., the makefile generator). * This getter routine returns an ITool[] to consumers (i.e., the makefile generator).
*/ */
String t_ToolsToInvoke = ""; // $NON-NLS-1$ String t_ToolsToInvoke = ""; //$NON-NLS-1$
ITool[] resConfigTools; ITool[] resConfigTools;
ITool[] tools; ITool[] tools;
String rcbsToolId = ""; // $NON-NLS-1$ String rcbsToolId = ""; //$NON-NLS-1$
int len; int len;
int j; int j;
int rcbsToolIdx=-1; int rcbsToolIdx=-1;
@ -571,7 +571,7 @@ public class ResourceConfiguration extends ResourceInfo implements IFileInfo {
* If no tools are currently defined, return a zero lengh array of ITool. * If no tools are currently defined, return a zero lengh array of ITool.
*/ */
if (resConfigTools.length == 0) { if (resConfigTools.length == 0) {
toolsToInvoke = ""; // $NON-NLS-1$ toolsToInvoke = ""; //$NON-NLS-1$
tools = new ITool[0]; tools = new ITool[0];
return tools; return tools;
} }
@ -632,7 +632,7 @@ public class ResourceConfiguration extends ResourceInfo implements IFileInfo {
*/ */
if(resConfigTools.length == 1){ if(resConfigTools.length == 1){
tools = new ITool[0]; tools = new ITool[0];
toolsToInvoke = ""; // $NON-NLS-1$ toolsToInvoke = ""; //$NON-NLS-1$
break; break;
} }
j = 0; j = 0;

View file

@ -40,7 +40,7 @@ import org.w3c.dom.Element;
import org.w3c.dom.Node; import org.w3c.dom.Node;
public class Target extends BuildObject implements ITarget { public class Target extends BuildObject implements ITarget {
private static final String EMPTY_STRING = ""; // $NON-NLS-1$ private static final String EMPTY_STRING = ""; //$NON-NLS-1$
private String artifactName; private String artifactName;
private String binaryParserId; private String binaryParserId;
private String cleanCommand; private String cleanCommand;

View file

@ -179,7 +179,7 @@ public class ToolReference implements IToolReference {
outputFlag = tool.getOutputFlag(); outputFlag = tool.getOutputFlag();
outputPrefix = tool.getOutputPrefix(); outputPrefix = tool.getOutputPrefix();
String[] extensions = tool.getOutputsAttribute(); String[] extensions = tool.getOutputsAttribute();
outputExtensions = ""; // $NON-NLS-1$ outputExtensions = ""; //$NON-NLS-1$
if (extensions != null) { if (extensions != null) {
for (int index = 0; index < extensions.length; ++index) { for (int index = 0; index < extensions.length; ++index) {
if (extensions[index] == null) continue; if (extensions[index] == null) continue;
@ -346,7 +346,7 @@ public class ToolReference implements IToolReference {
public String getId() { public String getId() {
if (parent == null) { if (parent == null) {
// bad reference // bad reference
return ""; // $NON-NLS-1$ return ""; //$NON-NLS-1$
} }
return parent.getId(); return parent.getId();
} }
@ -358,7 +358,7 @@ public class ToolReference implements IToolReference {
public String getBaseId() { public String getBaseId() {
if (parent == null) { if (parent == null) {
// bad reference // bad reference
return ""; // $NON-NLS-1$ return ""; //$NON-NLS-1$
} }
return parent.getBaseId(); return parent.getBaseId();
} }
@ -383,7 +383,7 @@ public class ToolReference implements IToolReference {
public String getName() { public String getName() {
if (parent == null) { if (parent == null) {
// bad reference // bad reference
return ""; // $NON-NLS-1$ return ""; //$NON-NLS-1$
} }
return parent.getName(); return parent.getName();
} }
@ -466,7 +466,7 @@ public class ToolReference implements IToolReference {
// see if the parent has one // see if the parent has one
if (parent == null) { if (parent == null) {
// bad reference // bad reference
return ""; // $NON-NLS-1$ return ""; //$NON-NLS-1$
} }
return parent.getToolCommand(); return parent.getToolCommand();
} }
@ -673,7 +673,7 @@ public class ToolReference implements IToolReference {
public String getOutputExtension(String inputExtension) { public String getOutputExtension(String inputExtension) {
if (parent == null) { if (parent == null) {
// bad reference // bad reference
return ""; // $NON-NLS-1$ return ""; //$NON-NLS-1$
} }
return parent.getOutputExtension(inputExtension); return parent.getOutputExtension(inputExtension);
} }
@ -688,7 +688,7 @@ public class ToolReference implements IToolReference {
return parent.getOutputFlag(); return parent.getOutputFlag();
} else { } else {
// We never should be here // We never should be here
return ""; // $NON-NLS-1$ return ""; //$NON-NLS-1$
} }
} }
return outputFlag; return outputFlag;
@ -703,7 +703,7 @@ public class ToolReference implements IToolReference {
if (parent != null) { if (parent != null) {
return parent.getOutputPrefix(); return parent.getOutputPrefix();
} }
return ""; // bad reference // $NON-NLS-1$ return ""; // bad reference //$NON-NLS-1$
} }
return outputPrefix; return outputPrefix;
} }
@ -865,7 +865,7 @@ public class ToolReference implements IToolReference {
*/ */
@Override @Override
public String getCommandLinePattern() { public String getCommandLinePattern() {
if( parent == null ) return ""; // $NON-NLS-1$ if( parent == null ) return ""; //$NON-NLS-1$
return parent.getCommandLinePattern(); return parent.getCommandLinePattern();
} }
@ -918,7 +918,7 @@ public class ToolReference implements IToolReference {
*/ */
@Override @Override
public String toString() { public String toString() {
String answer = ""; // $NON-NLS-1$ String answer = ""; //$NON-NLS-1$
if (parent != null) { if (parent != null) {
answer += "Reference to " + parent.getName(); //$NON-NLS-1$ answer += "Reference to " + parent.getName(); //$NON-NLS-1$
} }
@ -1282,7 +1282,7 @@ public class ToolReference implements IToolReference {
if (parent != null) { if (parent != null) {
return parent.getConvertToId(); return parent.getConvertToId();
} else { } else {
return ""; // $NON-NLS-1$ return ""; //$NON-NLS-1$
} }
} }
return convertToId; return convertToId;
@ -1311,7 +1311,7 @@ public class ToolReference implements IToolReference {
if (parent != null) { if (parent != null) {
return parent.getVersionsSupported(); return parent.getVersionsSupported();
} else { } else {
return ""; // $NON-NLS-1$ return ""; //$NON-NLS-1$
} }
} }
return versionsSupported; return versionsSupported;

View file

@ -39,11 +39,11 @@ public class CheckStringExpression implements IBooleanExpression {
public CheckStringExpression(IManagedConfigElement element){ public CheckStringExpression(IManagedConfigElement element){
fString = element.getAttribute(STRING); fString = element.getAttribute(STRING);
if(fString == null) if(fString == null)
fString = ""; // $NON-NLS-1$ fString = ""; //$NON-NLS-1$
fValue = element.getAttribute(VALUE); fValue = element.getAttribute(VALUE);
if(fValue == null) if(fValue == null)
fValue = ""; // $NON-NLS-1$ fValue = ""; //$NON-NLS-1$
fIsRegex = OptionEnablementExpression.getBooleanValue(element.getAttribute(IS_REGEX)); fIsRegex = OptionEnablementExpression.getBooleanValue(element.getAttribute(IS_REGEX));
} }

View file

@ -60,7 +60,7 @@ public class DefaultGnuWinScannerInfoCollector extends DefaultGCCScannerInfoColl
// // See if it has an equals // // See if it has an equals
// String[] macroTokens = ((String)symbolIter.next()).split(EQUALS); // String[] macroTokens = ((String)symbolIter.next()).split(EQUALS);
// String macro = macroTokens[0].trim(); // String macro = macroTokens[0].trim();
// String value = (macroTokens.length > 1) ? macroTokens[1].trim() : ""; // $NON-NLS-1$ // String value = (macroTokens.length > 1) ? macroTokens[1].trim() : ""; //$NON-NLS-1$
// getDefinedSymbols().put(macro, value); // getDefinedSymbols().put(macro, value);
// } // }
super.contributeToScannerConfig(resource, scannerInfo); super.contributeToScannerConfig(resource, scannerInfo);

View file

@ -50,7 +50,7 @@ import org.eclipse.core.runtime.IPath;
public class DefaultGCCDependencyCalculator3Commands implements public class DefaultGCCDependencyCalculator3Commands implements
IManagedDependencyCommands { IManagedDependencyCommands {
private static final String EMPTY_STRING = ""; // $NON-NLS-1$ private static final String EMPTY_STRING = ""; //$NON-NLS-1$
// Member variables set by the constructor // Member variables set by the constructor
IPath source; IPath source;

View file

@ -439,7 +439,7 @@ public class GnuMakefileGenerator implements IManagedBuilderMakefileGenerator2 {
if (buildTargetExt == null) { if (buildTargetExt == null) {
buildTargetExt = ""; // $NON-NLS-1$ buildTargetExt = ""; //$NON-NLS-1$
} }
// Cache the build tools // Cache the build tools
config = info.getDefaultConfiguration(); config = info.getDefaultConfiguration();
@ -651,7 +651,7 @@ public class GnuMakefileGenerator implements IManagedBuilderMakefileGenerator2 {
status = new MultiStatus( status = new MultiStatus(
ManagedBuilderCorePlugin.getUniqueIdentifier(), ManagedBuilderCorePlugin.getUniqueIdentifier(),
IStatus.INFO, IStatus.INFO,
"", // $NON-NLS-1$ "", //$NON-NLS-1$
null); null);
status.add(new Status ( status.add(new Status (
IStatus.INFO, IStatus.INFO,
@ -753,7 +753,7 @@ public class GnuMakefileGenerator implements IManagedBuilderMakefileGenerator2 {
status = new MultiStatus ( status = new MultiStatus (
ManagedBuilderCorePlugin.getUniqueIdentifier(), ManagedBuilderCorePlugin.getUniqueIdentifier(),
IStatus.WARNING, IStatus.WARNING,
"", // $NON-NLS-1$ "", //$NON-NLS-1$
null); null);
// Add a new status for each of the bad folders // Add a new status for each of the bad folders
// TODO: fix error message // TODO: fix error message
@ -770,7 +770,7 @@ public class GnuMakefileGenerator implements IManagedBuilderMakefileGenerator2 {
status = new MultiStatus( status = new MultiStatus(
ManagedBuilderCorePlugin.getUniqueIdentifier(), ManagedBuilderCorePlugin.getUniqueIdentifier(),
IStatus.OK, IStatus.OK,
"", // $NON-NLS-1$ "", //$NON-NLS-1$
null); null);
} }
@ -906,7 +906,7 @@ public class GnuMakefileGenerator implements IManagedBuilderMakefileGenerator2 {
status = new MultiStatus( status = new MultiStatus(
ManagedBuilderCorePlugin.getUniqueIdentifier(), ManagedBuilderCorePlugin.getUniqueIdentifier(),
IStatus.INFO, IStatus.INFO,
"", // $NON-NLS-1$ "", //$NON-NLS-1$
null); null);
status.add(new Status ( status.add(new Status (
IStatus.INFO, IStatus.INFO,
@ -965,7 +965,7 @@ public class GnuMakefileGenerator implements IManagedBuilderMakefileGenerator2 {
status = new MultiStatus ( status = new MultiStatus (
ManagedBuilderCorePlugin.getUniqueIdentifier(), ManagedBuilderCorePlugin.getUniqueIdentifier(),
IStatus.WARNING, IStatus.WARNING,
"", // $NON-NLS-1$ "", //$NON-NLS-1$
null); null);
// Add a new status for each of the bad folders // Add a new status for each of the bad folders
// TODO: fix error message // TODO: fix error message
@ -981,7 +981,7 @@ public class GnuMakefileGenerator implements IManagedBuilderMakefileGenerator2 {
status = new MultiStatus( status = new MultiStatus(
ManagedBuilderCorePlugin.getUniqueIdentifier(), ManagedBuilderCorePlugin.getUniqueIdentifier(),
IStatus.OK, IStatus.OK,
"", // $NON-NLS-1$ "", //$NON-NLS-1$
null); null);
} }
return status; return status;
@ -2823,7 +2823,7 @@ public class GnuMakefileGenerator implements IManagedBuilderMakefileGenerator2 {
} }
if (addlDeps != null && addlDeps.length > 0) { if (addlDeps != null && addlDeps.length > 0) {
calculatedDependencies = ""; // $NON-NLS-1$ calculatedDependencies = ""; //$NON-NLS-1$
for (IPath addlDep : addlDeps) { for (IPath addlDep : addlDeps) {
calculatedDependencies += WHITESPACE + escapeWhitespaces(addlDep.toString()); calculatedDependencies += WHITESPACE + escapeWhitespaces(addlDep.toString());
} }
@ -3652,7 +3652,7 @@ public class GnuMakefileGenerator implements IManagedBuilderMakefileGenerator2 {
try { try {
secondToken = deps.get(1); secondToken = deps.get(1);
} catch (ArrayIndexOutOfBoundsException e) { } catch (ArrayIndexOutOfBoundsException e) {
secondToken = ""; // $NON-NLS-1$ secondToken = ""; //$NON-NLS-1$
} }
if (secondToken.startsWith("'")) { //$NON-NLS-1$ if (secondToken.startsWith("'")) { //$NON-NLS-1$
// This is the Win32 implementation of echo (MinGW without MSYS) // This is the Win32 implementation of echo (MinGW without MSYS)
@ -3666,7 +3666,7 @@ public class GnuMakefileGenerator implements IManagedBuilderMakefileGenerator2 {
try { try {
thirdToken = deps.get(2); thirdToken = deps.get(2);
} catch (ArrayIndexOutOfBoundsException e) { } catch (ArrayIndexOutOfBoundsException e) {
thirdToken = ""; // $NON-NLS-1$ thirdToken = ""; //$NON-NLS-1$
} }
int lastIndex = thirdToken.lastIndexOf("'"); //$NON-NLS-1$ int lastIndex = thirdToken.lastIndexOf("'"); //$NON-NLS-1$
if (lastIndex != -1) { if (lastIndex != -1) {
@ -3690,7 +3690,7 @@ public class GnuMakefileGenerator implements IManagedBuilderMakefileGenerator2 {
} while (fourthToken.length() == 0); } while (fourthToken.length() == 0);
} catch (ArrayIndexOutOfBoundsException e) { } catch (ArrayIndexOutOfBoundsException e) {
fourthToken = ""; // $NON-NLS-1$ fourthToken = ""; //$NON-NLS-1$
} }
outBuffer.append(fourthToken).append(WHITESPACE); outBuffer.append(fourthToken).append(WHITESPACE);
@ -4515,7 +4515,7 @@ public class GnuMakefileGenerator implements IManagedBuilderMakefileGenerator2 {
* the name component in a <code>String</code> * the name component in a <code>String</code>
*/ */
private String getFileName(IResource file) { private String getFileName(IResource file) {
String answer = ""; // $NON-NLS-1$ String answer = ""; //$NON-NLS-1$
String lastSegment = file.getName(); String lastSegment = file.getName();
int extensionSeparator = lastSegment.lastIndexOf(DOT); int extensionSeparator = lastSegment.lastIndexOf(DOT);
if (extensionSeparator != -1) { if (extensionSeparator != -1) {
@ -4677,7 +4677,7 @@ public class GnuMakefileGenerator implements IManagedBuilderMakefileGenerator2 {
if (buildTargetExt == null) { if (buildTargetExt == null) {
buildTargetExt = ""; // $NON-NLS-1$ buildTargetExt = ""; //$NON-NLS-1$
} }
// Cache the build tools // Cache the build tools
config = cfg; config = cfg;

View file

@ -92,8 +92,8 @@ public class MakeScannerInfo implements IScannerInfo {
if (symbol.length() == 0) { if (symbol.length() == 0) {
continue; continue;
} }
String key = ""; // $NON-NLS-1$ String key = ""; //$NON-NLS-1$
String value = ""; // $NON-NLS-1$ String value = ""; //$NON-NLS-1$
int index = symbol.indexOf("="); //$NON-NLS-1$ int index = symbol.indexOf("="); //$NON-NLS-1$
if (index != -1) { if (index != -1) {
key = symbol.substring(0, index).trim(); key = symbol.substring(0, index).trim();

View file

@ -132,7 +132,7 @@ public class BuildOptionComboFieldEditor extends FieldEditor {
public void widgetSelected(SelectionEvent evt) { public void widgetSelected(SelectionEvent evt) {
String oldValue = selected; String oldValue = selected;
int index = optionSelector.getSelectionIndex(); int index = optionSelector.getSelectionIndex();
selected = index == -1 ? "" : optionSelector.getItem(index); // $NON-NLS-1$ selected = index == -1 ? "" : optionSelector.getItem(index); //$NON-NLS-1$
setPresentsDefaultValue(false); setPresentsDefaultValue(false);
fireValueChanged(VALUE, oldValue, selected); fireValueChanged(VALUE, oldValue, selected);
} }
@ -171,7 +171,7 @@ public class BuildOptionComboFieldEditor extends FieldEditor {
protected void doStore() { protected void doStore() {
// Save the selected item in the store // Save the selected item in the store
int index = optionSelector.getSelectionIndex(); int index = optionSelector.getSelectionIndex();
selected = index == -1 ? "" : optionSelector.getItem(index); // $NON-NLS-1$ selected = index == -1 ? "" : optionSelector.getItem(index); //$NON-NLS-1$
getPreferenceStore().setValue(getPreferenceName(), selected); getPreferenceStore().setValue(getPreferenceName(), selected);
} }

View file

@ -273,7 +273,7 @@ public class BuildStepsTab extends AbstractCBuildPropertyTab {
rcbsTool = rcConfig.createTool(null,rcbsToolId + "." + ManagedBuildManager.getRandomNumber(),rcbsToolName,false); //$NON-NLS-1$ rcbsTool = rcConfig.createTool(null,rcbsToolId + "." + ManagedBuildManager.getRandomNumber(),rcbsToolName,false); //$NON-NLS-1$
rcbsTool.setCustomBuildStep(true); rcbsTool.setCustomBuildStep(true);
IInputType rcbsToolInputType = rcbsTool.createInputType(null,rcbsToolInputTypeId + "." + ManagedBuildManager.getRandomNumber(),rcbsToolInputTypeName,false); //$NON-NLS-1$ IInputType rcbsToolInputType = rcbsTool.createInputType(null,rcbsToolInputTypeId + "." + ManagedBuildManager.getRandomNumber(),rcbsToolInputTypeName,false); //$NON-NLS-1$
IAdditionalInput rcbsToolInputTypeAdditionalInput = rcbsToolInputType.createAdditionalInput(""); // $NON-NLS-1$ IAdditionalInput rcbsToolInputTypeAdditionalInput = rcbsToolInputType.createAdditionalInput(""); //$NON-NLS-1$
rcbsToolInputTypeAdditionalInput.setKind(IAdditionalInput.KIND_ADDITIONAL_INPUT_DEPENDENCY); rcbsToolInputTypeAdditionalInput.setKind(IAdditionalInput.KIND_ADDITIONAL_INPUT_DEPENDENCY);
rcbsTool.createOutputType(null,rcbsToolOutputTypeId + "." + ManagedBuildManager.getRandomNumber(),rcbsToolOutputTypeName,false); //$NON-NLS-1$ rcbsTool.createOutputType(null,rcbsToolOutputTypeId + "." + ManagedBuildManager.getRandomNumber(),rcbsToolOutputTypeName,false); //$NON-NLS-1$
} }
@ -298,7 +298,7 @@ public class BuildStepsTab extends AbstractCBuildPropertyTab {
private String createList(String[] items) { private String createList(String[] items) {
if(items == null) if(items == null)
return ""; // $NON-NLS-1$ return ""; //$NON-NLS-1$
StringBuilder path = new StringBuilder(EMPTY_STR); StringBuilder path = new StringBuilder(EMPTY_STR);

View file

@ -88,8 +88,8 @@ public class NewBuildConfigurationDialog extends Dialog {
des = prjd; des = prjd;
setShellStyle(getShellStyle()|SWT.RESIZE); setShellStyle(getShellStyle()|SWT.RESIZE);
newName = ""; // $NON-NLS-1$ newName = ""; //$NON-NLS-1$
newDescription = ""; // $NON-NLS-1$ newDescription = ""; //$NON-NLS-1$
parentConfig = null; parentConfig = null;
// The default behaviour is to clone the settings // The default behaviour is to clone the settings
@ -110,9 +110,9 @@ public class NewBuildConfigurationDialog extends Dialog {
@Override @Override
protected void buttonPressed(int buttonId) { protected void buttonPressed(int buttonId) {
if (buttonId == IDialogConstants.OK_ID) { if (buttonId == IDialogConstants.OK_ID) {
String description = ""; // $NON-NLS-1$ String description = ""; //$NON-NLS-1$
String nameAndDescription = ""; // $NON-NLS-1$ String nameAndDescription = ""; //$NON-NLS-1$
String baseConfigNameAndDescription = ""; // $NON-NLS-1$ String baseConfigNameAndDescription = ""; //$NON-NLS-1$
newName = configName.getText().trim(); newName = configName.getText().trim();
newDescription = configDescription.getText().trim(); newDescription = configDescription.getText().trim();

View file

@ -413,8 +413,8 @@ public class NewCfgDialog implements INewCfgDialog {
/** /**
*/ */
public NewCfgDialog() { public NewCfgDialog() {
newName = ""; // $NON-NLS-1$ newName = ""; //$NON-NLS-1$
newDescription = ""; // $NON-NLS-1$ newDescription = ""; //$NON-NLS-1$
} }
@Override @Override

View file

@ -55,7 +55,7 @@ import com.ibm.icu.text.Collator;
* @noinstantiate This class is not intended to be instantiated by clients. * @noinstantiate This class is not intended to be instantiated by clients.
*/ */
public class NewVarDialog extends Dialog { public class NewVarDialog extends Dialog {
private static final String EMPTY_STRING = ""; // $NON-NLS-1$ private static final String EMPTY_STRING = ""; //$NON-NLS-1$
// The title of the dialog. // The title of the dialog.
private String fTitle; private String fTitle;

View file

@ -20,7 +20,7 @@ import org.eclipse.cdt.core.settings.model.util.SettingsSet.SettingLevel;
public abstract class AbstractEntryStorage { public abstract class AbstractEntryStorage {
private int fKind; private int fKind;
private static final String EMPTY_STRING = ""; // $NON-NLS-1$ private static final String EMPTY_STRING = ""; //$NON-NLS-1$
public AbstractEntryStorage(int kind){ public AbstractEntryStorage(int kind){
fKind = kind; fKind = kind;

View file

@ -46,7 +46,7 @@ public class BinaryFunction extends BinaryElement implements IBinaryFunction {
@Override @Override
public String getParameterInitializer(int pos) { public String getParameterInitializer(int pos) {
// TODO Auto-generated method stub // TODO Auto-generated method stub
return ""; // $NON-NLS-1$ return ""; //$NON-NLS-1$
} }
/* (non-Javadoc) /* (non-Javadoc)
@ -64,7 +64,7 @@ public class BinaryFunction extends BinaryElement implements IBinaryFunction {
@Override @Override
public String getReturnType() { public String getReturnType() {
// TODO Auto-generated method stub // TODO Auto-generated method stub
return ""; // $NON-NLS-1$ return ""; //$NON-NLS-1$
} }
/* (non-Javadoc) /* (non-Javadoc)

View file

@ -1,5 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2009, 2015 Wind River Systems, Inc. and others. * Copyright (c) 2009, 2016 Wind River Systems, Inc. and others.
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -72,7 +72,7 @@ public final class IncludeSearchPathElement {
String framework = includeDirective.substring(0, firstSep); String framework = includeDirective.substring(0, firstSep);
String file = includeDirective.substring(firstSep + 1); String file = includeDirective.substring(firstSep + 1);
if (file.length() > 0) { if (file.length() > 0) {
if (fPath.endsWith(framework + FRAMEWORK_HEADERS)) { // $NON-NLS-1$ if (fPath.endsWith(framework + FRAMEWORK_HEADERS)) { //$NON-NLS-1$
return ScannerUtility.createReconciledPath(fPath, file); return ScannerUtility.createReconciledPath(fPath, file);
} }
} }

View file

@ -885,7 +885,7 @@ public class PE {
} }
} }
return ""; // $NON-NLS-1$ return ""; //$NON-NLS-1$
} }
/** /**

View file

@ -695,9 +695,9 @@ public class Dwarf {
ByteBuffer data = dwarfSections.get(DWARF_DEBUG_STR); ByteBuffer data = dwarfSections.get(DWARF_DEBUG_STR);
if (data == null) { if (data == null) {
obj = ""; // $NON-NLS-1$ obj = ""; //$NON-NLS-1$
} else if (offset < 0 || offset > data.capacity()) { } else if (offset < 0 || offset > data.capacity()) {
obj = ""; // $NON-NLS-1$ obj = ""; //$NON-NLS-1$
} else { } else {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
data.position((int) offset); data.position((int) offset);
@ -723,9 +723,9 @@ public class Dwarf {
ByteBuffer data = dwarfAltSections.get(DWARF_DEBUG_STR); ByteBuffer data = dwarfAltSections.get(DWARF_DEBUG_STR);
if (data == null) { if (data == null) {
obj = ""; // $NON-NLS-1$ obj = ""; //$NON-NLS-1$
} else if (offset < 0 || offset > data.capacity()) { } else if (offset < 0 || offset > data.capacity()) {
obj = ""; // $NON-NLS-1$ obj = ""; //$NON-NLS-1$
} else { } else {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
data.position((int) offset); data.position((int) offset);

View file

@ -188,7 +188,7 @@ public class Stabs {
if (stroff > 0) { if (stroff > 0) {
field = makeString(stroff); field = makeString(stroff);
} else { } else {
field = ""; // $NON-NLS-1$ field = ""; //$NON-NLS-1$
} }
// Check for continuation and if any go to the next stab // Check for continuation and if any go to the next stab
// until we find a string that is not terminated with a // until we find a string that is not terminated with a

View file

@ -177,7 +177,7 @@ public class StabsReader implements ISymbolReader {
if (stroff > 0) { if (stroff > 0) {
field = makeString(stroff); field = makeString(stroff);
} else { } else {
field = ""; // $NON-NLS-1$ field = ""; //$NON-NLS-1$
} }
// Check for continuation and if any go to the next stab // Check for continuation and if any go to the next stab
// until we find a string that is not terminated with a // until we find a string that is not terminated with a

View file

@ -98,7 +98,7 @@ public class StringField {
if (index < array.length) { if (index < array.length) {
typeInformation = new String(array, index, array.length - index); typeInformation = new String(array, index, array.length - index);
} else { } else {
typeInformation = ""; // $NON-NLS-1$ typeInformation = ""; //$NON-NLS-1$
} }
} }
} }

View file

@ -217,7 +217,7 @@ public class CHelpProviderTester{
private String getValueByKey(String key){ private String getValueByKey(String key){
String val = fProperties.getProperty(key); String val = fProperties.getProperty(key);
if(val == null) if(val == null)
val = ""; // $NON-NLS-1$ val = ""; //$NON-NLS-1$
return val; return val;
} }

View file

@ -523,7 +523,7 @@ public final class IndentUtil {
if (computed != null) if (computed != null)
indent= computed.toString(); indent= computed.toString();
else else
indent= ""; // $NON-NLS-1$ indent= ""; //$NON-NLS-1$
} }
return indent; return indent;
} }

View file

@ -141,7 +141,7 @@ public class CFileTypesPreferenceBlock {
} else if (assoc.isPredefined()) { } else if (assoc.isPredefined()) {
return PreferencesMessages.CFileTypesPreferencePage_preDefined; return PreferencesMessages.CFileTypesPreferencePage_preDefined;
} }
return ""; // $NON-NLS-1$ return ""; //$NON-NLS-1$
} }
} }
return element.toString(); return element.toString();

View file

@ -44,7 +44,7 @@ public class CSearchUtil {
public static String toString(IWorkingSet[] workingSets) { public static String toString(IWorkingSet[] workingSets) {
if (workingSets != null && workingSets.length > 0) { if (workingSets != null && workingSets.length > 0) {
String string = ""; // $NON-NLS-1$ String string = ""; //$NON-NLS-1$
for (int i = 0; i < workingSets.length; i++) { for (int i = 0; i < workingSets.length; i++) {
if (i > 0) if (i > 0)
string += ", "; //$NON-NLS-1$ string += ", "; //$NON-NLS-1$

View file

@ -1,5 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2010, 2013 Andrew Gvozdev and others. * Copyright (c) 2010, 2016 Andrew Gvozdev and others.
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -80,11 +80,11 @@ public class CDTSharedImages {
public static final String IMG_OBJS_TUNIT_RESOURCE = "icons/obj16/c_resource_obj.gif"; //$NON-NLS-1$ public static final String IMG_OBJS_TUNIT_RESOURCE = "icons/obj16/c_resource_obj.gif"; //$NON-NLS-1$
public static final String IMG_OBJS_TUNIT_RESOURCE_H = "icons/obj16/ch_resource_obj.gif"; //$NON-NLS-1$ public static final String IMG_OBJS_TUNIT_RESOURCE_H = "icons/obj16/ch_resource_obj.gif"; //$NON-NLS-1$
public static final String IMG_OBJS_TUNIT_RESOURCE_A = "icons/obj16/asm_resource_obj.gif"; //$NON-NLS-1$ public static final String IMG_OBJS_TUNIT_RESOURCE_A = "icons/obj16/asm_resource_obj.gif"; //$NON-NLS-1$
public static final String IMG_OBJS_SOURCE_ROOT = "icons/obj16/sroot_obj.gif"; // $NON-NLS-1$ //$NON-NLS-1$ public static final String IMG_OBJS_SOURCE_ROOT = "icons/obj16/sroot_obj.gif"; //$NON-NLS-1$ //$NON-NLS-1$
public static final String IMG_OBJS_SOURCE2_ROOT = "icons/obj16/sroot2_obj.gif"; // $NON-NLS-1$ //$NON-NLS-1$ public static final String IMG_OBJS_SOURCE2_ROOT = "icons/obj16/sroot2_obj.gif"; //$NON-NLS-1$ //$NON-NLS-1$
public static final String IMG_OBJS_FOLDER = "icons/obj16/fldr_obj.gif"; // $NON-NLS-1$ //$NON-NLS-1$ public static final String IMG_OBJS_FOLDER = "icons/obj16/fldr_obj.gif"; //$NON-NLS-1$ //$NON-NLS-1$
public static final String IMG_OBJS_CFOLDER = "icons/obj16/cfolder_obj.gif"; // $NON-NLS-1$ //$NON-NLS-1$ public static final String IMG_OBJS_CFOLDER = "icons/obj16/cfolder_obj.gif"; //$NON-NLS-1$ //$NON-NLS-1$
public static final String IMG_OBJS_CONFIG = "icons/obj16/config.gif"; // $NON-NLS-1$ //$NON-NLS-1$ public static final String IMG_OBJS_CONFIG = "icons/obj16/config.gif"; //$NON-NLS-1$ //$NON-NLS-1$
public static final String IMG_OBJS_ARCHIVE = "icons/obj16/ar_obj.gif"; //$NON-NLS-1$ public static final String IMG_OBJS_ARCHIVE = "icons/obj16/ar_obj.gif"; //$NON-NLS-1$
public static final String IMG_OBJS_BINARY = "icons/obj16/bin_obj.gif"; //$NON-NLS-1$ public static final String IMG_OBJS_BINARY = "icons/obj16/bin_obj.gif"; //$NON-NLS-1$
public static final String IMG_OBJS_SHLIB = "icons/obj16/shlib_obj.gif"; //$NON-NLS-1$ public static final String IMG_OBJS_SHLIB = "icons/obj16/shlib_obj.gif"; //$NON-NLS-1$
@ -106,7 +106,7 @@ public class CDTSharedImages {
/** @since 5.4 */ /** @since 5.4 */
public static final String IMG_OBJS_FRAMEWORKS_FOLDER = "icons/obj16/frameworks.png"; //$NON-NLS-1$ public static final String IMG_OBJS_FRAMEWORKS_FOLDER = "icons/obj16/frameworks.png"; //$NON-NLS-1$
public static final String IMG_OBJS_MACROS_FILE= "icons/obj16/macros_file.gif"; //$NON-NLS-1$ public static final String IMG_OBJS_MACROS_FILE= "icons/obj16/macros_file.gif"; //$NON-NLS-1$
public static final String IMG_OBJS_LIBRARY_FOLDER= "icons/obj16/fldr_lib_obj.gif"; // $NON-NLS-1$ //$NON-NLS-1$ public static final String IMG_OBJS_LIBRARY_FOLDER= "icons/obj16/fldr_lib_obj.gif"; //$NON-NLS-1$ //$NON-NLS-1$
public static final String IMG_OBJS_ORDER = "icons/obj16/cp_order_obj.gif"; //$NON-NLS-1$ public static final String IMG_OBJS_ORDER = "icons/obj16/cp_order_obj.gif"; //$NON-NLS-1$
public static final String IMG_OBJS_EXCLUSION_FILTER_ATTRIB = "icons/obj16/exclusion_filter_attrib.gif"; //$NON-NLS-1$ public static final String IMG_OBJS_EXCLUSION_FILTER_ATTRIB = "icons/obj16/exclusion_filter_attrib.gif"; //$NON-NLS-1$
public static final String IMG_OBJS_SOURCE_ATTACH_ATTRIB = "icons/obj16/source_attach_attrib.gif"; //$NON-NLS-1$ public static final String IMG_OBJS_SOURCE_ATTACH_ATTRIB = "icons/obj16/source_attach_attrib.gif"; //$NON-NLS-1$

View file

@ -1,5 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2003, 2010 IBM Corporation and others. * Copyright (c) 2003, 2016 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -47,9 +47,9 @@ import org.eclipse.ui.model.WorkbenchLabelProvider;
@Deprecated @Deprecated
public class ReferenceBlock extends AbstractCOptionPage { public class ReferenceBlock extends AbstractCOptionPage {
private static final String PREFIX = "ReferenceBlock"; // $NON-NLS-1$ //$NON-NLS-1$ private static final String PREFIX = "ReferenceBlock"; //$NON-NLS-1$ //$NON-NLS-1$
private static final String LABEL = PREFIX + ".label"; // $NON-NLS-1$ //$NON-NLS-1$ private static final String LABEL = PREFIX + ".label"; //$NON-NLS-1$ //$NON-NLS-1$
private static final String DESC = PREFIX + ".desc"; // $NON-NLS-1$ //$NON-NLS-1$ private static final String DESC = PREFIX + ".desc"; //$NON-NLS-1$ //$NON-NLS-1$
private CheckboxTableViewer referenceProjectsViewer; private CheckboxTableViewer referenceProjectsViewer;

View file

@ -62,8 +62,8 @@ public class NewConfigurationDialog extends Dialog implements INewCfgDialog {
protected NewConfigurationDialog(Shell parentShell) { protected NewConfigurationDialog(Shell parentShell) {
super(parentShell); super(parentShell);
setShellStyle(getShellStyle()|SWT.RESIZE); setShellStyle(getShellStyle()|SWT.RESIZE);
newName = ""; // $NON-NLS-1$ newName = ""; //$NON-NLS-1$
newDescription = ""; // $NON-NLS-1$ newDescription = ""; //$NON-NLS-1$
} }
@Override @Override
@ -85,9 +85,9 @@ public class NewConfigurationDialog extends Dialog implements INewCfgDialog {
@Override @Override
protected void buttonPressed(int buttonId) { protected void buttonPressed(int buttonId) {
if (buttonId == IDialogConstants.OK_ID) { if (buttonId == IDialogConstants.OK_ID) {
String description = ""; // $NON-NLS-1$ String description = ""; //$NON-NLS-1$
String nameAndDescription = ""; // $NON-NLS-1$ String nameAndDescription = ""; //$NON-NLS-1$
String baseConfigNameAndDescription = ""; // $NON-NLS-1$ String baseConfigNameAndDescription = ""; //$NON-NLS-1$
newName = configName.getText().trim(); newName = configName.getText().trim();
newDescription = configDescription.getText().trim(); newDescription = configDescription.getText().trim();

View file

@ -64,7 +64,7 @@ public class RenameConfigurationDialog extends Dialog {
setShellStyle(getShellStyle()|SWT.RESIZE); setShellStyle(getShellStyle()|SWT.RESIZE);
newName = renameConfig.getName(); newName = renameConfig.getName();
newDescription = renameConfig.getDescription(); newDescription = renameConfig.getDescription();
if(newDescription == null) newDescription = ""; // $NON-NLS-1$ if(newDescription == null) newDescription = ""; //$NON-NLS-1$
originalName = renameConfig.getName(); originalName = renameConfig.getName();
} }

View file

@ -69,7 +69,7 @@ public class UIStringListWidget extends InputUIElement {
@Override @Override
public Map<String, String> getValues() { public Map<String, String> getValues() {
Map<String, String> retMap = new HashMap<String, String>(); Map<String, String> retMap = new HashMap<String, String>();
String itemString = ""; // $NON-NLS-1$ String itemString = ""; //$NON-NLS-1$
for (int i = 0; i < itemsList.size(); i++) { for (int i = 0; i < itemsList.size(); i++) {
itemString = itemString + itemsList.get(i) + "|"; //$NON-NLS-1$ itemString = itemString + itemsList.get(i) + "|"; //$NON-NLS-1$
} }

View file

@ -72,7 +72,7 @@ public class UITextWidget extends InputUIElement implements ModifyListener {
*/ */
public UITextWidget(UIAttributes uiAttribute) { public UITextWidget(UIAttributes uiAttribute) {
super(uiAttribute); super(uiAttribute);
this.textValue = ""; // $NON-NLS-1$ this.textValue = ""; //$NON-NLS-1$
} }
/** /**

View file

@ -1,5 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2015 Red Hat, Inc. * Copyright (c) 2015, 2016 Red Hat, Inc. and others.
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -34,7 +34,7 @@ public abstract class StandaloneTest {
bot = new SWTBot(); bot = new SWTBot();
Utilities.getDefault().buildProject(projectName); Utilities.getDefault().buildProject(projectName);
final IPath executablePath = Utilities.getDefault().getProjectPath(projectName).append("a.out"); // $NON-NLS-1$ final IPath executablePath = Utilities.getDefault().getProjectPath(projectName).append("a.out"); //$NON-NLS-1$
bot.waitUntil(new WaitForFileCondition(executablePath)); bot.waitUntil(new WaitForFileCondition(executablePath));
bot.waitUntil(Conditions.shellIsActive(DEBUG_NEW_EXECUTABLE_TITLE)); bot.waitUntil(Conditions.shellIsActive(DEBUG_NEW_EXECUTABLE_TITLE));

View file

@ -1,5 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2008, 2012 QNX Software Systems and others. * Copyright (c) 2008, 2016 QNX Software Systems and others.
* *
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
@ -41,7 +41,7 @@ public class CEventBreakpoint extends CBreakpoint implements ICEventBreakpoint {
@Override @Override
protected String getMarkerMessage() throws CoreException { protected String getMarkerMessage() throws CoreException {
// default message, overridden by label provider, which would take care of translation // default message, overridden by label provider, which would take care of translation
return "Event Breakpoint: " + getEventType(); // $NON-NLS-1$ //$NON-NLS-1$ return "Event Breakpoint: " + getEventType(); //$NON-NLS-1$ //$NON-NLS-1$
} }
/** /**

View file

@ -33,7 +33,7 @@ public class MICommand<V extends MIInfo> implements ICommand<V> {
List<Adjustable> fOptions = new ArrayList<>(); List<Adjustable> fOptions = new ArrayList<>();
List<Adjustable> fParameters = new ArrayList<>(); List<Adjustable> fParameters = new ArrayList<>();
String fOperation = ""; // $NON-NLS-1$ String fOperation = ""; //$NON-NLS-1$
IDMContext fCtx; IDMContext fCtx;
/* /*

View file

@ -115,7 +115,7 @@ public class MIDataDisassemble extends MICommand<MIDataDisassembleInfo> {
if (parameters != null && parameters.length > 0) { if (parameters != null && parameters.length > 0) {
return "-- " + parameters[0]; //$NON-NLS-1$ return "-- " + parameters[0]; //$NON-NLS-1$
} }
return ""; // $NON-NLS-1$ return ""; //$NON-NLS-1$
} }
@Override @Override

View file

@ -280,7 +280,7 @@ public class VMDelta extends ModelDelta {
} }
private void appendDetail(StringBuilder buf, VMDelta delta, int depth) { private void appendDetail(StringBuilder buf, VMDelta delta, int depth) {
String indent = ""; // $NON-NLS-1$ String indent = ""; //$NON-NLS-1$
for (int i = 0; i < depth; i++) { for (int i = 0; i < depth; i++) {
indent += '\t'; indent += '\t';
} }

View file

@ -464,7 +464,7 @@ public class ContainerTab extends AbstractLaunchConfigurationTab implements
.getAttribute(ILaunchConstants.ATTR_IMAGE, (String) null); .getAttribute(ILaunchConstants.ATTR_IMAGE, (String) null);
if (image == null) if (image == null)
return false; return false;
int index = image.lastIndexOf(':'); // $NON-NLS-1$ int index = image.lastIndexOf(':'); //$NON-NLS-1$
if (index <= 0) if (index <= 0)
return false; return false;
if (connection.hasImage(image.substring(0, index), if (connection.hasImage(image.substring(0, index),

View file

@ -1,5 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2000, 2015 QNX Software Systems and others. * Copyright (c) 2000, 2016 QNX Software Systems and others.
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -122,7 +122,7 @@ public class GdbDebuggerPage extends AbstractCDebuggerPage implements Observer {
setErrorMessage(null); setErrorMessage(null);
setMessage(null); setMessage(null);
} else { } else {
setErrorMessage(Messages.GDBDebuggerPage0); // $NON-NLS-1$ setErrorMessage(Messages.GDBDebuggerPage0); //$NON-NLS-1$
setMessage(null); setMessage(null);
} }
return valid; return valid;

View file

@ -255,7 +255,7 @@ public class CEnvironmentTab extends CLaunchConfigurationTab {
} }
public String get() { public String get() {
String result = ""; // $NON-NLS-1$ String result = ""; //$NON-NLS-1$
Object[] entries = fElements.entrySet().toArray(); Object[] entries = fElements.entrySet().toArray();
for (int i = 0; i < entries.length; ++i) for (int i = 0; i < entries.length; ++i)
result += entries[i].toString() + '\n'; result += entries[i].toString() + '\n';
@ -366,7 +366,7 @@ public class CEnvironmentTab extends CLaunchConfigurationTab {
} }
protected void newEntry() { protected void newEntry() {
EntryDialog dialog = new EntryDialog("", "", false); // $NON-NLS-1$ // $NON-NLS-2$ EntryDialog dialog = new EntryDialog("", "", false); //$NON-NLS-1$ //$NON-NLS-2$
if (dialog.open() == Window.OK) { if (dialog.open() == Window.OK) {
fElements.setProperty(dialog.getName(), dialog.getValue()); fElements.setProperty(dialog.getName(), dialog.getValue());
fVariableList.refresh(); fVariableList.refresh();

View file

@ -1,5 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2015 QNX Software Systems and others. * Copyright (c) 2015, 2016 QNX Software Systems and others.
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -95,9 +95,9 @@ public class ArduinoTool {
public Properties getToolProperties() { public Properties getToolProperties() {
Properties properties = new Properties(); Properties properties = new Properties();
properties.put("runtime.tools." + name + ".path", ArduinoBuildConfiguration.pathString(getInstallPath())); // $NON-NLS-1$ //$NON-NLS-1$//$NON-NLS-2$ properties.put("runtime.tools." + name + ".path", ArduinoBuildConfiguration.pathString(getInstallPath())); //$NON-NLS-1$ //$NON-NLS-1$//$NON-NLS-2$
properties.put("runtime.tools." + name + '-' + version + ".path", //$NON-NLS-1$//$NON-NLS-2$ properties.put("runtime.tools." + name + '-' + version + ".path", //$NON-NLS-1$//$NON-NLS-2$
ArduinoBuildConfiguration.pathString(getInstallPath())); // $NON-NLS-1$ ArduinoBuildConfiguration.pathString(getInstallPath())); //$NON-NLS-1$
return properties; return properties;
} }