mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-09-10 12:03:16 +02:00
[cleanup] fix compiler warnings
This commit is contained in:
parent
5dd0e867cc
commit
74abb85c2b
208 changed files with 868 additions and 894 deletions
|
@ -36,7 +36,7 @@ public abstract class RSEAdapter extends WorkbenchAdapter implements IRSEAdapter
|
|||
* @see org.eclipse.rse.ui.IRSEAdapter#getDescription(java.lang.Object)
|
||||
*/
|
||||
public String getDescription(Object object) {
|
||||
return "";
|
||||
return ""; //$NON-NLS-1$
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -129,28 +129,28 @@ public class RSEUIPlugin extends SystemBasePlugin implements ISystemMessageProvi
|
|||
dontShowLocalConnection = false;
|
||||
dontShowProfilePageInitially = false;
|
||||
|
||||
String showNewConn = System.getProperty("rse.showNewConnectionPrompt");
|
||||
String showNewConn = System.getProperty("rse.showNewConnectionPrompt"); //$NON-NLS-1$
|
||||
|
||||
if (showNewConn != null) {
|
||||
showNewConnPromptPref = showNewConn.equals("true");
|
||||
showNewConnPromptPref = showNewConn.equals("true"); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
String showLocalConn = System.getProperty("rse.showLocalConnection");
|
||||
String showLocalConn = System.getProperty("rse.showLocalConnection"); //$NON-NLS-1$
|
||||
|
||||
if (showLocalConn != null) {
|
||||
dontShowLocalConnection = showNewConn.equals("false");
|
||||
dontShowLocalConnection = showLocalConn.equals("false"); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
enabledSystemTypes = System.getProperty("rse.enableSystemTypes");
|
||||
enabledSystemTypes = System.getProperty("rse.enableSystemTypes"); //$NON-NLS-1$
|
||||
|
||||
if ((enabledSystemTypes != null) && (enabledSystemTypes.length() == 0)) {
|
||||
enabledSystemTypes = null;
|
||||
}
|
||||
|
||||
String showProfileInitially = System.getProperty("rse.showProfilePage");
|
||||
String showProfileInitially = System.getProperty("rse.showProfilePage"); //$NON-NLS-1$
|
||||
|
||||
if (showProfileInitially != null) {
|
||||
dontShowProfilePageInitially = showProfileInitially.equals("false");
|
||||
dontShowProfilePageInitially = showProfileInitially.equals("false"); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
RemoteSystemsPreferencePage.initDefaults(getPreferenceStore(), showNewConnPromptPref);
|
||||
|
@ -687,7 +687,7 @@ public class RSEUIPlugin extends SystemBasePlugin implements ISystemMessageProvi
|
|||
ssf.disconnectAllSubSystems();
|
||||
} catch(Exception exc)
|
||||
{
|
||||
logError("Error disconnecting for "+ssf.getId(),exc);
|
||||
logError("Error disconnecting for "+ssf.getId(),exc); //$NON-NLS-1$
|
||||
}
|
||||
if (doSave)
|
||||
{
|
||||
|
@ -697,7 +697,7 @@ public class RSEUIPlugin extends SystemBasePlugin implements ISystemMessageProvi
|
|||
// ssf.commit();
|
||||
} catch(Exception exc)
|
||||
{
|
||||
logError("Error saving subsystems for "+ssf.getId(),exc);
|
||||
logError("Error saving subsystems for "+ssf.getId(),exc); //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1108,7 +1108,7 @@ public class RSEUIPlugin extends SystemBasePlugin implements ISystemMessageProvi
|
|||
IExtensionRegistry registry = Platform.getExtensionRegistry();
|
||||
|
||||
// Get configured extenders
|
||||
IConfigurationElement[] systemTypeExtensions = registry.getConfigurationElementsFor("org.eclipse.rse.ui", "archivehandlers"); //$NON-NLS-1$
|
||||
IConfigurationElement[] systemTypeExtensions = registry.getConfigurationElementsFor("org.eclipse.rse.ui", "archivehandlers"); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
for (int i = 0; i < systemTypeExtensions.length; i++) {
|
||||
String ext = systemTypeExtensions[i].getAttribute("fileNameExtension"); //$NON-NLS-1$
|
||||
|
@ -1132,7 +1132,7 @@ public class RSEUIPlugin extends SystemBasePlugin implements ISystemMessageProvi
|
|||
}
|
||||
catch (ClassNotFoundException e)
|
||||
{
|
||||
logError("Cound not find archive handler class", e);
|
||||
logError("Cound not find archive handler class", e); //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -211,7 +211,7 @@ public class SystemProfileForm
|
|||
else
|
||||
msgLine.clearErrorMessage();
|
||||
else
|
||||
System.out.println("MSGLINE NULL. TRYING TO WRITE MSG " + msg);
|
||||
System.out.println("MSGLINE NULL. TRYING TO WRITE MSG " + msg); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
// ---------------------------------------------
|
||||
|
|
|
@ -34,7 +34,7 @@ public class SystemResources extends NLS
|
|||
/**
|
||||
* Current release as a string.
|
||||
*/
|
||||
public static final String CURRENT_RELEASE_NAME = "1.0.0";
|
||||
public static final String CURRENT_RELEASE_NAME = "1.0.0"; //$NON-NLS-1$
|
||||
|
||||
|
||||
// Buttons
|
||||
|
|
|
@ -1398,7 +1398,7 @@ public class SystemWidgetHelpers {
|
|||
//ViewContextComputer comp = new ViewContextComputer(view, id);
|
||||
PlatformUI.getWorkbench().getHelpSystem().setHelp(c, id.toString());
|
||||
if (traceHelpIDs)
|
||||
SystemBasePlugin.logInfo("Setting help id: " + id);
|
||||
SystemBasePlugin.logInfo("Setting help id: " + id); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1442,7 +1442,7 @@ public class SystemWidgetHelpers {
|
|||
boolean strip = false;
|
||||
Locale currentLocale = Locale.getDefault();
|
||||
String language = currentLocale.getLanguage();
|
||||
boolean cjk = language.equals("zh") || language.equals("ja") || language.equals("ko"); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
boolean cjk = language.equals("zh") || language.equals("ja") || language.equals("ko"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
|
||||
int n = result.length();
|
||||
if (n > 0) {
|
||||
char lastCharacter = label.charAt(n - 1);
|
||||
|
|
|
@ -320,7 +320,7 @@ public class SystemBaseAction extends Action implements ISystemAction
|
|||
{
|
||||
String className = this.getClass().getName();
|
||||
if ((traceTarget==null) || (className.indexOf(traceTarget)>=0))
|
||||
SystemBasePlugin.logInfo(this.getClass().getName()+": "+getText()+": "+msg);
|
||||
SystemBasePlugin.logInfo(this.getClass().getName()+": "+getText()+": "+msg); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -352,7 +352,7 @@ public class SystemBaseAction extends Action implements ISystemAction
|
|||
public void setInputs(Shell shell, Viewer v, ISelection selection)
|
||||
{
|
||||
if (traceSelections)
|
||||
issueTraceMessage(" INSIDE SETINPUTS IN BASE ACTION CLASS");
|
||||
issueTraceMessage(" INSIDE SETINPUTS IN BASE ACTION CLASS"); //$NON-NLS-1$
|
||||
setShell(shell);
|
||||
setViewer(v);
|
||||
setSelection(selection);
|
||||
|
@ -371,7 +371,7 @@ public class SystemBaseAction extends Action implements ISystemAction
|
|||
this.previousShells.add(this.shell);
|
||||
this.shell = shell;
|
||||
if (traceSelections)
|
||||
issueTraceMessage(" INSIDE SETSHELL. shell = " + shell);
|
||||
issueTraceMessage(" INSIDE SETSHELL. shell = " + shell); //$NON-NLS-1$
|
||||
}
|
||||
/**
|
||||
* Set the Viewer that called this action. It is good practice for viewers to call this
|
||||
|
@ -382,7 +382,7 @@ public class SystemBaseAction extends Action implements ISystemAction
|
|||
this.previousViewers.add(this.viewer); // see comment in setShell
|
||||
this.viewer = v;
|
||||
if (traceSelections)
|
||||
issueTraceMessage(" INSIDE SETVIEWER. viewer = " + viewer);
|
||||
issueTraceMessage(" INSIDE SETVIEWER. viewer = " + viewer); //$NON-NLS-1$
|
||||
}
|
||||
/**
|
||||
* This is called when the user selects something in the tree.
|
||||
|
@ -399,7 +399,7 @@ public class SystemBaseAction extends Action implements ISystemAction
|
|||
{
|
||||
ISelection selection = event.getSelection();
|
||||
if (traceSelections)
|
||||
issueTraceMessage("INSIDE SELECTIONCHANGED. Selection null? " + (selection==null));
|
||||
issueTraceMessage("INSIDE SELECTIONCHANGED. Selection null? " + (selection==null)); //$NON-NLS-1$
|
||||
setSelection(selection);
|
||||
}
|
||||
/**
|
||||
|
@ -410,13 +410,13 @@ public class SystemBaseAction extends Action implements ISystemAction
|
|||
public void setSelection(ISelection selection)
|
||||
{
|
||||
if (traceSelections)
|
||||
issueTraceMessage(" INSIDE SETSELECTION. Selection null? " + (selection==null));
|
||||
issueTraceMessage(" INSIDE SETSELECTION. Selection null? " + (selection==null)); //$NON-NLS-1$
|
||||
if ( !(selection instanceof IStructuredSelection) )
|
||||
{
|
||||
if (selectionSensitive)
|
||||
setEnabled(false);
|
||||
if (traceSelections)
|
||||
System.out.println(this.getClass().getName() + ". Returning false in setSelection. selection= " + selection);
|
||||
System.out.println(this.getClass().getName() + ". Returning false in setSelection. selection= " + selection); //$NON-NLS-1$
|
||||
return;
|
||||
}
|
||||
if (selectionSensitive)
|
||||
|
@ -428,7 +428,7 @@ public class SystemBaseAction extends Action implements ISystemAction
|
|||
if (!selectionSensitive || (selection == null))
|
||||
{
|
||||
if (traceSelections)
|
||||
System.out.println(this.getClass().getName() + ". Returning. selectionSensitive = " + selectionSensitive);
|
||||
System.out.println(this.getClass().getName() + ". Returning. selectionSensitive = " + selectionSensitive); //$NON-NLS-1$
|
||||
return;
|
||||
}
|
||||
boolean multiSelect = (sSelection.size() > 1);
|
||||
|
@ -436,7 +436,7 @@ public class SystemBaseAction extends Action implements ISystemAction
|
|||
{
|
||||
setEnabled(false);
|
||||
if (traceSelections)
|
||||
System.out.println(this.getClass().getName() + ". Returning false in setSelection. #selected = " + sSelection.size());
|
||||
System.out.println(this.getClass().getName() + ". Returning false in setSelection. #selected = " + sSelection.size()); //$NON-NLS-1$
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -464,7 +464,7 @@ public class SystemBaseAction extends Action implements ISystemAction
|
|||
|
||||
fSelectionProvider = provider;
|
||||
if (traceSelections)
|
||||
issueTraceMessage(" INSIDE SETSELECTIONPROVIDER. fSelectionProvider = " + fSelectionProvider);
|
||||
issueTraceMessage(" INSIDE SETSELECTIONPROVIDER. fSelectionProvider = " + fSelectionProvider); //$NON-NLS-1$
|
||||
|
||||
|
||||
if (fSelectionProvider != null)
|
||||
|
@ -629,8 +629,8 @@ public class SystemBaseAction extends Action implements ISystemAction
|
|||
}
|
||||
if (doTest && (shell == null))
|
||||
{
|
||||
System.out.println("Inside getShell for " + this.getClass().getName() + " and the shell is null! This needs to be investigated");
|
||||
SystemBasePlugin.logDebugMessage("SystemBaseAction", "Inside getShell for " + this.getClass().getName() + " and the shell is null! This needs to be investigated");
|
||||
System.out.println("Inside getShell for " + this.getClass().getName() + " and the shell is null! This needs to be investigated"); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
SystemBasePlugin.logDebugMessage("SystemBaseAction", "Inside getShell for " + this.getClass().getName() + " and the shell is null! This needs to be investigated"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
|
||||
}
|
||||
return shell;
|
||||
}
|
||||
|
@ -704,7 +704,7 @@ public class SystemBaseAction extends Action implements ISystemAction
|
|||
public IStructuredSelection getSelection()
|
||||
{
|
||||
if (traceSelections)
|
||||
issueTraceMessage(" INSIDE GETSELECTION. sSelection null? " + (sSelection==null));
|
||||
issueTraceMessage(" INSIDE GETSELECTION. sSelection null? " + (sSelection==null)); //$NON-NLS-1$
|
||||
return sSelection;
|
||||
}
|
||||
|
||||
|
|
|
@ -131,7 +131,7 @@ public abstract class SystemBaseCopyAction extends SystemBaseDialogAction
|
|||
else
|
||||
singleTitle = SystemResources.RESID_MOVE_SINGLE_TITLE;
|
||||
//System.out.println("..."+singleTitle);
|
||||
if (!singleTitle.startsWith("Missing")) // TODO: remove test after next mri rev
|
||||
if (!singleTitle.startsWith("Missing")) // TODO: remove test after next mri rev //$NON-NLS-1$
|
||||
copyDlg.setTitle(singleTitle);
|
||||
}
|
||||
|
||||
|
|
|
@ -264,7 +264,7 @@ public abstract class SystemBaseDialogAction extends SystemBaseAction
|
|||
{
|
||||
Shell shell = getShell();
|
||||
if (shell == null)
|
||||
SystemBasePlugin.logDebugMessage(this.getClass().getName(),"Warning: shell is null!");
|
||||
SystemBasePlugin.logDebugMessage(this.getClass().getName(),"Warning: shell is null!"); //$NON-NLS-1$
|
||||
Object currentSelection = null;
|
||||
if (!getProcessAllSelections())
|
||||
currentSelection = getFirstSelection();
|
||||
|
|
|
@ -184,7 +184,7 @@ public abstract class SystemBaseSubMenuAction
|
|||
populateSubMenu(subMenu);
|
||||
if (traceSelections)
|
||||
{
|
||||
issueTraceMessage("*** INSIDE GETSUBMENU for "+actionLabel+". createMenuEachTime = " + createMenuEachTime);
|
||||
issueTraceMessage("*** INSIDE GETSUBMENU for "+actionLabel+". createMenuEachTime = " + createMenuEachTime); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
}
|
||||
subMenu.setToolTipText(getToolTipText());
|
||||
//cascadeAllInputs(); no point in doing in now, setInputs will be called later by SV
|
||||
|
@ -197,7 +197,7 @@ public abstract class SystemBaseSubMenuAction
|
|||
populateSubMenu(subMenu);
|
||||
if (traceSelections)
|
||||
{
|
||||
issueTraceMessage("*** INSIDE GETSUBMENU for "+actionLabel+". populateMenuEachTime = " + populateMenuEachTime);
|
||||
issueTraceMessage("*** INSIDE GETSUBMENU for "+actionLabel+". populateMenuEachTime = " + populateMenuEachTime); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
}
|
||||
//cascadeAllInputs(); no point in doing in now, setInputs will be called later by SV
|
||||
//Menu m = subMenu.getMenu();
|
||||
|
@ -207,7 +207,7 @@ public abstract class SystemBaseSubMenuAction
|
|||
}
|
||||
else if (traceSelections)
|
||||
{
|
||||
issueTraceMessage("*** INSIDE GETSUBMENU for "+actionLabel+". SUBMENU ALREADY CREATED. ");
|
||||
issueTraceMessage("*** INSIDE GETSUBMENU for "+actionLabel+". SUBMENU ALREADY CREATED. "); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
}
|
||||
|
||||
return subMenu;
|
||||
|
@ -362,7 +362,7 @@ public abstract class SystemBaseSubMenuAction
|
|||
super.setInputs(shell, v, selection); // calls setSelection+Shell+Viewer
|
||||
dontCascade = false;
|
||||
if (traceSelections)
|
||||
issueTraceMessage(" INSIDE SETINPUTS IN BASE ACTION CLASS");
|
||||
issueTraceMessage(" INSIDE SETINPUTS IN BASE ACTION CLASS"); //$NON-NLS-1$
|
||||
cascadeAllInputs();
|
||||
}
|
||||
|
||||
|
@ -373,9 +373,9 @@ public abstract class SystemBaseSubMenuAction
|
|||
{
|
||||
if (traceSelections)
|
||||
{
|
||||
issueTraceMessage("*** INSIDE CASCADESELECTION ***");
|
||||
issueTraceMessage(" subMenu = " + subMenu);
|
||||
issueTraceMessage(" selection = " + selection);
|
||||
issueTraceMessage("*** INSIDE CASCADESELECTION ***"); //$NON-NLS-1$
|
||||
issueTraceMessage(" subMenu = " + subMenu); //$NON-NLS-1$
|
||||
issueTraceMessage(" selection = " + selection); //$NON-NLS-1$
|
||||
}
|
||||
if (subMenu == null)
|
||||
return;
|
||||
|
|
|
@ -44,7 +44,7 @@ public class SystemCascadingPreferencesAction
|
|||
setPopulateMenuEachTime(false);
|
||||
setSelectionSensitive(false);
|
||||
|
||||
setHelp(RSEUIPlugin.HELPPREFIX+"actnpref");
|
||||
setHelp(RSEUIPlugin.HELPPREFIX+"actnpref"); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -58,7 +58,7 @@ public class SystemCascadingPreferencesAction
|
|||
ourSubMenu.addMenuListener(this);
|
||||
ourSubMenu.setRemoveAllWhenShown(true);
|
||||
//menu.setEnabled(true);
|
||||
ourSubMenu.add(new SystemBaseAction("dummy",null));
|
||||
ourSubMenu.add(new SystemBaseAction("dummy",null)); //$NON-NLS-1$
|
||||
|
||||
return ourSubMenu;
|
||||
}
|
||||
|
|
|
@ -66,7 +66,7 @@ public class SystemCascadingRemoteServersAction extends SystemBaseSubMenuAction
|
|||
IStructuredSelection selection = getSelection();
|
||||
if( selection == null )
|
||||
{
|
||||
subMenu.add(new SystemBaseAction("Programming error. Selection is null! ", null));
|
||||
subMenu.add(new SystemBaseAction("Programming error. Selection is null! ", null)); //$NON-NLS-1$
|
||||
return;
|
||||
} // end if(nothing is selected)
|
||||
Object firstSelection = selection.getFirstElement();
|
||||
|
|
|
@ -43,7 +43,7 @@ public class SystemClearPasswordAction extends SystemBaseAction
|
|||
super(SystemResources.ACTION_CLEARPASSWORD_LABEL, SystemResources.ACTION_CLEARPASSWORD_TOOLTIP, shell);
|
||||
allowOnMultipleSelection(false);
|
||||
setContextMenuGroup(ISystemContextMenuConstants.GROUP_CONNECTION);
|
||||
setHelp(RSEUIPlugin.HELPPREFIX+"actn0049");
|
||||
setHelp(RSEUIPlugin.HELPPREFIX+"actn0049"); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -43,7 +43,7 @@ public class SystemCollapseAction extends SystemBaseAction {
|
|||
allowOnMultipleSelection(true);
|
||||
setContextMenuGroup(ISystemContextMenuConstants.GROUP_EXPAND);
|
||||
setAccelerator('-');
|
||||
setHelp(RSEUIPlugin.HELPPREFIX + "actn0024");
|
||||
setHelp(RSEUIPlugin.HELPPREFIX + "actn0024"); //$NON-NLS-1$
|
||||
setAvailableOffline(true);
|
||||
}
|
||||
|
||||
|
@ -76,8 +76,8 @@ public class SystemCollapseAction extends SystemBaseAction {
|
|||
//System.out.println("Inside run of SystemRefreshAction");
|
||||
SystemRegistry sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
if ((viewer != null) && (viewer instanceof ISystemResourceChangeListener)) {
|
||||
sr.fireEvent((ISystemResourceChangeListener) viewer, new SystemResourceChangeEvent("dummy", ISystemResourceChangeEvents.EVENT_COLLAPSE_SELECTED, null));
|
||||
sr.fireEvent((ISystemResourceChangeListener) viewer, new SystemResourceChangeEvent("dummy", ISystemResourceChangeEvents.EVENT_COLLAPSE_SELECTED, null)); //$NON-NLS-1$
|
||||
} else
|
||||
sr.fireEvent(new SystemResourceChangeEvent("dummy", ISystemResourceChangeEvents.EVENT_COLLAPSE_SELECTED, null));
|
||||
sr.fireEvent(new SystemResourceChangeEvent("dummy", ISystemResourceChangeEvents.EVENT_COLLAPSE_SELECTED, null)); //$NON-NLS-1$
|
||||
}
|
||||
}
|
|
@ -44,7 +44,7 @@ public class SystemCollapseAllAction extends SystemBaseAction {
|
|||
setContextMenuGroup(ISystemContextMenuConstants.GROUP_EXPAND); // should never be used
|
||||
setSelectionSensitive(false);
|
||||
|
||||
setHelp(RSEUIPlugin.HELPPREFIX + "actn0023");
|
||||
setHelp(RSEUIPlugin.HELPPREFIX + "actn0023"); //$NON-NLS-1$
|
||||
setAccelerator(SWT.CTRL | '-');
|
||||
}
|
||||
|
||||
|
@ -62,8 +62,8 @@ public class SystemCollapseAllAction extends SystemBaseAction {
|
|||
public void run() {
|
||||
SystemRegistry sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
if ((viewer != null) && (viewer instanceof ISystemResourceChangeListener)) {
|
||||
sr.fireEvent((ISystemResourceChangeListener) viewer, new SystemResourceChangeEvent("false", ISystemResourceChangeEvents.EVENT_COLLAPSE_ALL, null));
|
||||
sr.fireEvent((ISystemResourceChangeListener) viewer, new SystemResourceChangeEvent("false", ISystemResourceChangeEvents.EVENT_COLLAPSE_ALL, null)); //$NON-NLS-1$
|
||||
} else
|
||||
sr.fireEvent(new SystemResourceChangeEvent("false", ISystemResourceChangeEvents.EVENT_COLLAPSE_ALL, null));
|
||||
sr.fireEvent(new SystemResourceChangeEvent("false", ISystemResourceChangeEvents.EVENT_COLLAPSE_ALL, null)); //$NON-NLS-1$
|
||||
}
|
||||
}
|
|
@ -72,7 +72,7 @@ public class SystemCommonDeleteAction
|
|||
allowOnMultipleSelection(true);
|
||||
setProcessAllSelections(true);
|
||||
setContextMenuGroup(ISystemContextMenuConstants.GROUP_REORGANIZE);
|
||||
setHelp(RSEUIPlugin.HELPPREFIX+"actn0021");
|
||||
setHelp(RSEUIPlugin.HELPPREFIX+"actn0021"); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -71,7 +71,7 @@ public class SystemCommonRenameAction extends SystemBaseDialogAction
|
|||
setProcessAllSelections(true);
|
||||
renameTarget = target;
|
||||
setContextMenuGroup(ISystemContextMenuConstants.GROUP_REORGANIZE);
|
||||
setHelp(RSEUIPlugin.HELPPREFIX+"actn0018");
|
||||
setHelp(RSEUIPlugin.HELPPREFIX+"actn0018"); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -44,7 +44,7 @@ public class SystemCommonSelectAllAction
|
|||
public SystemCommonSelectAllAction(Shell parent, ISelectionProvider selProvider, ISystemSelectAllTarget target)
|
||||
{
|
||||
//super(RSEUIPlugin.getResourceBundle(), ISystemConstants.ACTION_SELECTALL, null, parent); TODO: XLATE!
|
||||
super("Select All", (ImageDescriptor)null, parent);
|
||||
super("Select All", (ImageDescriptor)null, parent); //$NON-NLS-1$
|
||||
setSelectionProvider(selProvider);
|
||||
this.target = target;
|
||||
allowOnMultipleSelection(false);
|
||||
|
|
|
@ -41,7 +41,7 @@ public class SystemConnectAction extends SystemBaseAction
|
|||
super(SystemResources.ACTION_CONNECT_LABEL,SystemResources.ACTION_CONNECT_TOOLTIP, shell);
|
||||
allowOnMultipleSelection(false);
|
||||
setContextMenuGroup(ISystemContextMenuConstants.GROUP_CONNECTION);
|
||||
setHelp(RSEUIPlugin.HELPPREFIX+"actn0047");
|
||||
setHelp(RSEUIPlugin.HELPPREFIX+"actn0047"); //$NON-NLS-1$
|
||||
}
|
||||
/**
|
||||
* Override of parent. Called when testing if action should be enabled base on current
|
||||
|
|
|
@ -40,7 +40,7 @@ public class SystemDisconnectAction extends SystemBaseAction
|
|||
super(SystemResources.ACTION_DISCONNECT_LABEL, SystemResources.ACTION_DISCONNECT_TOOLTIP, shell);
|
||||
allowOnMultipleSelection(false);
|
||||
setContextMenuGroup(ISystemContextMenuConstants.GROUP_CONNECTION);
|
||||
setHelp(RSEUIPlugin.HELPPREFIX+"actn0048");
|
||||
setHelp(RSEUIPlugin.HELPPREFIX+"actn0048"); //$NON-NLS-1$
|
||||
}
|
||||
/**
|
||||
* Override of parent. Called when testing if action should be enabled based on current
|
||||
|
|
|
@ -44,7 +44,7 @@ public class SystemExpandAction extends SystemBaseAction {
|
|||
allowOnMultipleSelection(true);
|
||||
setContextMenuGroup(ISystemContextMenuConstants.GROUP_EXPAND);
|
||||
setAccelerator('+');
|
||||
setHelp(RSEUIPlugin.HELPPREFIX + "actn0025");
|
||||
setHelp(RSEUIPlugin.HELPPREFIX + "actn0025"); //$NON-NLS-1$
|
||||
setAvailableOffline(true);
|
||||
}
|
||||
|
||||
|
@ -79,8 +79,8 @@ public class SystemExpandAction extends SystemBaseAction {
|
|||
//System.out.println("Inside run of SystemRefreshAction");
|
||||
SystemRegistry sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
if ((viewer != null) && (viewer instanceof ISystemResourceChangeListener)) {
|
||||
sr.fireEvent((ISystemResourceChangeListener) viewer, new SystemResourceChangeEvent("dummy", ISystemResourceChangeEvents.EVENT_EXPAND_SELECTED, null));
|
||||
sr.fireEvent((ISystemResourceChangeListener) viewer, new SystemResourceChangeEvent("dummy", ISystemResourceChangeEvents.EVENT_EXPAND_SELECTED, null)); //$NON-NLS-1$
|
||||
} else
|
||||
sr.fireEvent(new SystemResourceChangeEvent("dummy", ISystemResourceChangeEvents.EVENT_EXPAND_SELECTED, null));
|
||||
sr.fireEvent(new SystemResourceChangeEvent("dummy", ISystemResourceChangeEvents.EVENT_EXPAND_SELECTED, null)); //$NON-NLS-1$
|
||||
}
|
||||
}
|
|
@ -36,6 +36,6 @@ public class SystemNewConnectionFromExistingConnectionAction extends SystemNewCo
|
|||
{
|
||||
super(shell, SystemResources.ACTION_ANOTHERCONN_LABEL, SystemResources.ACTION_ANOTHERCONN_TOOLTIP, false, true, null);
|
||||
setContextMenuGroup(ISystemContextMenuConstants.GROUP_NEW);
|
||||
setHelp(RSEUIPlugin.HELPPREFIX+"actn0015");
|
||||
setHelp(RSEUIPlugin.HELPPREFIX+"actn0015"); //$NON-NLS-1$
|
||||
}
|
||||
}
|
|
@ -44,7 +44,7 @@ public class SystemPreferenceQualifyConnectionNamesAction extends SystemBaseActi
|
|||
sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
setChecked(sr.getQualifiedHostNames());
|
||||
|
||||
setHelp(RSEUIPlugin.HELPPREFIX+"actn0008");
|
||||
setHelp(RSEUIPlugin.HELPPREFIX+"actn0008"); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -202,7 +202,7 @@ public class SystemProfileNameCopyAction extends SystemBaseDialogAction
|
|||
{
|
||||
SystemMessageDialog msgDlg = new SystemMessageDialog(shell, RSEUIPlugin.getPluginMessage(ISystemMessages.MSG_OPERATION_FAILED).makeSubstitution(exc.getMessage()));
|
||||
msgDlg.open();
|
||||
SystemBasePlugin.logError("Copy profile operation failed",exc);
|
||||
SystemBasePlugin.logError("Copy profile operation failed",exc); //$NON-NLS-1$
|
||||
}
|
||||
/**
|
||||
* Show an error message when the user cancels the operation.
|
||||
|
|
|
@ -49,7 +49,7 @@ public class SystemRefreshAction extends SystemBaseAction
|
|||
parent);
|
||||
allowOnMultipleSelection(true);
|
||||
setContextMenuGroup(ISystemContextMenuConstants.GROUP_BUILD);
|
||||
setHelp(RSEUIPlugin.HELPPREFIX+"actn0017");
|
||||
setHelp(RSEUIPlugin.HELPPREFIX+"actn0017"); //$NON-NLS-1$
|
||||
setAvailableOffline(true);
|
||||
}
|
||||
|
||||
|
|
|
@ -52,7 +52,7 @@ public class SystemRefreshAllAction extends SystemBaseAction
|
|||
//setSelectionSensitive(false);
|
||||
setSelectionSensitive(true);// use selection to decide what to invalidate
|
||||
|
||||
setHelp(RSEUIPlugin.HELPPREFIX+"actn0009");
|
||||
setHelp(RSEUIPlugin.HELPPREFIX+"actn0009"); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
public void setRootObject(Object object)
|
||||
|
|
|
@ -154,7 +154,7 @@ public class SystemRemotePropertiesAction
|
|||
|
||||
|
||||
// TODO - hack to make this work in 3.1
|
||||
String id = PlatformUI.PLUGIN_ID + ".property_dialog_context";
|
||||
String id = PlatformUI.PLUGIN_ID + ".property_dialog_context"; //$NON-NLS-1$
|
||||
PlatformUI.getWorkbench().getHelpSystem().setHelp(propertyDialog.getShell(), id);
|
||||
|
||||
propertyDialog.open();
|
||||
|
|
|
@ -42,7 +42,7 @@ public class SystemRemoteServerStartAction extends SystemBaseAction
|
|||
this.parentAction = parentAction;
|
||||
allowOnMultipleSelection(false);
|
||||
//setContextMenuGroup(ISystemContextMenuConstants.GROUP_CONNECTION);
|
||||
setHelp(RSEUIPlugin.HELPPREFIX+"actnstsv");
|
||||
setHelp(RSEUIPlugin.HELPPREFIX+"actnstsv"); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -42,7 +42,7 @@ public class SystemRemoteServerStopAction extends SystemBaseAction
|
|||
this.parentAction = parentAction;
|
||||
allowOnMultipleSelection(false);
|
||||
//setContextMenuGroup(ISystemContextMenuConstants.GROUP_CONNECTION);
|
||||
setHelp(RSEUIPlugin.HELPPREFIX+"actnspsv");
|
||||
setHelp(RSEUIPlugin.HELPPREFIX+"actnspsv"); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -63,7 +63,7 @@ public class SystemRunAction extends SystemBaseAction
|
|||
protected void init() {
|
||||
allowOnMultipleSelection(false);
|
||||
setContextMenuGroup(ISystemContextMenuConstants.GROUP_OPEN);
|
||||
setHelp(RSEUIPlugin.HELPPREFIX+"actn0100");
|
||||
setHelp(RSEUIPlugin.HELPPREFIX+"actn0100"); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ public class SystemSeparatorAction extends SystemBaseAction
|
|||
*/
|
||||
public SystemSeparatorAction(Shell parent)
|
||||
{
|
||||
super("_separator_",(ImageDescriptor)null,parent);
|
||||
super("_separator_",(ImageDescriptor)null,parent); //$NON-NLS-1$
|
||||
realAction = true;
|
||||
}
|
||||
/**
|
||||
|
@ -38,7 +38,7 @@ public class SystemSeparatorAction extends SystemBaseAction
|
|||
*/
|
||||
public SystemSeparatorAction()
|
||||
{
|
||||
super("_separator_",(ImageDescriptor)null,null);
|
||||
super("_separator_",(ImageDescriptor)null,null); //$NON-NLS-1$
|
||||
realAction = false;
|
||||
}
|
||||
|
||||
|
|
|
@ -61,7 +61,7 @@ public class SystemShowInTableAction extends SystemBaseAction
|
|||
IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
|
||||
try
|
||||
{
|
||||
viewPart = (SystemTableViewPart) page.showView("org.eclipse.rse.ui.view.systemTableView", null, IWorkbenchPage.VIEW_CREATE);
|
||||
viewPart = (SystemTableViewPart) page.showView("org.eclipse.rse.ui.view.systemTableView", null, IWorkbenchPage.VIEW_CREATE); //$NON-NLS-1$
|
||||
}
|
||||
catch (PartInitException e)
|
||||
{
|
||||
|
|
|
@ -40,7 +40,7 @@ public class SystemStartCommunicationsDaemonAction extends SystemBaseAction impl
|
|||
SystemResources.ACTION_DAEMON_STOP_TOOLTIP,
|
||||
shell);
|
||||
|
||||
setHelp(RSEUIPlugin.HELPPREFIX + "dmna0000");
|
||||
setHelp(RSEUIPlugin.HELPPREFIX + "dmna0000"); //$NON-NLS-1$
|
||||
|
||||
if (!SystemCommunicationsDaemon.isAutoStart() || !SystemCommunicationsDaemon.getInstance().isRunning())
|
||||
{
|
||||
|
|
|
@ -130,7 +130,7 @@ public class SystemSubMenuManager
|
|||
public void setInputs(Shell shell, Viewer v, ISelection selection)
|
||||
{
|
||||
if (traceSelections)
|
||||
issueTraceMessage(" INSIDE SETINPUTS FOR SUBMENUMGR FOR '"+label+"'");
|
||||
issueTraceMessage(" INSIDE SETINPUTS FOR SUBMENUMGR FOR '"+label+"'"); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
this.shell = shell;
|
||||
this.viewer = v;
|
||||
this.selection = selection;
|
||||
|
@ -164,7 +164,7 @@ public class SystemSubMenuManager
|
|||
}
|
||||
if (traceSelections)
|
||||
{
|
||||
issueTraceMessage("*** INSIDE SETSHELL FOR SUBMENUMGR "+label+". #ITEMS = "+items.length);
|
||||
issueTraceMessage("*** INSIDE SETSHELL FOR SUBMENUMGR "+label+". #ITEMS = "+items.length); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -193,7 +193,7 @@ public class SystemSubMenuManager
|
|||
}
|
||||
if (traceSelections)
|
||||
{
|
||||
issueTraceMessage("*** INSIDE SETSELECTION FOR SUBMENUMGR"+label+". #ITEMS = "+items.length);
|
||||
issueTraceMessage("*** INSIDE SETSELECTION FOR SUBMENUMGR"+label+". #ITEMS = "+items.length); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -309,7 +309,7 @@ public class SystemSubMenuManager
|
|||
IContributionItem[] items = getItems();
|
||||
if (traceSelections)
|
||||
{
|
||||
issueTraceMessage("INSIDE CASCADEALLINPUTS FOR SUBMENUMGR FOR "+label+". NBR ITEMS = "+items.length);
|
||||
issueTraceMessage("INSIDE CASCADEALLINPUTS FOR SUBMENUMGR FOR "+label+". NBR ITEMS = "+items.length); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
}
|
||||
|
||||
for (int idx=0; idx < items.length; idx++)
|
||||
|
@ -395,7 +395,7 @@ public class SystemSubMenuManager
|
|||
if ((traceTarget==null) || (className.indexOf(traceTarget)>=0))
|
||||
{
|
||||
className = className.substring(className.lastIndexOf('.'));
|
||||
SystemBasePlugin.logInfo(className+": "+msg);
|
||||
SystemBasePlugin.logInfo(className+": "+msg); //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -40,7 +40,7 @@ public class SystemSubMenuManagerForTesting
|
|||
//implements ISelectionChangedListener
|
||||
//implements ISystemAction
|
||||
{
|
||||
private String prefix = "";
|
||||
private String prefix = ""; //$NON-NLS-1$
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
|
@ -55,7 +55,7 @@ public class SystemSubMenuManagerForTesting
|
|||
public SystemSubMenuManagerForTesting(SystemBaseSubMenuAction parentAction, String text)
|
||||
{
|
||||
super(parentAction, text);
|
||||
System.out.println("SUBMENUMGR CTOR " + text);
|
||||
System.out.println("SUBMENUMGR CTOR " + text); //$NON-NLS-1$
|
||||
}
|
||||
/**
|
||||
* Constructor
|
||||
|
@ -63,7 +63,7 @@ public class SystemSubMenuManagerForTesting
|
|||
public SystemSubMenuManagerForTesting(SystemBaseSubMenuAction parentAction, String text, String id)
|
||||
{
|
||||
super(parentAction, text, id);
|
||||
System.out.println("SUBMENUMGR CTOR " + text);
|
||||
System.out.println("SUBMENUMGR CTOR " + text); //$NON-NLS-1$
|
||||
}
|
||||
/**
|
||||
* Constructor
|
||||
|
@ -79,7 +79,7 @@ public class SystemSubMenuManagerForTesting
|
|||
*/
|
||||
public void setInputs(Shell shell, Viewer v, ISelection selection)
|
||||
{
|
||||
System.out.println(" INSIDE SETINPUTS FOR SUBMENUMGR '"+label+"': selection = "+selection);
|
||||
System.out.println(" INSIDE SETINPUTS FOR SUBMENUMGR '"+label+"': selection = "+selection); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
super.setInputs(shell, v, selection);
|
||||
}
|
||||
|
||||
|
@ -98,20 +98,20 @@ public class SystemSubMenuManagerForTesting
|
|||
*/
|
||||
public void appendToGroup(String groupName, IAction action)
|
||||
{
|
||||
System.out.println("INSIDE APPENDTOGROUP OF ISYSTEMACTION FOR SUBMENUMGR FOR '"+label+"'");
|
||||
prefix = " ";
|
||||
System.out.println("INSIDE APPENDTOGROUP OF ISYSTEMACTION FOR SUBMENUMGR FOR '"+label+"'"); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
prefix = " "; //$NON-NLS-1$
|
||||
super.appendToGroup(groupName, action);
|
||||
prefix = "";
|
||||
prefix = ""; //$NON-NLS-1$
|
||||
}
|
||||
/**
|
||||
* Intercept so we can cascade the selection, viewer and shell down
|
||||
*/
|
||||
public void appendToGroup(String groupName, IContributionItem item)
|
||||
{
|
||||
System.out.println("INSIDE APPENDTOGROUP OF SYSTEMSUBMENUMGR FOR SUBMENUMGR FOR '"+label+"'");
|
||||
prefix = " ";
|
||||
System.out.println("INSIDE APPENDTOGROUP OF SYSTEMSUBMENUMGR FOR SUBMENUMGR FOR '"+label+"'"); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
prefix = " "; //$NON-NLS-1$
|
||||
super.appendToGroup(groupName, item);
|
||||
prefix = "";
|
||||
prefix = ""; //$NON-NLS-1$
|
||||
}
|
||||
/**
|
||||
* Intercept so we can cascade the selection, viewer and shell down
|
||||
|
@ -129,20 +129,20 @@ public class SystemSubMenuManagerForTesting
|
|||
*/
|
||||
public void add(IContributionItem item)
|
||||
{
|
||||
prefix = " ";
|
||||
prefix = " "; //$NON-NLS-1$
|
||||
if (item instanceof ActionContributionItem)
|
||||
{
|
||||
IAction action = ((ActionContributionItem)item).getAction();
|
||||
if (action instanceof ISystemAction)
|
||||
System.out.println("INSIDE ADD OF ISYSTEMACTION(action="+action.getText()+") FOR THIS MNUMGR: "+label);
|
||||
System.out.println("INSIDE ADD OF ISYSTEMACTION(action="+action.getText()+") FOR THIS MNUMGR: "+label); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
}
|
||||
else if (item instanceof SystemSubMenuManager)
|
||||
{
|
||||
SystemSubMenuManager submenu = (SystemSubMenuManager)item;
|
||||
System.out.println("INSIDE ADD OF SUBMENUMGR(submenu="+submenu.getLabel()+") FOR THIS MNUMGR: "+label);
|
||||
System.out.println("INSIDE ADD OF SUBMENUMGR(submenu="+submenu.getLabel()+") FOR THIS MNUMGR: "+label); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
}
|
||||
super.add(item);
|
||||
prefix = "";
|
||||
prefix = ""; //$NON-NLS-1$
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -152,10 +152,10 @@ public class SystemSubMenuManagerForTesting
|
|||
{
|
||||
//super.menuAboutToShow(ourSubMenu);
|
||||
IContributionItem[] items = getItems();
|
||||
System.out.println(prefix+"INSIDE CASCADEALLINPUTS TO ALL ITEMS FOR SUBMENUMGR FOR "+label+". NBR ITEMS = "+items.length);
|
||||
System.out.println(prefix+"...shell = "+shell+", viewer = "+viewer+", selection = "+selection);
|
||||
System.out.println(prefix+"INSIDE CASCADEALLINPUTS TO ALL ITEMS FOR SUBMENUMGR FOR "+label+". NBR ITEMS = "+items.length); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
System.out.println(prefix+"...shell = "+shell+", viewer = "+viewer+", selection = "+selection); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
|
||||
String oldPrefix = prefix;
|
||||
prefix += " ";
|
||||
prefix += " "; //$NON-NLS-1$
|
||||
super.cascadeAllInputs();
|
||||
prefix = oldPrefix;
|
||||
}
|
||||
|
@ -164,8 +164,8 @@ public class SystemSubMenuManagerForTesting
|
|||
*/
|
||||
protected void cascadeAllInputs(ISystemAction action)
|
||||
{
|
||||
System.out.println(prefix+"INSIDE CASCADEALLINPUTS TO ISYSTEMACTION(action="+action.getText()+") FOR THIS MNUMGR: "+label);
|
||||
System.out.println(prefix+"...shell = "+shell+", viewer = "+viewer+", selection = "+selection);
|
||||
System.out.println(prefix+"INSIDE CASCADEALLINPUTS TO ISYSTEMACTION(action="+action.getText()+") FOR THIS MNUMGR: "+label); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
System.out.println(prefix+"...shell = "+shell+", viewer = "+viewer+", selection = "+selection); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
|
||||
super.cascadeAllInputs(action);
|
||||
}
|
||||
/**
|
||||
|
@ -173,8 +173,8 @@ public class SystemSubMenuManagerForTesting
|
|||
*/
|
||||
protected void cascadeAllInputs(SystemSubMenuManager submenu)
|
||||
{
|
||||
System.out.println("INSIDE CASCADEALLINPUTS TO SUBMENUMGR(submenu="+submenu.getLabel()+") FOR THIS MNUMGR: "+label);
|
||||
System.out.println("...shell = "+shell+", viewer = "+viewer+", selection = "+selection);
|
||||
System.out.println("INSIDE CASCADEALLINPUTS TO SUBMENUMGR(submenu="+submenu.getLabel()+") FOR THIS MNUMGR: "+label); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
System.out.println("...shell = "+shell+", viewer = "+viewer+", selection = "+selection); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
|
||||
super.cascadeAllInputs(submenu);
|
||||
}
|
||||
}
|
|
@ -231,7 +231,7 @@ public class SystemTablePrintAction extends SystemBaseAction
|
|||
printLine(line);
|
||||
}
|
||||
|
||||
printLine(" ");
|
||||
printLine(" "); //$NON-NLS-1$
|
||||
printLine(sEndOfListing);
|
||||
|
||||
/*=======================*/
|
||||
|
@ -359,7 +359,7 @@ public class SystemTablePrintAction extends SystemBaseAction
|
|||
|
||||
private String getColumnHeader()
|
||||
{
|
||||
StringBuffer sbColumnHeader = new StringBuffer("");
|
||||
StringBuffer sbColumnHeader = new StringBuffer(""); //$NON-NLS-1$
|
||||
sbColumnHeader.append(getBlankLine());
|
||||
|
||||
if (_hasColumns)
|
||||
|
@ -368,7 +368,7 @@ public class SystemTablePrintAction extends SystemBaseAction
|
|||
sbColumnHeader.insert(0, SystemPropertyResources.RESID_PROPERTY_NAME_LABEL);
|
||||
|
||||
int offset = _columnWidths[0];
|
||||
sbColumnHeader.insert(offset, " ");
|
||||
sbColumnHeader.insert(offset, " "); //$NON-NLS-1$
|
||||
offset++;
|
||||
|
||||
for (int i = 0; i < descriptors.length; i++)
|
||||
|
@ -382,7 +382,7 @@ public class SystemTablePrintAction extends SystemBaseAction
|
|||
if (labelWidth > columnWidth)
|
||||
{
|
||||
label = label.substring(0, columnWidth - 3);
|
||||
label += "...";
|
||||
label += "..."; //$NON-NLS-1$
|
||||
}
|
||||
sbColumnHeader.insert(offset, label);
|
||||
}
|
||||
|
@ -395,7 +395,7 @@ public class SystemTablePrintAction extends SystemBaseAction
|
|||
{
|
||||
int delta = (offset - rightOffset) - 3;
|
||||
label = label.substring(0, delta);
|
||||
label += "...";
|
||||
label += "..."; //$NON-NLS-1$
|
||||
rightOffset = offset;
|
||||
}
|
||||
|
||||
|
@ -403,7 +403,7 @@ public class SystemTablePrintAction extends SystemBaseAction
|
|||
}
|
||||
|
||||
offset += columnWidth;
|
||||
sbColumnHeader.insert(offset, " ");
|
||||
sbColumnHeader.insert(offset, " "); //$NON-NLS-1$
|
||||
offset++;
|
||||
}
|
||||
}
|
||||
|
@ -412,7 +412,7 @@ public class SystemTablePrintAction extends SystemBaseAction
|
|||
|
||||
private String getHeaderSeparator()
|
||||
{
|
||||
StringBuffer separator = new StringBuffer("");
|
||||
StringBuffer separator = new StringBuffer(""); //$NON-NLS-1$
|
||||
if (_hasColumns)
|
||||
{
|
||||
for (int i = 0; i < _columnWidths.length; i++)
|
||||
|
@ -420,10 +420,10 @@ public class SystemTablePrintAction extends SystemBaseAction
|
|||
int width = _columnWidths[i];
|
||||
for (int t = 0; t < width; t++)
|
||||
{
|
||||
separator.append("-");
|
||||
separator.append("-"); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
separator.append(" ");
|
||||
separator.append(" "); //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -432,7 +432,7 @@ public class SystemTablePrintAction extends SystemBaseAction
|
|||
|
||||
private String getTableFooter()
|
||||
{
|
||||
String footer = " * * * * * E N D O F L I S T I N G * * * * *";
|
||||
String footer = " * * * * * E N D O F L I S T I N G * * * * *"; //$NON-NLS-1$
|
||||
return footer;
|
||||
}
|
||||
|
||||
|
@ -461,7 +461,7 @@ public class SystemTablePrintAction extends SystemBaseAction
|
|||
int totalWidth = getTotalWidth();
|
||||
for (int b = 0; b < totalWidth; b++)
|
||||
{
|
||||
blankLine.append(" ");
|
||||
blankLine.append(" "); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
return blankLine.toString();
|
||||
|
@ -469,7 +469,7 @@ public class SystemTablePrintAction extends SystemBaseAction
|
|||
|
||||
private String getLine(Object object, int numColumns)
|
||||
{
|
||||
StringBuffer line = new StringBuffer("");
|
||||
StringBuffer line = new StringBuffer(""); //$NON-NLS-1$
|
||||
|
||||
//SystemTableViewProvider lprovider = (SystemTableViewProvider) _viewer.getLabelProvider();
|
||||
SystemDecoratingLabelProvider lprovider = (SystemDecoratingLabelProvider)_viewer.getLabelProvider();
|
||||
|
@ -488,7 +488,7 @@ public class SystemTablePrintAction extends SystemBaseAction
|
|||
if (labelWidth > columnWidth)
|
||||
{
|
||||
columnText = columnText.substring(0, columnWidth - 3);
|
||||
columnText += "...";
|
||||
columnText += "..."; //$NON-NLS-1$
|
||||
}
|
||||
|
||||
line.insert(offset, columnText);
|
||||
|
@ -501,7 +501,7 @@ public class SystemTablePrintAction extends SystemBaseAction
|
|||
{
|
||||
int delta = (offset - rightOffset) + 3;
|
||||
columnText = columnText.substring(0, labelWidth - delta);
|
||||
columnText += "...";
|
||||
columnText += "..."; //$NON-NLS-1$
|
||||
rightOffset = offset;
|
||||
}
|
||||
|
||||
|
@ -509,7 +509,7 @@ public class SystemTablePrintAction extends SystemBaseAction
|
|||
}
|
||||
|
||||
offset += columnWidth;
|
||||
line.insert(offset, " ");
|
||||
line.insert(offset, " "); //$NON-NLS-1$
|
||||
offset++;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -47,7 +47,7 @@ public class SystemTeamReloadAction extends SystemBaseAction
|
|||
allowOnMultipleSelection(false);
|
||||
setContextMenuGroup(ISystemContextMenuConstants.GROUP_BUILD);
|
||||
//setSelectionSensitive(false);
|
||||
setHelp(RSEUIPlugin.HELPPREFIX+"actn0009");
|
||||
setHelp(RSEUIPlugin.HELPPREFIX+"actn0009"); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -40,7 +40,7 @@ public class SystemWorkWithProfilesAction extends SystemBaseAction
|
|||
setSelectionSensitive(false);
|
||||
allowOnMultipleSelection(true);
|
||||
//sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
setHelp(RSEUIPlugin.HELPPREFIX+"actnwwpr");
|
||||
setHelp(RSEUIPlugin.HELPPREFIX+"actnwwpr"); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -43,7 +43,7 @@ public class SystemChangePasswordDialog extends SystemPromptDialog
|
|||
{
|
||||
private String _hostname;
|
||||
private String _user;
|
||||
private String _newPassword = "";
|
||||
private String _newPassword = ""; //$NON-NLS-1$
|
||||
|
||||
private Text _txtNewPassword;
|
||||
private Text _txtConfirmPassword;
|
||||
|
@ -185,7 +185,7 @@ public class SystemChangePasswordDialog extends SystemPromptDialog
|
|||
{
|
||||
return RSEUIPlugin.getPluginMessage(ISystemMessages.MSG_COMM_PWD_MISMATCH);
|
||||
}
|
||||
else if (newPassword.equals(""))
|
||||
else if (newPassword.equals("")) //$NON-NLS-1$
|
||||
{
|
||||
return RSEUIPlugin.getPluginMessage(ISystemMessages.MSG_COMM_PWD_BLANKFIELD);
|
||||
}
|
||||
|
|
|
@ -67,7 +67,7 @@ public class SystemDeleteDialog extends SystemPromptDialog
|
|||
|
||||
// column headers
|
||||
private String columnHeaders[] = {
|
||||
"",
|
||||
"", //$NON-NLS-1$
|
||||
SystemResources.RESID_DELETE_COLHDG_OLDNAME,
|
||||
SystemResources.RESID_DELETE_COLHDG_TYPE
|
||||
};
|
||||
|
@ -95,7 +95,7 @@ public class SystemDeleteDialog extends SystemPromptDialog
|
|||
{
|
||||
super(shell, SystemResources.RESID_DELETE_TITLE);
|
||||
super.setOkButtonLabel(SystemResources.RESID_DELETE_BUTTON);
|
||||
setHelp(RSEUIPlugin.HELPPREFIX+"ddlt0000");
|
||||
setHelp(RSEUIPlugin.HELPPREFIX+"ddlt0000"); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -169,7 +169,7 @@ public class SystemDeleteDialog extends SystemPromptDialog
|
|||
if (warningMessage != null)
|
||||
{
|
||||
// filler line
|
||||
SystemWidgetHelpers.createLabel(composite, "", nbrColumns);
|
||||
SystemWidgetHelpers.createLabel(composite, "", nbrColumns); //$NON-NLS-1$
|
||||
// create image
|
||||
Image image = getShell().getDisplay().getSystemImage(SWT.ICON_WARNING);
|
||||
Label imageLabel = null;
|
||||
|
@ -191,7 +191,7 @@ public class SystemDeleteDialog extends SystemPromptDialog
|
|||
}
|
||||
}
|
||||
// filler line
|
||||
SystemWidgetHelpers.createLabel(composite, "", nbrColumns);
|
||||
SystemWidgetHelpers.createLabel(composite, "", nbrColumns); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
// TABLE
|
||||
|
|
|
@ -83,7 +83,7 @@ public class SystemDeleteTableProvider implements ITableLabelProvider, IStructur
|
|||
*/
|
||||
public String getColumnText(Object element, int column)
|
||||
{
|
||||
String text = "";
|
||||
String text = ""; //$NON-NLS-1$
|
||||
if (column == COLUMN_NAME)
|
||||
text = getTableRow(element).getName();
|
||||
else if (column == COLUMN_TYPE)
|
||||
|
|
|
@ -146,7 +146,7 @@ public class SystemFilterTableDialog extends SystemPromptDialog implements KeyLi
|
|||
inputC.setLayoutData(igd);
|
||||
|
||||
// input
|
||||
Label objFilterLabel= SystemWidgetHelpers.createLabel(inputC, "Input");
|
||||
Label objFilterLabel= SystemWidgetHelpers.createLabel(inputC, "Input"); //$NON-NLS-1$
|
||||
_inputText = new Combo(inputC, SWT.DROP_DOWN | SWT.READ_ONLY);
|
||||
_inputText.addListener(SWT.Selection, this);
|
||||
|
||||
|
@ -257,8 +257,8 @@ public class SystemFilterTableDialog extends SystemPromptDialog implements KeyLi
|
|||
String typeFilter = _typeCombo.getText().toUpperCase();
|
||||
|
||||
vfilters[0] = _filterCombo.getText().toUpperCase();
|
||||
if (!vfilters[0].endsWith("*"))
|
||||
vfilters[0] += "*";
|
||||
if (!vfilters[0].endsWith("*")) //$NON-NLS-1$
|
||||
vfilters[0] += "*"; //$NON-NLS-1$
|
||||
|
||||
if (_lastFilter != vfilters[0])
|
||||
{
|
||||
|
@ -315,7 +315,7 @@ public class SystemFilterTableDialog extends SystemPromptDialog implements KeyLi
|
|||
}
|
||||
else if (source == _filterCombo)
|
||||
{
|
||||
if (_lastFilter == null || !_lastFilter.equals(_filterCombo.getText() + "*"))
|
||||
if (_lastFilter == null || !_lastFilter.equals(_filterCombo.getText() + "*")) //$NON-NLS-1$
|
||||
{
|
||||
applyViewFilter(true);
|
||||
}
|
||||
|
@ -372,8 +372,8 @@ public class SystemFilterTableDialog extends SystemPromptDialog implements KeyLi
|
|||
if (e.widget == _filterCombo)
|
||||
{
|
||||
String vfilter = _filterCombo.getText();
|
||||
if (!vfilter.endsWith("*"))
|
||||
vfilter += "*";
|
||||
if (!vfilter.endsWith("*")) //$NON-NLS-1$
|
||||
vfilter += "*"; //$NON-NLS-1$
|
||||
if (_lastFilter == null || !_lastFilter.equals(vfilter))
|
||||
{
|
||||
//System.out.println("handling event");
|
||||
|
|
|
@ -125,7 +125,7 @@ public final class SystemPasswordPersistencePrompt extends SystemPromptDialog im
|
|||
protected boolean processOK() {
|
||||
// Check for blank fields
|
||||
String sHostName = hostname.getText();
|
||||
if (sHostName == null || sHostName.trim().equals(""))
|
||||
if (sHostName == null || sHostName.trim().equals("")) //$NON-NLS-1$
|
||||
{
|
||||
setErrorMessage(RSEUIPlugin.getPluginMessage(ISystemMessages.MSG_COMM_PWD_BLANKFIELD));
|
||||
okButton.setEnabled(false);
|
||||
|
@ -134,7 +134,7 @@ public final class SystemPasswordPersistencePrompt extends SystemPromptDialog im
|
|||
}
|
||||
|
||||
String sSystemType = systemType.getText();
|
||||
if (sSystemType == null || sSystemType.trim().equals(""))
|
||||
if (sSystemType == null || sSystemType.trim().equals("")) //$NON-NLS-1$
|
||||
{
|
||||
setErrorMessage(RSEUIPlugin.getPluginMessage(ISystemMessages.MSG_COMM_PWD_BLANKFIELD));
|
||||
okButton.setEnabled(false);
|
||||
|
@ -143,7 +143,7 @@ public final class SystemPasswordPersistencePrompt extends SystemPromptDialog im
|
|||
}
|
||||
|
||||
String sUserID = userid.getText();
|
||||
if (sUserID == null || sUserID.trim().equals(""))
|
||||
if (sUserID == null || sUserID.trim().equals("")) //$NON-NLS-1$
|
||||
{
|
||||
setErrorMessage(RSEUIPlugin.getPluginMessage(ISystemMessages.MSG_COMM_PWD_BLANKFIELD));
|
||||
okButton.setEnabled(false);
|
||||
|
@ -152,7 +152,7 @@ public final class SystemPasswordPersistencePrompt extends SystemPromptDialog im
|
|||
}
|
||||
|
||||
String sPwd1 = password.getText();
|
||||
if (sPwd1 == null || sPwd1.trim().equals(""))
|
||||
if (sPwd1 == null || sPwd1.trim().equals("")) //$NON-NLS-1$
|
||||
{
|
||||
setErrorMessage(RSEUIPlugin.getPluginMessage(ISystemMessages.MSG_COMM_PWD_BLANKFIELD));
|
||||
okButton.setEnabled(false);
|
||||
|
@ -161,7 +161,7 @@ public final class SystemPasswordPersistencePrompt extends SystemPromptDialog im
|
|||
}
|
||||
|
||||
String sPwd2 = passwordVerify.getText();
|
||||
if (sPwd2 == null || sPwd2.trim().equals(""))
|
||||
if (sPwd2 == null || sPwd2.trim().equals("")) //$NON-NLS-1$
|
||||
{
|
||||
setErrorMessage(RSEUIPlugin.getPluginMessage(ISystemMessages.MSG_COMM_PWD_BLANKFIELD));
|
||||
okButton.setEnabled(false);
|
||||
|
@ -253,12 +253,12 @@ public final class SystemPasswordPersistencePrompt extends SystemPromptDialog im
|
|||
super.createControl(parent);
|
||||
if (change)
|
||||
{
|
||||
SystemWidgetHelpers.setCompositeHelp(parent, RSEUIPlugin.HELPPREFIX + "pwdi0002");
|
||||
SystemWidgetHelpers.setCompositeHelp(parent, RSEUIPlugin.HELPPREFIX + "pwdi0002"); //$NON-NLS-1$
|
||||
password.setFocus();
|
||||
}
|
||||
else
|
||||
{
|
||||
SystemWidgetHelpers.setCompositeHelp(parent, RSEUIPlugin.HELPPREFIX + "pwdi0001");
|
||||
SystemWidgetHelpers.setCompositeHelp(parent, RSEUIPlugin.HELPPREFIX + "pwdi0001"); //$NON-NLS-1$
|
||||
hostname.setFocus();
|
||||
}
|
||||
}
|
||||
|
@ -276,31 +276,31 @@ public final class SystemPasswordPersistencePrompt extends SystemPromptDialog im
|
|||
* @see org.eclipse.swt.events.ModifyListener#modifyText(ModifyEvent)
|
||||
*/
|
||||
public void modifyText(ModifyEvent e) {
|
||||
if (e.getSource() == hostname && hostname.getText().trim().equals(""))
|
||||
if (e.getSource() == hostname && hostname.getText().trim().equals("")) //$NON-NLS-1$
|
||||
{
|
||||
setErrorMessage(RSEUIPlugin.getPluginMessage(ISystemMessages.MSG_COMM_PWD_BLANKFIELD));
|
||||
hostname.setFocus();
|
||||
okButton.setEnabled(false);
|
||||
}
|
||||
else if (e.getSource() == userid && userid.getText().trim().equals(""))
|
||||
else if (e.getSource() == userid && userid.getText().trim().equals("")) //$NON-NLS-1$
|
||||
{
|
||||
setErrorMessage(RSEUIPlugin.getPluginMessage(ISystemMessages.MSG_COMM_PWD_BLANKFIELD));
|
||||
userid.setFocus();
|
||||
okButton.setEnabled(false);
|
||||
}
|
||||
else if (e.getSource() == systemType && systemType.getText().trim().equals(""))
|
||||
else if (e.getSource() == systemType && systemType.getText().trim().equals("")) //$NON-NLS-1$
|
||||
{
|
||||
setErrorMessage(RSEUIPlugin.getPluginMessage(ISystemMessages.MSG_COMM_PWD_BLANKFIELD));
|
||||
systemType.setFocus();
|
||||
okButton.setEnabled(false);
|
||||
}
|
||||
else if (e.getSource() == password && password.getText().trim().equals(""))
|
||||
else if (e.getSource() == password && password.getText().trim().equals("")) //$NON-NLS-1$
|
||||
{
|
||||
setErrorMessage(RSEUIPlugin.getPluginMessage(ISystemMessages.MSG_COMM_PWD_BLANKFIELD));
|
||||
password.setFocus();
|
||||
okButton.setEnabled(false);
|
||||
}
|
||||
else if (e.getSource() == passwordVerify && passwordVerify.getText().trim().equals(""))
|
||||
else if (e.getSource() == passwordVerify && passwordVerify.getText().trim().equals("")) //$NON-NLS-1$
|
||||
{
|
||||
setErrorMessage(RSEUIPlugin.getPluginMessage(ISystemMessages.MSG_COMM_PWD_BLANKFIELD));
|
||||
passwordVerify.setFocus();
|
||||
|
@ -310,11 +310,11 @@ public final class SystemPasswordPersistencePrompt extends SystemPromptDialog im
|
|||
{
|
||||
clearErrorMessage();
|
||||
|
||||
if (hostname.getText().trim().equals("") ||
|
||||
userid.getText().trim().equals("") ||
|
||||
systemType.getText().trim().equals("") ||
|
||||
password.getText().trim().equals("") ||
|
||||
passwordVerify.getText().trim().equals(""))
|
||||
if (hostname.getText().trim().equals("") || //$NON-NLS-1$
|
||||
userid.getText().trim().equals("") || //$NON-NLS-1$
|
||||
systemType.getText().trim().equals("") || //$NON-NLS-1$
|
||||
password.getText().trim().equals("") || //$NON-NLS-1$
|
||||
passwordVerify.getText().trim().equals("")) //$NON-NLS-1$
|
||||
{
|
||||
// clear error messages but button stays disabled
|
||||
okButton.setEnabled(false);
|
||||
|
|
|
@ -69,7 +69,7 @@ public final class SystemPasswordPromptDialog extends SystemPromptDialog impleme
|
|||
*/
|
||||
public SystemPasswordPromptDialog(Shell shell) {
|
||||
super(shell, SystemResources.RESID_PASSWORD_TITLE);
|
||||
setHelp(RSEUIPlugin.HELPPREFIX + "pwdp0000");
|
||||
setHelp(RSEUIPlugin.HELPPREFIX + "pwdp0000"); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -192,7 +192,7 @@ public final class SystemPasswordPromptDialog extends SystemPromptDialog impleme
|
|||
// DY: align user ID checkbox with entry fields
|
||||
// yantzi:5.1 move checkboxes to be below entry fields
|
||||
if (connectorService.supportsUserId()) {
|
||||
SystemWidgetHelpers.createLabel(composite_prompts, "");
|
||||
SystemWidgetHelpers.createLabel(composite_prompts, ""); //$NON-NLS-1$
|
||||
userIdPermanentCB = SystemWidgetHelpers.createCheckBox(composite_prompts, 1, this, SystemResources.RESID_PASSWORD_USERID_ISPERMANENT_LABEL,
|
||||
SystemResources.RESID_PASSWORD_USERID_ISPERMANENT_TIP);
|
||||
userIdPermanentCB.setEnabled(false);
|
||||
|
@ -201,7 +201,7 @@ public final class SystemPasswordPromptDialog extends SystemPromptDialog impleme
|
|||
// Save signon information checkbox
|
||||
// DY: align password checkbox with entry fields
|
||||
if (connectorService.supportsPassword()) {
|
||||
SystemWidgetHelpers.createLabel(composite_prompts, "");
|
||||
SystemWidgetHelpers.createLabel(composite_prompts, ""); //$NON-NLS-1$
|
||||
savePasswordCB = SystemWidgetHelpers.createCheckBox(composite_prompts, 1, this, SystemResources.RESID_PASSWORD_SAVE_LABEL, SystemResources.RESID_PASSWORD_SAVE_TOOLTIP);
|
||||
savePasswordCB.setSelection(savePassword);
|
||||
}
|
||||
|
|
|
@ -1590,7 +1590,7 @@ public abstract class SystemPromptDialog
|
|||
|
||||
// Set the cancel button label to "Cancel" if it isn't already
|
||||
if (labelCancel != null)
|
||||
cancelButton.setText("&" + IDialogConstants.CANCEL_LABEL);
|
||||
cancelButton.setText("&" + IDialogConstants.CANCEL_LABEL); //$NON-NLS-1$
|
||||
|
||||
// Deactivate shell
|
||||
savedState = saveUIState(needsProgressMonitor && enableCancelButton);
|
||||
|
@ -1697,12 +1697,12 @@ public abstract class SystemPromptDialog
|
|||
protected void restoreUIState(Map state)
|
||||
{
|
||||
//protected Button okButton, cancelButton, testButton, browseButton, addButton, detailsButton;
|
||||
restoreEnableState(okButton, state, "ok");
|
||||
restoreEnableState(testButton, state, "test");
|
||||
restoreEnableState(browseButton, state, "browse");
|
||||
restoreEnableState(cancelButton, state, "cancel");
|
||||
restoreEnableState(addButton, state, "add");
|
||||
restoreEnableState(detailsButton,state, "details");
|
||||
restoreEnableState(okButton, state, "ok"); //$NON-NLS-1$
|
||||
restoreEnableState(testButton, state, "test"); //$NON-NLS-1$
|
||||
restoreEnableState(browseButton, state, "browse"); //$NON-NLS-1$
|
||||
restoreEnableState(cancelButton, state, "cancel"); //$NON-NLS-1$
|
||||
restoreEnableState(addButton, state, "add"); //$NON-NLS-1$
|
||||
restoreEnableState(detailsButton,state, "details"); //$NON-NLS-1$
|
||||
SystemControlEnableState pageState = (SystemControlEnableState) state.get("page");//$NON-NLS-1$
|
||||
pageState.restore();
|
||||
}
|
||||
|
@ -1722,14 +1722,14 @@ public abstract class SystemPromptDialog
|
|||
protected Map saveUIState(boolean keepCancelEnabled)
|
||||
{
|
||||
Map savedState= new HashMap(10);
|
||||
saveEnableStateAndSet(okButton, savedState, "ok", false);
|
||||
saveEnableStateAndSet(testButton, savedState, "test", false);
|
||||
saveEnableStateAndSet(browseButton, savedState, "browse", false);
|
||||
saveEnableStateAndSet(cancelButton, savedState, "cancel", keepCancelEnabled);
|
||||
saveEnableStateAndSet(addButton, savedState, "add", false);
|
||||
saveEnableStateAndSet(detailsButton,savedState, "details",false);
|
||||
saveEnableStateAndSet(okButton, savedState, "ok", false); //$NON-NLS-1$
|
||||
saveEnableStateAndSet(testButton, savedState, "test", false); //$NON-NLS-1$
|
||||
saveEnableStateAndSet(browseButton, savedState, "browse", false); //$NON-NLS-1$
|
||||
saveEnableStateAndSet(cancelButton, savedState, "cancel", keepCancelEnabled); //$NON-NLS-1$
|
||||
saveEnableStateAndSet(addButton, savedState, "add", false); //$NON-NLS-1$
|
||||
saveEnableStateAndSet(detailsButton,savedState, "details",false); //$NON-NLS-1$
|
||||
//savedState.put("page", ControlEnableState.disable(getControl()));
|
||||
savedState.put("page", SystemControlEnableState.disable(dialogAreaComposite));
|
||||
savedState.put("page", SystemControlEnableState.disable(dialogAreaComposite)); //$NON-NLS-1$
|
||||
return savedState;
|
||||
}
|
||||
|
||||
|
|
|
@ -604,11 +604,11 @@ public class SystemRenameDialog extends SystemPromptDialog
|
|||
if (uniqueNameValidator != null)
|
||||
{
|
||||
if (debug)
|
||||
System.out.println("Existing name list found for parent " + parentName);
|
||||
System.out.println("Existing name list found for parent " + parentName); //$NON-NLS-1$
|
||||
return uniqueNameValidator;
|
||||
}
|
||||
else if (debug)
|
||||
System.out.println("No existing name list found for parent " + parentName);
|
||||
System.out.println("No existing name list found for parent " + parentName); //$NON-NLS-1$
|
||||
}
|
||||
if ((ra != null) && (parentName != null))
|
||||
{
|
||||
|
@ -626,7 +626,7 @@ public class SystemRenameDialog extends SystemPromptDialog
|
|||
super.setBusyCursor(true);
|
||||
try {
|
||||
names = ra.getRemoteParentNamesInUse(getShell(), inputElement);
|
||||
} catch (Exception exc) {SystemBasePlugin.logError("Exception getting parent's child names in rename dialog",exc);}
|
||||
} catch (Exception exc) {SystemBasePlugin.logError("Exception getting parent's child names in rename dialog",exc);} //$NON-NLS-1$
|
||||
if ((names != null) && (names.length>0))
|
||||
{
|
||||
uniqueNameValidator = new ValidatorUniqueString(names,caseSensitive);
|
||||
|
@ -635,9 +635,9 @@ public class SystemRenameDialog extends SystemPromptDialog
|
|||
uniqueNameValidatorPerParent.put(parentName, uniqueNameValidator);
|
||||
if (debug)
|
||||
{
|
||||
System.out.println("Name validator set. Names = ");
|
||||
System.out.println("Name validator set. Names = "); //$NON-NLS-1$
|
||||
for (int idx=0; idx<names.length; idx++)
|
||||
System.out.println("..."+idx+": "+names[idx]);
|
||||
System.out.println("..."+idx+": "+names[idx]); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
}
|
||||
}
|
||||
// Restore cursor
|
||||
|
|
|
@ -107,7 +107,7 @@ public class SystemRenameSingleDialog extends SystemPromptDialog
|
|||
{
|
||||
this(shell, SystemResources.RESID_RENAME_TITLE);
|
||||
String singleTitle = SystemResources.RESID_RENAME_SINGLE_TITLE;
|
||||
if (!singleTitle.startsWith("Missing")) // TODO: remove test after next mri rev
|
||||
if (!singleTitle.startsWith("Missing")) // TODO: remove test after next mri rev //$NON-NLS-1$
|
||||
setTitle(singleTitle);
|
||||
}
|
||||
/**
|
||||
|
@ -170,7 +170,7 @@ public class SystemRenameSingleDialog extends SystemPromptDialog
|
|||
{
|
||||
setHelp(RSEUIPlugin.HELPPREFIX+"drns0000"); //$NON-NLS-1$
|
||||
String singleTitle = SystemResources.RESID_RENAME_SINGLE_TITLE;
|
||||
if (!singleTitle.startsWith("Missing")) // TODO: remove test after next mri rev
|
||||
if (!singleTitle.startsWith("Missing")) // TODO: remove test after next mri rev //$NON-NLS-1$
|
||||
setTitle(singleTitle);
|
||||
else
|
||||
setTitle(SystemResources.RESID_RENAME_TITLE); // older string we know exists
|
||||
|
@ -337,7 +337,7 @@ public class SystemRenameSingleDialog extends SystemPromptDialog
|
|||
|
||||
if (copyCollisionMode)
|
||||
{
|
||||
verbageLabel.setText(SystemMessage.sub(SystemResources.RESID_COLLISION_RENAME_VERBAGE, "&1", inputName));
|
||||
verbageLabel.setText(SystemMessage.sub(SystemResources.RESID_COLLISION_RENAME_VERBAGE, "&1", inputName)); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
|
||||
|
@ -420,7 +420,7 @@ public class SystemRenameSingleDialog extends SystemPromptDialog
|
|||
RSEUIPlugin.getTheSystemRegistry().clearRunnableContext();
|
||||
names = ra.getRemoteParentNamesInUse(shell, inputElement);
|
||||
RSEUIPlugin.getTheSystemRegistry().setRunnableContext(shell, irc);
|
||||
} catch (Exception exc) {SystemBasePlugin.logError("Exception getting parent's child names in rename dialog",exc);}
|
||||
} catch (Exception exc) {SystemBasePlugin.logError("Exception getting parent's child names in rename dialog",exc);} //$NON-NLS-1$
|
||||
if ((names != null) && (names.length>0))
|
||||
{
|
||||
uniqueNameValidator = new ValidatorUniqueString(names,caseSensitive);
|
||||
|
@ -428,9 +428,9 @@ public class SystemRenameSingleDialog extends SystemPromptDialog
|
|||
RSEUIPlugin.getPluginMessage(ISystemMessages.MSG_VALIDATE_NAME_NOTUNIQUE));
|
||||
if (debug)
|
||||
{
|
||||
System.out.println("Name validator set. Names = ");
|
||||
System.out.println("Name validator set. Names = "); //$NON-NLS-1$
|
||||
for (int idx=0; idx<names.length; idx++)
|
||||
System.out.println("..."+idx+": "+names[idx]);
|
||||
System.out.println("..."+idx+": "+names[idx]); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
}
|
||||
}
|
||||
// Restore cursor
|
||||
|
|
|
@ -108,7 +108,7 @@ public class SystemRenameTableProvider implements ITableLabelProvider, IStructur
|
|||
*/
|
||||
public String getColumnText(Object element, int column)
|
||||
{
|
||||
String text = "";
|
||||
String text = ""; //$NON-NLS-1$
|
||||
if (column == COLUMN_OLDNAME)
|
||||
text = getTableRow(element).getName();
|
||||
else if (column == COLUMN_NEWNAME)
|
||||
|
|
|
@ -72,7 +72,7 @@ public class SystemRenameTableRow extends SystemDeleteTableRow
|
|||
*/
|
||||
public static String trimTrailing(String text)
|
||||
{
|
||||
return ("."+text).trim().substring(1);
|
||||
return ("."+text).trim().substring(1); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -89,7 +89,7 @@ public class SystemResolveFilterStringDialog extends SystemTestFilterStringDialo
|
|||
String label = filterString;
|
||||
|
||||
if ( label.length() > 30)
|
||||
label = label.substring(0,30) + " ..."; // Use ... to show that not entire string is displayed
|
||||
label = label.substring(0,30) + " ..."; // Use ... to show that not entire string is displayed //$NON-NLS-1$
|
||||
promptValue.setText(label);
|
||||
|
||||
GridData data = new GridData();
|
||||
|
|
|
@ -104,7 +104,7 @@ public class SystemSelectFileTypesDialog
|
|||
setInstruction(GenericMessages.TypesFiltering_message);
|
||||
|
||||
// TODO - hack to make this work in 3.1
|
||||
String id = PlatformUI.PLUGIN_ID + ".type_filtering_dialog_context";
|
||||
String id = PlatformUI.PLUGIN_ID + ".type_filtering_dialog_context"; //$NON-NLS-1$
|
||||
setHelp(id);
|
||||
}
|
||||
|
||||
|
@ -244,7 +244,7 @@ public class SystemSelectFileTypesDialog
|
|||
while (tokenizer.hasMoreTokens())
|
||||
{
|
||||
String currentExtension = tokenizer.nextToken().trim();
|
||||
if (!currentExtension.equals(""))
|
||||
if (!currentExtension.equals("")) //$NON-NLS-1$
|
||||
{
|
||||
if (currentExtension.startsWith("*."))//$NON-NLS-1$
|
||||
result.add(currentExtension.substring(2));
|
||||
|
@ -427,7 +427,7 @@ public class SystemSelectFileTypesDialog
|
|||
}
|
||||
|
||||
int startScan = 0;
|
||||
if (filename.startsWith("*."))
|
||||
if (filename.startsWith("*.")) //$NON-NLS-1$
|
||||
startScan = 2;
|
||||
|
||||
// check for characters before *
|
||||
|
|
|
@ -233,7 +233,7 @@ public class SystemSimpleSelectDialog extends SystemPromptDialog
|
|||
if (inputObject instanceof SystemSimpleContentElement)
|
||||
setInputObject((SystemSimpleContentElement)inputObject);
|
||||
else
|
||||
System.out.println("UNEXPECTED INPUT IN SYSTEMSELECTINPUTDIALOG: "+inputObject);
|
||||
System.out.println("UNEXPECTED INPUT IN SYSTEMSELECTINPUTDIALOG: "+inputObject); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -136,7 +136,7 @@ public class SystemTestFilterStringDialog
|
|||
String label = filterString;
|
||||
|
||||
if ( label.length() > 30)
|
||||
label = label.substring(0,30) + " ..."; // Use ... to show that not entire string is displayed
|
||||
label = label.substring(0,30) + " ..."; // Use ... to show that not entire string is displayed //$NON-NLS-1$
|
||||
promptValue.setText( label);
|
||||
|
||||
//Point point = promptValue.computeSize(SWT.DEFAULT, SWT.DEFAULT);
|
||||
|
|
|
@ -69,7 +69,7 @@ public class SystemWorkWithHistoryDialog extends SystemPromptDialog implements I
|
|||
historyInput = history;
|
||||
|
||||
//pack();
|
||||
setHelp(RSEUIPlugin.HELPPREFIX+"dwwh0000");
|
||||
setHelp(RSEUIPlugin.HELPPREFIX+"dwwh0000"); //$NON-NLS-1$
|
||||
setInitialOKButtonEnabledState(false); //d41471
|
||||
}
|
||||
|
||||
|
|
|
@ -369,7 +369,7 @@ public class SystemChangeFilterPane extends SystemBaseForm
|
|||
*/
|
||||
public Control createContents(Composite parent)
|
||||
{
|
||||
SystemWidgetHelpers.setHelp(parent, RSEUIPlugin.HELPPREFIX+"dufr0000");
|
||||
SystemWidgetHelpers.setHelp(parent, RSEUIPlugin.HELPPREFIX+"dufr0000"); //$NON-NLS-1$
|
||||
|
||||
if (getShell()==null)
|
||||
setShell(parent.getShell());
|
||||
|
@ -388,12 +388,12 @@ public class SystemChangeFilterPane extends SystemBaseForm
|
|||
Composite topComposite = composite;
|
||||
// filter name
|
||||
SystemWidgetHelpers.createLabel(topComposite, namePromptLabel);
|
||||
filterNameLabel = SystemWidgetHelpers.createLabel(topComposite, "");
|
||||
filterNameLabel = SystemWidgetHelpers.createLabel(topComposite, ""); //$NON-NLS-1$
|
||||
filterNameLabel.setToolTipText(namePromptTip);
|
||||
filterNameLabel.setText(inputFilter.getName());
|
||||
// filter pool
|
||||
SystemWidgetHelpers.createLabel(topComposite, poolPromptLabel);
|
||||
filterPoolNameLabel = SystemWidgetHelpers.createLabel(topComposite, "");
|
||||
filterPoolNameLabel = SystemWidgetHelpers.createLabel(topComposite, ""); //$NON-NLS-1$
|
||||
filterPoolNameLabel.setToolTipText(namePromptTip);
|
||||
ISystemFilterPool parentPool = inputFilter.getParentFilterPool();
|
||||
filterPoolNameLabel.setText(parentPool.getName());
|
||||
|
@ -440,7 +440,7 @@ public class SystemChangeFilterPane extends SystemBaseForm
|
|||
if (listView != null)
|
||||
{
|
||||
addFillerLine(rightSideComposite, 1);
|
||||
fsLabel = SystemWidgetHelpers.createLabel(rightSideComposite, "");
|
||||
fsLabel = SystemWidgetHelpers.createLabel(rightSideComposite, ""); //$NON-NLS-1$
|
||||
addSeparatorLine(rightSideComposite,1);
|
||||
}
|
||||
|
||||
|
@ -467,7 +467,7 @@ public class SystemChangeFilterPane extends SystemBaseForm
|
|||
{
|
||||
((GridData)applyResetButtonComposite.getLayoutData()).horizontalIndent = 200; // shift buttons to the right
|
||||
// now populate the buttons composite with apply and revert buttons
|
||||
Label filler = SystemWidgetHelpers.createLabel(applyResetButtonComposite, "");
|
||||
Label filler = SystemWidgetHelpers.createLabel(applyResetButtonComposite, ""); //$NON-NLS-1$
|
||||
((GridData)filler.getLayoutData()).grabExcessHorizontalSpace = true;
|
||||
((GridData)filler.getLayoutData()).horizontalAlignment = GridData.FILL;
|
||||
}
|
||||
|
@ -527,7 +527,7 @@ public class SystemChangeFilterPane extends SystemBaseForm
|
|||
// -----------------------------
|
||||
if (listView != null)
|
||||
{
|
||||
menuMgr = new MenuManager("#ChangeFilterPopupMenu");
|
||||
menuMgr = new MenuManager("#ChangeFilterPopupMenu"); //$NON-NLS-1$
|
||||
menuMgr.setRemoveAllWhenShown(true);
|
||||
menuMgr.addMenuListener(this);
|
||||
Menu menu = menuMgr.createContextMenu(listView);
|
||||
|
|
|
@ -325,7 +325,7 @@ public class SystemFilterStringEditPane implements SelectionListener
|
|||
*/
|
||||
public void processTest(Shell shell)
|
||||
{
|
||||
System.out.println("Someone forgot to override processTest in SystemFilterStringEditPane!");
|
||||
System.out.println("Someone forgot to override processTest in SystemFilterStringEditPane!"); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -494,7 +494,7 @@ public class SystemFilterStringEditPane implements SelectionListener
|
|||
{
|
||||
if (textString != null)
|
||||
{
|
||||
textString.setText("");
|
||||
textString.setText(""); //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
/**
|
||||
|
|
|
@ -62,7 +62,7 @@ public class SystemFilterUIHelpers
|
|||
ISystemFilterPoolManager mgrs[])
|
||||
{
|
||||
SystemSimpleContentElement veryRootElement =
|
||||
new SystemSimpleContentElement("Filter pools",
|
||||
new SystemSimpleContentElement("Filter pools", //$NON-NLS-1$
|
||||
null, null, (Vector)null);
|
||||
veryRootElement.setRenamable(false);
|
||||
veryRootElement.setDeletable(false);
|
||||
|
|
|
@ -88,7 +88,7 @@ public class SystemFilterWorkWithFilterPoolsTreeViewer
|
|||
// -----------------------------
|
||||
// Enable right-click popup menu
|
||||
// -----------------------------
|
||||
menuMgr = new MenuManager("#PopupMenu");
|
||||
menuMgr = new MenuManager("#PopupMenu"); //$NON-NLS-1$
|
||||
menuMgr.setRemoveAllWhenShown(true);
|
||||
menuMgr.addMenuListener(this);
|
||||
Menu menu = menuMgr.createContextMenu(getTree());
|
||||
|
|
|
@ -64,7 +64,7 @@ public class SystemChangeFilterAction extends SystemBaseDialogAction
|
|||
super(label, tooltip, image, parent);
|
||||
allowOnMultipleSelection(false);
|
||||
setContextMenuGroup(ISystemContextMenuConstants.GROUP_CHANGE);
|
||||
setHelp(RSEUIPlugin.HELPPREFIX+"acfr0000");
|
||||
setHelp(RSEUIPlugin.HELPPREFIX+"acfr0000"); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@ public class SystemChangeFilterActionCopyString extends SystemBaseAction
|
|||
allowOnMultipleSelection(false);
|
||||
this.parentDialog = parentDialog;
|
||||
setContextMenuGroup(ISystemContextMenuConstants.GROUP_REORGANIZE);
|
||||
setHelp(RSEUIPlugin.HELPPREFIX+"dufr2000");
|
||||
setHelp(RSEUIPlugin.HELPPREFIX+"dufr2000"); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -47,7 +47,7 @@ public class SystemChangeFilterActionDeleteString extends SystemBaseAction
|
|||
allowOnMultipleSelection(false);
|
||||
this.parentDialog = parentDialog;
|
||||
setContextMenuGroup(ISystemContextMenuConstants.GROUP_REORGANIZE);
|
||||
setHelp(RSEUIPlugin.HELPPREFIX+"dufr1000");
|
||||
setHelp(RSEUIPlugin.HELPPREFIX+"dufr1000"); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -45,7 +45,7 @@ public class SystemChangeFilterActionMoveStringDown extends SystemBaseAction
|
|||
allowOnMultipleSelection(false);
|
||||
this.parentDialog = parentDialog;
|
||||
setContextMenuGroup(ISystemContextMenuConstants.GROUP_REORDER);
|
||||
setHelp(RSEUIPlugin.HELPPREFIX+"dufr5000");
|
||||
setHelp(RSEUIPlugin.HELPPREFIX+"dufr5000"); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -46,7 +46,7 @@ public class SystemChangeFilterActionMoveStringUp extends SystemBaseAction
|
|||
allowOnMultipleSelection(false);
|
||||
this.parentDialog = parentDialog;
|
||||
setContextMenuGroup(ISystemContextMenuConstants.GROUP_REORDER);
|
||||
setHelp(RSEUIPlugin.HELPPREFIX+"dufr4000");
|
||||
setHelp(RSEUIPlugin.HELPPREFIX+"dufr4000"); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -45,7 +45,7 @@ public class SystemChangeFilterActionPasteString extends SystemBaseAction
|
|||
allowOnMultipleSelection(false);
|
||||
this.parentDialog = parentDialog;
|
||||
setContextMenuGroup(ISystemContextMenuConstants.GROUP_REORGANIZE);
|
||||
setHelp(RSEUIPlugin.HELPPREFIX+"dufr3000");
|
||||
setHelp(RSEUIPlugin.HELPPREFIX+"dufr3000"); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -79,7 +79,7 @@ public class SystemFilterCascadingNewFilterPoolReferenceAction
|
|||
menu.addMenuListener(this);
|
||||
menu.setRemoveAllWhenShown(true);
|
||||
//menu.setEnabled(true);
|
||||
menu.add(new SystemBaseAction("dummy",null));
|
||||
menu.add(new SystemBaseAction("dummy",null)); //$NON-NLS-1$
|
||||
return menu;
|
||||
}
|
||||
|
||||
|
|
|
@ -71,7 +71,7 @@ public class SystemFilterCascadingNewFilterPoolReferenceFPMgrAction
|
|||
menu.addMenuListener(this);
|
||||
menu.setRemoveAllWhenShown(true);
|
||||
//menu.setEnabled(true);
|
||||
menu.add(new SystemBaseAction("dummy",null));
|
||||
menu.add(new SystemBaseAction("dummy",null)); //$NON-NLS-1$
|
||||
return menu;
|
||||
}
|
||||
|
||||
|
|
|
@ -303,7 +303,7 @@ public class SystemFilterCopyFilterAction extends SystemBaseCopyAction
|
|||
ISystemFilterPoolManager poolMgr)
|
||||
{
|
||||
SystemSimpleContentElement veryRootElement =
|
||||
new SystemSimpleContentElement("Root",
|
||||
new SystemSimpleContentElement("Root", //$NON-NLS-1$
|
||||
null, null, (Vector)null);
|
||||
veryRootElement.setRenamable(false);
|
||||
veryRootElement.setDeletable(false);
|
||||
|
|
|
@ -291,7 +291,7 @@ public class SystemFilterCopyFilterPoolAction extends SystemBaseCopyAction
|
|||
protected SystemSimpleContentElement getPoolMgrTreeModel(ISystemFilterPoolManagerProvider poolMgrProvider, ISystemFilterPoolManager poolMgr)
|
||||
{
|
||||
SystemSimpleContentElement veryRootElement =
|
||||
new SystemSimpleContentElement("Root",
|
||||
new SystemSimpleContentElement("Root", //$NON-NLS-1$
|
||||
null, null, (Vector)null);
|
||||
veryRootElement.setRenamable(false);
|
||||
veryRootElement.setDeletable(false);
|
||||
|
|
|
@ -379,7 +379,7 @@ public class SystemFilterCopyFilterStringAction extends SystemBaseCopyAction
|
|||
ISystemFilter[] filtersToExclude)
|
||||
{
|
||||
SystemSimpleContentElement veryRootElement =
|
||||
new SystemSimpleContentElement("Root",
|
||||
new SystemSimpleContentElement("Root", //$NON-NLS-1$
|
||||
null, null, (Vector)null);
|
||||
veryRootElement.setRenamable(false);
|
||||
veryRootElement.setDeletable(false);
|
||||
|
|
|
@ -306,7 +306,7 @@ public class SystemFilterMoveFilterAction extends SystemBaseCopyAction
|
|||
ISystemFilterPool pool)
|
||||
{
|
||||
SystemSimpleContentElement veryRootElement =
|
||||
new SystemSimpleContentElement("Root",
|
||||
new SystemSimpleContentElement("Root", //$NON-NLS-1$
|
||||
null, null, (Vector)null);
|
||||
veryRootElement.setRenamable(false);
|
||||
veryRootElement.setDeletable(false);
|
||||
|
|
|
@ -333,7 +333,7 @@ public class SystemFilterMoveFilterPoolAction extends SystemBaseCopyAction
|
|||
protected SystemSimpleContentElement getPoolMgrTreeModel(ISystemFilterPoolManagerProvider poolMgrProvider, ISystemFilterPoolManager poolMgr)
|
||||
{
|
||||
SystemSimpleContentElement veryRootElement =
|
||||
new SystemSimpleContentElement("Root",
|
||||
new SystemSimpleContentElement("Root", //$NON-NLS-1$
|
||||
null, null, (Vector)null);
|
||||
veryRootElement.setRenamable(false);
|
||||
veryRootElement.setDeletable(false);
|
||||
|
|
|
@ -377,7 +377,7 @@ public class SystemFilterMoveFilterStringAction extends SystemBaseCopyAction
|
|||
ISystemFilter[] filtersToExclude)
|
||||
{
|
||||
SystemSimpleContentElement veryRootElement =
|
||||
new SystemSimpleContentElement("Root",
|
||||
new SystemSimpleContentElement("Root", //$NON-NLS-1$
|
||||
null, null, (Vector)null);
|
||||
veryRootElement.setRenamable(false);
|
||||
veryRootElement.setDeletable(false);
|
||||
|
|
|
@ -79,7 +79,7 @@ public class SystemFilterPoolReferenceSelectAction extends SystemBaseAction
|
|||
refMgr.addReferenceToSystemFilterPool(pool);
|
||||
} catch (Exception exc)
|
||||
{
|
||||
SystemBasePlugin.logError("Unexpected error adding filter pool reference",exc);
|
||||
SystemBasePlugin.logError("Unexpected error adding filter pool reference",exc); //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
}
|
|
@ -83,8 +83,8 @@ public class SystemFilterSelectFilterPoolsAction
|
|||
SystemResources.ACTION_SELECTFILTERPOOLS_LABEL, SystemResources.ACTION_SELECTFILTERPOOLS_TOOLTIP);
|
||||
setContextMenuGroup(ISystemContextMenuConstants.GROUP_CHANGE);
|
||||
// set default help for action and dialog
|
||||
setHelp(RSEUIPlugin.HELPPREFIX + "actn0043");
|
||||
setDialogHelp(RSEUIPlugin.HELPPREFIX + "dsfp0000");
|
||||
setHelp(RSEUIPlugin.HELPPREFIX + "actn0043"); //$NON-NLS-1$
|
||||
setDialogHelp(RSEUIPlugin.HELPPREFIX + "dsfp0000"); //$NON-NLS-1$
|
||||
}
|
||||
/**
|
||||
* Constructor when given the translated action label
|
||||
|
@ -94,8 +94,8 @@ public class SystemFilterSelectFilterPoolsAction
|
|||
super(parent, title);
|
||||
setContextMenuGroup(ISystemContextMenuConstants.GROUP_CHANGE);
|
||||
// set default help for action and dialog
|
||||
setHelp(RSEUIPlugin.HELPPREFIX + "actn0043");
|
||||
setDialogHelp(RSEUIPlugin.HELPPREFIX + "dsfp0000");
|
||||
setHelp(RSEUIPlugin.HELPPREFIX + "actn0043"); //$NON-NLS-1$
|
||||
setDialogHelp(RSEUIPlugin.HELPPREFIX + "dsfp0000"); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
|
||||
|
@ -107,8 +107,8 @@ public class SystemFilterSelectFilterPoolsAction
|
|||
super(parent, title, tooltip);
|
||||
setContextMenuGroup(ISystemContextMenuConstants.GROUP_CHANGE);
|
||||
// set default help for action and dialog
|
||||
setHelp(RSEUIPlugin.HELPPREFIX + "actn0043");
|
||||
setDialogHelp(RSEUIPlugin.HELPPREFIX + "dsfp0000");
|
||||
setHelp(RSEUIPlugin.HELPPREFIX + "actn0043"); //$NON-NLS-1$
|
||||
setDialogHelp(RSEUIPlugin.HELPPREFIX + "dsfp0000"); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -53,8 +53,8 @@ public class SystemFilterWorkWithFilterPoolsAction
|
|||
setContextMenuGroup(ISystemContextMenuConstants.GROUP_WORKWITH);
|
||||
allowOnMultipleSelection(false);
|
||||
// set default action and dialog help
|
||||
setHelp(RSEUIPlugin.HELPPREFIX + "actn0044");
|
||||
setDialogHelp(RSEUIPlugin.HELPPREFIX + "dwfp0000");
|
||||
setHelp(RSEUIPlugin.HELPPREFIX + "actn0044"); //$NON-NLS-1$
|
||||
setDialogHelp(RSEUIPlugin.HELPPREFIX + "dwfp0000"); //$NON-NLS-1$
|
||||
}
|
||||
/**
|
||||
* Constructor when default label desired, and you want to choose between
|
||||
|
@ -73,8 +73,8 @@ public class SystemFilterWorkWithFilterPoolsAction
|
|||
setContextMenuGroup(ISystemContextMenuConstants.GROUP_REORGANIZE);
|
||||
allowOnMultipleSelection(false);
|
||||
// set default action and dialog help
|
||||
setHelp(RSEUIPlugin.HELPPREFIX + "actn0044");
|
||||
setDialogHelp(RSEUIPlugin.HELPPREFIX + "dwfp0000");
|
||||
setHelp(RSEUIPlugin.HELPPREFIX + "actn0044"); //$NON-NLS-1$
|
||||
setDialogHelp(RSEUIPlugin.HELPPREFIX + "dwfp0000"); //$NON-NLS-1$
|
||||
}
|
||||
/**
|
||||
* Constructor when given the translated action label
|
||||
|
@ -85,8 +85,8 @@ public class SystemFilterWorkWithFilterPoolsAction
|
|||
setContextMenuGroup(ISystemContextMenuConstants.GROUP_REORGANIZE);
|
||||
allowOnMultipleSelection(false);
|
||||
// set default action and dialog help
|
||||
setHelp(RSEUIPlugin.HELPPREFIX + "actn0044");
|
||||
setDialogHelp(RSEUIPlugin.HELPPREFIX + "dwfp0000");
|
||||
setHelp(RSEUIPlugin.HELPPREFIX + "actn0044"); //$NON-NLS-1$
|
||||
setDialogHelp(RSEUIPlugin.HELPPREFIX + "dwfp0000"); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -69,7 +69,7 @@ public class SystemChangeFilterDialog extends SystemPromptDialog
|
|||
*/
|
||||
protected void setHelp()
|
||||
{
|
||||
setHelp(RSEUIPlugin.HELPPREFIX+"dufr0000");
|
||||
setHelp(RSEUIPlugin.HELPPREFIX+"dufr0000"); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
// INPUT/CONFIGURATION
|
||||
|
|
|
@ -83,7 +83,7 @@ public class SystemFilterNewFilterPoolWizard
|
|||
//super.addPages();
|
||||
} catch (Exception exc)
|
||||
{
|
||||
System.out.println("Unexpected error in addPages of NewFilterPoolWizard: "+exc.getMessage() + ", " + exc.getClass().getName());
|
||||
System.out.println("Unexpected error in addPages of NewFilterPoolWizard: "+exc.getMessage() + ", " + exc.getClass().getName()); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -129,7 +129,7 @@ public class SystemFilterNewFilterPoolWizard
|
|||
}
|
||||
if (mgr == null)
|
||||
{
|
||||
System.out.println("Unexpected problem in performFinish of filter pool wizard: no match for selected profile name " + mgrName);
|
||||
System.out.println("Unexpected problem in performFinish of filter pool wizard: no match for selected profile name " + mgrName); //$NON-NLS-1$
|
||||
return false;
|
||||
}
|
||||
String poolName = mainPage.getPoolName();
|
||||
|
|
|
@ -67,7 +67,7 @@ public class SystemFilterNewFilterPoolWizardDefaultMainPage
|
|||
String title,
|
||||
String description)
|
||||
{
|
||||
super(wizard, "NewFilterPool", title, description);
|
||||
super(wizard, "NewFilterPool", title, description); //$NON-NLS-1$
|
||||
this.parentWizardAction = ((SystemFilterNewFilterPoolWizard)wizard).getFilterPoolDialogActionCaller();
|
||||
}
|
||||
|
||||
|
|
|
@ -567,7 +567,7 @@ public class SystemFilterWorkWithFilterPoolsDialog
|
|||
{
|
||||
ISubSystem ss = (ISubSystem)inputObj;
|
||||
SystemMessage msg = RSEUIPlugin.getPluginMessage(ISystemMessages.MSG_FILTERPOOL_CREATED);
|
||||
msg.makeSubstitution("'"+pool.getName()+"'", "'"+ss.getName()+"'");
|
||||
msg.makeSubstitution("'"+pool.getName()+"'", "'"+ss.getName()+"'"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
|
||||
if (shell.isDisposed() || !shell.isVisible())
|
||||
shell = getShell();
|
||||
SystemMessageDialog msgdlg = new SystemMessageDialog(shell, msg);
|
||||
|
|
|
@ -409,7 +409,7 @@ public class SystemNewFilterWizard
|
|||
}
|
||||
} catch (Exception exc)
|
||||
{
|
||||
SystemBasePlugin.logError("Error in createPageControls of SystemNewFilterWizard", exc);
|
||||
SystemBasePlugin.logError("Error in createPageControls of SystemNewFilterWizard", exc); //$NON-NLS-1$
|
||||
//System.out.println("Error in createPageControls of SystemNewFilterWizard"); // temp
|
||||
//exc.printStackTrace(); // temp
|
||||
}
|
||||
|
|
|
@ -54,7 +54,7 @@ public class SystemNewFilterWizardConfigurator
|
|||
this.page1Description = SystemResources.RESID_NEWFILTER_PAGE1_DESCRIPTION;
|
||||
this.page3Tip1 = SystemResources.RESID_NEWFILTER_PAGE3_STRINGS_VERBAGE;
|
||||
this.page3Tip2 = SystemResources.RESID_NEWFILTER_PAGE3_POOLS_VERBAGE;
|
||||
this.page2Help = RSEUIPlugin.HELPPREFIX + "nfp20000";
|
||||
this.page2Help = RSEUIPlugin.HELPPREFIX + "nfp20000"; //$NON-NLS-1$
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -35,7 +35,7 @@ public class SystemNewFilterWizardInfoPage
|
|||
*/
|
||||
public SystemNewFilterWizardInfoPage(SystemNewFilterWizard wizard, boolean filterPoolsShowing, ISystemNewFilterWizardConfigurator data)
|
||||
{
|
||||
super(wizard, "NewFilterPage3", data.getPage3Title(), data.getPage3Description());
|
||||
super(wizard, "NewFilterPage3", data.getPage3Title(), data.getPage3Description()); //$NON-NLS-1$
|
||||
this.configurator = data;
|
||||
//setHelp(data.getPage3HelpID());
|
||||
}
|
||||
|
|
|
@ -60,7 +60,7 @@ public class SystemNewFilterWizardMainPage
|
|||
public SystemNewFilterWizardMainPage(SystemNewFilterWizard wizard, ISystemNewFilterWizardConfigurator data)
|
||||
|
||||
{
|
||||
super(wizard,"NewFilterPage1", data.getPage1Title(), data.getPage1Description());
|
||||
super(wizard,"NewFilterPage1", data.getPage1Title(), data.getPage1Description()); //$NON-NLS-1$
|
||||
editPane = getEditPane(wizard.getShell());
|
||||
//setHelp(data.getPage1HelpID()); not used as it comes from wizard help
|
||||
}
|
||||
|
@ -75,7 +75,7 @@ public class SystemNewFilterWizardMainPage
|
|||
public SystemNewFilterWizardMainPage(SystemNewFilterWizard wizard, SystemFilterStringEditPane editPane, ISystemNewFilterWizardConfigurator data)
|
||||
|
||||
{
|
||||
super(wizard,"NewFilterPage1", data.getPage1Title(), data.getPage1Description());
|
||||
super(wizard,"NewFilterPage1", data.getPage1Title(), data.getPage1Description()); //$NON-NLS-1$
|
||||
this.editPane = editPane;
|
||||
editPane.addChangeListener(this);
|
||||
//setHelp(data.getPage1HelpID()); not used as it comes from wizard help
|
||||
|
|
|
@ -70,7 +70,7 @@ public class SystemNewFilterWizardNamePage
|
|||
*/
|
||||
public SystemNewFilterWizardNamePage(SystemNewFilterWizard wizard, ISystemFilterPool parentPool, ISystemNewFilterWizardConfigurator data)
|
||||
{
|
||||
super(wizard, "SetNewFilterName", data.getPage2Title(), data.getPage2Description());
|
||||
super(wizard, "SetNewFilterName", data.getPage2Title(), data.getPage2Description()); //$NON-NLS-1$
|
||||
this.parentPool = parentPool;
|
||||
this.configurator = data;
|
||||
setHelp(data.getPage2HelpID());
|
||||
|
@ -185,7 +185,7 @@ public class SystemNewFilterWizardNamePage
|
|||
ISystemFilterPool pool = poolsToSelectFrom[idx];
|
||||
if (pool == parentPool)
|
||||
filterPoolSelectionIndex = idx;
|
||||
poolNames[idx] = pool.getSystemFilterPoolManager().getName()+"."+pool.getName();
|
||||
poolNames[idx] = pool.getSystemFilterPoolManager().getName()+"."+pool.getName(); //$NON-NLS-1$
|
||||
}
|
||||
if ((nameValidator == null) && (nameValidators!=null))
|
||||
nameValidator = nameValidators[filterPoolSelectionIndex];
|
||||
|
|
|
@ -273,7 +273,7 @@ public class SystemDialogPageMessageLine implements ISystemMessageLine, MouseLis
|
|||
private void logMessage(SystemMessage message) {
|
||||
Object[] subList = message.getSubVariables();
|
||||
for (int i = 0; subList != null && i < subList.length; i++) {
|
||||
String msg = message.getFullMessageID() + ": SUB#" + new Integer(i).toString() + ":" + message.getSubValue(subList[i]);
|
||||
String msg = message.getFullMessageID() + ": SUB#" + new Integer(i).toString() + ":" + message.getSubValue(subList[i]); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
if (message.getIndicator() == SystemMessage.INFORMATION || message.getIndicator() == SystemMessage.INQUIRY || message.getIndicator() == SystemMessage.COMPLETION)
|
||||
SystemBasePlugin.logInfo(msg);
|
||||
else if (message.getIndicator() == SystemMessage.WARNING)
|
||||
|
@ -368,11 +368,11 @@ public class SystemDialogPageMessageLine implements ISystemMessageLine, MouseLis
|
|||
*/
|
||||
private void setIconToolTipText() {
|
||||
SystemMessage msg = getCurrentMessage();
|
||||
String tip = "";
|
||||
String tip = ""; //$NON-NLS-1$
|
||||
if (msg != null) {
|
||||
//String levelTwo = msg.getLevelTwoText();
|
||||
//if ((levelTwo!=null) && (levelTwo.length()>0))
|
||||
tip = msg.getFullMessageID() + " " + SystemResources.RESID_MSGLINE_TIP;
|
||||
tip = msg.getFullMessageID() + " " + SystemResources.RESID_MSGLINE_TIP; //$NON-NLS-1$
|
||||
}
|
||||
if (msgIconLabel != null) msgIconLabel.setToolTipText(tip);
|
||||
if (msgTextLabel != null)
|
||||
|
|
|
@ -171,9 +171,9 @@ public class SystemMessageDialog extends ErrorDialog implements Listener {
|
|||
this(parentShell,
|
||||
message.getFullMessageID(),
|
||||
message.getLevelOneText(),
|
||||
(new MultiStatus(SystemBasePlugin.getBaseDefault().getSymbolicName(), IStatus.OK, "", new Exception(""))),
|
||||
(new MultiStatus(SystemBasePlugin.getBaseDefault().getSymbolicName(), IStatus.OK, "", new Exception(""))), //$NON-NLS-1$ //$NON-NLS-2$
|
||||
0xFFFFF);
|
||||
((MultiStatus)this.status).add(new Status(IStatus.INFO, SystemBasePlugin.getBaseDefault().getSymbolicName(), IStatus.OK, message.getLevelTwoText(), new Exception("")));
|
||||
((MultiStatus)this.status).add(new Status(IStatus.INFO, SystemBasePlugin.getBaseDefault().getSymbolicName(), IStatus.OK, message.getLevelTwoText(), new Exception(""))); //$NON-NLS-1$
|
||||
statusList = Arrays.asList(status.getChildren());
|
||||
this.message=message;
|
||||
initImage(message);
|
||||
|
@ -366,14 +366,14 @@ public class SystemMessageDialog extends ErrorDialog implements Listener {
|
|||
Object[] subList=message.getSubVariables();
|
||||
for (int i=0; subList!=null && i<subList.length; i++)
|
||||
{
|
||||
String msg=message.getFullMessageID()+": SUB#"+new Integer(i).toString()+":"+message.getSubValue(subList[i]);
|
||||
String msg=message.getFullMessageID()+": SUB#"+new Integer(i).toString()+":"+message.getSubValue(subList[i]); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
if (message.getIndicator()==SystemMessage.INFORMATION ||
|
||||
message.getIndicator()==SystemMessage.COMPLETION ||
|
||||
message.getIndicator()==SystemMessage.INQUIRY)
|
||||
{
|
||||
SystemBasePlugin.logInfo(msg);
|
||||
if (i==subList.length-1 && message.getIndicator()==SystemMessage.INQUIRY)
|
||||
SystemBasePlugin.logInfo(message.getFullMessageID()+" :Button ID Pressed:"+buttonIdPressed);
|
||||
SystemBasePlugin.logInfo(message.getFullMessageID()+" :Button ID Pressed:"+buttonIdPressed); //$NON-NLS-1$
|
||||
}
|
||||
else if (message.getIndicator()==SystemMessage.WARNING)
|
||||
SystemBasePlugin.logWarning(msg);
|
||||
|
@ -443,7 +443,7 @@ public class SystemMessageDialog extends ErrorDialog implements Listener {
|
|||
public boolean openQuestion() throws IndicatorException
|
||||
{
|
||||
if (message.getIndicator()!=SystemMessage.INQUIRY)
|
||||
throw new IndicatorException("Message "+message.getFullMessageID()+" is not an inquiry message.");
|
||||
throw new IndicatorException("Message "+message.getFullMessageID()+" is not an inquiry message."); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
yesNoButtons=true;
|
||||
open();
|
||||
return (buttonIdPressed==IDialogConstants.YES_ID);
|
||||
|
@ -528,14 +528,14 @@ public class SystemMessageDialog extends ErrorDialog implements Listener {
|
|||
StringBuffer sb = new StringBuffer();
|
||||
for (int i = 0; i < nesting; i++)
|
||||
{
|
||||
sb.append(" ");
|
||||
sb.append(" "); //$NON-NLS-1$
|
||||
}
|
||||
sb.append(status.getMessage());
|
||||
list.append(sb.toString());
|
||||
IStatus[] children = status.getChildren();
|
||||
for (int i = 0; i < children.length; i++)
|
||||
{
|
||||
list.append("\n");
|
||||
list.append("\n"); //$NON-NLS-1$
|
||||
populateList(list, children[i], nesting + 1);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -43,11 +43,11 @@ public class SystemUIMessage extends SystemMessage
|
|||
public String getSubValue(Object sub)
|
||||
{
|
||||
if (sub == null)
|
||||
return "";
|
||||
return ""; //$NON-NLS-1$
|
||||
|
||||
if (sub instanceof IStatus)
|
||||
{
|
||||
return populateList("", (IStatus)sub);
|
||||
return populateList("", (IStatus)sub); //$NON-NLS-1$
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -82,7 +82,7 @@ public class SystemUIMessage extends SystemMessage
|
|||
}
|
||||
sb.append(status.getMessage());
|
||||
//list.add(sb.toString());
|
||||
list = list + sb.toString() + "\n";
|
||||
list = list + sb.toString() + "\n"; //$NON-NLS-1$
|
||||
IStatus[] children = status.getChildren();
|
||||
for (int i = 0; i < children.length; i++) {
|
||||
list = populateList(list, children[i], nesting + 1);
|
||||
|
|
|
@ -52,10 +52,10 @@ public class SystemUIMessageFile extends SystemMessageFile {
|
|||
messageFileStream, dtdStream);
|
||||
dtdStream.close();
|
||||
} catch (IOException e) {
|
||||
SystemBasePlugin.logError("Could not open message file DTD.", e);
|
||||
SystemBasePlugin.logError("Could not open message file DTD.", e); //$NON-NLS-1$
|
||||
}
|
||||
} else {
|
||||
SystemBasePlugin.logError("Could not find mesage file DTD.");
|
||||
SystemBasePlugin.logError("Could not find mesage file DTD."); //$NON-NLS-1$
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
|
|
@ -169,7 +169,7 @@ public class SystemQuickOpenDialog extends Dialog implements ISystemQuickOpenPag
|
|||
*/
|
||||
protected void configureShell(Shell shell) {
|
||||
super.configureShell(shell);
|
||||
shell.setText("Open");
|
||||
shell.setText("Open"); //$NON-NLS-1$
|
||||
// TODO: add image and F1 help
|
||||
}
|
||||
|
||||
|
@ -628,7 +628,7 @@ public class SystemQuickOpenDialog extends Dialog implements ISystemQuickOpenPag
|
|||
|
||||
// save focus control
|
||||
if (focusControl != null) {
|
||||
savedState.put("focusControl", focusControl);
|
||||
savedState.put("focusControl", focusControl); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
// attach the progress monitor part to the cancel button and make it visible
|
||||
|
@ -662,7 +662,7 @@ public class SystemQuickOpenDialog extends Dialog implements ISystemQuickOpenPag
|
|||
waitCursor = null;
|
||||
arrowCursor.dispose();
|
||||
arrowCursor = null;
|
||||
Control focusControl = (Control)(state.get("focusControl"));
|
||||
Control focusControl = (Control)(state.get("focusControl")); //$NON-NLS-1$
|
||||
|
||||
if (focusControl != null && ! focusControl.isDisposed()) {
|
||||
focusControl.setFocus();
|
||||
|
@ -692,9 +692,9 @@ public class SystemQuickOpenDialog extends Dialog implements ISystemQuickOpenPag
|
|||
* @param state the hashmap that contains the enable state of the UI.
|
||||
*/
|
||||
private void restoreUIState(HashMap state) {
|
||||
restoreEnableState(cancelButton, state, "cancel");
|
||||
restoreEnableState(openButton, state, "open");
|
||||
ControlEnableState pageState = (ControlEnableState)state.get("tabForm");
|
||||
restoreEnableState(cancelButton, state, "cancel"); //$NON-NLS-1$
|
||||
restoreEnableState(openButton, state, "open"); //$NON-NLS-1$
|
||||
ControlEnableState pageState = (ControlEnableState)state.get("tabForm"); //$NON-NLS-1$
|
||||
pageState.restore();
|
||||
}
|
||||
|
||||
|
@ -723,9 +723,9 @@ public class SystemQuickOpenDialog extends Dialog implements ISystemQuickOpenPag
|
|||
private HashMap saveUIState(boolean keepCancelEnabled) {
|
||||
HashMap savedState = new HashMap();
|
||||
|
||||
saveEnableStateAndSet(cancelButton, savedState, "cancel", keepCancelEnabled);
|
||||
saveEnableStateAndSet(openButton, savedState, "open", false);
|
||||
savedState.put("tabForm", ControlEnableState.disable(contents));
|
||||
saveEnableStateAndSet(cancelButton, savedState, "cancel", keepCancelEnabled); //$NON-NLS-1$
|
||||
saveEnableStateAndSet(openButton, savedState, "open", false); //$NON-NLS-1$
|
||||
savedState.put("tabForm", ControlEnableState.disable(contents)); //$NON-NLS-1$
|
||||
|
||||
return savedState;
|
||||
}
|
||||
|
@ -793,8 +793,8 @@ public class SystemQuickOpenDialog extends Dialog implements ISystemQuickOpenPag
|
|||
* @return the message dialog.
|
||||
*/
|
||||
private MessageDialog createClosingDialog() {
|
||||
MessageDialog result = new MessageDialog(getShell(), JFaceResources.getString("WizardClosingDialog.title"),
|
||||
null, JFaceResources.getString("WizardClosingDialog.message"),
|
||||
MessageDialog result = new MessageDialog(getShell(), JFaceResources.getString("WizardClosingDialog.title"), //$NON-NLS-1$
|
||||
null, JFaceResources.getString("WizardClosingDialog.message"), //$NON-NLS-1$
|
||||
MessageDialog.QUESTION, new String[] {IDialogConstants.OK_LABEL}, 0);
|
||||
return result;
|
||||
}
|
||||
|
|
|
@ -31,13 +31,13 @@ import org.osgi.framework.Bundle;
|
|||
|
||||
public class SystemQuickOpenPageDescriptor implements Comparable {
|
||||
|
||||
public final static String PAGE_TAG = "page";
|
||||
private final static String ID_ATTRIBUTE = "id";
|
||||
private final static String ICON_ATTRIBUTE = "icon";
|
||||
private final static String CLASS_ATTRIBUTE = "class";
|
||||
private final static String LABEL_ATTRIBUTE = "label";
|
||||
private final static String SIZE_ATTRIBUTE = "sizeHint";
|
||||
private final static String TAB_POSITION_ATTRIBUTE = "tabPosition";
|
||||
public final static String PAGE_TAG = "page"; //$NON-NLS-1$
|
||||
private final static String ID_ATTRIBUTE = "id"; //$NON-NLS-1$
|
||||
private final static String ICON_ATTRIBUTE = "icon"; //$NON-NLS-1$
|
||||
private final static String CLASS_ATTRIBUTE = "class"; //$NON-NLS-1$
|
||||
private final static String LABEL_ATTRIBUTE = "label"; //$NON-NLS-1$
|
||||
private final static String SIZE_ATTRIBUTE = "sizeHint"; //$NON-NLS-1$
|
||||
private final static String TAB_POSITION_ATTRIBUTE = "tabPosition"; //$NON-NLS-1$
|
||||
// private final static String SSF_ID = "ssfid";
|
||||
|
||||
public final static Point UNKNOWN_SIZE = new Point(SWT.DEFAULT, SWT.DEFAULT);
|
||||
|
@ -62,11 +62,11 @@ public class SystemQuickOpenPageDescriptor implements Comparable {
|
|||
result = (ISystemQuickOpenPage)(element.createExecutableExtension(CLASS_ATTRIBUTE));
|
||||
}
|
||||
catch (CoreException e) {
|
||||
SystemBasePlugin.logError("Error trying to create a quick open page from configuration element", e);
|
||||
SystemBasePlugin.logError("Error trying to create a quick open page from configuration element", e); //$NON-NLS-1$
|
||||
return null;
|
||||
}
|
||||
catch (ClassCastException e) {
|
||||
SystemBasePlugin.logError("Error trying to create a quick open page from configuration element", e);
|
||||
SystemBasePlugin.logError("Error trying to create a quick open page from configuration element", e); //$NON-NLS-1$
|
||||
return null;
|
||||
}
|
||||
|
||||
|
@ -113,10 +113,10 @@ public class SystemQuickOpenPageDescriptor implements Comparable {
|
|||
try {
|
||||
String nameSpace = element.getDeclaringExtension().getNamespace();
|
||||
Bundle bundle = Platform.getBundle(nameSpace);
|
||||
url = new URL(bundle.getEntry("/"), imageName);
|
||||
url = new URL(bundle.getEntry("/"), imageName); //$NON-NLS-1$
|
||||
}
|
||||
catch (java.net.MalformedURLException e) {
|
||||
SystemBasePlugin.logError("Error trying to get image", e);
|
||||
SystemBasePlugin.logError("Error trying to get image", e); //$NON-NLS-1$
|
||||
return null;
|
||||
}
|
||||
|
||||
|
@ -148,7 +148,7 @@ public class SystemQuickOpenPageDescriptor implements Comparable {
|
|||
position = Integer.parseInt(str);
|
||||
}
|
||||
catch (NumberFormatException e) {
|
||||
SystemBasePlugin.logError("Error trying to get tab position", e);
|
||||
SystemBasePlugin.logError("Error trying to get tab position", e); //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ import org.eclipse.rse.ui.RSEUIPlugin;
|
|||
*/
|
||||
public class SystemQuickOpenUtil {
|
||||
|
||||
public static final String QUICK_OPEN_PAGE_EXTENSION_POINT= "quickOpenPages";
|
||||
public static final String QUICK_OPEN_PAGE_EXTENSION_POINT= "quickOpenPages"; //$NON-NLS-1$
|
||||
|
||||
// singleton instance
|
||||
private static SystemQuickOpenUtil instance;
|
||||
|
|
|
@ -211,7 +211,7 @@ public class SystemFetchOperation extends JobChangeAdapter implements IRunnableW
|
|||
{
|
||||
String excMsg = exc.getMessage();
|
||||
if ((excMsg == null) || (excMsg.length()==0))
|
||||
excMsg = "Exception " + exc.getClass().getName();
|
||||
excMsg = "Exception " + exc.getClass().getName(); //$NON-NLS-1$
|
||||
sysMsg = RSEUIPlugin.getPluginMessage(ISystemMessages.MSG_OPERATION_FAILED);
|
||||
sysMsg.makeSubstitution(excMsg);
|
||||
|
||||
|
|
|
@ -216,7 +216,7 @@ public final class SystemJobRunnableContext implements ISystemRunnableContext {
|
|||
}
|
||||
catch (InvocationTargetException e) {
|
||||
Throwable target = e.getTargetException();
|
||||
String msg = "";
|
||||
String msg = ""; //$NON-NLS-1$
|
||||
|
||||
if (target != null) {
|
||||
msg = target.getMessage();
|
||||
|
|
|
@ -84,7 +84,7 @@ public class RemoteSystemsPreferencePage
|
|||
public void createControl(Composite parent)
|
||||
{
|
||||
super.createControl(parent);
|
||||
PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(), RSEUIPlugin.HELPPREFIX+"rsep0000");
|
||||
PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(), RSEUIPlugin.HELPPREFIX+"rsep0000"); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -391,7 +391,7 @@ public class RemoteSystemsPreferencePage
|
|||
String defaultUserId = sysTypeAdapter.getDefaultUserId(sysType);
|
||||
|
||||
if (defaultUserId == null) {
|
||||
defaultUserId = "null";
|
||||
defaultUserId = "null"; //$NON-NLS-1$
|
||||
}
|
||||
|
||||
keyValues.put(sysType.getName(), "" + sysTypeAdapter.isEnabled(sysType) + SystemTypeFieldEditor.EACHVALUE_DELIMITER + defaultUserId); //$NON-NLS-1$
|
||||
|
|
|
@ -34,7 +34,6 @@ public class ServerConnectionSecurityPropertyPage extends SystemBasePropertyPage
|
|||
|
||||
|
||||
private ServerConnectionSecurityForm _form;
|
||||
private IConnectorService _connectorService;
|
||||
|
||||
public ServerConnectionSecurityPropertyPage()
|
||||
{
|
||||
|
@ -51,7 +50,7 @@ public class ServerConnectionSecurityPropertyPage extends SystemBasePropertyPage
|
|||
_form.createContents(parent);
|
||||
|
||||
initialize();
|
||||
SystemWidgetHelpers.setCompositeHelp(parent, RSEUIPlugin.HELPPREFIX + "ssls0001");
|
||||
SystemWidgetHelpers.setCompositeHelp(parent, RSEUIPlugin.HELPPREFIX + "ssls0001"); //$NON-NLS-1$
|
||||
|
||||
return parent;
|
||||
}
|
||||
|
|
|
@ -77,8 +77,8 @@ public class SystemBooleanFieldEditor extends BooleanFieldEditor
|
|||
*/
|
||||
public SystemBooleanFieldEditor(String name, ResourceBundle rb, String labelKey, Composite parent)
|
||||
{
|
||||
super(name, rb.getString(labelKey+"label"), parent);
|
||||
setToolTipText(rb.getString(labelKey+"tooltip"));
|
||||
super(name, rb.getString(labelKey+"label"), parent); //$NON-NLS-1$
|
||||
setToolTipText(rb.getString(labelKey+"tooltip")); //$NON-NLS-1$
|
||||
this.parent = parent;
|
||||
}
|
||||
|
||||
|
|
|
@ -64,7 +64,7 @@ public class SystemChangeFilterPropertyPage extends SystemBasePropertyPage
|
|||
RSEUIPlugin sp = RSEUIPlugin.getDefault();
|
||||
changeFilterPane = new SystemChangeFilterPane(null, this, this);
|
||||
changeFilterPane.addPageCompleteListener(this);
|
||||
setHelp(RSEUIPlugin.HELPPREFIX+"dufr0000");
|
||||
setHelp(RSEUIPlugin.HELPPREFIX+"dufr0000"); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
// INPUT/CONFIGURATION
|
||||
|
@ -195,7 +195,7 @@ public class SystemChangeFilterPropertyPage extends SystemBasePropertyPage
|
|||
Shell shell = getShell();
|
||||
if (shell == null)
|
||||
{
|
||||
System.out.println("Damn, shell is still null!");
|
||||
System.out.println("Damn, shell is still null!"); //$NON-NLS-1$
|
||||
|
||||
}
|
||||
changeFilterPane.setShell(shell);
|
||||
|
|
|
@ -79,7 +79,7 @@ public class SystemComboBoxFieldEditor extends FieldEditor
|
|||
{
|
||||
super(name, labelText, parent);
|
||||
this.readOnly = readOnly;
|
||||
this.oldValue = "";
|
||||
this.oldValue = ""; //$NON-NLS-1$
|
||||
contentArray = new String[contents.size()];
|
||||
for (int idx=0; idx<contentArray.length; idx++)
|
||||
contentArray[idx] = contents.elementAt(idx).toString();
|
||||
|
@ -98,7 +98,7 @@ public class SystemComboBoxFieldEditor extends FieldEditor
|
|||
{
|
||||
super(name, labelText, parent);
|
||||
this.readOnly = readOnly;
|
||||
this.oldValue = "";
|
||||
this.oldValue = ""; //$NON-NLS-1$
|
||||
contentArray = contents;
|
||||
doOurFillIntoGrid();
|
||||
initContents();
|
||||
|
@ -116,12 +116,12 @@ public class SystemComboBoxFieldEditor extends FieldEditor
|
|||
*/
|
||||
public SystemComboBoxFieldEditor(String name, ResourceBundle rb, String rbKey, String[] contents, boolean readOnly, Composite parent)
|
||||
{
|
||||
super(name, rb.getString(rbKey+"label"), parent);
|
||||
super(name, rb.getString(rbKey+"label"), parent); //$NON-NLS-1$
|
||||
this.readOnly = readOnly;
|
||||
this.oldValue = "";
|
||||
this.oldValue = ""; //$NON-NLS-1$
|
||||
contentArray = contents;
|
||||
doOurFillIntoGrid();
|
||||
setToolTipText(rb.getString(rbKey+"tooltip"));
|
||||
setToolTipText(rb.getString(rbKey+"tooltip")); //$NON-NLS-1$
|
||||
initContents();
|
||||
}
|
||||
|
||||
|
@ -203,7 +203,7 @@ public class SystemComboBoxFieldEditor extends FieldEditor
|
|||
ignoreSelection = false;
|
||||
}
|
||||
else
|
||||
oldValue = "";
|
||||
oldValue = ""; //$NON-NLS-1$
|
||||
}
|
||||
|
||||
private void initContents()
|
||||
|
|
|
@ -57,7 +57,7 @@ public class SystemCommunicationsPreferencePage extends FieldEditorPreferencePag
|
|||
public void createControl(Composite parent)
|
||||
{
|
||||
super.createControl(parent);
|
||||
PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(), RSEUIPlugin.HELPPREFIX + "cmmp0000");
|
||||
PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(), RSEUIPlugin.HELPPREFIX + "cmmp0000"); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
|
||||
|
@ -89,7 +89,7 @@ public class SystemCommunicationsPreferencePage extends FieldEditorPreferencePag
|
|||
addField(portEditor);
|
||||
portEditor.getTextControl(parent).setToolTipText(SystemResources.RESID_PREF_DAEMON_PORT_TOOLTIP);
|
||||
|
||||
SystemWidgetHelpers.setHelp(portEditor.getTextControl(parent), RSEUIPlugin.HELPPREFIX + "cmmp0000");
|
||||
SystemWidgetHelpers.setHelp(portEditor.getTextControl(parent), RSEUIPlugin.HELPPREFIX + "cmmp0000"); //$NON-NLS-1$
|
||||
|
||||
|
||||
(new Mnemonics()).setOnPreferencePage(true).setMnemonics(parent);
|
||||
|
|
|
@ -124,7 +124,7 @@ public class SystemConnectionPropertyPage extends SystemBasePropertyPage
|
|||
// user cancelled disconnect
|
||||
cancelled = true;
|
||||
} catch (Exception e) {
|
||||
SystemBasePlugin.logError("SystemConnectionPropertyPage.performOk", e);
|
||||
SystemBasePlugin.logError("SystemConnectionPropertyPage.performOk", e); //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -275,14 +275,14 @@ public class SystemFilterStringPropertyPage extends SystemBasePropertyPage imple
|
|||
}
|
||||
catch (SystemMessageException e)
|
||||
{
|
||||
SystemBasePlugin.logError("Error updating filter string from property page", e);
|
||||
SystemBasePlugin.logError("Error updating filter string from property page", e); //$NON-NLS-1$
|
||||
e.printStackTrace();
|
||||
SystemMessageDialog.displayMessage(getShell(), e);
|
||||
ok = false;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
SystemBasePlugin.logError("Error updating filter string from property page", e);
|
||||
SystemBasePlugin.logError("Error updating filter string from property page", e); //$NON-NLS-1$
|
||||
e.printStackTrace();
|
||||
SystemMessageDialog.displayExceptionMessage(getShell(), e);
|
||||
ok = false;
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue