diff options
author | Andrew Gvozdev | 2010-07-15 14:35:58 +0000 |
---|---|---|
committer | Andrew Gvozdev | 2010-07-15 14:35:58 +0000 |
commit | 0d1338e5027c8327c383baa60dbbe5676a598eee (patch) | |
tree | 8c7d61d86adf3e8bb0bcf166fdaeee83e4ebd415 /debug/org.eclipse.cdt.debug.ui/src/org | |
parent | 874bc5564a7e8951021d4c154f43f13992c11cda (diff) | |
download | org.eclipse.cdt-0d1338e5027c8327c383baa60dbbe5676a598eee.tar.gz org.eclipse.cdt-0d1338e5027c8327c383baa60dbbe5676a598eee.tar.xz org.eclipse.cdt-0d1338e5027c8327c383baa60dbbe5676a598eee.zip |
bug 319748: Missing/unnecessary $NON-NLS$ tags
patch from Petri Tuononen
Diffstat (limited to 'debug/org.eclipse.cdt.debug.ui/src/org')
17 files changed, 63 insertions, 63 deletions
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/ErrorStatusHandler.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/ErrorStatusHandler.java index ad8a4edc957..71985837ded 100644 --- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/ErrorStatusHandler.java +++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/ErrorStatusHandler.java @@ -28,7 +28,7 @@ public class ErrorStatusHandler implements IStatusHandler { */ public Object handleStatus( final IStatus status, Object source ) throws CoreException { if ( status != null && source != null ) { - String title = ""; + String title = ""; //$NON-NLS-1$ if (source instanceof IDebugElement) { IDebugTarget target = ((IDebugElement)source).getDebugTarget(); title = target.getName(); @@ -36,7 +36,7 @@ public class ErrorStatusHandler implements IStatusHandler { else { // Source is sometimes an action delegate instance. Can't gather // anything useful from it. Use a generic title - title = CDebugUIMessages.getString("ErrorStatusHandler.1"); + title = CDebugUIMessages.getString("ErrorStatusHandler.1"); //$NON-NLS-1$ } final String title_f = title; CDebugUIPlugin.getStandardDisplay().asyncExec( new Runnable() { diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AddEventBreakpointActionDelegate.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AddEventBreakpointActionDelegate.java index cb8d1266955..91eccdb25b7 100644 --- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AddEventBreakpointActionDelegate.java +++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AddEventBreakpointActionDelegate.java @@ -54,8 +54,8 @@ public class AddEventBreakpointActionDelegate extends ActionDelegate implements public void run(IAction action) { AddEventBreakpointDialog dlg = new AddEventBreakpointDialog(CDebugUIPlugin.getActiveWorkbenchShell()); if (dlg.isActive() == false) { - String message = ActionMessages.getString("AddEventBreakpointActionDelegate.2"); - MessageDialog.openError( getView().getSite().getShell(), UIMessages.getString( "CDebugUIPlugin.0" ), message); + String message = ActionMessages.getString("AddEventBreakpointActionDelegate.2"); //$NON-NLS-1$ + MessageDialog.openError( getView().getSite().getShell(), UIMessages.getString( "CDebugUIPlugin.0" ), message); //$NON-NLS-1$ } else { if (dlg.open() == Window.OK) { addEventBreakpoint(dlg.getEventTypeId(), dlg.getEventArgument()); @@ -67,7 +67,7 @@ public class AddEventBreakpointActionDelegate extends ActionDelegate implements if (getResource() == null) return; try { - CDIDebugModel.createEventBreakpoint(id, arg, true); //$NON-NLS-1$ + CDIDebugModel.createEventBreakpoint(id, arg, true); } catch (CoreException ce) { CDebugUIPlugin.errorDialog(ActionMessages.getString("AddEventBreakpointActionDelegate.0"), ce); //$NON-NLS-1$ } diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AddGlobalsActionDelegate.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AddGlobalsActionDelegate.java index 1fa7e8e54a1..134543ddc1a 100644 --- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AddGlobalsActionDelegate.java +++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AddGlobalsActionDelegate.java @@ -282,7 +282,7 @@ public class AddGlobalsActionDelegate extends ActionDelegate implements IViewAct if ( info != null && gvm != null ) { fGlobals = info.getGlobals(); ListSelectionDialog dlg = createDialog(); - dlg.setTitle(ActionMessages.getString("AddGlobalsActionDelegate.title")); + dlg.setTitle(ActionMessages.getString("AddGlobalsActionDelegate.title")); //$NON-NLS-1$ dlg.setInitialSelections( gvm.getDescriptors() ); if ( dlg.open() == Window.OK ) { List<Object> list = Arrays.asList( dlg.getResult() ); diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AddWatchpointDialog.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AddWatchpointDialog.java index 428f6fb4d07..df1012b4bcf 100644 --- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AddWatchpointDialog.java +++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AddWatchpointDialog.java @@ -179,7 +179,7 @@ public class AddWatchpointDialog extends Dialog implements ModifyListener, Selec new AccessibleAdapter() { @Override public void getName(AccessibleEvent e) { - e.result = ActionMessages.getString( "AddWatchpointDialog.5" ); + e.result = ActionMessages.getString( "AddWatchpointDialog.5" ); //$NON-NLS-1$ } }); @@ -210,7 +210,7 @@ public class AddWatchpointDialog extends Dialog implements ModifyListener, Selec // second character must be x if preceded by a 0, otherwise 0-9 will do if ( text.length() == 1 ) { - if ( text.equals( "0" ) ) { + if ( text.equals( "0" ) ) { //$NON-NLS-1$ return c == 'x'; } return Character.isDigit( c ); @@ -218,7 +218,7 @@ public class AddWatchpointDialog extends Dialog implements ModifyListener, Selec // all subsequent characters must be 0-9 or a-f if started with 0x return Character.isDigit( c ) - || text.startsWith( "0x" ) && 'a' <= c && c <= 'f'; + || text.startsWith( "0x" ) && 'a' <= c && c <= 'f'; //$NON-NLS-1$ } /** @@ -234,7 +234,7 @@ public class AddWatchpointDialog extends Dialog implements ModifyListener, Selec return true; } if ( text.length() == 2 ) { - return !text.equals("0x"); + return !text.equals("0x"); //$NON-NLS-1$ } return true; } @@ -267,7 +267,7 @@ public class AddWatchpointDialog extends Dialog implements ModifyListener, Selec new AccessibleAdapter() { @Override public void getName(AccessibleEvent e) { - e.result = ActionMessages.getString( "AddWatchpointDialog.6" ); + e.result = ActionMessages.getString( "AddWatchpointDialog.6" ); //$NON-NLS-1$ } }); @@ -310,9 +310,9 @@ public class AddWatchpointDialog extends Dialog implements ModifyListener, Selec addHistory( fExpression ); } if ( fHasMemorySpaceControls ) { - fMemorySpace = fMemorySpaceEnableButton.getSelection() ? fMemorySpaceInput.getText().trim() : ""; + fMemorySpace = fMemorySpaceEnableButton.getSelection() ? fMemorySpaceInput.getText().trim() : ""; //$NON-NLS-1$ } - fRange = fRangeEnableButton.getSelection() ? fRangeField.getText().trim() : "0"; + fRange = fRangeEnableButton.getSelection() ? fRangeField.getText().trim() : "0"; //$NON-NLS-1$ fRead = fChkBtnRead.getSelection(); fWrite = fChkBtnWrite.getSelection(); super.okPressed(); diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/CanFormatObjectTester.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/CanFormatObjectTester.java index 5fc6b2da5e2..eafc57d4489 100644 --- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/CanFormatObjectTester.java +++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/CanFormatObjectTester.java @@ -29,7 +29,7 @@ public class CanFormatObjectTester extends PropertyTester { } public boolean test(Object receiver, String property, Object[] args, Object expectedValue) { - if (property.equals("canFormatObject")) { + if (property.equals("canFormatObject")) { //$NON-NLS-1$ if (receiver instanceof ICVariable) { return expectedValue == Boolean.TRUE; } if (receiver instanceof IWatchExpression) { IWatchExpression w = (IWatchExpression) receiver; diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/dialogs/AddEventBreakpointDialog.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/dialogs/AddEventBreakpointDialog.java index 4d2b25f3957..3d7dc2fc1a1 100644 --- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/dialogs/AddEventBreakpointDialog.java +++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/dialogs/AddEventBreakpointDialog.java @@ -66,7 +66,7 @@ public class AddEventBreakpointDialog extends Dialog implements ModifyListener, setPreferenceStore(new CBreakpointPreferenceStore() { @Override public String getDefaultString(String name) { - return ""; + return ""; //$NON-NLS-1$ } }); } @@ -85,7 +85,7 @@ public class AddEventBreakpointDialog extends Dialog implements ModifyListener, if (con.getId().equals(ICBreakpointType.TYPE)) continue; FieldEditor fieldEditor = con.getFieldEditor(con.getId(), con.getLabel(), parent); - getPreferenceStore().setValue(con.getId(),""); + getPreferenceStore().setValue(con.getId(),""); //$NON-NLS-1$ if (fieldEditor != null) addField(fieldEditor); } diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/editor/DisassemblyEditorInput.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/editor/DisassemblyEditorInput.java index f82c41ffdb8..32784a990fe 100644 --- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/editor/DisassemblyEditorInput.java +++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/editor/DisassemblyEditorInput.java @@ -46,7 +46,7 @@ public class DisassemblyEditorInput implements IEditorInput { */ public String getName() { // TODO Auto-generated method stub - return ""; + return ""; //$NON-NLS-1$ } /* (non-Javadoc) @@ -62,7 +62,7 @@ public class DisassemblyEditorInput implements IEditorInput { */ public String getToolTipText() { // TODO Auto-generated method stub - return ""; + return ""; //$NON-NLS-1$ } /* (non-Javadoc) diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/propertypages/CBreakpointPropertyPage.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/propertypages/CBreakpointPropertyPage.java index 140ff82c89c..33d7d39d729 100644 --- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/propertypages/CBreakpointPropertyPage.java +++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/propertypages/CBreakpointPropertyPage.java @@ -238,8 +238,8 @@ public class CBreakpointPropertyPage extends FieldEditorPreferencePage implement } private void createMainLabel(ICBreakpoint breakpoint) { - addField( createLabelEditor( getFieldEditorParent(), PropertyPageMessages.getString( "CBreakpointPropertyPage.18" ), - getBreakpointMainLabel(breakpoint) ) ); //$NON-NLS-1$ + addField( createLabelEditor( getFieldEditorParent(), PropertyPageMessages.getString( "CBreakpointPropertyPage.18" ), //$NON-NLS-1$ + getBreakpointMainLabel(breakpoint) ) ); } /** @@ -325,13 +325,13 @@ public class CBreakpointPropertyPage extends FieldEditorPreferencePage implement private String getBreakpointMainLabel(ICBreakpoint breakpoint) { if (breakpoint instanceof ICFunctionBreakpoint) - return PropertyPageMessages.getString("CBreakpointPropertyPage.3"); + return PropertyPageMessages.getString("CBreakpointPropertyPage.3"); //$NON-NLS-1$ if (breakpoint instanceof ICAddressBreakpoint) - return PropertyPageMessages.getString("CBreakpointPropertyPage.4"); + return PropertyPageMessages.getString("CBreakpointPropertyPage.4"); //$NON-NLS-1$ if (breakpoint instanceof ICLineBreakpoint) - return PropertyPageMessages.getString("CBreakpointPropertyPage.8"); + return PropertyPageMessages.getString("CBreakpointPropertyPage.8"); //$NON-NLS-1$ if (breakpoint instanceof ICEventBreakpoint) - return PropertyPageMessages.getString("CBreakpointPropertyPage.21"); + return PropertyPageMessages.getString("CBreakpointPropertyPage.21"); //$NON-NLS-1$ if (breakpoint instanceof ICWatchpoint) { ICWatchpoint watchpoint = (ICWatchpoint) breakpoint; String type = ""; //$NON-NLS-1$ @@ -358,7 +358,7 @@ public class CBreakpointPropertyPage extends FieldEditorPreferencePage implement return type; } protected void createLineNumberEditor( Composite parent ) { - String title = PropertyPageMessages.getString( "CBreakpointPropertyPage.9" ); + String title = PropertyPageMessages.getString( "CBreakpointPropertyPage.9" ); //$NON-NLS-1$ BreakpointIntegerFieldEditor labelFieldEditor =new BreakpointIntegerFieldEditor( CBreakpointPreferenceStore.LINE ,title, parent); labelFieldEditor.setValidRange( 1, Integer.MAX_VALUE ); addField( labelFieldEditor ); @@ -479,11 +479,11 @@ public class CBreakpointPropertyPage extends FieldEditorPreferencePage implement .getBreakpointUIContributions(breakpoint); for (ICBreakpointsUIContribution con : cons) { - FieldEditor fieldEditor = con.getFieldEditor(con.getId(), con.getLabel()+":", parent); + FieldEditor fieldEditor = con.getFieldEditor(con.getId(), con.getLabel()+":", parent); //$NON-NLS-1$ if (fieldEditor != null) addField(fieldEditor); Object o = breakpoint.getMarker().getAttribute(con.getId()); - String value = o==null?"":o.toString(); + String value = o==null?"":o.toString(); //$NON-NLS-1$ getPreferenceStore().setValue(con.getId(), value); } } catch (CoreException ce) { diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/CSourceNotFoundEditor.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/CSourceNotFoundEditor.java index 59495eae8f2..6c4cec51ac3 100644 --- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/CSourceNotFoundEditor.java +++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/CSourceNotFoundEditor.java @@ -184,13 +184,13 @@ public class CSourceNotFoundEditor extends CommonSourceNotFoundEditor { data.grabExcessHorizontalSpace = false; data.grabExcessVerticalSpace = false; editLookupButton.setLayoutData(data); - editLookupButton.setText(SourceLookupUIMessages.getString( "CSourceNotFoundEditor.5" )); + editLookupButton.setText(SourceLookupUIMessages.getString( "CSourceNotFoundEditor.5" )); //$NON-NLS-1$ editLookupButton.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent evt) { editSourceLookupPath(); } }); - editLookupButton.setData(UID_KEY, UID_EDIT_LOOKUP_BUTTON); //$NON-NLS-1$ + editLookupButton.setData(UID_KEY, UID_EDIT_LOOKUP_BUTTON); } syncButtons(); diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/ExecutablesViewer.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/ExecutablesViewer.java index 2ab02427338..bc5f2135c42 100644 --- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/ExecutablesViewer.java +++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/ExecutablesViewer.java @@ -155,7 +155,7 @@ public class ExecutablesViewer extends BaseViewer implements IExecutablesChangeL protected ViewerComparator getViewerComparator(int sortType) { if (sortType == ExecutablesView.PROJECT) { return new ExecutablesViewerComparator(sortType, column_sort_order[ExecutablesView.PROJECT]) { - @SuppressWarnings("unchecked") //$NON-NLS-1$ + @SuppressWarnings("unchecked") public int compare(Viewer viewer, Object e1, Object e2) { Executable entry1 = (Executable) e1; Executable entry2 = (Executable) e2; diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/ExecutablesViewerComparator.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/ExecutablesViewerComparator.java index 00f68a7ab86..f259de38176 100644 --- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/ExecutablesViewerComparator.java +++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/ExecutablesViewerComparator.java @@ -36,7 +36,7 @@ class ExecutablesViewerComparator extends ViewerComparator { return 0; } - @SuppressWarnings("unchecked") //$NON-NLS-1$ + @SuppressWarnings("unchecked") public int compare(Viewer viewer, Object e1, Object e2) { if (category(e1) == 1 && category(e2) == 1) { diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/modules/ModuleDetailPane.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/modules/ModuleDetailPane.java index 4f589278b39..631b17c6d3f 100644 --- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/modules/ModuleDetailPane.java +++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/modules/ModuleDetailPane.java @@ -76,7 +76,7 @@ public class ModuleDetailPane extends AbstractDetailPane implements IAdaptable, * The ID, name and description of this pane are stored in constants so that the class * does not have to be instantiated to access them. */ - public static final String ID = "ModuleDetailPane"; + public static final String ID = "ModuleDetailPane"; //$NON-NLS-1$ public static final String NAME = "Module Viewer"; public static final String DESCRIPTION = "A detail pane that is based on a source viewer. Displays as text and has actions for assigning values, content assist and text modifications."; @@ -102,7 +102,7 @@ public class ModuleDetailPane extends AbstractDetailPane implements IAdaptable, protected IStatus run(IProgressMonitor monitor) { fMonitor = monitor; - String detail = ""; + String detail = ""; //$NON-NLS-1$ if ( fElement instanceof ICModule ) { detail = getModuleDetail( ((ICModule)fElement) ); } @@ -293,13 +293,13 @@ public class ModuleDetailPane extends AbstractDetailPane implements IAdaptable, private void createActions() { TextViewerAction textAction= new TextViewerAction(fSourceViewer, ITextOperationTarget.SELECT_ALL); - textAction.configureAction("Select &All", "", ""); + textAction.configureAction("Select &All", "", ""); //$NON-NLS-2$ //$NON-NLS-3$ textAction.setActionDefinitionId(IWorkbenchActionDefinitionIds.SELECT_ALL); PlatformUI.getWorkbench().getHelpSystem().setHelp(textAction, ICDebugHelpContextIds.MODULE_DETAIL_PANE_SELECT_ALL_ACTION); setAction(DETAIL_SELECT_ALL_ACTION, textAction); textAction= new TextViewerAction(fSourceViewer, ITextOperationTarget.COPY); - textAction.configureAction("&Copy", "", ""); + textAction.configureAction("&Copy", "", ""); //$NON-NLS-2$ //$NON-NLS-3$ textAction.setActionDefinitionId(IWorkbenchActionDefinitionIds.COPY); PlatformUI.getWorkbench().getHelpSystem().setHelp(textAction, ICDebugHelpContextIds.MODULE_DETAIL_PANE_COPY_ACTION); setAction(DETAIL_COPY_ACTION, textAction); @@ -455,7 +455,7 @@ public class ModuleDetailPane extends AbstractDetailPane implements IAdaptable, if (fDetailJob != null) { fDetailJob.cancel(); } - fDetailDocument.set(""); + fDetailDocument.set(""); //$NON-NLS-1$ fSourceViewer.setEditable(false); } diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/ExternalToolActionComposite.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/ExternalToolActionComposite.java index c179131bccb..c04495d8c94 100644 --- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/ExternalToolActionComposite.java +++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/ExternalToolActionComposite.java @@ -212,7 +212,7 @@ public class ExternalToolActionComposite extends Composite { } } if (type != null) { - if (!priv && type.supportsMode(ILaunchManager.RUN_MODE) && equalCategories(type.getCategory(), "org.eclipse.ui.externaltools") //$NON-NLS-1$ //$NON-NLS-2$ + if (!priv && type.supportsMode(ILaunchManager.RUN_MODE) && equalCategories(type.getCategory(), "org.eclipse.ui.externaltools") //$NON-NLS-1$ && !WorkbenchActivityHelper.filterItem(new LaunchConfigurationTypeContribution(type))) onlyExternalTools.add(launchConfigurations[i]); } diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpoints/CBreakpointUIContributionFactory.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpoints/CBreakpointUIContributionFactory.java index 478126f45fa..fb5ad942b0a 100644 --- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpoints/CBreakpointUIContributionFactory.java +++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpoints/CBreakpointUIContributionFactory.java @@ -28,8 +28,8 @@ import org.eclipse.debug.core.DebugPlugin; import org.eclipse.debug.core.model.IBreakpoint; public class CBreakpointUIContributionFactory { - private static final String EXTENSION_POINT_NAME = "breakpointContribution"; - private static final String MAIN_ELEMENT = "breakpointLabels"; + private static final String EXTENSION_POINT_NAME = "breakpointContribution"; //$NON-NLS-1$ + private static final String MAIN_ELEMENT = "breakpointLabels"; //$NON-NLS-1$ private static CBreakpointUIContributionFactory instance; protected ArrayList<ICBreakpointsUIContribution> contributions; @@ -94,11 +94,11 @@ public class CBreakpointUIContributionFactory { for (int i = 0; i < elements.length; i++) { IConfigurationElement configurationElement = elements[i]; if (configurationElement.getName().equals(MAIN_ELEMENT)) { - String modelId = configurationElement.getAttribute("debugModelId"); - String markerType = getRequired(configurationElement, "markerType"); + String modelId = configurationElement.getAttribute("debugModelId"); //$NON-NLS-1$ + String markerType = getRequired(configurationElement, "markerType"); //$NON-NLS-1$ if (markerType == null) continue; - IConfigurationElement[] children = configurationElement.getChildren("attribute"); + IConfigurationElement[] children = configurationElement.getChildren("attribute"); //$NON-NLS-1$ for (IConfigurationElement att : children) { DefaultCBreakpointUIContribution adapter = new DefaultCBreakpointUIContribution(); @@ -114,11 +114,11 @@ public class CBreakpointUIContributionFactory { } private boolean processAttribute(IConfigurationElement attrElement, DefaultCBreakpointUIContribution adapter) { - String attrId = getRequired(attrElement, "name"); - String attrLabel = getRequired(attrElement, "label"); - String className = attrElement.getAttribute("fieldEditor"); - String type = attrElement.getAttribute("type"); - String svisible = attrElement.getAttribute("visible"); + String attrId = getRequired(attrElement, "name"); //$NON-NLS-1$ + String attrLabel = getRequired(attrElement, "label"); //$NON-NLS-1$ + String className = attrElement.getAttribute("fieldEditor"); //$NON-NLS-1$ + String type = attrElement.getAttribute("type"); //$NON-NLS-1$ + String svisible = attrElement.getAttribute("visible"); //$NON-NLS-1$ if (attrId == null) { return false; @@ -127,10 +127,10 @@ public class CBreakpointUIContributionFactory { return false; } if (type == null) { - type = "string"; + type = "string"; //$NON-NLS-1$ } boolean visible = true; - if (svisible != null && svisible.equalsIgnoreCase("false")) { + if (svisible != null && svisible.equalsIgnoreCase("false")) { //$NON-NLS-1$ visible = false; } adapter.setId(attrId); @@ -140,7 +140,7 @@ public class CBreakpointUIContributionFactory { adapter.setVisible(visible); addContribution(adapter); - IConfigurationElement[] children = attrElement.getChildren("value"); + IConfigurationElement[] children = attrElement.getChildren("value"); //$NON-NLS-1$ for (IConfigurationElement value : children) { processValue(value, adapter); } @@ -148,14 +148,14 @@ public class CBreakpointUIContributionFactory { } private void processValue(IConfigurationElement valueElement, DefaultCBreakpointUIContribution adapter) { - String valueId = getRequired(valueElement, "value"); - String valueLabel = getRequired(valueElement, "label"); + String valueId = getRequired(valueElement, "value"); //$NON-NLS-1$ + String valueLabel = getRequired(valueElement, "label"); //$NON-NLS-1$ if (valueId == null) return; if (valueLabel == null) return; adapter.addValue(valueId, valueLabel); - IConfigurationElement[] children = valueElement.getChildren("attribute"); + IConfigurationElement[] children = valueElement.getChildren("attribute"); //$NON-NLS-1$ for (IConfigurationElement att : children) { DefaultCBreakpointUIContribution adapter2 = new DefaultCBreakpointUIContribution(); // inherit values diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpoints/DefaultCBreakpointUIContribution.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpoints/DefaultCBreakpointUIContribution.java index 0929361cd72..177329d5a24 100644 --- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpoints/DefaultCBreakpointUIContribution.java +++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpoints/DefaultCBreakpointUIContribution.java @@ -147,7 +147,7 @@ class DefaultCBreakpointUIContribution implements ICBreakpointsUIContribution { @Override public String toString() { - return attId + " " + attLabel; + return attId + " " + attLabel; //$NON-NLS-1$ } public String getFieldEditorClassName() { diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/importexecutable/ImportExecutablePageOne.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/importexecutable/ImportExecutablePageOne.java index 36e5b3764f7..290974f22d3 100644 --- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/importexecutable/ImportExecutablePageOne.java +++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/importexecutable/ImportExecutablePageOne.java @@ -100,7 +100,7 @@ public class ImportExecutablePageOne extends WizardPage { private Combo binaryParserCombo; public ImportExecutablePageOne(AbstractImportExecutableWizard wizard) { - super("ImportApplicationPageOne"); + super("ImportApplicationPageOne"); //$NON-NLS-1$ this.wizard = wizard; setPageComplete(false); setTitle(wizard.getPageOneTitle()); @@ -398,7 +398,7 @@ public class ImportExecutablePageOne extends WizardPage { IConfigurationElement[] children = elements[i].getChildren("run"); //$NON-NLS-1$ for (int j = 0; j < children.length; j++) { try { - parser = (IBinaryParser)children[j].createExecutableExtension("class"); + parser = (IBinaryParser)children[j].createExecutableExtension("class"); //$NON-NLS-1$ } catch (CoreException e) { CDebugUIPlugin.log(e); } @@ -434,7 +434,7 @@ public class ImportExecutablePageOne extends WizardPage { } ); // Set the data name field so Abbot based tests can find it. - singleExecutablePathField.setData("name", "singleExecutablePathField"); + singleExecutablePathField.setData("name", "singleExecutablePathField"); //$NON-NLS-1$ //$NON-NLS-2$ singleExecutablePathField.addModifyListener(new ModifyListener() { public void modifyText(ModifyEvent e) { @@ -455,12 +455,12 @@ public class ImportExecutablePageOne extends WizardPage { wizard.setupFileDialog(dialog); String res = dialog.open(); if (res != null) { - if (Platform.getOS().equals(Platform.OS_MACOSX) && res.endsWith(".app")) + if (Platform.getOS().equals(Platform.OS_MACOSX) && res.endsWith(".app")) //$NON-NLS-1$ { // On Mac OS X the file dialog will let you select the // package but not the executable inside. Path macPath = new Path(res); - res = res + "/Contents/MacOS/" + macPath.lastSegment(); + res = res + "/Contents/MacOS/" + macPath.lastSegment(); //$NON-NLS-1$ res = res.substring(0, res.length() - 4); } singleExecutablePathField.setText(res); @@ -554,7 +554,7 @@ public class ImportExecutablePageOne extends WizardPage { executables = new File[0]; executablesViewer.refresh(true); executablesViewer.setAllChecked(false); - previouslySearchedDirectory = ""; + previouslySearchedDirectory = ""; //$NON-NLS-1$ setPageComplete(false); } diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/importexecutable/ImportExecutablePageTwo.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/importexecutable/ImportExecutablePageTwo.java index b8af9ef93eb..dcac6735cb2 100644 --- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/importexecutable/ImportExecutablePageTwo.java +++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/importexecutable/ImportExecutablePageTwo.java @@ -75,11 +75,11 @@ public class ImportExecutablePageTwo extends WizardPage { private boolean shouldUpdateButtons = true; public ImportExecutablePageTwo(AbstractImportExecutableWizard wizard) { - super("ImportExecutablePageTwo"); + super("ImportExecutablePageTwo"); //$NON-NLS-1$ this.wizard = wizard; setTitle(Messages.ImportExecutablePageTwo_ChooseProject); setDescription(Messages.ImportExecutablePageTwo_ChooseExisting); - filterPlatform = "*"; + filterPlatform = "*"; //$NON-NLS-1$ } private void addLaunchConfigTypes() { @@ -94,7 +94,7 @@ public class ImportExecutablePageTwo extends WizardPage { if (wizard.supportsConfigurationType(type)) { configTypes.add(configTypeName); - if (type.getIdentifier().equals("org.eclipse.cdt.launch.applicationLaunchType")) { + if (type.getIdentifier().equals("org.eclipse.cdt.launch.applicationLaunchType")) { //$NON-NLS-1$ capp = j; } j++; |