mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-10 09:45:39 +02:00
removing warnings
This commit is contained in:
parent
a2e7931a88
commit
b99184d06c
16 changed files with 40 additions and 41 deletions
|
@ -142,7 +142,7 @@ public class RSECorePlugin extends Plugin {
|
||||||
|
|
||||||
private void log(Throwable t) {
|
private void log(Throwable t) {
|
||||||
String pluginId = this.getBundle().getSymbolicName();
|
String pluginId = this.getBundle().getSymbolicName();
|
||||||
IStatus status = new Status(IStatus.ERROR, pluginId, 0, "Unexpected Exception", t);
|
IStatus status = new Status(IStatus.ERROR, pluginId, 0, "Unexpected Exception", t); //$NON-NLS-1$
|
||||||
getLog().log(status);
|
getLog().log(status);
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -32,10 +32,10 @@ public interface ISystemFilterConstants extends ISystemFilterSavePolicies
|
||||||
/**
|
/**
|
||||||
* Suffix used when persisting data to a file.
|
* Suffix used when persisting data to a file.
|
||||||
*/
|
*/
|
||||||
public static final String SAVEFILE_SUFFIX = ".xmi";
|
public static final String SAVEFILE_SUFFIX = ".xmi"; //$NON-NLS-1$
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default value for the type attribute for filter pools, filters and filterstrings
|
* Default value for the type attribute for filter pools, filters and filterstrings
|
||||||
*/
|
*/
|
||||||
public static final String DEFAULT_TYPE = "default";
|
public static final String DEFAULT_TYPE = "default"; //$NON-NLS-1$
|
||||||
}
|
}
|
|
@ -36,7 +36,7 @@ public interface ISystemFilterPoolManagerProvider extends IAdaptable
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the unique id for this provider
|
* Return the unique id for this provider
|
||||||
* @return
|
* @return the id
|
||||||
*/
|
*/
|
||||||
public String getId();
|
public String getId();
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@ public interface ISystemFilterPoolSelectionValidator
|
||||||
* Delimiter used to qualify filter names by filter pool name, when calling
|
* Delimiter used to qualify filter names by filter pool name, when calling
|
||||||
* filter pool selection validator in new filter wizard.
|
* filter pool selection validator in new filter wizard.
|
||||||
*/
|
*/
|
||||||
public static final String DELIMITER_FILTERPOOL_FILTER = "_____";
|
public static final String DELIMITER_FILTERPOOL_FILTER = "_____"; //$NON-NLS-1$
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Validate the given selection.
|
* Validate the given selection.
|
||||||
|
|
|
@ -30,23 +30,23 @@ public class SystemFilterNamingPolicy implements IRSEFilterNamingPolicy, ISystem
|
||||||
/**
|
/**
|
||||||
* Default prefix for filter pool manager persisted file: "filterPools_"
|
* Default prefix for filter pool manager persisted file: "filterPools_"
|
||||||
*/
|
*/
|
||||||
public static final String DEFAULT_FILENAME_PREFIX_FILTERPOOLMANAGER = "filterPools_";
|
public static final String DEFAULT_FILENAME_PREFIX_FILTERPOOLMANAGER = "filterPools_"; //$NON-NLS-1$
|
||||||
/**
|
/**
|
||||||
* Default prefix for filter pool reference manager persisted file: "filterPoolRefs_"
|
* Default prefix for filter pool reference manager persisted file: "filterPoolRefs_"
|
||||||
*/
|
*/
|
||||||
public static final String DEFAULT_FILENAME_PREFIX_FILTERPOOLREFERENCEMANAGER = "filterPoolRefs_";
|
public static final String DEFAULT_FILENAME_PREFIX_FILTERPOOLREFERENCEMANAGER = "filterPoolRefs_"; //$NON-NLS-1$
|
||||||
/**
|
/**
|
||||||
* Default prefix for filter pool persisted file: "filterPool_"
|
* Default prefix for filter pool persisted file: "filterPool_"
|
||||||
*/
|
*/
|
||||||
public static final String DEFAULT_FILENAME_PREFIX_FILTERPOOL = "filterPool_";
|
public static final String DEFAULT_FILENAME_PREFIX_FILTERPOOL = "filterPool_"; //$NON-NLS-1$
|
||||||
/**
|
/**
|
||||||
* Default prefix for filter persisted file: "filter_"
|
* Default prefix for filter persisted file: "filter_"
|
||||||
*/
|
*/
|
||||||
public static final String DEFAULT_FILENAME_PREFIX_FILTER = "filter_";
|
public static final String DEFAULT_FILENAME_PREFIX_FILTER = "filter_"; //$NON-NLS-1$
|
||||||
/**
|
/**
|
||||||
* Default prefix for filter pool folder: "FilterPool_"
|
* Default prefix for filter pool folder: "FilterPool_"
|
||||||
*/
|
*/
|
||||||
public static final String DEFAULT_FOLDERNAME_PREFIX_FILTERPOOL = "FilterPool_";
|
public static final String DEFAULT_FOLDERNAME_PREFIX_FILTERPOOL = "FilterPool_"; //$NON-NLS-1$
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -718,7 +718,7 @@ public class SystemFilterPoolManager implements ISystemFilterPoolManager
|
||||||
deleteSystemFilterPool(allPools[idx]);
|
deleteSystemFilterPool(allPools[idx]);
|
||||||
} catch (Exception exc)
|
} catch (Exception exc)
|
||||||
{
|
{
|
||||||
logError("Exception deleting filter pool " + name + " from mgr " + getName(),exc);
|
logError("Exception deleting filter pool " + name + " from mgr " + getName(),exc); //$NON-NLS-1$ //$NON-NLS-2$
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1755,7 +1755,7 @@ public class SystemFilterPoolManager implements ISystemFilterPoolManager
|
||||||
if (logger != null)
|
if (logger != null)
|
||||||
logger.logInfo(message);
|
logger.logInfo(message);
|
||||||
else
|
else
|
||||||
System.out.println(getClass().getName() + ": INFO: " + message);
|
System.out.println(getClass().getName() + ": INFO: " + message); //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1769,7 +1769,7 @@ public class SystemFilterPoolManager implements ISystemFilterPoolManager
|
||||||
if (logger != null)
|
if (logger != null)
|
||||||
logger.logWarning(message);
|
logger.logWarning(message);
|
||||||
else
|
else
|
||||||
System.out.println(getClass().getName() + ": WARNING: " + message);
|
System.out.println(getClass().getName() + ": WARNING: " + message); //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1790,7 +1790,7 @@ public class SystemFilterPoolManager implements ISystemFilterPoolManager
|
||||||
String msg = exception.getMessage();
|
String msg = exception.getMessage();
|
||||||
if (msg == null)
|
if (msg == null)
|
||||||
msg = exception.getClass().getName();
|
msg = exception.getClass().getName();
|
||||||
System.out.println(getClass().getName() + ": " + message + ": " + msg);
|
System.out.println(getClass().getName() + ": " + message + ": " + msg); //$NON-NLS-1$ //$NON-NLS-2$
|
||||||
exception.printStackTrace();
|
exception.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1812,7 +1812,7 @@ public class SystemFilterPoolManager implements ISystemFilterPoolManager
|
||||||
logger.logDebugMessage(prefix, message);
|
logger.logDebugMessage(prefix, message);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
System.out.println(getClass().getName() + ": DEBUG: " + message);
|
System.out.println(getClass().getName() + ": DEBUG: " + message); //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1826,7 +1826,7 @@ public class SystemFilterPoolManager implements ISystemFilterPoolManager
|
||||||
if (logger != null)
|
if (logger != null)
|
||||||
logger.logInfo(msg);
|
logger.logInfo(msg);
|
||||||
else
|
else
|
||||||
System.out.println(getClass().getName() + ": " + msg);
|
System.out.println(getClass().getName() + ": " + msg); //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -104,7 +104,7 @@ public class AbstractSystemResourceSet implements ISystemResourceSet
|
||||||
buf.append(pathFor(resource));
|
buf.append(pathFor(resource));
|
||||||
if (i < _resourceSet.size())
|
if (i < _resourceSet.size())
|
||||||
{
|
{
|
||||||
buf.append(", ");
|
buf.append(", "); //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
buf.append('\n');
|
buf.append('\n');
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,14 +26,14 @@ public interface ISubSystemConfigurationCategories
|
||||||
/**
|
/**
|
||||||
* Job subsystems
|
* Job subsystems
|
||||||
*/
|
*/
|
||||||
public static final String SUBSYSTEM_CATEGORY_JOBS = "jobs";
|
public static final String SUBSYSTEM_CATEGORY_JOBS = "jobs"; //$NON-NLS-1$
|
||||||
/**
|
/**
|
||||||
* File subsystems
|
* File subsystems
|
||||||
*/
|
*/
|
||||||
public static final String SUBSYSTEM_CATEGORY_FILES = "files";
|
public static final String SUBSYSTEM_CATEGORY_FILES = "files"; //$NON-NLS-1$
|
||||||
/**
|
/**
|
||||||
* Command subsystems
|
* Command subsystems
|
||||||
*/
|
*/
|
||||||
public static final String SUBSYSTEM_CATEGORY_CMDS = "commands";
|
public static final String SUBSYSTEM_CATEGORY_CMDS = "commands"; //$NON-NLS-1$
|
||||||
|
|
||||||
}
|
}
|
|
@ -23,7 +23,7 @@ package org.eclipse.rse.core.model;
|
||||||
*/
|
*/
|
||||||
public class SystemChildrenContentsType implements ISystemContentsType
|
public class SystemChildrenContentsType implements ISystemContentsType
|
||||||
{
|
{
|
||||||
public static String CONTENTS_TYPE_CHILDREN = "contents_children";
|
public static String CONTENTS_TYPE_CHILDREN = "contents_children"; //$NON-NLS-1$
|
||||||
public static SystemChildrenContentsType _instance = new SystemChildrenContentsType();
|
public static SystemChildrenContentsType _instance = new SystemChildrenContentsType();
|
||||||
|
|
||||||
public static SystemChildrenContentsType getInstance()
|
public static SystemChildrenContentsType getInstance()
|
||||||
|
|
|
@ -128,7 +128,7 @@ public interface IConnectorService extends IRSEModelObject
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the host
|
* Return the host
|
||||||
* @return
|
* @return the host
|
||||||
*/
|
*/
|
||||||
public IHost getHost();
|
public IHost getHost();
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,7 @@ public interface IFileConstants
|
||||||
/**
|
/**
|
||||||
* Unix-style folder-name separator as a string: "/"
|
* Unix-style folder-name separator as a string: "/"
|
||||||
*/
|
*/
|
||||||
public static String SEPARATOR_UNIX = "/";
|
public static String SEPARATOR_UNIX = "/"; //$NON-NLS-1$
|
||||||
/**
|
/**
|
||||||
* Unix-style folder-name separator as a char: '/'
|
* Unix-style folder-name separator as a char: '/'
|
||||||
*/
|
*/
|
||||||
|
@ -35,7 +35,7 @@ public interface IFileConstants
|
||||||
/**
|
/**
|
||||||
* Unix-style path separator as a string: ":"
|
* Unix-style path separator as a string: ":"
|
||||||
*/
|
*/
|
||||||
public static String PATH_SEPARATOR_UNIX = ":";
|
public static String PATH_SEPARATOR_UNIX = ":"; //$NON-NLS-1$
|
||||||
/**
|
/**
|
||||||
* Unix-style path separator as a char: ':'
|
* Unix-style path separator as a char: ':'
|
||||||
*/
|
*/
|
||||||
|
@ -52,7 +52,7 @@ public interface IFileConstants
|
||||||
/**
|
/**
|
||||||
* Windows-style folder-name separator as a string: "\"
|
* Windows-style folder-name separator as a string: "\"
|
||||||
*/
|
*/
|
||||||
public static String SEPARATOR_WINDOWS = "\\";
|
public static String SEPARATOR_WINDOWS = "\\"; //$NON-NLS-1$
|
||||||
/**
|
/**
|
||||||
* Windows-style folder-name separator as a char: '\'
|
* Windows-style folder-name separator as a char: '\'
|
||||||
*/
|
*/
|
||||||
|
@ -60,7 +60,7 @@ public interface IFileConstants
|
||||||
/**
|
/**
|
||||||
* Windows-style path separator as a string: ";"
|
* Windows-style path separator as a string: ";"
|
||||||
*/
|
*/
|
||||||
public static String PATH_SEPARATOR_WINDOWS = ";";
|
public static String PATH_SEPARATOR_WINDOWS = ";"; //$NON-NLS-1$
|
||||||
/**
|
/**
|
||||||
* Windows-style path separator as a char: ';'
|
* Windows-style path separator as a char: ';'
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -34,7 +34,7 @@ public interface IRemoteSystemEnvVar {
|
||||||
* <!-- end-user-doc -->
|
* <!-- end-user-doc -->
|
||||||
* @generated
|
* @generated
|
||||||
*/
|
*/
|
||||||
String copyright = "(c) Copyright IBM Corporation 2002, 2004.";
|
String copyright = "(c) Copyright IBM Corporation 2002, 2004."; //$NON-NLS-1$
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @generated This field/method will be replaced during code generation
|
* @generated This field/method will be replaced during code generation
|
||||||
|
|
|
@ -32,7 +32,7 @@ public interface IServerLauncherProperties extends IRSEModelObject
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the connector service
|
* Returns the connector service
|
||||||
* @return
|
* @return the connector service
|
||||||
*/
|
*/
|
||||||
public IConnectorService getConnectorService();
|
public IConnectorService getConnectorService();
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@ import org.eclipse.rse.core.model.ISystemContentsType;
|
||||||
*/
|
*/
|
||||||
public class RemoteChildrenContentsType implements ISystemContentsType
|
public class RemoteChildrenContentsType implements ISystemContentsType
|
||||||
{
|
{
|
||||||
public static String CONTENTS_TYPE_CHILDREN = "contents_children";
|
public static String CONTENTS_TYPE_CHILDREN = "contents_children"; //$NON-NLS-1$
|
||||||
public static RemoteChildrenContentsType _instance = new RemoteChildrenContentsType();
|
public static RemoteChildrenContentsType _instance = new RemoteChildrenContentsType();
|
||||||
|
|
||||||
public static RemoteChildrenContentsType getInstance()
|
public static RemoteChildrenContentsType getInstance()
|
||||||
|
|
|
@ -118,7 +118,7 @@ public final class ServerLaunchType
|
||||||
* @generated
|
* @generated
|
||||||
* @ordered
|
* @ordered
|
||||||
*/
|
*/
|
||||||
public static final ServerLaunchType DAEMON_LITERAL = new ServerLaunchType(DAEMON, "Daemon");
|
public static final ServerLaunchType DAEMON_LITERAL = new ServerLaunchType(DAEMON, "Daemon"); //$NON-NLS-1$
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The '<em><b>Rexec</b></em>' literal object.
|
* The '<em><b>Rexec</b></em>' literal object.
|
||||||
|
@ -131,7 +131,7 @@ public final class ServerLaunchType
|
||||||
* @generated
|
* @generated
|
||||||
* @ordered
|
* @ordered
|
||||||
*/
|
*/
|
||||||
public static final ServerLaunchType REXEC_LITERAL = new ServerLaunchType(REXEC, "Rexec");
|
public static final ServerLaunchType REXEC_LITERAL = new ServerLaunchType(REXEC, "Rexec"); //$NON-NLS-1$
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The '<em><b>Running</b></em>' literal object.
|
* The '<em><b>Running</b></em>' literal object.
|
||||||
|
@ -144,7 +144,7 @@ public final class ServerLaunchType
|
||||||
* @generated
|
* @generated
|
||||||
* @ordered
|
* @ordered
|
||||||
*/
|
*/
|
||||||
public static final ServerLaunchType RUNNING_LITERAL = new ServerLaunchType(RUNNING, "Running");
|
public static final ServerLaunchType RUNNING_LITERAL = new ServerLaunchType(RUNNING, "Running"); //$NON-NLS-1$
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The '<em><b>Telnet</b></em>' literal object.
|
* The '<em><b>Telnet</b></em>' literal object.
|
||||||
|
@ -157,7 +157,7 @@ public final class ServerLaunchType
|
||||||
* @generated
|
* @generated
|
||||||
* @ordered
|
* @ordered
|
||||||
*/
|
*/
|
||||||
public static final ServerLaunchType TELNET_LITERAL = new ServerLaunchType(TELNET, "Telnet");
|
public static final ServerLaunchType TELNET_LITERAL = new ServerLaunchType(TELNET, "Telnet"); //$NON-NLS-1$
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The '<em><b>SSH</b></em>' literal object.
|
* The '<em><b>SSH</b></em>' literal object.
|
||||||
|
@ -171,7 +171,7 @@ public final class ServerLaunchType
|
||||||
* @generated
|
* @generated
|
||||||
* @ordered
|
* @ordered
|
||||||
*/
|
*/
|
||||||
public static final ServerLaunchType SSH_LITERAL = new ServerLaunchType(SSH, "SSH");
|
public static final ServerLaunchType SSH_LITERAL = new ServerLaunchType(SSH, "SSH"); //$NON-NLS-1$
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The '<em><b>FTP</b></em>' literal object.
|
* The '<em><b>FTP</b></em>' literal object.
|
||||||
|
@ -184,7 +184,7 @@ public final class ServerLaunchType
|
||||||
* @generated
|
* @generated
|
||||||
* @ordered
|
* @ordered
|
||||||
*/
|
*/
|
||||||
public static final ServerLaunchType FTP_LITERAL = new ServerLaunchType(FTP, "FTP");
|
public static final ServerLaunchType FTP_LITERAL = new ServerLaunchType(FTP, "FTP"); //$NON-NLS-1$
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The '<em><b>HTTP</b></em>' literal object.
|
* The '<em><b>HTTP</b></em>' literal object.
|
||||||
|
@ -197,7 +197,7 @@ public final class ServerLaunchType
|
||||||
* @generated
|
* @generated
|
||||||
* @ordered
|
* @ordered
|
||||||
*/
|
*/
|
||||||
public static final ServerLaunchType HTTP_LITERAL = new ServerLaunchType(HTTP, "HTTP");
|
public static final ServerLaunchType HTTP_LITERAL = new ServerLaunchType(HTTP, "HTTP"); //$NON-NLS-1$
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An array of all the '<em><b>Server Launch Type</b></em>' enumerators.
|
* An array of all the '<em><b>Server Launch Type</b></em>' enumerators.
|
||||||
|
|
|
@ -16,7 +16,6 @@
|
||||||
|
|
||||||
package org.eclipse.rse.internal.references;
|
package org.eclipse.rse.internal.references;
|
||||||
|
|
||||||
import java.text.MessageFormat;
|
|
||||||
import java.util.Vector;
|
import java.util.Vector;
|
||||||
|
|
||||||
import org.eclipse.rse.core.filters.ISystemFilterPool;
|
import org.eclipse.rse.core.filters.ISystemFilterPool;
|
||||||
|
@ -58,7 +57,7 @@ public class SystemReferencedObjectHelper implements IRSEBaseReferencedObject {
|
||||||
}
|
}
|
||||||
|
|
||||||
private String getReferencedName() {
|
private String getReferencedName() {
|
||||||
String toName = "unknown";
|
String toName = "unknown"; //$NON-NLS-1$
|
||||||
if (parent instanceof ISystemFilterPool) {
|
if (parent instanceof ISystemFilterPool) {
|
||||||
ISystemFilterPool fp = (ISystemFilterPool) parent;
|
ISystemFilterPool fp = (ISystemFilterPool) parent;
|
||||||
toName = fp.getName();
|
toName = fp.getName();
|
||||||
|
@ -67,15 +66,15 @@ public class SystemReferencedObjectHelper implements IRSEBaseReferencedObject {
|
||||||
}
|
}
|
||||||
|
|
||||||
private String getReferencingName(IRSEBaseReferencingObject object) {
|
private String getReferencingName(IRSEBaseReferencingObject object) {
|
||||||
String fromName = "unknown";
|
String fromName = "unknown"; //$NON-NLS-1$
|
||||||
if (object instanceof ISystemFilterPoolReference) {
|
if (object instanceof ISystemFilterPoolReference) {
|
||||||
ISystemFilterPoolReference fpr = (ISystemFilterPoolReference) object;
|
ISystemFilterPoolReference fpr = (ISystemFilterPoolReference) object;
|
||||||
ISystemFilterPoolReferenceManagerProvider provider = fpr.getProvider();
|
ISystemFilterPoolReferenceManagerProvider provider = fpr.getProvider();
|
||||||
String prefix = "unknown|unknown|unknown";
|
String prefix = "unknown|unknown|unknown"; //$NON-NLS-1$
|
||||||
if (provider instanceof ISubSystem) {
|
if (provider instanceof ISubSystem) {
|
||||||
ISubSystem subsystem = (ISubSystem) provider;
|
ISubSystem subsystem = (ISubSystem) provider;
|
||||||
IHost host = subsystem.getHost();
|
IHost host = subsystem.getHost();
|
||||||
prefix = host.getAliasName() + "|" + subsystem.getName();
|
prefix = host.getAliasName() + "|" + subsystem.getName(); //$NON-NLS-1$
|
||||||
fromName = prefix + fpr.getName();
|
fromName = prefix + fpr.getName();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue