Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'debug/org.eclipse.cdt.debug.ui')
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/BreakpointImageProvider.java3
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CBreakpointContext.java9
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CBreakpointUpdater.java7
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CBreakpointWorkbenchAdapterFactory.java3
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CDebugImageDescriptorRegistry.java2
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CDebugModelPresentation.java4
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CDebuggerPageAdapter.java18
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CValueDetailProvider.java1
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CWatchExpressionDelegate.java7
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/DebugMarkerAnnotationModel.java7
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/DebugMarkerAnnotationModelFactory.java1
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/ErrorStatusHandler.java2
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/EvaluationContextManager.java17
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/InfoStatusHandler.java2
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/OverlayImageDescriptor.java4
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/QuestionStatusHandler.java2
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/SingleCharReader.java5
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/SubstitutionTextReader.java6
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/ToggleCBreakpointTester.java1
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AbstractDebugActionDelegate.java12
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AbstractEditorActionDelegate.java11
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AbstractListenerActionDelegate.java7
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AbstractToggleBreakpointAdapter.java8
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AbstractViewActionDelegate.java9
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AddEventBreakpointActionDelegate.java2
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AddExpressionEditorActionDelegate.java1
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AddGlobalsActionDelegate.java17
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AddRegisterGroupActionDelegate.java6
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AddWatchpointActionDelegate.java2
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AddWatchpointDialog.java9
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AddWatchpointOnMemoryActionDelegate.java2
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AddWatchpointOnVariableActionDelegate.java9
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/CBreakpointPropertiesHandler.java13
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/CBreakpointPropertiesRulerAction.java6
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/CBreakpointPropertiesRulerActionDelegate.java1
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/CanFormatObjectTester.java1
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/CastToArrayActionHandler.java8
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/CastToTypeActionHandler.java4
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/CollapseAllModulesAction.java2
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ConfigureColumnsAction.java24
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/DisableVariablesActionDelegate.java1
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/EditRegisterGroupActionDelegate.java3
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/EnableDisableBreakpointRulerAction.java2
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/EnableDisableBreakpointRulerActionDelegate.java1
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/EnableVariablesActionDelegate.java4
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ExpressionDialog.java6
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/LoadModuleSymbolsActionDelegate.java4
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/LoadSymbolsForAllActionDelegate.java6
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ModulesPropertiesActionDelegate.java7
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/MoveToLineActionDelegate.java9
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/MoveToLineAdapter.java3
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/NumberFormatsContribution.java1
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/OpenNewViewActionDelegate.java3
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/PinDebugContextActionDelegate.java17
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RegisterGroupDialog.java7
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RemoveAllGlobalsActionDelegate.java7
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RemoveGlobalsActionDelegate.java5
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RemoveRegisterGroupActionDelegate.java3
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RestoreDefaultRegisterGroupsActionDelegate.java6
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RestoreDefaultTypeActionHandler.java2
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ResumeAtLineActionDelegate.java9
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ResumeAtLineAdapter.java3
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RetargetAction.java12
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RetargetMoveToLineAction.java8
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RetargetResumeAtLineAction.java8
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RetargettableActionAdapterFactory.java2
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RunToLineAdapter.java3
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ShowFullPathsAction.java3
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/SignalActionDelegate.java4
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/SignalPropertiesActionDelegate.java7
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ToggleCBreakpointsTargetFactory.java15
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ToggleCTracepointsTargetFactory.java15
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ToggleInstructionStepModeActionDelegate.java2
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ToggleShowColumnsAction.java9
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/VariableFormatActionDelegate.java4
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ViewFilterAction.java6
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/commands/ReverseToggleCommandHandler.java6
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/commands/ViewMemoryHandler.java1
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/dialogfields/CheckedListDialogField.java6
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/dialogfields/ComboDialogField.java7
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/dialogfields/DialogField.java1
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/dialogfields/LayoutUtil.java1
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/dialogfields/ListDialogField.java11
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/dialogfields/SelectionButtonDialogField.java5
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/dialogfields/SelectionButtonDialogFieldGroup.java5
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/dialogfields/Separator.java2
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/dialogfields/StringButtonDialogField.java5
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/dialogfields/StringButtonStatusDialogField.java3
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/dialogfields/StringDialogField.java5
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/dialogs/AddEventBreakpointDialog.java8
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/commands/DisassemblyDisplayModeHandler.java6
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/commands/OpenDisassemblyHandler.java3
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/commands/SetSteppingModeHandler.java6
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/dsf/AbstractDisassemblyBackend.java6
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/dsf/CDIDisassemblyRetrieval.java4
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/dsf/DisassemblyBackendCdi.java27
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/dsf/DisassemblyBackendCdiFactory.java2
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/editor/DisassemblyEditor.java51
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/editor/DisassemblyEditorInput.java18
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/editor/DisassemblyEditorManager.java48
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/rendering/DisassemblyAnnotationModel.java4
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/rendering/DisassemblyEditorInput.java7
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/rendering/DisassemblyMemoryRendering.java6
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/rendering/DisassemblyRenderingTypeDelegate.java3
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/viewer/DisassemblyDocumentProvider.java45
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/viewer/DisassemblyPane.java15
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/viewer/DocumentAnnotationUpdate.java3
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/viewer/DocumentBaseChangeUpdate.java6
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/viewer/DocumentContentProvider.java3
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/viewer/DocumentContentUpdate.java18
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/viewer/DocumentLabelUpdate.java3
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/viewer/DocumentUpdate.java18
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/viewer/VirtualSourceViewer.java6
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/editors/DebugTextHoverAdapterFactory.java6
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/editors/DelegatingDebugTextHover.java13
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/CDebugElementAdapterFactory.java2
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/CDebugElementLabelProviderFactory.java2
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/CMemoryAdapterFactory.java2
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/CRegisterManagerProxy.java6
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/CVariableLabelProvider.java5
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/CWatchExpressionFactoryAdapter.java2
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/CWatchExpressionFactoryAdapterFactory.java2
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/DefaultViewColumnPresentationFactory.java6
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/DisassemblyElementContentProvider.java6
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/DisassemblyElementLabelProvider.java3
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/DisassemblyElementProxy.java3
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/DisassemblyToggleBreakpointAdapter.java6
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/RegistersViewColumnPresentation.java24
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/RegistersViewColumnPresentationFactory.java6
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/launch/CApplicationLaunchShortcut.java10
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/launch/CPropertyTester.java1
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/launch/PlaceHolderLaunchConfigurationTabGroup.java3
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/pinclone/DebugContextPinProvider.java4
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/pinclone/DebugEventFilterService.java1
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/pinclone/PinCloneUtils.java2
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/pinclone/ViewIDCounterManager.java14
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/preferences/CDebugPreferencePage.java3
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/preferences/ComboFieldEditor.java9
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/preferences/DebuggerTypesPage.java13
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/preferences/DisassemblyPreferencePage.java3
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/preferences/SourcePreferencePage.java4
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/propertypages/CBreakpointFilteringPage.java2
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/propertypages/CBreakpointPropertyPage.java15
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/propertypages/ModuleProperties.java1
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/propertypages/ModulePropertyPage.java6
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/propertypages/SignalPropertyPage.java3
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/propertypages/ThreadFilterEditor.java7
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/AbsolutePathSourceContainerBrowser.java1
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/AddContainerAction.java2
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/AddSourceContainerDialog.java4
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/CProjectSourceContainerBrowser.java1
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/CSourceNotFoundEditor.java8
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/CompilationDirectorySourceContainerBrowser.java3
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/CompilationDirectorySourceContainerDialog.java8
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/DownAction.java2
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/EditContainerAction.java2
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/MappingSourceContainerBrowser.java4
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/MappingSourceContainerDialog.java36
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/NewMappingSourceContainerBrowser.java6
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/PathMappingDialog.java23
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/ProgramRelativePathSourceContainerBrowser.java1
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/RemoveAction.java2
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/SourceContainerAction.java2
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/SourceContainerAdapterFactory.java2
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/SourceContainerLabelProvider.java3
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/SourceContainerViewer.java6
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/SourceContainerWorkbenchAdapter.java4
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/SourceDisplayAdapter.java87
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/SourceFoldersRelativePathSourceContainerBrowser.java1
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/TargetProjectSourceContainerDialog.java2
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/UpAction.java2
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/AbstractDebugEventHandler.java2
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/AbstractDebugEventHandlerView.java3
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/BaseViewer.java3
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/ExecutablesContentProvider.java7
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/ExecutablesView.java12
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/ExecutablesViewCopyHandler.java1
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/ExecutablesViewer.java1
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/ExecutablesViewerComparator.java2
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/SourceFilesContentProvider.java4
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/SourceFilesLabelProvider.java3
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/SourceFilesViewer.java3
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/memory/AddMemoryBlockDialog.java4
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/memory/AddMemoryBlocks.java9
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/modules/ModuleContentProvider.java3
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/modules/ModuleDetailPane.java69
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/modules/ModuleDetailPaneFactory.java5
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/modules/ModuleLabelProvider.java2
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/modules/ModuleMementoProvider.java2
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/modules/ModulesViewEventHandler.java5
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/modules/ModulesViewModelProxy.java2
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/signals/FlexibleSignalsView.java8
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/signals/SignalsView.java13
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/signals/SignalsViewColumnPresentation.java24
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/signals/SignalsViewContentProvider.java3
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/signals/SignalsViewEventHandler.java1
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/AbstractCDebuggerPage.java8
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/PinElementHandle.java3
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/ActionDialog.java7
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/ActionsList.java4
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/ActionsPreferencePage.java5
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/ActionsPropertyPage.java6
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/ExternalToolAction.java7
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/ExternalToolActionComposite.java10
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/ExternalToolActionPage.java3
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/GlobalActionsList.java4
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/LogAction.java7
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/LogActionComposite.java3
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/LogActionPage.java3
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/PreferenceInitializer.java1
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/ResumeAction.java7
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/ResumeActionComposite.java2
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/ResumeActionPage.java3
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/SoundAction.java8
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/SoundActionComposite.java5
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/SoundActionPage.java3
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpoints/CEventBreakpointsLabelProviderFactory.java2
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpoints/DefaultCBreakpointUIContribution.java10
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/editors/AbstractDebugTextHover.java4
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/importexecutable/AbstractImportExecutableWizard.java5
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/importexecutable/ImportExecutablePageOne.java29
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/importexecutable/ImportExecutablePageTwo.java12
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/importexecutable/ImportExecutableWizard.java5
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/preferences/ReadOnlyFieldEditor.java11
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/sourcelookup/DefaultSourceLocator.java1
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/sourcelookup/OldDefaultSourceLocator.java5
226 files changed, 1387 insertions, 230 deletions
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/BreakpointImageProvider.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/BreakpointImageProvider.java
index aafb62eeb3..3b490af3c3 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/BreakpointImageProvider.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/BreakpointImageProvider.java
@@ -29,6 +29,7 @@ public class BreakpointImageProvider implements IAnnotationImageProvider {
/* (non-Javadoc)
* @see org.eclipse.ui.texteditor.IAnnotationImageProvider#getManagedImage(org.eclipse.jface.text.source.Annotation)
*/
+ @Override
public Image getManagedImage( Annotation annotation ) {
if ( annotation instanceof MarkerAnnotation ) {
IMarker marker = ((MarkerAnnotation)annotation).getMarker();
@@ -45,6 +46,7 @@ public class BreakpointImageProvider implements IAnnotationImageProvider {
/* (non-Javadoc)
* @see org.eclipse.ui.texteditor.IAnnotationImageProvider#getImageDescriptorId(org.eclipse.jface.text.source.Annotation)
*/
+ @Override
public String getImageDescriptorId( Annotation annotation ) {
return null;
}
@@ -52,6 +54,7 @@ public class BreakpointImageProvider implements IAnnotationImageProvider {
/* (non-Javadoc)
* @see org.eclipse.ui.texteditor.IAnnotationImageProvider#getImageDescriptor(java.lang.String)
*/
+ @Override
public ImageDescriptor getImageDescriptor( String imageDescritporId ) {
return null;
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CBreakpointContext.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CBreakpointContext.java
index becd7dd9d0..22a7bd92f3 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CBreakpointContext.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CBreakpointContext.java
@@ -76,7 +76,8 @@ class CBreakpointContextActionFilter implements IActionFilter {
private static String[] EMPTY_IDENTIFIERS_ARRAY = new String[0];
- public boolean testAttribute(Object target, String name, String value) {
+ @Override
+ public boolean testAttribute(Object target, String name, String value) {
if (target instanceof CBreakpointContext) {
if ("debugModelId".equals(name)) { //$NON-NLS-1$
String[] targetModelIds = getDebugModelIds( (CBreakpointContext)target );
@@ -120,7 +121,8 @@ class CBreakpointContextAdapterFactory implements IAdapterFactory {
private static final IActionFilter fgActionFilter = new CBreakpointContextActionFilter();
- public Object getAdapter(Object obj, Class adapterType) {
+ @Override
+ public Object getAdapter(Object obj, Class adapterType) {
if (adapterType.isInstance( ((CBreakpointContext)obj).getBreakpoint() )) {
return ((CBreakpointContext)obj).getBreakpoint();
}
@@ -131,7 +133,8 @@ class CBreakpointContextAdapterFactory implements IAdapterFactory {
return null;
}
- public Class[] getAdapterList() {
+ @Override
+ public Class[] getAdapterList() {
return fgAdapterList;
}
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CBreakpointUpdater.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CBreakpointUpdater.java
index a1e2e1169c..01556ead2e 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CBreakpointUpdater.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CBreakpointUpdater.java
@@ -41,6 +41,7 @@ public class CBreakpointUpdater implements ICBreakpointListener {
* @see org.eclipse.cdt.debug.core.ICBreakpointListener#installingBreakpoint(org.eclipse.debug.core.model.IDebugTarget,
* org.eclipse.debug.core.model.IBreakpoint)
*/
+ @Override
public boolean installingBreakpoint( IDebugTarget target, IBreakpoint breakpoint ) {
return true;
}
@@ -51,11 +52,13 @@ public class CBreakpointUpdater implements ICBreakpointListener {
* @see org.eclipse.cdt.debug.core.ICBreakpointListener#breakpointInstalled(org.eclipse.debug.core.model.IDebugTarget,
* org.eclipse.debug.core.model.IBreakpoint)
*/
+ @Override
public void breakpointInstalled( final IDebugTarget target, IBreakpoint breakpoint ) {
if ( breakpoint instanceof ICBreakpoint && target instanceof ICDebugTarget ) {
final ICBreakpoint b = (ICBreakpoint)breakpoint;
asyncExec( new Runnable() {
+ @Override
public void run() {
try {
if ( b.incrementInstallCount() == 1 )
@@ -75,9 +78,11 @@ public class CBreakpointUpdater implements ICBreakpointListener {
* @see org.eclipse.cdt.debug.core.ICBreakpointListener#breakpointChanged(org.eclipse.debug.core.model.IDebugTarget,
* org.eclipse.debug.core.model.IBreakpoint, java.util.Map)
*/
+ @Override
public void breakpointChanged( IDebugTarget target, final IBreakpoint breakpoint, final Map attributes ) {
asyncExec( new Runnable() {
+ @Override
public void run() {
try {
Boolean enabled = (Boolean)attributes.get( IBreakpoint.ENABLED );
@@ -100,9 +105,11 @@ public class CBreakpointUpdater implements ICBreakpointListener {
* @see org.eclipse.cdt.debug.core.ICBreakpointListener#breakpointRemoved(org.eclipse.debug.core.model.IDebugTarget,
* org.eclipse.debug.core.model.IBreakpoint[])
*/
+ @Override
public void breakpointsRemoved( IDebugTarget target, final IBreakpoint[] breakpoints ) {
asyncExec( new Runnable() {
+ @Override
public void run() {
for ( int i = 0; i < breakpoints.length; ++i ) {
try {
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CBreakpointWorkbenchAdapterFactory.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CBreakpointWorkbenchAdapterFactory.java
index 65137c543b..38014d83d9 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CBreakpointWorkbenchAdapterFactory.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CBreakpointWorkbenchAdapterFactory.java
@@ -25,11 +25,13 @@ public class CBreakpointWorkbenchAdapterFactory implements IAdapterFactory {
/* (non-Javadoc)
* @see org.eclipse.core.runtime.IAdapterFactory#getAdapter(java.lang.Object, java.lang.Class)
*/
+ @Override
public Object getAdapter( Object adaptableObject, Class adapterType ) {
if ( adapterType != IWorkbenchAdapter.class || !(adaptableObject instanceof ICBreakpoint) ) {
return null;
}
return new WorkbenchAdapter() {
+ @Override
public String getLabel( Object o ) {
// for now
if ( o instanceof ICLineBreakpoint ) {
@@ -46,6 +48,7 @@ public class CBreakpointWorkbenchAdapterFactory implements IAdapterFactory {
/* (non-Javadoc)
* @see org.eclipse.core.runtime.IAdapterFactory#getAdapterList()
*/
+ @Override
public Class[] getAdapterList() {
return new Class[] { IWorkbenchAdapter.class };
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CDebugImageDescriptorRegistry.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CDebugImageDescriptorRegistry.java
index 61f5c5d601..07c85a1acd 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CDebugImageDescriptorRegistry.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CDebugImageDescriptorRegistry.java
@@ -77,8 +77,10 @@ public class CDebugImageDescriptorRegistry {
private void hookDisplay() {
fDisplay.asyncExec(new Runnable() {
+ @Override
public void run() {
getDisplay().disposeExec(new Runnable() {
+ @Override
public void run() {
dispose();
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CDebugModelPresentation.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CDebugModelPresentation.java
index 9447f043b0..e75c80e840 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CDebugModelPresentation.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CDebugModelPresentation.java
@@ -128,6 +128,7 @@ public class CDebugModelPresentation extends LabelProvider implements IDebugMode
/* (non-Javadoc)
* @see org.eclipse.debug.ui.IDebugModelPresentation#setAttribute(java.lang.String, java.lang.Object)
*/
+ @Override
public void setAttribute( String attribute, Object value ) {
if ( value == null )
return;
@@ -137,6 +138,7 @@ public class CDebugModelPresentation extends LabelProvider implements IDebugMode
/* (non-Javadoc)
* @see org.eclipse.debug.ui.IDebugModelPresentation#computeDetail(org.eclipse.debug.core.model.IValue, org.eclipse.debug.ui.IValueDetailListener)
*/
+ @Override
public void computeDetail( IValue value, IValueDetailListener listener ) {
CValueDetailProvider.getDefault().computeDetail( value, listener );
}
@@ -144,6 +146,7 @@ public class CDebugModelPresentation extends LabelProvider implements IDebugMode
/* (non-Javadoc)
* @see org.eclipse.debug.ui.ISourcePresentation#getEditorInput(java.lang.Object)
*/
+ @Override
public IEditorInput getEditorInput( Object element ) {
if ( element instanceof IMarker ) {
IResource resource = ((IMarker)element).getResource();
@@ -209,6 +212,7 @@ public class CDebugModelPresentation extends LabelProvider implements IDebugMode
/* (non-Javadoc)
* @see org.eclipse.debug.ui.ISourcePresentation#getEditorId(org.eclipse.ui.IEditorInput, java.lang.Object)
*/
+ @Override
public String getEditorId( IEditorInput input, Object element ) {
if (element instanceof CSourceNotFoundElement)
return ICDebugUIConstants.CSOURCENOTFOUND_EDITOR_ID;
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CDebuggerPageAdapter.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CDebuggerPageAdapter.java
index 787b499fa8..13a573b2ba 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CDebuggerPageAdapter.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CDebuggerPageAdapter.java
@@ -40,6 +40,7 @@ public class CDebuggerPageAdapter implements ICDebuggerPage {
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.ui.ICDebuggerPage#init(java.lang.String)
*/
+ @Override
public void init( String debuggerID ) {
fDebuggerId = debuggerID;
}
@@ -47,6 +48,7 @@ public class CDebuggerPageAdapter implements ICDebuggerPage {
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.ui.ICDebuggerPage#getDebuggerIdentifier()
*/
+ @Override
public String getDebuggerIdentifier() {
return fDebuggerId;
}
@@ -54,6 +56,7 @@ public class CDebuggerPageAdapter implements ICDebuggerPage {
/* (non-Javadoc)
* @see org.eclipse.debug.ui.ILaunchConfigurationTab#createControl(org.eclipse.swt.widgets.Composite)
*/
+ @Override
public void createControl( Composite parent ) {
fDelegate.createControl( parent );
}
@@ -61,6 +64,7 @@ public class CDebuggerPageAdapter implements ICDebuggerPage {
/* (non-Javadoc)
* @see org.eclipse.debug.ui.ILaunchConfigurationTab#getControl()
*/
+ @Override
public Control getControl() {
return fDelegate.getControl();
}
@@ -68,6 +72,7 @@ public class CDebuggerPageAdapter implements ICDebuggerPage {
/* (non-Javadoc)
* @see org.eclipse.debug.ui.ILaunchConfigurationTab#setDefaults(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy)
*/
+ @Override
public void setDefaults( ILaunchConfigurationWorkingCopy configuration ) {
fDelegate.setDefaults( configuration );
}
@@ -75,6 +80,7 @@ public class CDebuggerPageAdapter implements ICDebuggerPage {
/* (non-Javadoc)
* @see org.eclipse.debug.ui.ILaunchConfigurationTab#initializeFrom(org.eclipse.debug.core.ILaunchConfiguration)
*/
+ @Override
public void initializeFrom( ILaunchConfiguration configuration ) {
fDelegate.initializeFrom( configuration );
}
@@ -82,6 +88,7 @@ public class CDebuggerPageAdapter implements ICDebuggerPage {
/* (non-Javadoc)
* @see org.eclipse.debug.ui.ILaunchConfigurationTab#dispose()
*/
+ @Override
public void dispose() {
fDelegate.dispose();
}
@@ -89,6 +96,7 @@ public class CDebuggerPageAdapter implements ICDebuggerPage {
/* (non-Javadoc)
* @see org.eclipse.debug.ui.ILaunchConfigurationTab#performApply(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy)
*/
+ @Override
public void performApply( ILaunchConfigurationWorkingCopy configuration ) {
fDelegate.performApply( configuration );
}
@@ -96,6 +104,7 @@ public class CDebuggerPageAdapter implements ICDebuggerPage {
/* (non-Javadoc)
* @see org.eclipse.debug.ui.ILaunchConfigurationTab#getErrorMessage()
*/
+ @Override
public String getErrorMessage() {
return fDelegate.getErrorMessage();
}
@@ -103,6 +112,7 @@ public class CDebuggerPageAdapter implements ICDebuggerPage {
/* (non-Javadoc)
* @see org.eclipse.debug.ui.ILaunchConfigurationTab#getMessage()
*/
+ @Override
public String getMessage() {
return fDelegate.getMessage();
}
@@ -110,6 +120,7 @@ public class CDebuggerPageAdapter implements ICDebuggerPage {
/* (non-Javadoc)
* @see org.eclipse.debug.ui.ILaunchConfigurationTab#isValid(org.eclipse.debug.core.ILaunchConfiguration)
*/
+ @Override
public boolean isValid( ILaunchConfiguration launchConfig ) {
return fDelegate.isValid( launchConfig );
}
@@ -117,6 +128,7 @@ public class CDebuggerPageAdapter implements ICDebuggerPage {
/* (non-Javadoc)
* @see org.eclipse.debug.ui.ILaunchConfigurationTab#canSave()
*/
+ @Override
public boolean canSave() {
return fDelegate.canSave();
}
@@ -124,6 +136,7 @@ public class CDebuggerPageAdapter implements ICDebuggerPage {
/* (non-Javadoc)
* @see org.eclipse.debug.ui.ILaunchConfigurationTab#setLaunchConfigurationDialog(org.eclipse.debug.ui.ILaunchConfigurationDialog)
*/
+ @Override
public void setLaunchConfigurationDialog( ILaunchConfigurationDialog dialog ) {
fDelegate.setLaunchConfigurationDialog( dialog );
}
@@ -131,6 +144,7 @@ public class CDebuggerPageAdapter implements ICDebuggerPage {
/* (non-Javadoc)
* @see org.eclipse.debug.ui.ILaunchConfigurationTab#launched(org.eclipse.debug.core.ILaunch)
*/
+ @Override
public void launched( ILaunch launch ) {
fDelegate.launched( launch );
}
@@ -138,6 +152,7 @@ public class CDebuggerPageAdapter implements ICDebuggerPage {
/* (non-Javadoc)
* @see org.eclipse.debug.ui.ILaunchConfigurationTab#getName()
*/
+ @Override
public String getName() {
return fDelegate.getName();
}
@@ -145,6 +160,7 @@ public class CDebuggerPageAdapter implements ICDebuggerPage {
/* (non-Javadoc)
* @see org.eclipse.debug.ui.ILaunchConfigurationTab#getImage()
*/
+ @Override
public Image getImage() {
return fDelegate.getImage();
}
@@ -152,6 +168,7 @@ public class CDebuggerPageAdapter implements ICDebuggerPage {
/* (non-Javadoc)
* @see org.eclipse.debug.ui.ILaunchConfigurationTab#activated(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy)
*/
+ @Override
public void activated( ILaunchConfigurationWorkingCopy workingCopy ) {
fDelegate.activated( workingCopy );
}
@@ -159,6 +176,7 @@ public class CDebuggerPageAdapter implements ICDebuggerPage {
/* (non-Javadoc)
* @see org.eclipse.debug.ui.ILaunchConfigurationTab#deactivated(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy)
*/
+ @Override
public void deactivated( ILaunchConfigurationWorkingCopy workingCopy ) {
fDelegate.deactivated( workingCopy );
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CValueDetailProvider.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CValueDetailProvider.java
index 0c8f7a9030..4751d0bd3a 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CValueDetailProvider.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CValueDetailProvider.java
@@ -37,6 +37,7 @@ public class CValueDetailProvider {
if ( frame != null ) {
DebugPlugin.getDefault().asyncExec( new Runnable() {
+ @Override
public void run() {
listener.detailComputed( value, ((ICValue)value).evaluateAsExpression( frame ) );
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CWatchExpressionDelegate.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CWatchExpressionDelegate.java
index d1a917891d..6ec95d842d 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CWatchExpressionDelegate.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CWatchExpressionDelegate.java
@@ -24,6 +24,7 @@ public class CWatchExpressionDelegate implements IWatchExpressionDelegate {
/* (non-Javadoc)
* @see org.eclipse.debug.core.model.IWatchExpressionDelegate#evaluateExpression(java.lang.String, org.eclipse.debug.core.model.IDebugElement, org.eclipse.debug.core.model.IWatchExpressionListener)
*/
+ @Override
public void evaluateExpression( final String expression, IDebugElement context, final IWatchExpressionListener listener ) {
if ( !(context instanceof ICStackFrame) ) {
listener.watchEvaluationFinished( null );
@@ -31,6 +32,7 @@ public class CWatchExpressionDelegate implements IWatchExpressionDelegate {
}
final ICStackFrame frame = (ICStackFrame)context;
Runnable runnable = new Runnable() {
+ @Override
public void run() {
IValue value = null;
DebugException de = null;
@@ -50,14 +52,17 @@ public class CWatchExpressionDelegate implements IWatchExpressionDelegate {
protected IWatchExpressionResult evaluationComplete( final String expression, final IValue value, final DebugException de ) {
return new IWatchExpressionResult() {
+ @Override
public IValue getValue() {
return value;
}
+ @Override
public boolean hasErrors() {
return ( de != null );
}
+ @Override
public String getExpressionText() {
return expression;
}
@@ -65,10 +70,12 @@ public class CWatchExpressionDelegate implements IWatchExpressionDelegate {
/* (non-Javadoc)
* @see org.eclipse.debug.core.model.IWatchExpressionResult#getException()
*/
+ @Override
public DebugException getException() {
return de;
}
+ @Override
public String[] getErrorMessages() {
return ( de != null ) ? new String[] { de.getMessage() } : new String[0];
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/DebugMarkerAnnotationModel.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/DebugMarkerAnnotationModel.java
index 8ca9512bc9..368da30a8d 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/DebugMarkerAnnotationModel.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/DebugMarkerAnnotationModel.java
@@ -30,6 +30,7 @@ public class DebugMarkerAnnotationModel extends AbstractMarkerAnnotationModel im
fFile = file;
}
+ @Override
protected IMarker[] retrieveMarkers() throws CoreException {
IBreakpoint[] breakpoints = DebugPlugin.getDefault().getBreakpointManager().getBreakpoints();
IMarker[] markers = new IMarker[breakpoints.length];
@@ -39,9 +40,11 @@ public class DebugMarkerAnnotationModel extends AbstractMarkerAnnotationModel im
return markers;
}
+ @Override
protected void deleteMarkers( IMarker[] markers ) throws CoreException {
}
+ @Override
protected void listenToMarkerChanges( boolean listen ) {
if ( listen )
DebugPlugin.getDefault().getBreakpointManager().addBreakpointListener( this );
@@ -49,6 +52,7 @@ public class DebugMarkerAnnotationModel extends AbstractMarkerAnnotationModel im
DebugPlugin.getDefault().getBreakpointManager().removeBreakpointListener( this );
}
+ @Override
protected boolean isAcceptable( IMarker marker ) {
String handle = marker.getAttribute(ICBreakpoint.SOURCE_HANDLE, null);
if (handle != null) {
@@ -62,6 +66,7 @@ public class DebugMarkerAnnotationModel extends AbstractMarkerAnnotationModel im
return fFile;
}
+ @Override
public void breakpointsAdded( IBreakpoint[] breakpoints ) {
for ( int i = 0; i < breakpoints.length; ++i ) {
addMarkerAnnotation( breakpoints[i].getMarker() );
@@ -69,6 +74,7 @@ public class DebugMarkerAnnotationModel extends AbstractMarkerAnnotationModel im
fireModelChanged();
}
+ @Override
public void breakpointsRemoved( IBreakpoint[] breakpoints, IMarkerDelta[] deltas ) {
for ( int i = 0; i < breakpoints.length; ++i ) {
removeMarkerAnnotation( breakpoints[i].getMarker() );
@@ -76,6 +82,7 @@ public class DebugMarkerAnnotationModel extends AbstractMarkerAnnotationModel im
fireModelChanged();
}
+ @Override
public void breakpointsChanged( IBreakpoint[] breakpoints, IMarkerDelta[] deltas ) {
for ( int i = 0; i < breakpoints.length; ++i ) {
modifyMarkerAnnotation( breakpoints[i].getMarker() );
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/DebugMarkerAnnotationModelFactory.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/DebugMarkerAnnotationModelFactory.java
index 9a32d491f0..1b912ecb75 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/DebugMarkerAnnotationModelFactory.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/DebugMarkerAnnotationModelFactory.java
@@ -22,6 +22,7 @@ public class DebugMarkerAnnotationModelFactory extends ResourceMarkerAnnotationM
/* (non-Javadoc)
* @see org.eclipse.ui.texteditor.ResourceMarkerAnnotationModelFactory#createAnnotationModel(org.eclipse.core.runtime.IPath)
*/
+ @Override
public IAnnotationModel createAnnotationModel( IPath location ) {
IFile file = FileBuffers.getWorkspaceFileAtLocation( location );
if ( file != null ) {
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 71985837de..95cd400e09 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
@@ -26,6 +26,7 @@ public class ErrorStatusHandler implements IStatusHandler {
/* (non-Javadoc)
* @see org.eclipse.debug.core.IStatusHandler#handleStatus(org.eclipse.core.runtime.IStatus, java.lang.Object)
*/
+ @Override
public Object handleStatus( final IStatus status, Object source ) throws CoreException {
if ( status != null && source != null ) {
String title = ""; //$NON-NLS-1$
@@ -41,6 +42,7 @@ public class ErrorStatusHandler implements IStatusHandler {
final String title_f = title;
CDebugUIPlugin.getStandardDisplay().asyncExec( new Runnable() {
+ @Override
public void run() {
ErrorDialog.openError( CDebugUIPlugin.getActiveWorkbenchShell(), title_f, null, status );
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/EvaluationContextManager.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/EvaluationContextManager.java
index 2a4ec8fde5..2bd74b34b2 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/EvaluationContextManager.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/EvaluationContextManager.java
@@ -46,6 +46,7 @@ public class EvaluationContextManager implements IWindowListener, IPageListener,
public static void startup() {
Runnable r = new Runnable() {
+ @Override
public void run() {
if (fgManager == null) {
fgManager = new EvaluationContextManager();
@@ -64,6 +65,7 @@ public class EvaluationContextManager implements IWindowListener, IPageListener,
/* (non-Javadoc)
* @see org.eclipse.ui.IWindowListener#windowActivated(org.eclipse.ui.IWorkbenchWindow)
*/
+ @Override
public void windowActivated(IWorkbenchWindow window) {
windowOpened(window);
}
@@ -71,12 +73,14 @@ public class EvaluationContextManager implements IWindowListener, IPageListener,
/* (non-Javadoc)
* @see org.eclipse.ui.IWindowListener#windowDeactivated(org.eclipse.ui.IWorkbenchWindow)
*/
+ @Override
public void windowDeactivated(IWorkbenchWindow window) {
}
/* (non-Javadoc)
* @see org.eclipse.ui.IWindowListener#windowClosed(org.eclipse.ui.IWorkbenchWindow)
*/
+ @Override
public void windowClosed(IWorkbenchWindow window) {
window.removePageListener(this);
}
@@ -84,6 +88,7 @@ public class EvaluationContextManager implements IWindowListener, IPageListener,
/* (non-Javadoc)
* @see org.eclipse.ui.IWindowListener#windowOpened(org.eclipse.ui.IWorkbenchWindow)
*/
+ @Override
public void windowOpened(IWorkbenchWindow window) {
IWorkbenchPage[] pages = window.getPages();
for(int i = 0; i < pages.length; i++) {
@@ -95,6 +100,7 @@ public class EvaluationContextManager implements IWindowListener, IPageListener,
/* (non-Javadoc)
* @see org.eclipse.ui.IPageListener#pageActivated(org.eclipse.ui.IWorkbenchPage)
*/
+ @Override
public void pageActivated(IWorkbenchPage page) {
pageOpened(page);
}
@@ -102,6 +108,7 @@ public class EvaluationContextManager implements IWindowListener, IPageListener,
/* (non-Javadoc)
* @see org.eclipse.ui.IPageListener#pageClosed(org.eclipse.ui.IWorkbenchPage)
*/
+ @Override
public void pageClosed(IWorkbenchPage page) {
page.removeSelectionListener(IDebugUIConstants.ID_DEBUG_VIEW, this);
page.removePartListener(this);
@@ -110,6 +117,7 @@ public class EvaluationContextManager implements IWindowListener, IPageListener,
/* (non-Javadoc)
* @see org.eclipse.ui.IPageListener#pageOpened(org.eclipse.ui.IWorkbenchPage)
*/
+ @Override
public void pageOpened(IWorkbenchPage page) {
page.addSelectionListener(IDebugUIConstants.ID_DEBUG_VIEW, this);
page.addPartListener(this);
@@ -122,6 +130,7 @@ public class EvaluationContextManager implements IWindowListener, IPageListener,
/* (non-Javadoc)
* @see org.eclipse.ui.ISelectionListener#selectionChanged(org.eclipse.ui.IWorkbenchPart, org.eclipse.jface.viewers.ISelection)
*/
+ @Override
public void selectionChanged(IWorkbenchPart part, ISelection selection) {
IWorkbenchPage page = part.getSite().getPage();
if (selection instanceof IStructuredSelection) {
@@ -144,18 +153,21 @@ public class EvaluationContextManager implements IWindowListener, IPageListener,
/* (non-Javadoc)
* @see org.eclipse.ui.IPartListener2#partActivated(org.eclipse.ui.IWorkbenchPartReference)
*/
+ @Override
public void partActivated(IWorkbenchPartReference partRef) {
}
/* (non-Javadoc)
* @see org.eclipse.ui.IPartListener2#partBroughtToTop(org.eclipse.ui.IWorkbenchPartReference)
*/
+ @Override
public void partBroughtToTop(IWorkbenchPartReference partRef) {
}
/* (non-Javadoc)
* @see org.eclipse.ui.IPartListener2#partClosed(org.eclipse.ui.IWorkbenchPartReference)
*/
+ @Override
public void partClosed(IWorkbenchPartReference partRef) {
if (IDebugUIConstants.ID_DEBUG_VIEW.equals(partRef.getId())) {
removeContext(partRef.getPage());
@@ -165,30 +177,35 @@ public class EvaluationContextManager implements IWindowListener, IPageListener,
/* (non-Javadoc)
* @see org.eclipse.ui.IPartListener2#partDeactivated(org.eclipse.ui.IWorkbenchPartReference)
*/
+ @Override
public void partDeactivated(IWorkbenchPartReference partRef) {
}
/* (non-Javadoc)
* @see org.eclipse.ui.IPartListener2#partOpened(org.eclipse.ui.IWorkbenchPartReference)
*/
+ @Override
public void partOpened(IWorkbenchPartReference partRef) {
}
/* (non-Javadoc)
* @see org.eclipse.ui.IPartListener2#partHidden(org.eclipse.ui.IWorkbenchPartReference)
*/
+ @Override
public void partHidden(IWorkbenchPartReference partRef) {
}
/* (non-Javadoc)
* @see org.eclipse.ui.IPartListener2#partVisible(org.eclipse.ui.IWorkbenchPartReference)
*/
+ @Override
public void partVisible(IWorkbenchPartReference partRef) {
}
/* (non-Javadoc)
* @see org.eclipse.ui.IPartListener2#partInputChanged(org.eclipse.ui.IWorkbenchPartReference)
*/
+ @Override
public void partInputChanged(IWorkbenchPartReference partRef) {
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/InfoStatusHandler.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/InfoStatusHandler.java
index 5139ac57b3..e21d8a27ae 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/InfoStatusHandler.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/InfoStatusHandler.java
@@ -25,12 +25,14 @@ public class InfoStatusHandler implements IStatusHandler {
/* (non-Javadoc)
* @see org.eclipse.debug.core.IStatusHandler#handleStatus(org.eclipse.core.runtime.IStatus, java.lang.Object)
*/
+ @Override
public Object handleStatus( IStatus status, Object source ) throws CoreException {
if ( status != null && source != null && source instanceof IDebugTarget ) {
final String title = ((IDebugTarget)source).getName();
final String message = status.getMessage();
CDebugUIPlugin.getStandardDisplay().asyncExec( new Runnable() {
+ @Override
public void run() {
MessageDialog.openInformation( CDebugUIPlugin.getActiveWorkbenchShell(), title, message );
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/OverlayImageDescriptor.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/OverlayImageDescriptor.java
index 10002e9bba..ff33876ebb 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/OverlayImageDescriptor.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/OverlayImageDescriptor.java
@@ -79,6 +79,7 @@ public class OverlayImageDescriptor extends CompositeImageDescriptor {
}
}
+ @Override
public boolean equals( Object o ) {
if ( !(o instanceof OverlayImageDescriptor) )
return false;
@@ -86,6 +87,7 @@ public class OverlayImageDescriptor extends CompositeImageDescriptor {
return getBase().equals( other.getBase() ) && Arrays.equals( getOverlays(), other.getOverlays() );
}
+ @Override
public int hashCode() {
int code = getBase().hashCode();
for (int i = 0; i < getOverlays().length; i++) {
@@ -101,6 +103,7 @@ public class OverlayImageDescriptor extends CompositeImageDescriptor {
* @see org.eclipse.jface.resource.CompositeImageDescriptor#drawCompositeImage(int,
* int)
*/
+ @Override
protected void drawCompositeImage( int width, int height ) {
drawImage( getBase().getImageData(), 0, 0 );
drawOverlays( getOverlays() );
@@ -111,6 +114,7 @@ public class OverlayImageDescriptor extends CompositeImageDescriptor {
*
* @see org.eclipse.jface.resource.CompositeImageDescriptor#getSize()
*/
+ @Override
protected Point getSize() {
return this.fSize;
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/QuestionStatusHandler.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/QuestionStatusHandler.java
index ecb9d33e7e..2e66159484 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/QuestionStatusHandler.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/QuestionStatusHandler.java
@@ -25,6 +25,7 @@ public class QuestionStatusHandler implements IStatusHandler {
/* (non-Javadoc)
* @see org.eclipse.debug.core.IStatusHandler#handleStatus(org.eclipse.core.runtime.IStatus, java.lang.Object)
*/
+ @Override
public Object handleStatus( IStatus status, Object source ) throws CoreException {
final boolean result[] = new boolean[1];
if ( status != null && source != null && source instanceof IDebugTarget ) {
@@ -32,6 +33,7 @@ public class QuestionStatusHandler implements IStatusHandler {
final String message = status.getMessage();
CDebugUIPlugin.getStandardDisplay().syncExec( new Runnable() {
+ @Override
public void run() {
result[0] = MessageDialog.openQuestion( CDebugUIPlugin.getActiveWorkbenchShell(), title, message );
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/SingleCharReader.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/SingleCharReader.java
index ad5e42b877..52bff3bf17 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/SingleCharReader.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/SingleCharReader.java
@@ -18,11 +18,13 @@ public abstract class SingleCharReader extends Reader {
/**
* @see Reader#read()
*/
+ @Override
public abstract int read() throws IOException;
/**
* @see Reader#read(char[],int,int)
*/
+ @Override
public int read(char cbuf[], int off, int len) throws IOException {
int end= off + len;
for (int i= off; i < end; i++) {
@@ -38,7 +40,8 @@ public abstract class SingleCharReader extends Reader {
/**
* @see Reader#ready()
*/
- public boolean ready() throws IOException {
+ @Override
+ public boolean ready() throws IOException {
return true;
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/SubstitutionTextReader.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/SubstitutionTextReader.java
index 969dc79d61..50510b2213 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/SubstitutionTextReader.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/SubstitutionTextReader.java
@@ -93,6 +93,7 @@ public abstract class SubstitutionTextReader extends SingleCharReader {
/**
* @see Reader#read()
*/
+ @Override
public int read() throws IOException {
int c;
do {
@@ -115,13 +116,15 @@ public abstract class SubstitutionTextReader extends SingleCharReader {
/**
* @see Reader#ready()
*/
- public boolean ready() throws IOException {
+ @Override
+ public boolean ready() throws IOException {
return fReader.ready();
}
/**
* @see Reader#close()
*/
+ @Override
public void close() throws IOException {
fReader.close();
}
@@ -129,6 +132,7 @@ public abstract class SubstitutionTextReader extends SingleCharReader {
/**
* @see Reader#reset()
*/
+ @Override
public void reset() throws IOException {
fReader.reset();
fWasWhiteSpace= true;
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/ToggleCBreakpointTester.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/ToggleCBreakpointTester.java
index 4a494ad263..74cae165f5 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/ToggleCBreakpointTester.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/ToggleCBreakpointTester.java
@@ -36,6 +36,7 @@ public class ToggleCBreakpointTester extends PropertyTester {
* (non-Javadoc)
* @see org.eclipse.core.expressions.IPropertyTester#test(java.lang.Object, java.lang.String, java.lang.Object[], java.lang.Object)
*/
+ @Override
public boolean test(Object receiver, String property, Object[] args, Object expectedValue) {
// test for CEditor
if ("isCEditorSupportsCBreakpoint".equals(property) && (receiver instanceof CEditor)) { //$NON-NLS-1$
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AbstractDebugActionDelegate.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AbstractDebugActionDelegate.java
index 2ed64f51df..809d4cf693 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AbstractDebugActionDelegate.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AbstractDebugActionDelegate.java
@@ -89,7 +89,8 @@ public abstract class AbstractDebugActionDelegate implements IWorkbenchWindowAct
/* (non-Javadoc)
* @see org.eclipse.core.runtime.jobs.Job#run(org.eclipse.core.runtime.IProgressMonitor)
*/
- protected IStatus run(IProgressMonitor monitor) {
+ @Override
+ protected IStatus run(IProgressMonitor monitor) {
MultiStatus status=
new MultiStatus(CDebugUIPlugin.getUniqueIdentifier(), DebugException.REQUEST_FAILED, getStatusMessage(), null);
for (int i = 0; i < fElements.length; i++) {
@@ -125,6 +126,7 @@ public abstract class AbstractDebugActionDelegate implements IWorkbenchWindowAct
/* (non-Javadoc)
* @see org.eclipse.ui.IWorkbenchWindowActionDelegate#dispose()
*/
+ @Override
public void dispose(){
if (getWindow() != null) {
getWindow().getSelectionService().removeSelectionListener(IDebugUIConstants.ID_DEBUG_VIEW, this);
@@ -136,6 +138,7 @@ public abstract class AbstractDebugActionDelegate implements IWorkbenchWindowAct
/* (non-Javadoc)
* @see org.eclipse.ui.IWorkbenchWindowActionDelegate#init(org.eclipse.ui.IWorkbenchWindow)
*/
+ @Override
public void init(IWorkbenchWindow window){
// listen to selection changes in the debug view
setWindow(window);
@@ -145,6 +148,7 @@ public abstract class AbstractDebugActionDelegate implements IWorkbenchWindowAct
/* (non-Javadoc)
* @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
*/
+ @Override
public void run(IAction action){
if (action.isEnabled()) {
IStructuredSelection selection = getSelection();
@@ -177,6 +181,7 @@ public abstract class AbstractDebugActionDelegate implements IWorkbenchWindowAct
final MultiStatus status=
new MultiStatus(CDebugUIPlugin.getUniqueIdentifier(), DebugException.REQUEST_FAILED, getStatusMessage(), null);
BusyIndicator.showWhile(Display.getCurrent(), new Runnable() {
+ @Override
public void run() {
Iterator selectionIter = selection.iterator();
while (selectionIter.hasNext()) {
@@ -230,6 +235,7 @@ public abstract class AbstractDebugActionDelegate implements IWorkbenchWindowAct
*
* @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
*/
+ @Override
public void selectionChanged(IAction action, ISelection s) {
boolean wasInitialized= initialize(action, s);
if (!wasInitialized) {
@@ -284,6 +290,7 @@ public abstract class AbstractDebugActionDelegate implements IWorkbenchWindowAct
/* (non-Javadoc)
* @see org.eclipse.ui.IViewActionDelegate#init(org.eclipse.ui.IViewPart)
*/
+ @Override
public void init(IViewPart view) {
fViewPart = view;
}
@@ -348,6 +355,7 @@ public abstract class AbstractDebugActionDelegate implements IWorkbenchWindowAct
/* (non-Javadoc)
* @see org.eclipse.ui.ISelectionListener#selectionChanged(org.eclipse.ui.IWorkbenchPart, org.eclipse.jface.viewers.ISelection)
*/
+ @Override
public void selectionChanged(IWorkbenchPart part, ISelection selection) {
update(getAction(), selection);
}
@@ -404,6 +412,7 @@ public abstract class AbstractDebugActionDelegate implements IWorkbenchWindowAct
/* (non-Javadoc)
* @see org.eclipse.ui.IActionDelegate2#runWithEvent(org.eclipse.jface.action.IAction, org.eclipse.swt.widgets.Event)
*/
+ @Override
public void runWithEvent(IAction action, Event event) {
run(action);
}
@@ -411,6 +420,7 @@ public abstract class AbstractDebugActionDelegate implements IWorkbenchWindowAct
/* (non-Javadoc)
* @see org.eclipse.ui.IActionDelegate2#init(org.eclipse.jface.action.IAction)
*/
+ @Override
public void init(IAction action) {
}
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AbstractEditorActionDelegate.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AbstractEditorActionDelegate.java
index 0d4d324618..29c7da4aa8 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AbstractEditorActionDelegate.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AbstractEditorActionDelegate.java
@@ -55,6 +55,7 @@ public abstract class AbstractEditorActionDelegate extends ActionDelegate
/* (non-Javadoc)
* @see org.eclipse.ui.IWorkbenchWindowActionDelegate#dispose()
*/
+ @Override
public void dispose()
{
IWorkbenchWindow win = getWorkbenchWindow();
@@ -68,6 +69,7 @@ public abstract class AbstractEditorActionDelegate extends ActionDelegate
/* (non-Javadoc)
* @see org.eclipse.ui.IWorkbenchWindowActionDelegate#init(IWorkbenchWindow)
*/
+ @Override
public void init( IWorkbenchWindow window )
{
setWorkbenchWindow( window );
@@ -85,6 +87,7 @@ public abstract class AbstractEditorActionDelegate extends ActionDelegate
/* (non-Javadoc)
* @see org.eclipse.ui.IEditorActionDelegate#setActiveEditor(IAction, IEditorPart)
*/
+ @Override
public void setActiveEditor( IAction action, IEditorPart targetEditor )
{
setAction( action );
@@ -105,6 +108,7 @@ public abstract class AbstractEditorActionDelegate extends ActionDelegate
/* (non-Javadoc)
* @see org.eclipse.ui.IPartListener#partActivated(IWorkbenchPart)
*/
+ @Override
public void partActivated( IWorkbenchPart part )
{
setTargetPart( part );
@@ -113,6 +117,7 @@ public abstract class AbstractEditorActionDelegate extends ActionDelegate
/* (non-Javadoc)
* @see org.eclipse.ui.IPartListener#partBroughtToTop(IWorkbenchPart)
*/
+ @Override
public void partBroughtToTop( IWorkbenchPart part )
{
}
@@ -120,6 +125,7 @@ public abstract class AbstractEditorActionDelegate extends ActionDelegate
/* (non-Javadoc)
* @see org.eclipse.ui.IPartListener#partClosed(IWorkbenchPart)
*/
+ @Override
public void partClosed( IWorkbenchPart part )
{
if ( part == getTargetPart() )
@@ -131,6 +137,7 @@ public abstract class AbstractEditorActionDelegate extends ActionDelegate
/* (non-Javadoc)
* @see org.eclipse.ui.IPartListener#partDeactivated(IWorkbenchPart)
*/
+ @Override
public void partDeactivated(IWorkbenchPart part)
{
}
@@ -138,20 +145,24 @@ public abstract class AbstractEditorActionDelegate extends ActionDelegate
/* (non-Javadoc)
* @see org.eclipse.ui.IPartListener#partOpened(IWorkbenchPart)
*/
+ @Override
public void partOpened( IWorkbenchPart part )
{
}
+ @Override
public abstract void selectionChanged( IWorkbenchPart part, ISelection selection );
/* (non-Javadoc)
* @see org.eclipse.ui.IActionDelegate#run(IAction)
*/
+ @Override
public abstract void run( IAction action );
/* (non-Javadoc)
* @see org.eclipse.ui.IActionDelegate#selectionChanged(IAction, ISelection)
*/
+ @Override
public void selectionChanged(IAction action, ISelection selection)
{
setAction( action );
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AbstractListenerActionDelegate.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AbstractListenerActionDelegate.java
index d1e05a7dd5..1d83eeb869 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AbstractListenerActionDelegate.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AbstractListenerActionDelegate.java
@@ -26,6 +26,7 @@ public abstract class AbstractListenerActionDelegate extends AbstractDebugAction
* @see org.eclipse.ui.IWorkbenchWindowActionDelegate#dispose()
* @see org.eclipse.ui.IActionDelegate2#dispose()
*/
+ @Override
public void dispose() {
super.dispose();
DebugPlugin.getDefault().removeDebugEventListener(this);
@@ -34,6 +35,7 @@ public abstract class AbstractListenerActionDelegate extends AbstractDebugAction
/**
* @see IDebugEventSetListener#handleDebugEvents(DebugEvent[])
*/
+ @Override
public void handleDebugEvents(final DebugEvent[] events) {
if (getWindow() == null || getAction() == null) {
return;
@@ -43,6 +45,7 @@ public abstract class AbstractListenerActionDelegate extends AbstractDebugAction
return;
}
Runnable r= new Runnable() {
+ @Override
public void run() {
for (int i = 0; i < events.length; i++) {
if (events[i].getSource() != null) {
@@ -80,6 +83,7 @@ public abstract class AbstractListenerActionDelegate extends AbstractDebugAction
/**
* @see IWorkbenchWindowActionDelegate#init(IWorkbenchWindow)
*/
+ @Override
public void init(IWorkbenchWindow window){
super.init(window);
DebugPlugin.getDefault().addDebugEventListener(this);
@@ -88,6 +92,7 @@ public abstract class AbstractListenerActionDelegate extends AbstractDebugAction
/**
* @see IViewActionDelegate#init(IViewPart)
*/
+ @Override
public void init(IViewPart view) {
super.init(view);
DebugPlugin.getDefault().addDebugEventListener(this);
@@ -97,12 +102,14 @@ public abstract class AbstractListenerActionDelegate extends AbstractDebugAction
/**
* @see org.eclipse.ui.IActionDelegate2#init(org.eclipse.jface.action.IAction)
*/
+ @Override
public void init(IAction action) {
}
/**
* @see org.eclipse.ui.IActionDelegate2#runWithEvent(org.eclipse.jface.action.IAction, org.eclipse.swt.widgets.Event)
*/
+ @Override
public void runWithEvent(IAction action, Event event) {
run(action);
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AbstractToggleBreakpointAdapter.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AbstractToggleBreakpointAdapter.java
index b6039bb2c7..466d291bbd 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AbstractToggleBreakpointAdapter.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AbstractToggleBreakpointAdapter.java
@@ -60,6 +60,7 @@ abstract public class AbstractToggleBreakpointAdapter implements IToggleBreakpoi
/* (non-Javadoc)
* @see org.eclipse.debug.ui.actions.IToggleBreakpointsTarget#toggleLineBreakpoints(org.eclipse.ui.IWorkbenchPart, org.eclipse.jface.viewers.ISelection)
*/
+ @Override
public void toggleLineBreakpoints( IWorkbenchPart part, ISelection selection ) throws CoreException {
String errorMessage = null;
if ( part instanceof ITextEditor ) {
@@ -109,6 +110,7 @@ abstract public class AbstractToggleBreakpointAdapter implements IToggleBreakpoi
/* (non-Javadoc)
* @see org.eclipse.debug.ui.actions.IToggleBreakpointsTarget#canToggleLineBreakpoints(org.eclipse.ui.IWorkbenchPart, org.eclipse.jface.viewers.ISelection)
*/
+ @Override
public boolean canToggleLineBreakpoints( IWorkbenchPart part, ISelection selection ) {
return (selection instanceof ITextSelection);
}
@@ -116,6 +118,7 @@ abstract public class AbstractToggleBreakpointAdapter implements IToggleBreakpoi
/* (non-Javadoc)
* @see org.eclipse.debug.ui.actions.IToggleBreakpointsTarget#toggleMethodBreakpoints(org.eclipse.ui.IWorkbenchPart, org.eclipse.jface.viewers.ISelection)
*/
+ @Override
public void toggleMethodBreakpoints( IWorkbenchPart part, ISelection selection ) throws CoreException {
ICElement element = getCElementFromSelection( part, selection );
if ( element instanceof IFunction || element instanceof IMethod ) {
@@ -126,6 +129,7 @@ abstract public class AbstractToggleBreakpointAdapter implements IToggleBreakpoi
/* (non-Javadoc)
* @see org.eclipse.debug.ui.actions.IToggleBreakpointsTarget#canToggleMethodBreakpoints(org.eclipse.ui.IWorkbenchPart, org.eclipse.jface.viewers.ISelection)
*/
+ @Override
public boolean canToggleMethodBreakpoints( IWorkbenchPart part, ISelection selection ) {
ICElement element = getCElementFromSelection( part, selection );
return (element instanceof IFunction || element instanceof IMethod);
@@ -184,6 +188,7 @@ abstract public class AbstractToggleBreakpointAdapter implements IToggleBreakpoi
/* (non-Javadoc)
* @see org.eclipse.debug.ui.actions.IToggleBreakpointsTarget#toggleWatchpoints(org.eclipse.ui.IWorkbenchPart, org.eclipse.jface.viewers.ISelection)
*/
+ @Override
public void toggleWatchpoints( IWorkbenchPart part, ISelection selection ) throws CoreException {
IVariable variable = getVariableFromSelection( part, selection );
if ( variable != null ) {
@@ -194,6 +199,7 @@ abstract public class AbstractToggleBreakpointAdapter implements IToggleBreakpoi
/* (non-Javadoc)
* @see org.eclipse.debug.ui.actions.IToggleBreakpointsTarget#canToggleWatchpoints(org.eclipse.ui.IWorkbenchPart, org.eclipse.jface.viewers.ISelection)
*/
+ @Override
public boolean canToggleWatchpoints( IWorkbenchPart part, ISelection selection ) {
return getVariableFromSelection( part, selection ) != null;
}
@@ -201,6 +207,7 @@ abstract public class AbstractToggleBreakpointAdapter implements IToggleBreakpoi
/* (non-Javadoc)
* @see org.eclipse.debug.ui.actions.IToggleBreakpointsTargetExtension#canToggleBreakpoints(org.eclipse.ui.IWorkbenchPart, org.eclipse.jface.viewers.ISelection)
*/
+ @Override
public boolean canToggleBreakpoints( IWorkbenchPart part, ISelection selection ) {
return ( canToggleLineBreakpoints( part, selection )
|| canToggleWatchpoints( part, selection )
@@ -210,6 +217,7 @@ abstract public class AbstractToggleBreakpointAdapter implements IToggleBreakpoi
/* (non-Javadoc)
* @see org.eclipse.debug.ui.actions.IToggleBreakpointsTargetExtension#toggleBreakpoints(org.eclipse.ui.IWorkbenchPart, org.eclipse.jface.viewers.ISelection)
*/
+ @Override
public void toggleBreakpoints( IWorkbenchPart part, ISelection selection ) throws CoreException {
if ( canToggleLineBreakpoints( part, selection ) ) {
toggleLineBreakpoints( part, selection );
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AbstractViewActionDelegate.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AbstractViewActionDelegate.java
index 7a6987eb2b..e64b23b7fc 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AbstractViewActionDelegate.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AbstractViewActionDelegate.java
@@ -50,6 +50,7 @@ public abstract class AbstractViewActionDelegate extends ActionDelegate implemen
/* (non-Javadoc)
* @see org.eclipse.ui.IViewActionDelegate#init(org.eclipse.ui.IViewPart)
*/
+ @Override
public void init( IViewPart view ) {
setView( view );
DebugPlugin.getDefault().addDebugEventListener( this );
@@ -65,6 +66,7 @@ public abstract class AbstractViewActionDelegate extends ActionDelegate implemen
/* (non-Javadoc)
* @see org.eclipse.ui.IActionDelegate2#dispose()
*/
+ @Override
public void dispose() {
IWorkbenchWindow window = getWindow();
if ( window != null ) {
@@ -77,6 +79,7 @@ public abstract class AbstractViewActionDelegate extends ActionDelegate implemen
/* (non-Javadoc)
* @see org.eclipse.ui.IActionDelegate2#init(org.eclipse.jface.action.IAction)
*/
+ @Override
public void init( IAction action ) {
setAction( action );
action.setEnabled( false );
@@ -94,10 +97,12 @@ public abstract class AbstractViewActionDelegate extends ActionDelegate implemen
/* (non-Javadoc)
* @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
*/
+ @Override
public void run( IAction action ) {
final MultiStatus ms = new MultiStatus( CDebugUIPlugin.getUniqueIdentifier(), DebugException.REQUEST_FAILED, "", null ); //$NON-NLS-1$
BusyIndicator.showWhile( Display.getCurrent(), new Runnable() {
+ @Override
public void run() {
try {
doAction();
@@ -137,6 +142,7 @@ public abstract class AbstractViewActionDelegate extends ActionDelegate implemen
/* (non-Javadoc)
* @see org.eclipse.ui.ISelectionListener#selectionChanged(org.eclipse.ui.IWorkbenchPart, org.eclipse.jface.viewers.ISelection)
*/
+ @Override
public void selectionChanged( IWorkbenchPart part, ISelection selection ) {
setSelection( selection );
update();
@@ -153,6 +159,7 @@ public abstract class AbstractViewActionDelegate extends ActionDelegate implemen
/* (non-Javadoc)
* @see org.eclipse.debug.core.IDebugEventSetListener#handleDebugEvents(org.eclipse.debug.core.DebugEvent[])
*/
+ @Override
public void handleDebugEvents( final DebugEvent[] events ) {
if ( getWindow() == null || getAction() == null ) {
return;
@@ -163,6 +170,7 @@ public abstract class AbstractViewActionDelegate extends ActionDelegate implemen
}
Runnable r = new Runnable() {
+ @Override
public void run() {
for( int i = 0; i < events.length; i++ ) {
if ( events[i].getSource() != null ) {
@@ -177,6 +185,7 @@ public abstract class AbstractViewActionDelegate extends ActionDelegate implemen
/* (non-Javadoc)
* @see org.eclipse.ui.actions.ActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
*/
+ @Override
public void selectionChanged( IAction action, ISelection selection ) {
update();
}
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 91eccdb25b..c4637bfbfe 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
@@ -36,6 +36,7 @@ public class AddEventBreakpointActionDelegate extends ActionDelegate implements
/* (non-Javadoc)
* @see org.eclipse.ui.IViewActionDelegate#init(org.eclipse.ui.IViewPart)
*/
+ @Override
public void init(IViewPart view) {
setView(view);
}
@@ -51,6 +52,7 @@ public class AddEventBreakpointActionDelegate extends ActionDelegate implements
/* (non-Javadoc)
* @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
*/
+ @Override
public void run(IAction action) {
AddEventBreakpointDialog dlg = new AddEventBreakpointDialog(CDebugUIPlugin.getActiveWorkbenchShell());
if (dlg.isActive() == false) {
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AddExpressionEditorActionDelegate.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AddExpressionEditorActionDelegate.java
index 0b1c15b9b0..a2f9d8f46b 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AddExpressionEditorActionDelegate.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AddExpressionEditorActionDelegate.java
@@ -42,6 +42,7 @@ public class AddExpressionEditorActionDelegate extends ActionDelegate implements
/* (non-Javadoc)
* @see org.eclipse.ui.IEditorActionDelegate#setActiveEditor(org.eclipse.jface.action.IAction, org.eclipse.ui.IEditorPart)
*/
+ @Override
public void setActiveEditor( IAction action, IEditorPart targetEditor ) {
setEditorPart( targetEditor );
}
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 134543ddc1..3f68222e94 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
@@ -58,6 +58,7 @@ public class AddGlobalsActionDelegate extends ActionDelegate implements IViewAct
super( parentShell, input, contentProvider, labelProvider, message );
}
+ @Override
protected Control createDialogArea( Composite parent ) {
Control da = super.createDialogArea( parent );
getViewer().setSorter( new ViewerSorter() );
@@ -80,6 +81,7 @@ public class AddGlobalsActionDelegate extends ActionDelegate implements IViewAct
*
* @see org.eclipse.ui.IViewActionDelegate#init(IViewPart)
*/
+ @Override
public void init( IViewPart view ) {
fView = view;
view.getSite().getPage().addPartListener( this );
@@ -91,6 +93,7 @@ public class AddGlobalsActionDelegate extends ActionDelegate implements IViewAct
*
* @see org.eclipse.ui.ISelectionListener#selectionChanged(IWorkbenchPart, ISelection)
*/
+ @Override
public void selectionChanged( IWorkbenchPart part, ISelection selection ) {
if ( part != null && part.getSite().getId().equals( IDebugUIConstants.ID_DEBUG_VIEW ) ) {
if ( selection instanceof IStructuredSelection ) {
@@ -108,12 +111,14 @@ public class AddGlobalsActionDelegate extends ActionDelegate implements IViewAct
*
* @see org.eclipse.ui.IActionDelegate#run(IAction)
*/
+ @Override
public void run( IAction action ) {
final IStructuredSelection selection = getSelection();
if ( selection == null || selection.size() != 1 )
return;
BusyIndicator.showWhile( Display.getCurrent(), new Runnable() {
+ @Override
public void run() {
try {
doAction( selection.getFirstElement() );
@@ -144,6 +149,7 @@ public class AddGlobalsActionDelegate extends ActionDelegate implements IViewAct
*
* @see org.eclipse.ui.IActionDelegate#selectionChanged(IAction, ISelection)
*/
+ @Override
public void selectionChanged( IAction action, ISelection selection ) {
setAction( action );
if ( getView() != null ) {
@@ -162,6 +168,7 @@ public class AddGlobalsActionDelegate extends ActionDelegate implements IViewAct
*
* @see org.eclipse.ui.IPartListener#partActivated(IWorkbenchPart)
*/
+ @Override
public void partActivated( IWorkbenchPart part ) {
}
@@ -170,6 +177,7 @@ public class AddGlobalsActionDelegate extends ActionDelegate implements IViewAct
*
* @see org.eclipse.ui.IPartListener#partBroughtToTop(IWorkbenchPart)
*/
+ @Override
public void partBroughtToTop( IWorkbenchPart part ) {
}
@@ -178,6 +186,7 @@ public class AddGlobalsActionDelegate extends ActionDelegate implements IViewAct
*
* @see org.eclipse.ui.IPartListener#partClosed(IWorkbenchPart)
*/
+ @Override
public void partClosed( IWorkbenchPart part ) {
if ( part.equals( getView() ) ) {
dispose();
@@ -189,6 +198,7 @@ public class AddGlobalsActionDelegate extends ActionDelegate implements IViewAct
*
* @see org.eclipse.ui.IPartListener#partDeactivated(IWorkbenchPart)
*/
+ @Override
public void partDeactivated( IWorkbenchPart part ) {
}
@@ -197,6 +207,7 @@ public class AddGlobalsActionDelegate extends ActionDelegate implements IViewAct
*
* @see org.eclipse.ui.IPartListener#partOpened(IWorkbenchPart)
*/
+ @Override
public void partOpened( IWorkbenchPart part ) {
}
@@ -224,6 +235,7 @@ public class AddGlobalsActionDelegate extends ActionDelegate implements IViewAct
return fSelection;
}
+ @Override
public void dispose() {
if ( getView() != null ) {
getView().getViewSite().getPage().removeSelectionListener( IDebugUIConstants.ID_DEBUG_VIEW, this );
@@ -242,17 +254,21 @@ public class AddGlobalsActionDelegate extends ActionDelegate implements IViewAct
private SortedListSelectionDialog createDialog() {
return new SortedListSelectionDialog( getView().getSite().getShell(), fGlobals, new IStructuredContentProvider() {
+ @Override
public void inputChanged( Viewer viewer, Object oldInput, Object newInput ) {
}
+ @Override
public void dispose() {
}
+ @Override
public Object[] getElements( Object parent ) {
return getGlobals();
}
}, new LabelProvider() {
+ @Override
public String getText( Object element ) {
if ( element instanceof IGlobalVariableDescriptor ) {
String path = ""; //$NON-NLS-1$
@@ -313,6 +329,7 @@ public class AddGlobalsActionDelegate extends ActionDelegate implements IViewAct
*
* @see org.eclipse.ui.IActionDelegate2#init(org.eclipse.jface.action.IAction)
*/
+ @Override
public void init( IAction action ) {
super.init( action );
Object element = DebugUITools.getDebugContext();
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AddRegisterGroupActionDelegate.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AddRegisterGroupActionDelegate.java
index 8cab43b673..f673c7f09f 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AddRegisterGroupActionDelegate.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AddRegisterGroupActionDelegate.java
@@ -27,6 +27,7 @@ public class AddRegisterGroupActionDelegate extends AbstractViewActionDelegate {
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.internal.ui.actions.AbstractViewActionDelegate#getErrorDialogTitle()
*/
+ @Override
protected String getErrorDialogTitle() {
return ActionMessages.getString( "AddRegisterGroupActionDelegate.0" ); //$NON-NLS-1$
}
@@ -34,6 +35,7 @@ public class AddRegisterGroupActionDelegate extends AbstractViewActionDelegate {
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.internal.ui.actions.AbstractViewActionDelegate#getErrorDialogMessage()
*/
+ @Override
protected String getErrorDialogMessage() {
return ActionMessages.getString( "AddRegisterGroupActionDelegate.1" ); //$NON-NLS-1$
}
@@ -41,6 +43,7 @@ public class AddRegisterGroupActionDelegate extends AbstractViewActionDelegate {
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.internal.ui.actions.AbstractViewActionDelegate#doAction()
*/
+ @Override
protected void doAction() throws DebugException {
RegisterGroupDialog dialog = new RegisterGroupDialog( getView().getSite().getShell(), getDebugTarget().getRegisterDescriptors() );
if ( dialog.open() == Window.OK ) {
@@ -51,6 +54,7 @@ public class AddRegisterGroupActionDelegate extends AbstractViewActionDelegate {
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.internal.ui.actions.AbstractViewActionDelegate#update()
*/
+ @Override
protected void update() {
IAction action = getAction();
if ( action != null ) {
@@ -62,12 +66,14 @@ public class AddRegisterGroupActionDelegate extends AbstractViewActionDelegate {
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.internal.ui.actions.AbstractViewActionDelegate#doHandleDebugEvent(org.eclipse.debug.core.DebugEvent)
*/
+ @Override
protected void doHandleDebugEvent( DebugEvent event ) {
}
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.internal.ui.actions.AbstractViewActionDelegate#init(org.eclipse.jface.action.IAction)
*/
+ @Override
public void init( IAction action ) {
super.init( action );
Object element = DebugUITools.getDebugContext();
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AddWatchpointActionDelegate.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AddWatchpointActionDelegate.java
index a66a6ad439..2cdfb1f1aa 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AddWatchpointActionDelegate.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AddWatchpointActionDelegate.java
@@ -39,6 +39,7 @@ public class AddWatchpointActionDelegate extends ActionDelegate implements IView
/* (non-Javadoc)
* @see org.eclipse.ui.IViewActionDelegate#init(org.eclipse.ui.IViewPart)
*/
+ @Override
public void init( IViewPart view ) {
setView( view );
}
@@ -54,6 +55,7 @@ public class AddWatchpointActionDelegate extends ActionDelegate implements IView
/* (non-Javadoc)
* @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
*/
+ @Override
public void run( IAction action ) {
AddWatchpointDialog dlg = new AddWatchpointDialog( CDebugUIPlugin.getActiveWorkbenchShell(), getMemorySpaceManagement() );
if ( dlg.open() == Window.OK ) {
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 8851f4048a..8d6bab9451 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
@@ -83,6 +83,7 @@ public class AddWatchpointDialog extends Dialog implements ModifyListener, Selec
/* (non-Javadoc)
* @see org.eclipse.jface.dialogs.Dialog#createDialogArea(org.eclipse.swt.widgets.Composite)
*/
+ @Override
protected Control createDialogArea( Composite parent ) {
// The button bar will work better if we make the parent composite
// a single column grid layout. For the widgets we add, we want a
@@ -257,6 +258,7 @@ public class AddWatchpointDialog extends Dialog implements ModifyListener, Selec
fRangeField.setLayoutData( gridData );
fRangeField.setText( fRange );
fRangeField.addVerifyListener( new VerifyListener() {
+ @Override
public void verifyText( VerifyEvent e ) {
e.doit = verifyIntegerTextAddition( fRangeField.getText(), e.character );
}
@@ -294,6 +296,7 @@ public class AddWatchpointDialog extends Dialog implements ModifyListener, Selec
/* (non-Javadoc)
* @see org.eclipse.jface.window.Window#configureShell(org.eclipse.swt.widgets.Shell)
*/
+ @Override
protected void configureShell( Shell newShell ) {
super.configureShell( newShell );
@@ -304,6 +307,7 @@ public class AddWatchpointDialog extends Dialog implements ModifyListener, Selec
/* (non-Javadoc)
* @see org.eclipse.jface.dialogs.Dialog#okPressed()
*/
+ @Override
protected void okPressed() {
fExpression = fExpressionInput.getText().trim();
if ( fExpression.length() > 0 ) {
@@ -321,6 +325,7 @@ public class AddWatchpointDialog extends Dialog implements ModifyListener, Selec
/* (non-Javadoc)
* @see org.eclipse.swt.events.ModifyListener#modifyText(org.eclipse.swt.events.ModifyEvent)
*/
+ @Override
public void modifyText( ModifyEvent e ) {
updateUI();
}
@@ -328,6 +333,7 @@ public class AddWatchpointDialog extends Dialog implements ModifyListener, Selec
/* (non-Javadoc)
* @see org.eclipse.jface.dialogs.TrayDialog#createButtonBar(org.eclipse.swt.widgets.Composite)
*/
+ @Override
protected Control createButtonBar( Composite parent ) {
return super.createButtonBar( parent );
}
@@ -352,6 +358,7 @@ public class AddWatchpointDialog extends Dialog implements ModifyListener, Selec
/* (non-Javadoc)
* @see org.eclipse.swt.events.SelectionListener#widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent)
*/
+ @Override
public void widgetDefaultSelected( SelectionEvent e ) {
// ignore
}
@@ -359,6 +366,7 @@ public class AddWatchpointDialog extends Dialog implements ModifyListener, Selec
/* (non-Javadoc)
* @see org.eclipse.swt.events.SelectionListener#widgetSelected(org.eclipse.swt.events.SelectionEvent)
*/
+ @Override
public void widgetSelected( SelectionEvent e ) {
updateUI();
}
@@ -417,6 +425,7 @@ public class AddWatchpointDialog extends Dialog implements ModifyListener, Selec
fMemorySpace = memorySpace;
}
+ @Override
protected void createButtonsForButtonBar(Composite parent) {
// override so we can change the initial okay enabled state
createButton( parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL,
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AddWatchpointOnMemoryActionDelegate.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AddWatchpointOnMemoryActionDelegate.java
index a0afdb1187..c403a5e34e 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AddWatchpointOnMemoryActionDelegate.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AddWatchpointOnMemoryActionDelegate.java
@@ -47,6 +47,7 @@ public class AddWatchpointOnMemoryActionDelegate extends AddWatchpointActionDele
/**
* @see IActionDelegate#run(IAction)
*/
+ @Override
public void run(IAction action) {
IStructuredSelection selection = getSelection();
@@ -119,6 +120,7 @@ public class AddWatchpointOnMemoryActionDelegate extends AddWatchpointActionDele
/* (non-Javadoc)
* @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
*/
+ @Override
public void selectionChanged(IAction action, ISelection selection) {}
private IStructuredSelection getSelection() {
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AddWatchpointOnVariableActionDelegate.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AddWatchpointOnVariableActionDelegate.java
index c78a083c8f..131616fb9a 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AddWatchpointOnVariableActionDelegate.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AddWatchpointOnVariableActionDelegate.java
@@ -50,15 +50,18 @@ public class AddWatchpointOnVariableActionDelegate extends AddWatchpointActionDe
/* (non-Javadoc)
* @see org.eclipse.ui.IObjectActionDelegate#setActivePart(org.eclipse.jface.action.IAction, org.eclipse.ui.IWorkbenchPart)
*/
+ @Override
public void setActivePart(IAction action, IWorkbenchPart targetPart) {
fActivePart = targetPart;
}
private static class GetSizeRequest extends CRequest implements ICWatchpointTarget.GetSizeRequest {
int fSize = -1;
+ @Override
public int getSize() {
return fSize;
}
+ @Override
public void setSize(int size) {
fSize = size;
}
@@ -67,6 +70,7 @@ public class AddWatchpointOnVariableActionDelegate extends AddWatchpointActionDe
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.internal.ui.actions.AddWatchpointActionDelegate#run(org.eclipse.jface.action.IAction)
*/
+ @Override
public void run(IAction action) {
if (fVar == null) {
return;
@@ -82,6 +86,7 @@ public class AddWatchpointOnVariableActionDelegate extends AddWatchpointActionDe
// operation...or at least the API is (the CDI implementation reacts
// synchronously)
final ICWatchpointTarget.GetSizeRequest request = new GetSizeRequest() {
+ @Override
public void done() {
if (isSuccess()) {
// Now that we have the size, put up a dialog to create the watchpoint
@@ -123,9 +128,11 @@ public class AddWatchpointOnVariableActionDelegate extends AddWatchpointActionDe
private class CanCreateWatchpointRequest extends CRequest implements ICWatchpointTarget.CanCreateWatchpointRequest {
boolean fCanCreate;
+ @Override
public boolean getCanCreate() {
return fCanCreate;
}
+ @Override
public void setCanCreate(boolean value) {
fCanCreate = value;
}
@@ -137,6 +144,7 @@ public class AddWatchpointOnVariableActionDelegate extends AddWatchpointActionDe
* @see org.eclipse.ui.actions.ActionDelegate#selectionChanged(org.eclipse.jface.action.IAction,
* org.eclipse.jface.viewers.ISelection)
*/
+ @Override
public void selectionChanged(final IAction action, ISelection selection) {
fVar = null;
if (selection == null || selection.isEmpty()) {
@@ -148,6 +156,7 @@ public class AddWatchpointOnVariableActionDelegate extends AddWatchpointActionDe
fVar = (ICWatchpointTarget)DebugPlugin.getAdapter(obj, ICWatchpointTarget.class);
if (fVar != null) {
final ICWatchpointTarget.CanCreateWatchpointRequest request = new CanCreateWatchpointRequest() {
+ @Override
public void done() {
action.setEnabled(getCanCreate());
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/CBreakpointPropertiesHandler.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/CBreakpointPropertiesHandler.java
index 3035a3c998..5dc43b5f29 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/CBreakpointPropertiesHandler.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/CBreakpointPropertiesHandler.java
@@ -41,6 +41,7 @@ public class CBreakpointPropertiesHandler extends AbstractHandler {
super();
}
+ @Override
public Object execute(ExecutionEvent event) throws ExecutionException {
IWorkbenchPart part = HandlerUtil.getActivePartChecked(event);
ICBreakpoint bp = getBreakpoint(event.getApplicationContext());
@@ -53,17 +54,21 @@ public class CBreakpointPropertiesHandler extends AbstractHandler {
PropertyDialogAction propertyAction = new PropertyDialogAction( part.getSite(), new ISelectionProvider() {
- public void addSelectionChangedListener( ISelectionChangedListener listener ) {
+ @Override
+ public void addSelectionChangedListener( ISelectionChangedListener listener ) {
}
- public ISelection getSelection() {
+ @Override
+ public ISelection getSelection() {
return new StructuredSelection( bpContext );
}
- public void removeSelectionChangedListener( ISelectionChangedListener listener ) {
+ @Override
+ public void removeSelectionChangedListener( ISelectionChangedListener listener ) {
}
- public void setSelection( ISelection selection ) {
+ @Override
+ public void setSelection( ISelection selection ) {
assert false; // Not supported
}
} );
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/CBreakpointPropertiesRulerAction.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/CBreakpointPropertiesRulerAction.java
index 542d8233ab..1a82827cb9 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/CBreakpointPropertiesRulerAction.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/CBreakpointPropertiesRulerAction.java
@@ -46,20 +46,25 @@ public class CBreakpointPropertiesRulerAction extends AbstractBreakpointRulerAct
/* (non-Javadoc)
* @see Action#run()
*/
+ @Override
public void run() {
if ( fContext != null ) {
PropertyDialogAction action = new PropertyDialogAction( getTargetPart().getSite(), new ISelectionProvider() {
+ @Override
public void addSelectionChangedListener( ISelectionChangedListener listener ) {
}
+ @Override
public ISelection getSelection() {
return new StructuredSelection( fContext );
}
+ @Override
public void removeSelectionChangedListener( ISelectionChangedListener listener ) {
}
+ @Override
public void setSelection( ISelection selection ) {
}
} );
@@ -71,6 +76,7 @@ public class CBreakpointPropertiesRulerAction extends AbstractBreakpointRulerAct
/* (non-Javadoc)
* @see IUpdate#update()
*/
+ @Override
public void update() {
IBreakpoint breakpoint = getBreakpoint();
if (breakpoint instanceof ICBreakpoint) {
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/CBreakpointPropertiesRulerActionDelegate.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/CBreakpointPropertiesRulerActionDelegate.java
index 3bedd46564..30adad5629 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/CBreakpointPropertiesRulerActionDelegate.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/CBreakpointPropertiesRulerActionDelegate.java
@@ -20,6 +20,7 @@ public class CBreakpointPropertiesRulerActionDelegate extends AbstractRulerActio
/* (non-Javadoc)
* @see org.eclipse.ui.texteditor.AbstractRulerActionDelegate#createAction(org.eclipse.ui.texteditor.ITextEditor, org.eclipse.jface.text.source.IVerticalRulerInfo)
*/
+ @Override
protected IAction createAction( ITextEditor editor, IVerticalRulerInfo rulerInfo ) {
return new CBreakpointPropertiesRulerAction( editor, rulerInfo );
}
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 eafc57d448..e8fa5b431b 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
@@ -28,6 +28,7 @@ public class CanFormatObjectTester extends PropertyTester {
}
+ @Override
public boolean test(Object receiver, String property, Object[] args, Object expectedValue) {
if (property.equals("canFormatObject")) { //$NON-NLS-1$
if (receiver instanceof ICVariable) { return expectedValue == Boolean.TRUE; }
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/CastToArrayActionHandler.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/CastToArrayActionHandler.java
index 278950ea01..3264b4644d 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/CastToArrayActionHandler.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/CastToArrayActionHandler.java
@@ -96,6 +96,7 @@ public class CastToArrayActionHandler extends AbstractHandler {
*
* @see org.eclipse.jface.window.Window#configureShell(org.eclipse.swt.widgets.Shell)
*/
+ @Override
protected void configureShell( Shell newShell ) {
super.configureShell( newShell );
newShell.setText( ActionMessages.getString( "CastToArrayActionDelegate.0" ) ); //$NON-NLS-1$
@@ -107,6 +108,7 @@ public class CastToArrayActionHandler extends AbstractHandler {
*
* @see org.eclipse.jface.dialogs.Dialog#createButtonsForButtonBar(org.eclipse.swt.widgets.Composite)
*/
+ @Override
protected void createButtonsForButtonBar( Composite parent ) {
// create OK and Cancel buttons by default
fOkButton = createButton( parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true );
@@ -129,6 +131,7 @@ public class CastToArrayActionHandler extends AbstractHandler {
*
* @see org.eclipse.jface.dialogs.Dialog#createDialogArea(org.eclipse.swt.widgets.Composite)
*/
+ @Override
protected Control createDialogArea( Composite parent ) {
Composite composite = (Composite)super.createDialogArea( parent );
createDialogFields( composite );
@@ -147,6 +150,7 @@ public class CastToArrayActionHandler extends AbstractHandler {
fFirstIndexText = ControlFactory.createTextField( composite );
fFirstIndexText.addModifyListener( new ModifyListener() {
+ @Override
public void modifyText( ModifyEvent e ) {
validateInput();
}
@@ -156,6 +160,7 @@ public class CastToArrayActionHandler extends AbstractHandler {
fLengthText = ControlFactory.createTextField( composite );
fLengthText.addModifyListener( new ModifyListener() {
+ @Override
public void modifyText( ModifyEvent e ) {
validateInput();
}
@@ -209,6 +214,7 @@ public class CastToArrayActionHandler extends AbstractHandler {
*
* @see org.eclipse.jface.dialogs.Dialog#buttonPressed(int)
*/
+ @Override
protected void buttonPressed( int buttonId ) {
if ( buttonId == IDialogConstants.OK_ID ) {
String firstIndex = fFirstIndexText.getText().trim();
@@ -239,6 +245,7 @@ public class CastToArrayActionHandler extends AbstractHandler {
super();
}
+ @Override
public Object execute(ExecutionEvent event) throws ExecutionException {
fTargetPart = HandlerUtil.getActivePartChecked(event);
if ( getCastToArray() == null || getCastToArray().length == 0 )
@@ -246,6 +253,7 @@ public class CastToArrayActionHandler extends AbstractHandler {
BusyIndicator.showWhile( Display.getCurrent(), new Runnable() {
+ @Override
public void run() {
try {
doAction( getCastToArray() );
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/CastToTypeActionHandler.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/CastToTypeActionHandler.java
index df9a1409c6..f3b2341e1c 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/CastToTypeActionHandler.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/CastToTypeActionHandler.java
@@ -50,6 +50,7 @@ public class CastToTypeActionHandler extends AbstractHandler {
public CastToTypeInputValidator() {
}
+ @Override
public String isValid( String newText ) {
if ( newText.trim().length() == 0 ) {
return ActionMessages.getString( "CastToTypeActionDelegate.0" ); //$NON-NLS-1$
@@ -72,6 +73,7 @@ public class CastToTypeActionHandler extends AbstractHandler {
*
* @see org.eclipse.jface.window.Window#configureShell(org.eclipse.swt.widgets.Shell)
*/
+ @Override
protected void configureShell( Shell shell ) {
super.configureShell( shell );
shell.setImage( CDebugImages.get( CDebugImages.IMG_LCL_CAST_TO_TYPE ) );
@@ -88,6 +90,7 @@ public class CastToTypeActionHandler extends AbstractHandler {
super();
}
+ @Override
public Object execute(ExecutionEvent event) throws ExecutionException {
fTargetPart = HandlerUtil.getActivePartChecked(event);
@@ -96,6 +99,7 @@ public class CastToTypeActionHandler extends AbstractHandler {
BusyIndicator.showWhile( Display.getCurrent(), new Runnable() {
+ @Override
public void run() {
try {
doAction( getCastToType() );
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/CollapseAllModulesAction.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/CollapseAllModulesAction.java
index 8d7377c309..622e833b8d 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/CollapseAllModulesAction.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/CollapseAllModulesAction.java
@@ -29,6 +29,7 @@ public class CollapseAllModulesAction extends ActionDelegate implements IViewAct
/* (non-Javadoc)
* @see org.eclipse.ui.IViewActionDelegate#init(org.eclipse.ui.IViewPart)
*/
+ @Override
public void init( IViewPart view ) {
Assert.isLegal( view instanceof IDebugView );
fView = (IDebugView)view;
@@ -37,6 +38,7 @@ public class CollapseAllModulesAction extends ActionDelegate implements IViewAct
/* (non-Javadoc)
* @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
*/
+ @Override
public void run( IAction action ) {
Viewer viewer = getView().getViewer();
if ( viewer instanceof TreeViewer ) {
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ConfigureColumnsAction.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ConfigureColumnsAction.java
index 984d76e82c..b3be5d2352 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ConfigureColumnsAction.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ConfigureColumnsAction.java
@@ -45,20 +45,23 @@ public class ConfigureColumnsAction extends Action implements IUpdate {
/* (non-Javadoc)
* @see org.eclipse.jface.viewers.IStructuredContentProvider#getElements(java.lang.Object)
*/
- public Object[] getElements( Object inputElement ) {
+ @Override
+ public Object[] getElements( Object inputElement ) {
return ((IColumnPresentation)inputElement).getAvailableColumns();
}
/* (non-Javadoc)
* @see org.eclipse.jface.viewers.IContentProvider#dispose()
*/
- public void dispose() {
+ @Override
+ public void dispose() {
}
/* (non-Javadoc)
* @see org.eclipse.jface.viewers.IContentProvider#inputChanged(org.eclipse.jface.viewers.Viewer, java.lang.Object, java.lang.Object)
*/
- public void inputChanged( Viewer viewer, Object oldInput, Object newInput ) {
+ @Override
+ public void inputChanged( Viewer viewer, Object oldInput, Object newInput ) {
}
}
@@ -66,7 +69,8 @@ public class ConfigureColumnsAction extends Action implements IUpdate {
private Map fImages = new HashMap();
- public Image getImage( Object element ) {
+ @Override
+ public Image getImage( Object element ) {
ImageDescriptor imageDescriptor = fViewer.getColumnPresentation().getImageDescriptor( (String)element );
if ( imageDescriptor != null ) {
Image image = (Image)fImages.get( imageDescriptor );
@@ -79,11 +83,13 @@ public class ConfigureColumnsAction extends Action implements IUpdate {
return null;
}
- public String getText( Object element ) {
+ @Override
+ public String getText( Object element ) {
return fViewer.getColumnPresentation().getHeader( (String)element );
}
- public void dispose() {
+ @Override
+ public void dispose() {
super.dispose();
Iterator iterator = fImages.values().iterator();
while( iterator.hasNext() ) {
@@ -104,14 +110,16 @@ public class ConfigureColumnsAction extends Action implements IUpdate {
/* (non-Javadoc)
* @see org.eclipse.ui.texteditor.IUpdate#update()
*/
- public void update() {
+ @Override
+ public void update() {
setEnabled( fViewer.isShowColumns() );
}
/* (non-Javadoc)
* @see org.eclipse.jface.action.Action#run()
*/
- public void run() {
+ @Override
+ public void run() {
ListSelectionDialog dialog = new ListSelectionDialog( fViewer.getControl().getShell(), fViewer.getColumnPresentation(), new ColumnContentProvider(),
new ColumnLabelProvider(), "Select the &columns to display:" );
PlatformUI.getWorkbench().getHelpSystem().setHelp( this, ICDebugHelpContextIds.CONFIGURE_COLUMNS_DIALOG );
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/DisableVariablesActionDelegate.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/DisableVariablesActionDelegate.java
index 8cf09bec14..b73e7ace2a 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/DisableVariablesActionDelegate.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/DisableVariablesActionDelegate.java
@@ -21,6 +21,7 @@ public class DisableVariablesActionDelegate extends EnableVariablesActionDelegat
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.internal.ui.actions.EnableVariablesActionDelegate#isEnableAction()
*/
+ @Override
protected boolean isEnableAction()
{
return false;
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/EditRegisterGroupActionDelegate.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/EditRegisterGroupActionDelegate.java
index b10252fcdb..f1b27ff9ae 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/EditRegisterGroupActionDelegate.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/EditRegisterGroupActionDelegate.java
@@ -34,12 +34,14 @@ public class EditRegisterGroupActionDelegate extends ActionDelegate implements I
/* (non-Javadoc)
* @see org.eclipse.ui.IObjectActionDelegate#setActivePart(org.eclipse.jface.action.IAction, org.eclipse.ui.IWorkbenchPart)
*/
+ @Override
public void setActivePart( IAction action, IWorkbenchPart targetPart ) {
}
/* (non-Javadoc)
* @see org.eclipse.ui.actions.ActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
*/
+ @Override
public void selectionChanged( IAction action, ISelection selection ) {
if ( selection instanceof IStructuredSelection ) {
IStructuredSelection ss = (IStructuredSelection)selection;
@@ -59,6 +61,7 @@ public class EditRegisterGroupActionDelegate extends ActionDelegate implements I
/* (non-Javadoc)
* @see org.eclipse.ui.actions.ActionDelegate#run(org.eclipse.jface.action.IAction)
*/
+ @Override
public void run( IAction action ) {
IPersistableRegisterGroup group = getRegisterGroup();
IRegisterDescriptor[] all;
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/EnableDisableBreakpointRulerAction.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/EnableDisableBreakpointRulerAction.java
index 27b81542b0..858d371b37 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/EnableDisableBreakpointRulerAction.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/EnableDisableBreakpointRulerAction.java
@@ -37,6 +37,7 @@ public class EnableDisableBreakpointRulerAction extends AbstractBreakpointRulerA
/* (non-Javadoc)
* @see org.eclipse.jface.action.IAction#run()
*/
+ @Override
public void run() {
if ( fBreakpoint != null ) {
try {
@@ -53,6 +54,7 @@ public class EnableDisableBreakpointRulerAction extends AbstractBreakpointRulerA
/* (non-Javadoc)
* @see org.eclipse.ui.texteditor.IUpdate#update()
*/
+ @Override
public void update() {
fBreakpoint = getBreakpoint();
setEnabled( fBreakpoint != null );
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/EnableDisableBreakpointRulerActionDelegate.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/EnableDisableBreakpointRulerActionDelegate.java
index 7ded3f47aa..de3df78eb7 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/EnableDisableBreakpointRulerActionDelegate.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/EnableDisableBreakpointRulerActionDelegate.java
@@ -20,6 +20,7 @@ public class EnableDisableBreakpointRulerActionDelegate extends AbstractRulerAct
/*
* @see AbstractRulerActionDelegate#createAction(ITextEditor, IVerticalRulerInfo)
*/
+ @Override
protected IAction createAction( ITextEditor editor, IVerticalRulerInfo rulerInfo ) {
return new EnableDisableBreakpointRulerAction( editor, rulerInfo );
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/EnableVariablesActionDelegate.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/EnableVariablesActionDelegate.java
index dec761bb09..819c642ad9 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/EnableVariablesActionDelegate.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/EnableVariablesActionDelegate.java
@@ -64,6 +64,7 @@ public class EnableVariablesActionDelegate implements IViewActionDelegate {
*
* @see org.eclipse.ui.IViewActionDelegate#init(org.eclipse.ui.IViewPart)
*/
+ @Override
public void init( IViewPart view ) {
setView( view );
}
@@ -73,6 +74,7 @@ public class EnableVariablesActionDelegate implements IViewActionDelegate {
*
* @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
*/
+ @Override
public void run( IAction action ) {
IStructuredSelection selection = getSelection();
final int size = selection.size();
@@ -82,6 +84,7 @@ public class EnableVariablesActionDelegate implements IViewActionDelegate {
final MultiStatus ms = new MultiStatus( CDebugUIPlugin.getUniqueIdentifier(), DebugException.REQUEST_FAILED, ActionMessages.getString( "EnableVariablesActionDelegate.0" ), null ); //$NON-NLS-1$
BusyIndicator.showWhile( Display.getCurrent(), new Runnable() {
+ @Override
public void run() {
while( it.hasNext() ) {
IEnableDisableTarget target = getEnableDisableTarget( it.next() );
@@ -111,6 +114,7 @@ public class EnableVariablesActionDelegate implements IViewActionDelegate {
*
* @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
*/
+ @Override
public void selectionChanged( IAction action, ISelection selection ) {
setAction( action );
if ( !(selection instanceof IStructuredSelection) )
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ExpressionDialog.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ExpressionDialog.java
index 24cde1cdc8..2248cf98e0 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ExpressionDialog.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ExpressionDialog.java
@@ -50,18 +50,21 @@ public class ExpressionDialog extends Dialog {
fExpression = expression;
}
+ @Override
protected void configureShell( Shell shell ) {
super.configureShell( shell );
shell.setText( ActionMessages.getString( "ExpressionDialog.0" ) ); //$NON-NLS-1$
shell.setImage( DebugUITools.getImage( IDebugUIConstants.IMG_OBJS_EXPRESSION ) );
}
+ @Override
protected Control createContents( Composite parent ) {
Control control = super.createContents( parent );
setOkButtonState();
return control;
}
+ @Override
protected Control createDialogArea( Composite parent ) {
Composite composite = new Composite( parent, SWT.NONE );
composite.setLayout( new GridLayout() );
@@ -72,6 +75,7 @@ public class ExpressionDialog extends Dialog {
return composite;
}
+ @Override
protected void createButtonsForButtonBar( Composite parent ) {
fBtnOk = createButton( parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true );
createButton( parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false );
@@ -112,6 +116,7 @@ public class ExpressionDialog extends Dialog {
private void addModifyListener( Text text ) {
text.addModifyListener( new ModifyListener() {
+ @Override
public void modifyText( ModifyEvent e ) {
setOkButtonState();
}
@@ -127,6 +132,7 @@ public class ExpressionDialog extends Dialog {
*
* @see org.eclipse.jface.dialogs.Dialog#okPressed()
*/
+ @Override
protected void okPressed() {
storeData();
super.okPressed();
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/LoadModuleSymbolsActionDelegate.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/LoadModuleSymbolsActionDelegate.java
index 5ce4ee18a6..148373788f 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/LoadModuleSymbolsActionDelegate.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/LoadModuleSymbolsActionDelegate.java
@@ -36,6 +36,7 @@ public class LoadModuleSymbolsActionDelegate extends ActionDelegate implements I
/* (non-Javadoc)
* @see org.eclipse.ui.IObjectActionDelegate#setActivePart(org.eclipse.jface.action.IAction, org.eclipse.ui.IWorkbenchPart)
*/
+ @Override
public void setActivePart( IAction action, IWorkbenchPart targetPart ) {
}
@@ -50,12 +51,14 @@ public class LoadModuleSymbolsActionDelegate extends ActionDelegate implements I
/* (non-Javadoc)
* @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
*/
+ @Override
public void run( IAction action ) {
final ICModule module = getModule();
if ( module != null ) {
DebugPlugin.getDefault().asyncExec(
new Runnable() {
+ @Override
public void run() {
try {
doAction( module );
@@ -75,6 +78,7 @@ public class LoadModuleSymbolsActionDelegate extends ActionDelegate implements I
/* (non-Javadoc)
* @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
*/
+ @Override
public void selectionChanged( IAction action, ISelection selection ) {
if ( selection instanceof IStructuredSelection ) {
if ( ((IStructuredSelection)selection).size() == 1 ) {
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/LoadSymbolsForAllActionDelegate.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/LoadSymbolsForAllActionDelegate.java
index b50c106a2f..82e2034c78 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/LoadSymbolsForAllActionDelegate.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/LoadSymbolsForAllActionDelegate.java
@@ -32,6 +32,7 @@ public class LoadSymbolsForAllActionDelegate extends AbstractViewActionDelegate
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.internal.ui.actions.AbstractViewActionDelegate#getErrorDialogTitle()
*/
+ @Override
protected String getErrorDialogTitle() {
return ActionMessages.getString( "LoadSymbolsForAllActionDelegate.Error_1" ); //$NON-NLS-1$
}
@@ -39,6 +40,7 @@ public class LoadSymbolsForAllActionDelegate extends AbstractViewActionDelegate
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.internal.ui.actions.AbstractViewActionDelegate#getErrorDialogMessage()
*/
+ @Override
protected String getErrorDialogMessage() {
return ActionMessages.getString( "LoadSymbolsForAllActionDelegate.Error(s)_occurred_loading_the_symbols_1" ); //$NON-NLS-1$
}
@@ -46,6 +48,7 @@ public class LoadSymbolsForAllActionDelegate extends AbstractViewActionDelegate
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.internal.ui.actions.AbstractViewActionDelegate#doAction()
*/
+ @Override
protected void doAction() throws DebugException {
ICDebugTarget target = getDebugTarget( getView().getViewer().getInput() );
if ( target != null ) {
@@ -54,6 +57,7 @@ public class LoadSymbolsForAllActionDelegate extends AbstractViewActionDelegate
DebugPlugin.getDefault().asyncExec(
new Runnable() {
+ @Override
public void run() {
try {
mr.loadSymbolsForAllModules();
@@ -70,6 +74,7 @@ public class LoadSymbolsForAllActionDelegate extends AbstractViewActionDelegate
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.internal.ui.actions.AbstractViewActionDelegate#update()
*/
+ @Override
protected void update() {
IAction action = getAction();
if ( getView() != null && getView().getViewer() != null && action != null ) {
@@ -81,6 +86,7 @@ public class LoadSymbolsForAllActionDelegate extends AbstractViewActionDelegate
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.internal.ui.actions.AbstractViewActionDelegate#doHandleDebugEvent(org.eclipse.debug.core.DebugEvent)
*/
+ @Override
protected void doHandleDebugEvent( DebugEvent event ) {
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ModulesPropertiesActionDelegate.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ModulesPropertiesActionDelegate.java
index daec7a180d..1541f27d23 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ModulesPropertiesActionDelegate.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ModulesPropertiesActionDelegate.java
@@ -49,6 +49,7 @@ public class ModulesPropertiesActionDelegate extends ActionDelegate implements I
/* (non-Javadoc)
* @see org.eclipse.ui.IObjectActionDelegate#setActivePart(org.eclipse.jface.action.IAction, org.eclipse.ui.IWorkbenchPart)
*/
+ @Override
public void setActivePart( IAction action, IWorkbenchPart targetPart ) {
fTargetPart = targetPart;
}
@@ -56,19 +57,24 @@ public class ModulesPropertiesActionDelegate extends ActionDelegate implements I
/* (non-Javadoc)
* @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
*/
+ @Override
public void run( IAction action ) {
PropertyDialogAction propertyAction = new PropertyDialogAction( getActivePart().getSite(), new ISelectionProvider() {
+ @Override
public void addSelectionChangedListener( ISelectionChangedListener listener ) {
}
+ @Override
public ISelection getSelection() {
return new StructuredSelection( getModule() );
}
+ @Override
public void removeSelectionChangedListener( ISelectionChangedListener listener ) {
}
+ @Override
public void setSelection( ISelection selection ) {
}
} );
@@ -78,6 +84,7 @@ public class ModulesPropertiesActionDelegate extends ActionDelegate implements I
/* (non-Javadoc)
* @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
*/
+ @Override
public void selectionChanged( IAction action, ISelection selection ) {
if ( selection instanceof IStructuredSelection ) {
Object element = ((IStructuredSelection)selection).getFirstElement();
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/MoveToLineActionDelegate.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/MoveToLineActionDelegate.java
index 17bab32640..213dd7f1ca 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/MoveToLineActionDelegate.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/MoveToLineActionDelegate.java
@@ -64,6 +64,7 @@ public class MoveToLineActionDelegate implements IEditorActionDelegate, IActionD
update();
}
+ @Override
public void debugContextChanged(DebugContextEvent event) {
contextActivated(event.getContext());
}
@@ -73,6 +74,7 @@ public class MoveToLineActionDelegate implements IEditorActionDelegate, IActionD
/*(non-Javadoc)
* @see org.eclipse.ui.IActionDelegate2#dispose()
*/
+ @Override
public void dispose() {
DebugUITools.getDebugContextManager().getContextService(fActivePart.getSite().getWorkbenchWindow()).removeDebugContextListener(fContextListener);
fActivePart = null;
@@ -82,6 +84,7 @@ public class MoveToLineActionDelegate implements IEditorActionDelegate, IActionD
/* (non-Javadoc)
* @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
*/
+ @Override
public void run(IAction action) {
if (fPartTarget != null && fTargetElement != null) {
try {
@@ -94,6 +97,7 @@ public class MoveToLineActionDelegate implements IEditorActionDelegate, IActionD
/* (non-Javadoc)
* @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
*/
+ @Override
public void selectionChanged(IAction action, ISelection selection) {
this.fAction = action;
update();
@@ -107,6 +111,7 @@ public class MoveToLineActionDelegate implements IEditorActionDelegate, IActionD
return;
}
Runnable r = new Runnable() {
+ @Override
public void run() {
boolean enabled = false;
if (fPartTarget != null && fTargetElement != null) {
@@ -128,18 +133,21 @@ public class MoveToLineActionDelegate implements IEditorActionDelegate, IActionD
/* (non-Javadoc)
* @see org.eclipse.ui.IActionDelegate2#init(org.eclipse.jface.action.IAction)
*/
+ @Override
public void init(IAction action) {
this.fAction = action;
}
/* (non-Javadoc)
* @see org.eclipse.ui.IActionDelegate2#runWithEvent(org.eclipse.jface.action.IAction, org.eclipse.swt.widgets.Event)
*/
+ @Override
public void runWithEvent(IAction action, Event event) {
run(action);
}
/* (non-Javadoc)
* @see org.eclipse.ui.IEditorActionDelegate#setActiveEditor(org.eclipse.jface.action.IAction, org.eclipse.ui.IEditorPart)
*/
+ @Override
public void setActiveEditor(IAction action, IEditorPart targetEditor) {
init(action);
bindTo(targetEditor);
@@ -148,6 +156,7 @@ public class MoveToLineActionDelegate implements IEditorActionDelegate, IActionD
/* (non-Javadoc)
* @see org.eclipse.ui.IViewActionDelegate#init(org.eclipse.ui.IViewPart)
*/
+ @Override
public void init(IViewPart view) {
bindTo(view);
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/MoveToLineAdapter.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/MoveToLineAdapter.java
index 04a8af6376..98fe0c88f2 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/MoveToLineAdapter.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/MoveToLineAdapter.java
@@ -48,6 +48,7 @@ public class MoveToLineAdapter implements IMoveToLineTarget {
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.internal.ui.actions.IMoveToLineTarget#moveToLine(org.eclipse.ui.IWorkbenchPart, org.eclipse.jface.viewers.ISelection, org.eclipse.debug.core.model.ISuspendResume)
*/
+ @Override
public void moveToLine( IWorkbenchPart part, ISelection selection, ISuspendResume target ) throws CoreException {
String errorMessage = null;
if ( part instanceof ITextEditor ) {
@@ -75,6 +76,7 @@ public class MoveToLineAdapter implements IMoveToLineTarget {
final IMoveToLine moveToLine = (IMoveToLine)((IAdaptable)target).getAdapter( IMoveToLine.class );
if ( moveToLine != null && moveToLine.canMoveToLine( path.toPortableString(), lineNumber ) ) {
Runnable r = new Runnable() {
+ @Override
public void run() {
try {
moveToLine.moveToLine(path.toPortableString(), lineNumber );
@@ -100,6 +102,7 @@ public class MoveToLineAdapter implements IMoveToLineTarget {
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.internal.ui.actions.IMoveToLineTarget#canMoveToLine(org.eclipse.ui.IWorkbenchPart, org.eclipse.jface.viewers.ISelection, org.eclipse.debug.core.model.ISuspendResume)
*/
+ @Override
public boolean canMoveToLine( IWorkbenchPart part, ISelection selection, ISuspendResume target ) {
if ( target instanceof IAdaptable ) {
if ( part instanceof IEditorPart ) {
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/NumberFormatsContribution.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/NumberFormatsContribution.java
index e56506918d..36b018bc6c 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/NumberFormatsContribution.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/NumberFormatsContribution.java
@@ -113,6 +113,7 @@ public class NumberFormatsContribution extends CompoundContributionItem implemen
return items;
}
+ @Override
public void initialize(IServiceLocator serviceLocator) {
fServiceLocator = serviceLocator;
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/OpenNewViewActionDelegate.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/OpenNewViewActionDelegate.java
index 49d651fe84..a06155ab6a 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/OpenNewViewActionDelegate.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/OpenNewViewActionDelegate.java
@@ -33,6 +33,7 @@ public class OpenNewViewActionDelegate implements IViewActionDelegate {
* (non-Javadoc)
* @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
*/
+ @Override
public void run(IAction action) {
IViewSite site = fView.getViewSite();
String viewId = site.getId();
@@ -66,6 +67,7 @@ public class OpenNewViewActionDelegate implements IViewActionDelegate {
* (non-Javadoc)
* @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
*/
+ @Override
public void selectionChanged(IAction action, ISelection selection) {
}
@@ -73,6 +75,7 @@ public class OpenNewViewActionDelegate implements IViewActionDelegate {
* (non-Javadoc)
* @see org.eclipse.ui.IViewActionDelegate#init(org.eclipse.ui.IViewPart)
*/
+ @Override
public void init(IViewPart view) {
fView = view;
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/PinDebugContextActionDelegate.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/PinDebugContextActionDelegate.java
index 1af96dc6ba..fbc1a5fde7 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/PinDebugContextActionDelegate.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/PinDebugContextActionDelegate.java
@@ -58,6 +58,7 @@ public class PinDebugContextActionDelegate implements IViewActionDelegate, IActi
/* (non-Javadoc)
* @see org.eclipse.ui.IActionDelegate2#runWithEvent(org.eclipse.jface.action.IAction, org.eclipse.swt.widgets.Event)
*/
+ @Override
public void runWithEvent(IAction action, Event event) {
run(action);
}
@@ -65,6 +66,7 @@ public class PinDebugContextActionDelegate implements IViewActionDelegate, IActi
/* (non-Javadoc)
* @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
*/
+ @Override
public void run(IAction action) {
if (action.isChecked()) {
fProvider = DebugEventFilterService.getInstance().addDebugEventFilter(fPart, getActiveDebugContext());
@@ -85,12 +87,14 @@ public class PinDebugContextActionDelegate implements IViewActionDelegate, IActi
/* (non-Javadoc)
* @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
*/
+ @Override
public void selectionChanged(IAction action, ISelection selection) {
}
/* (non-Javadoc)
* @see org.eclipse.ui.IActionDelegate2#init(org.eclipse.jface.action.IAction)
*/
+ @Override
public void init(IAction action) {
fAction = action;
}
@@ -98,6 +102,7 @@ public class PinDebugContextActionDelegate implements IViewActionDelegate, IActi
/* (non-Javadoc)
* @see org.eclipse.ui.IViewActionDelegate#init(org.eclipse.ui.IViewPart)
*/
+ @Override
public void init(IViewPart view) {
fPart = view;
@@ -108,6 +113,7 @@ public class PinDebugContextActionDelegate implements IViewActionDelegate, IActi
}
fPart.addPropertyListener(new IPropertyListener() {
+ @Override
public void propertyChanged(Object source, int propId) {
if (IWorkbenchPartConstants.PROP_CONTENT_DESCRIPTION == propId) {
// if the content description is not the pinned context label,
@@ -133,7 +139,9 @@ public class PinDebugContextActionDelegate implements IViewActionDelegate, IActi
// in our case, we don't want this behavior.
// Listens to part close and set the check state off.
fPartListener = new IPartListener2() {
+ @Override
public void partBroughtToTop(IWorkbenchPartReference partRef) {}
+ @Override
public void partClosed(IWorkbenchPartReference partRef) {
IWorkbenchPart part = partRef.getPart(false);
if (part.equals(fPart)) {
@@ -143,11 +151,17 @@ public class PinDebugContextActionDelegate implements IViewActionDelegate, IActi
}
}
}
+ @Override
public void partDeactivated(IWorkbenchPartReference partRef) {}
+ @Override
public void partOpened(IWorkbenchPartReference partRef) {}
+ @Override
public void partHidden(IWorkbenchPartReference partRef) {}
+ @Override
public void partVisible(IWorkbenchPartReference partRef) {}
+ @Override
public void partInputChanged(IWorkbenchPartReference partRef) {}
+ @Override
public void partActivated(IWorkbenchPartReference partRef) {}
};
fPart.getSite().getWorkbenchWindow().getPartService().addPartListener(fPartListener);
@@ -156,6 +170,7 @@ public class PinDebugContextActionDelegate implements IViewActionDelegate, IActi
/* (non-Javadoc)
* @see org.eclipse.ui.IActionDelegate2#dispose()
*/
+ @Override
public void dispose() {
DebugUITools.removePartDebugContextListener(fPart.getSite(), this);
fPart.getSite().getWorkbenchWindow().getPartService().removePartListener(fPartListener);
@@ -268,11 +283,13 @@ public class PinDebugContextActionDelegate implements IViewActionDelegate, IActi
/* (non-Javadoc)
* @see org.eclipse.debug.ui.contexts.IDebugContextListener#debugContextChanged(org.eclipse.debug.ui.contexts.DebugContextEvent)
*/
+ @Override
public void debugContextChanged(DebugContextEvent event) {
if (fAction != null && !fAction.isChecked()) {
final boolean pinnable = PinCloneUtils.isPinnable(fPart, event.getContext());
if (pinnable != fAction.isEnabled()) {
PlatformUI.getWorkbench().getDisplay().syncExec(new Runnable() {
+ @Override
public void run() {
fAction.setEnabled(pinnable);
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RegisterGroupDialog.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RegisterGroupDialog.java
index 991a12607b..dff545f0d1 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RegisterGroupDialog.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RegisterGroupDialog.java
@@ -46,6 +46,7 @@ public class RegisterGroupDialog extends TitleAreaDialog {
public class RegisterLabelProvider extends LabelProvider {
+ @Override
public Image getImage( Object element ) {
if ( element instanceof IRegisterDescriptor ) {
return CDebugImages.get( CDebugImages.IMG_OBJS_REGISTER );
@@ -53,6 +54,7 @@ public class RegisterGroupDialog extends TitleAreaDialog {
return super.getImage( element );
}
+ @Override
public String getText( Object element ) {
if ( element instanceof IRegisterDescriptor ) {
IRegisterDescriptor rd = (IRegisterDescriptor)element;
@@ -80,17 +82,20 @@ public class RegisterGroupDialog extends TitleAreaDialog {
fNameField.setLabelText( ActionMessages.getString( "RegisterGroupDialog.3" ) ); //$NON-NLS-1$
fNameField.setTextWithoutUpdate( groupName );
fNameField.setDialogFieldListener( new IDialogFieldListener() {
+ @Override
public void dialogFieldChanged( DialogField field ) {
update();
}
} );
fListField = new CheckedListDialogField( new IListAdapter() {
+ @Override
public void customButtonPressed( DialogField field, int index ) {
// TODO Auto-generated method stub
}
+ @Override
public void selectionChanged( DialogField field ) {
// TODO Auto-generated method stub
@@ -106,6 +111,7 @@ public class RegisterGroupDialog extends TitleAreaDialog {
/* (non-Javadoc)
* @see org.eclipse.jface.dialogs.TitleAreaDialog#createDialogArea(org.eclipse.swt.widgets.Composite)
*/
+ @Override
protected Control createDialogArea( Composite parent ) {
getShell().setText( ActionMessages.getString( "RegisterGroupDialog.5" ) ); //$NON-NLS-1$
setTitle( ActionMessages.getString( "RegisterGroupDialog.6" ) ); //$NON-NLS-1$
@@ -144,6 +150,7 @@ public class RegisterGroupDialog extends TitleAreaDialog {
/* (non-Javadoc)
* @see org.eclipse.jface.dialogs.Dialog#okPressed()
*/
+ @Override
protected void okPressed() {
super.okPressed();
fName = fNameField.getText().trim();
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RemoveAllGlobalsActionDelegate.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RemoveAllGlobalsActionDelegate.java
index 73632f5f44..78d94000c1 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RemoveAllGlobalsActionDelegate.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RemoveAllGlobalsActionDelegate.java
@@ -35,6 +35,7 @@ public class RemoveAllGlobalsActionDelegate extends ActionDelegate implements IV
/* (non-Javadoc)
* @see org.eclipse.ui.IViewActionDelegate#init(org.eclipse.ui.IViewPart)
*/
+ @Override
public void init( IViewPart view ) {
DebugPlugin.getDefault().addDebugEventListener(this);
}
@@ -43,6 +44,7 @@ public class RemoveAllGlobalsActionDelegate extends ActionDelegate implements IV
* (non-Javadoc)
* @see org.eclipse.ui.actions.ActionDelegate#init(org.eclipse.jface.action.IAction)
*/
+ @Override
public void init( IAction action ) {
DebugPlugin.getDefault().addDebugEventListener(this);
fAction = action;
@@ -52,6 +54,7 @@ public class RemoveAllGlobalsActionDelegate extends ActionDelegate implements IV
* (non-Javadoc)
* @see org.eclipse.ui.actions.ActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
*/
+ @Override
public void selectionChanged(IAction action, ISelection selection) {
update();
}
@@ -60,6 +63,7 @@ public class RemoveAllGlobalsActionDelegate extends ActionDelegate implements IV
* (non-Javadoc)
* @see org.eclipse.ui.actions.ActionDelegate#dispose()
*/
+ @Override
public void dispose() {
DebugPlugin.getDefault().removeDebugEventListener(this);
fAction = null;
@@ -68,6 +72,7 @@ public class RemoveAllGlobalsActionDelegate extends ActionDelegate implements IV
/* (non-Javadoc)
* @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
*/
+ @Override
public void run( IAction action ) {
IAdaptable context = DebugUITools.getDebugContext();
if ( context instanceof IDebugElement ) {
@@ -75,6 +80,7 @@ public class RemoveAllGlobalsActionDelegate extends ActionDelegate implements IV
if ( gvm != null ) {
DebugPlugin.getDefault().asyncExec(
new Runnable() {
+ @Override
public void run() {
gvm.removeAllGlobals();
}
@@ -110,6 +116,7 @@ public class RemoveAllGlobalsActionDelegate extends ActionDelegate implements IV
* (non-Javadoc)
* @see org.eclipse.debug.core.IDebugEventSetListener#handleDebugEvents(org.eclipse.debug.core.DebugEvent[])
*/
+ @Override
public void handleDebugEvents( DebugEvent[] events ) {
// The ICGlobalVariableManager will fire a target content-changed
// event when a global is added or removed. Update the enable/disable
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RemoveGlobalsActionDelegate.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RemoveGlobalsActionDelegate.java
index dbfd833b77..bbf5cb56b6 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RemoveGlobalsActionDelegate.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RemoveGlobalsActionDelegate.java
@@ -34,12 +34,14 @@ public class RemoveGlobalsActionDelegate extends ActionDelegate implements IView
/* (non-Javadoc)
* @see org.eclipse.ui.IViewActionDelegate#init(org.eclipse.ui.IViewPart)
*/
+ @Override
public void init( IViewPart view ) {
}
/* (non-Javadoc)
* @see org.eclipse.ui.IActionDelegate2#init(org.eclipse.jface.action.IAction)
*/
+ @Override
public void init( IAction action ) {
setAction( action );
update();
@@ -48,6 +50,7 @@ public class RemoveGlobalsActionDelegate extends ActionDelegate implements IView
/* (non-Javadoc)
* @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
*/
+ @Override
public void run( IAction action ) {
ISelection selection = getSelection();
if ( !(selection instanceof IStructuredSelection) )
@@ -67,6 +70,7 @@ public class RemoveGlobalsActionDelegate extends ActionDelegate implements IView
if ( gvm == null )
return;
Runnable r = new Runnable() {
+ @Override
public void run() {
gvm.removeGlobals( globals );
}
@@ -79,6 +83,7 @@ public class RemoveGlobalsActionDelegate extends ActionDelegate implements IView
*
* @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
*/
+ @Override
public void selectionChanged( IAction action, ISelection selection ) {
setSelection( selection );
update();
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RemoveRegisterGroupActionDelegate.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RemoveRegisterGroupActionDelegate.java
index 62c45d1f80..f35bddb93f 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RemoveRegisterGroupActionDelegate.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RemoveRegisterGroupActionDelegate.java
@@ -40,12 +40,14 @@ public class RemoveRegisterGroupActionDelegate extends ActionDelegate implements
/* (non-Javadoc)
* @see org.eclipse.ui.IObjectActionDelegate#setActivePart(org.eclipse.jface.action.IAction, org.eclipse.ui.IWorkbenchPart)
*/
+ @Override
public void setActivePart( IAction action, IWorkbenchPart targetPart ) {
}
/* (non-Javadoc)
* @see org.eclipse.ui.actions.ActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
*/
+ @Override
public void selectionChanged( IAction action, ISelection selection ) {
ArrayList list = new ArrayList();
if ( selection instanceof IStructuredSelection ) {
@@ -72,6 +74,7 @@ public class RemoveRegisterGroupActionDelegate extends ActionDelegate implements
/* (non-Javadoc)
* @see org.eclipse.ui.actions.ActionDelegate#run(org.eclipse.jface.action.IAction)
*/
+ @Override
public void run( IAction action ) {
IRegisterGroup[] groups = getRegisterGroups();
if ( groups.length > 0 ) {
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RestoreDefaultRegisterGroupsActionDelegate.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RestoreDefaultRegisterGroupsActionDelegate.java
index 2248b64db8..62dd536590 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RestoreDefaultRegisterGroupsActionDelegate.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RestoreDefaultRegisterGroupsActionDelegate.java
@@ -21,18 +21,22 @@ import org.eclipse.jface.viewers.StructuredSelection;
public class RestoreDefaultRegisterGroupsActionDelegate extends AbstractViewActionDelegate {
+ @Override
protected String getErrorDialogTitle() {
return ActionMessages.getString( "RestoreDefaultRegisterGroupsActionDelegate.0" ); //$NON-NLS-1$
}
+ @Override
protected String getErrorDialogMessage() {
return ActionMessages.getString( "RestoreDefaultRegisterGroupsActionDelegate.1" ); //$NON-NLS-1$
}
+ @Override
protected void doAction() throws DebugException {
getDebugTarget().restoreDefaultRegisterGroups();
}
+ @Override
protected void update() {
IAction action = getAction();
if ( action != null ) {
@@ -41,6 +45,7 @@ public class RestoreDefaultRegisterGroupsActionDelegate extends AbstractViewActi
}
}
+ @Override
protected void doHandleDebugEvent( DebugEvent event ) {
}
@@ -55,6 +60,7 @@ public class RestoreDefaultRegisterGroupsActionDelegate extends AbstractViewActi
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.internal.ui.actions.AbstractViewActionDelegate#init(org.eclipse.jface.action.IAction)
*/
+ @Override
public void init( IAction action ) {
super.init( action );
Object element = DebugUITools.getDebugContext();
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RestoreDefaultTypeActionHandler.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RestoreDefaultTypeActionHandler.java
index 20e33687ee..fa69d9576b 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RestoreDefaultTypeActionHandler.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RestoreDefaultTypeActionHandler.java
@@ -47,12 +47,14 @@ public class RestoreDefaultTypeActionHandler extends AbstractHandler {
fCastableItems = castableItems;
}
+ @Override
public Object execute(ExecutionEvent event) throws ExecutionException {
if ( getCastToType() == null || getCastToType().length == 0 )
return null;
BusyIndicator.showWhile( Display.getCurrent(), new Runnable() {
+ @Override
public void run() {
try {
doAction( getCastToType() );
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ResumeAtLineActionDelegate.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ResumeAtLineActionDelegate.java
index cd06a23cdc..1591f55db7 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ResumeAtLineActionDelegate.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ResumeAtLineActionDelegate.java
@@ -64,6 +64,7 @@ public class ResumeAtLineActionDelegate implements IEditorActionDelegate, IActio
update();
}
+ @Override
public void debugContextChanged(DebugContextEvent event) {
contextActivated(event.getContext());
}
@@ -73,6 +74,7 @@ public class ResumeAtLineActionDelegate implements IEditorActionDelegate, IActio
/*(non-Javadoc)
* @see org.eclipse.ui.IActionDelegate2#dispose()
*/
+ @Override
public void dispose() {
DebugUITools.getDebugContextManager().getContextService(fActivePart.getSite().getWorkbenchWindow()).removeDebugContextListener(fContextListener);
fActivePart = null;
@@ -82,6 +84,7 @@ public class ResumeAtLineActionDelegate implements IEditorActionDelegate, IActio
/* (non-Javadoc)
* @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
*/
+ @Override
public void run(IAction action) {
if (fPartTarget != null && fTargetElement != null) {
try {
@@ -94,6 +97,7 @@ public class ResumeAtLineActionDelegate implements IEditorActionDelegate, IActio
/* (non-Javadoc)
* @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
*/
+ @Override
public void selectionChanged(IAction action, ISelection selection) {
this.fAction = action;
update();
@@ -107,6 +111,7 @@ public class ResumeAtLineActionDelegate implements IEditorActionDelegate, IActio
return;
}
Runnable r = new Runnable() {
+ @Override
public void run() {
boolean enabled = false;
if (fPartTarget != null && fTargetElement != null) {
@@ -128,18 +133,21 @@ public class ResumeAtLineActionDelegate implements IEditorActionDelegate, IActio
/* (non-Javadoc)
* @see org.eclipse.ui.IActionDelegate2#init(org.eclipse.jface.action.IAction)
*/
+ @Override
public void init(IAction action) {
this.fAction = action;
}
/* (non-Javadoc)
* @see org.eclipse.ui.IActionDelegate2#runWithEvent(org.eclipse.jface.action.IAction, org.eclipse.swt.widgets.Event)
*/
+ @Override
public void runWithEvent(IAction action, Event event) {
run(action);
}
/* (non-Javadoc)
* @see org.eclipse.ui.IEditorActionDelegate#setActiveEditor(org.eclipse.jface.action.IAction, org.eclipse.ui.IEditorPart)
*/
+ @Override
public void setActiveEditor(IAction action, IEditorPart targetEditor) {
init(action);
bindTo(targetEditor);
@@ -148,6 +156,7 @@ public class ResumeAtLineActionDelegate implements IEditorActionDelegate, IActio
/* (non-Javadoc)
* @see org.eclipse.ui.IViewActionDelegate#init(org.eclipse.ui.IViewPart)
*/
+ @Override
public void init(IViewPart view) {
bindTo(view);
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ResumeAtLineAdapter.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ResumeAtLineAdapter.java
index 0a41a1ba81..7503f8fe84 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ResumeAtLineAdapter.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ResumeAtLineAdapter.java
@@ -48,6 +48,7 @@ public class ResumeAtLineAdapter implements IResumeAtLineTarget {
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.internal.ui.actions.IResumeAtLineTarget#resumeAtLine(org.eclipse.ui.IWorkbenchPart, org.eclipse.jface.viewers.ISelection, org.eclipse.debug.core.model.ISuspendResume)
*/
+ @Override
public void resumeAtLine( IWorkbenchPart part, ISelection selection, ISuspendResume target ) throws CoreException {
String errorMessage = null;
if ( part instanceof ITextEditor ) {
@@ -74,6 +75,7 @@ public class ResumeAtLineAdapter implements IResumeAtLineTarget {
final IResumeAtLine resumeAtLine = (IResumeAtLine)((IAdaptable)target).getAdapter( IResumeAtLine.class );
if ( resumeAtLine != null && resumeAtLine.canResumeAtLine( path.toPortableString(), lineNumber ) ) {
Runnable r = new Runnable() {
+ @Override
public void run() {
try {
resumeAtLine.resumeAtLine( path.toPortableString(), lineNumber );
@@ -99,6 +101,7 @@ public class ResumeAtLineAdapter implements IResumeAtLineTarget {
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.internal.ui.actions.IResumeAtLineTarget#canResumeAtLine(org.eclipse.ui.IWorkbenchPart, org.eclipse.jface.viewers.ISelection, org.eclipse.debug.core.model.ISuspendResume)
*/
+ @Override
public boolean canResumeAtLine( IWorkbenchPart part, ISelection selection, ISuspendResume target ) {
if ( target instanceof IAdaptable ) {
if ( part instanceof IEditorPart ) {
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RetargetAction.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RetargetAction.java
index a133137362..1bbe1882f9 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RetargetAction.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RetargetAction.java
@@ -50,6 +50,7 @@ public abstract class RetargetAction implements IWorkbenchWindowActionDelegate,
/* (non-Javadoc)
* @see org.eclipse.jface.viewers.ISelection#isEmpty()
*/
+ @Override
public boolean isEmpty() {
return true;
}
@@ -79,6 +80,7 @@ public abstract class RetargetAction implements IWorkbenchWindowActionDelegate,
/* (non-Javadoc)
* @see org.eclipse.ui.IWorkbenchWindowActionDelegate#dispose()
*/
+ @Override
public void dispose() {
fWindow.getPartService().removePartListener(this);
fActivePart = null;
@@ -88,6 +90,7 @@ public abstract class RetargetAction implements IWorkbenchWindowActionDelegate,
/* (non-Javadoc)
* @see org.eclipse.ui.IWorkbenchWindowActionDelegate#init(org.eclipse.ui.IWorkbenchWindow)
*/
+ @Override
public void init(IWorkbenchWindow window) {
this.fWindow = window;
IPartService partService = window.getPartService();
@@ -100,6 +103,7 @@ public abstract class RetargetAction implements IWorkbenchWindowActionDelegate,
/* (non-Javadoc)
* @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
*/
+ @Override
public void run(IAction action) {
if (fTargetAdapter != null) {
try {
@@ -137,6 +141,7 @@ public abstract class RetargetAction implements IWorkbenchWindowActionDelegate,
/* (non-Javadoc)
* @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
*/
+ @Override
public void selectionChanged(IAction action, ISelection selection) {
// if the active part did not provide an adapter, see if the selection does
if (fTargetAdapter == null && selection instanceof IStructuredSelection) {
@@ -158,6 +163,7 @@ public abstract class RetargetAction implements IWorkbenchWindowActionDelegate,
/* (non-Javadoc)
* @see org.eclipse.ui.IPartListener#partActivated(org.eclipse.ui.IWorkbenchPart)
*/
+ @Override
public void partActivated(IWorkbenchPart part) {
fActivePart = part;
IResource resource = (IResource) part.getAdapter(IResource.class);
@@ -196,11 +202,13 @@ public abstract class RetargetAction implements IWorkbenchWindowActionDelegate,
/* (non-Javadoc)
* @see org.eclipse.ui.IPartListener#partBroughtToTop(org.eclipse.ui.IWorkbenchPart)
*/
+ @Override
public void partBroughtToTop(IWorkbenchPart part) {
}
/* (non-Javadoc)
* @see org.eclipse.ui.IPartListener#partClosed(org.eclipse.ui.IWorkbenchPart)
*/
+ @Override
public void partClosed(IWorkbenchPart part) {
clearPart(part);
}
@@ -220,12 +228,14 @@ public abstract class RetargetAction implements IWorkbenchWindowActionDelegate,
/* (non-Javadoc)
* @see org.eclipse.ui.IPartListener#partDeactivated(org.eclipse.ui.IWorkbenchPart)
*/
+ @Override
public void partDeactivated(IWorkbenchPart part) {
clearPart(part);
}
/* (non-Javadoc)
* @see org.eclipse.ui.IPartListener#partOpened(org.eclipse.ui.IWorkbenchPart)
*/
+ @Override
public void partOpened(IWorkbenchPart part) {
}
@@ -256,6 +266,7 @@ public abstract class RetargetAction implements IWorkbenchWindowActionDelegate,
/* (non-Javadoc)
* @see org.eclipse.ui.IActionDelegate2#init(org.eclipse.jface.action.IAction)
*/
+ @Override
public void init(IAction action) {
fAction = action;
}
@@ -263,6 +274,7 @@ public abstract class RetargetAction implements IWorkbenchWindowActionDelegate,
/* (non-Javadoc)
* @see org.eclipse.ui.IActionDelegate2#runWithEvent(org.eclipse.jface.action.IAction, org.eclipse.swt.widgets.Event)
*/
+ @Override
public void runWithEvent(IAction action, Event event) {
run(action);
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RetargetMoveToLineAction.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RetargetMoveToLineAction.java
index d477b609a0..3b6ba5b424 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RetargetMoveToLineAction.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RetargetMoveToLineAction.java
@@ -49,6 +49,7 @@ public class RetargetMoveToLineAction extends RetargetAction {
}
}
+ @Override
public void debugContextChanged(DebugContextEvent event) {
contextActivated(event.getContext());
}
@@ -57,6 +58,7 @@ public class RetargetMoveToLineAction extends RetargetAction {
/* (non-Javadoc)
* @see org.eclipse.ui.IWorkbenchWindowActionDelegate#dispose()
*/
+ @Override
public void dispose() {
DebugUITools.getDebugContextManager().getContextService(fWindow).removeDebugContextListener(fContextListener);
super.dispose();
@@ -64,6 +66,7 @@ public class RetargetMoveToLineAction extends RetargetAction {
/* (non-Javadoc)
* @see org.eclipse.ui.IWorkbenchWindowActionDelegate#init(org.eclipse.ui.IWorkbenchWindow)
*/
+ @Override
public void init(IWorkbenchWindow window) {
super.init(window);
IDebugContextService service = DebugUITools.getDebugContextManager().getContextService(window);
@@ -75,6 +78,7 @@ public class RetargetMoveToLineAction extends RetargetAction {
/* (non-Javadoc)
* @see org.eclipse.debug.internal.ui.actions.RetargetAction#canPerformAction(java.lang.Object, org.eclipse.jface.viewers.ISelection, org.eclipse.ui.IWorkbenchPart)
*/
+ @Override
protected boolean canPerformAction(Object target, ISelection selection, IWorkbenchPart part) {
return fTargetElement != null &&
((IMoveToLineTarget)target).canMoveToLine(part, selection, fTargetElement);
@@ -83,12 +87,14 @@ public class RetargetMoveToLineAction extends RetargetAction {
/* (non-Javadoc)
* @see org.eclipse.debug.internal.ui.actions.RetargetAction#getAdapterClass()
*/
+ @Override
protected Class getAdapterClass() {
return IMoveToLineTarget.class;
}
/* (non-Javadoc)
* @see org.eclipse.debug.internal.ui.actions.RetargetAction#performAction(java.lang.Object, org.eclipse.jface.viewers.ISelection, org.eclipse.ui.IWorkbenchPart)
*/
+ @Override
protected void performAction(Object target, ISelection selection, IWorkbenchPart part) throws CoreException {
((IMoveToLineTarget)target).moveToLine(part, selection, fTargetElement);
}
@@ -96,6 +102,7 @@ public class RetargetMoveToLineAction extends RetargetAction {
/* (non-Javadoc)
* @see org.eclipse.debug.internal.ui.actions.RetargetAction#getOperationUnavailableMessage()
*/
+ @Override
protected String getOperationUnavailableMessage() {
return ActionMessages.getString("RetargetMoveToLineAction.0"); //$NON-NLS-1$
}
@@ -103,6 +110,7 @@ public class RetargetMoveToLineAction extends RetargetAction {
/* (non-Javadoc)
* @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
*/
+ @Override
public void selectionChanged(IAction action, ISelection selection) {
if (fTargetElement == null) {
action.setEnabled(false);
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RetargetResumeAtLineAction.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RetargetResumeAtLineAction.java
index b8554f8427..651f12ae75 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RetargetResumeAtLineAction.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RetargetResumeAtLineAction.java
@@ -49,6 +49,7 @@ public class RetargetResumeAtLineAction extends RetargetAction {
}
}
+ @Override
public void debugContextChanged(DebugContextEvent event) {
contextActivated(event.getContext());
}
@@ -57,6 +58,7 @@ public class RetargetResumeAtLineAction extends RetargetAction {
/* (non-Javadoc)
* @see org.eclipse.ui.IWorkbenchWindowActionDelegate#dispose()
*/
+ @Override
public void dispose() {
DebugUITools.getDebugContextManager().getContextService(fWindow).removeDebugContextListener(fContextListener);
super.dispose();
@@ -64,6 +66,7 @@ public class RetargetResumeAtLineAction extends RetargetAction {
/* (non-Javadoc)
* @see org.eclipse.ui.IWorkbenchWindowActionDelegate#init(org.eclipse.ui.IWorkbenchWindow)
*/
+ @Override
public void init(IWorkbenchWindow window) {
super.init(window);
IDebugContextService service = DebugUITools.getDebugContextManager().getContextService(window);
@@ -75,6 +78,7 @@ public class RetargetResumeAtLineAction extends RetargetAction {
/* (non-Javadoc)
* @see org.eclipse.debug.internal.ui.actions.RetargetAction#canPerformAction(java.lang.Object, org.eclipse.jface.viewers.ISelection, org.eclipse.ui.IWorkbenchPart)
*/
+ @Override
protected boolean canPerformAction(Object target, ISelection selection, IWorkbenchPart part) {
return fTargetElement != null &&
((IResumeAtLineTarget)target).canResumeAtLine(part, selection, fTargetElement);
@@ -83,12 +87,14 @@ public class RetargetResumeAtLineAction extends RetargetAction {
/* (non-Javadoc)
* @see org.eclipse.debug.internal.ui.actions.RetargetAction#getAdapterClass()
*/
+ @Override
protected Class getAdapterClass() {
return IResumeAtLineTarget.class;
}
/* (non-Javadoc)
* @see org.eclipse.debug.internal.ui.actions.RetargetAction#performAction(java.lang.Object, org.eclipse.jface.viewers.ISelection, org.eclipse.ui.IWorkbenchPart)
*/
+ @Override
protected void performAction(Object target, ISelection selection, IWorkbenchPart part) throws CoreException {
((IResumeAtLineTarget)target).resumeAtLine(part, selection, fTargetElement);
}
@@ -96,6 +102,7 @@ public class RetargetResumeAtLineAction extends RetargetAction {
/* (non-Javadoc)
* @see org.eclipse.debug.internal.ui.actions.RetargetAction#getOperationUnavailableMessage()
*/
+ @Override
protected String getOperationUnavailableMessage() {
return ActionMessages.getString("RetargetResumeAtLineAction.0"); //$NON-NLS-1$
}
@@ -103,6 +110,7 @@ public class RetargetResumeAtLineAction extends RetargetAction {
/* (non-Javadoc)
* @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
*/
+ @Override
public void selectionChanged(IAction action, ISelection selection) {
if (fTargetElement == null) {
action.setEnabled(false);
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RetargettableActionAdapterFactory.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RetargettableActionAdapterFactory.java
index d7d2a6322d..a9e0f17cda 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RetargettableActionAdapterFactory.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RetargettableActionAdapterFactory.java
@@ -25,6 +25,7 @@ public class RetargettableActionAdapterFactory implements IAdapterFactory {
/* (non-Javadoc)
* @see org.eclipse.core.runtime.IAdapterFactory#getAdapter(java.lang.Object, java.lang.Class)
*/
+ @Override
@SuppressWarnings("rawtypes")
public Object getAdapter( Object adaptableObject, Class adapterType ) {
if ( adapterType == IRunToLineTarget.class ) {
@@ -45,6 +46,7 @@ public class RetargettableActionAdapterFactory implements IAdapterFactory {
/* (non-Javadoc)
* @see org.eclipse.core.runtime.IAdapterFactory#getAdapterList()
*/
+ @Override
@SuppressWarnings("rawtypes")
public Class[] getAdapterList() {
return new Class[]{ IRunToLineTarget.class,
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RunToLineAdapter.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RunToLineAdapter.java
index 49e589e993..a9ca8aa26b 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RunToLineAdapter.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RunToLineAdapter.java
@@ -51,6 +51,7 @@ public class RunToLineAdapter implements IRunToLineTarget {
/* (non-Javadoc)
* @see org.eclipse.debug.ui.actions.IRunToLineTarget#runToLine(org.eclipse.ui.IWorkbenchPart, org.eclipse.jface.viewers.ISelection, org.eclipse.debug.core.model.ISuspendResume)
*/
+ @Override
public void runToLine( IWorkbenchPart part, ISelection selection, ISuspendResume target ) throws CoreException {
String errorMessage = null;
if ( part instanceof ITextEditor ) {
@@ -78,6 +79,7 @@ public class RunToLineAdapter implements IRunToLineTarget {
if ( runToLine != null && runToLine.canRunToLine( path.toPortableString(), lineNumber ) ) {
Runnable r = new Runnable() {
+ @Override
public void run() {
try {
runToLine.runToLine( path.toPortableString(), lineNumber, DebugUITools.getPreferenceStore().getBoolean( IDebugUIConstants.PREF_SKIP_BREAKPOINTS_DURING_RUN_TO_LINE ) );
@@ -103,6 +105,7 @@ public class RunToLineAdapter implements IRunToLineTarget {
/* (non-Javadoc)
* @see org.eclipse.debug.ui.actions.IRunToLineTarget#canRunToLine(org.eclipse.ui.IWorkbenchPart, org.eclipse.jface.viewers.ISelection, org.eclipse.debug.core.model.ISuspendResume)
*/
+ @Override
public boolean canRunToLine( IWorkbenchPart part, ISelection selection, ISuspendResume target ) {
if ( target instanceof IAdaptable ) {
if ( part instanceof IEditorPart ) {
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ShowFullPathsAction.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ShowFullPathsAction.java
index 5f8a8d328e..6c933ffca9 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ShowFullPathsAction.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ShowFullPathsAction.java
@@ -41,6 +41,7 @@ public class ShowFullPathsAction extends ViewFilterAction {
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.internal.ui.actions.ViewFilterAction#getPreferenceKey()
*/
+ @Override
protected String getPreferenceKey() {
return ICDebugInternalConstants.SHOW_FULL_PATHS_PREF_KEY;
}
@@ -48,6 +49,7 @@ public class ShowFullPathsAction extends ViewFilterAction {
/* (non-Javadoc)
* @see org.eclipse.jface.viewers.ViewerFilter#select(org.eclipse.jface.viewers.Viewer, java.lang.Object, java.lang.Object)
*/
+ @Override
public boolean select( Viewer viewer, Object parentElement, Object element ) {
return true;
}
@@ -65,6 +67,7 @@ public class ShowFullPathsAction extends ViewFilterAction {
pres.setAttribute( CDebugModelPresentation.DISPLAY_FULL_PATHS, Boolean.valueOf( getValue() ) );
BusyIndicator.showWhile( viewer.getControl().getDisplay(),
new Runnable() {
+ @Override
public void run() {
String key = getView().getSite().getId() + "." + getPreferenceKey(); //$NON-NLS-1$
getPreferenceStore().setValue( key, getValue() );
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/SignalActionDelegate.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/SignalActionDelegate.java
index 62beb967d5..75a1b4ad3b 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/SignalActionDelegate.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/SignalActionDelegate.java
@@ -36,6 +36,7 @@ public class SignalActionDelegate extends ActionDelegate implements IObjectActio
*
* @see org.eclipse.ui.IObjectActionDelegate#setActivePart(IAction, IWorkbenchPart)
*/
+ @Override
public void setActivePart( IAction action, IWorkbenchPart targetPart ) {
}
@@ -44,11 +45,13 @@ public class SignalActionDelegate extends ActionDelegate implements IObjectActio
*
* @see org.eclipse.ui.IActionDelegate#run(IAction)
*/
+ @Override
public void run( IAction action ) {
if ( getSignal() != null ) {
final MultiStatus ms = new MultiStatus( CDebugUIPlugin.getUniqueIdentifier(), DebugException.REQUEST_FAILED, ActionMessages.getString( "SignalActionDelegate.0" ), null ); //$NON-NLS-1$
BusyIndicator.showWhile( Display.getCurrent(), new Runnable() {
+ @Override
public void run() {
try {
doAction( getSignal() );
@@ -75,6 +78,7 @@ public class SignalActionDelegate extends ActionDelegate implements IObjectActio
*
* @see org.eclipse.ui.IActionDelegate#selectionChanged(IAction, ISelection)
*/
+ @Override
public void selectionChanged( IAction action, ISelection selection ) {
if ( selection instanceof IStructuredSelection ) {
Object element = ((IStructuredSelection)selection).getFirstElement();
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/SignalPropertiesActionDelegate.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/SignalPropertiesActionDelegate.java
index 9e57e43d59..a9532e5905 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/SignalPropertiesActionDelegate.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/SignalPropertiesActionDelegate.java
@@ -43,6 +43,7 @@ public class SignalPropertiesActionDelegate extends ActionDelegate implements IO
/* (non-Javadoc)
* @see org.eclipse.ui.IObjectActionDelegate#setActivePart(org.eclipse.jface.action.IAction, org.eclipse.ui.IWorkbenchPart)
*/
+ @Override
public void setActivePart( IAction action, IWorkbenchPart targetPart ) {
fTargetPart = targetPart;
}
@@ -50,6 +51,7 @@ public class SignalPropertiesActionDelegate extends ActionDelegate implements IO
/* (non-Javadoc)
* @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
*/
+ @Override
public void selectionChanged( IAction action, ISelection selection ) {
if ( selection instanceof IStructuredSelection ) {
Object element = ((IStructuredSelection)selection).getFirstElement();
@@ -74,19 +76,24 @@ public class SignalPropertiesActionDelegate extends ActionDelegate implements IO
/* (non-Javadoc)
* @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
*/
+ @Override
public void run( IAction action ) {
PropertyDialogAction propertyAction = new PropertyDialogAction( getActivePart().getSite(), new ISelectionProvider() {
+ @Override
public void addSelectionChangedListener( ISelectionChangedListener listener ) {
}
+ @Override
public ISelection getSelection() {
return new StructuredSelection( getSignal() );
}
+ @Override
public void removeSelectionChangedListener( ISelectionChangedListener listener ) {
}
+ @Override
public void setSelection( ISelection selection ) {
}
} );
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ToggleCBreakpointsTargetFactory.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ToggleCBreakpointsTargetFactory.java
index 8b45b869a0..d394abe0a3 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ToggleCBreakpointsTargetFactory.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ToggleCBreakpointsTargetFactory.java
@@ -41,14 +41,16 @@ public class ToggleCBreakpointsTargetFactory implements IToggleBreakpointsTarget
private ToggleBreakpointAdapter fCToggleBreakpointTarget = new ToggleBreakpointAdapter();
- public IToggleBreakpointsTarget createToggleTarget(String targetID) {
+ @Override
+ public IToggleBreakpointsTarget createToggleTarget(String targetID) {
if (TOGGLE_C_BREAKPOINT_TARGET_ID.equals(targetID)) {
return fCToggleBreakpointTarget;
}
return null;
}
- public String getDefaultToggleTarget(IWorkbenchPart part, ISelection selection) {
+ @Override
+ public String getDefaultToggleTarget(IWorkbenchPart part, ISelection selection) {
// Return the debug context as a default if the currently selected context
// is a CDT element. Otherwise return null.
Object element = getDebugContext(part).getFirstElement();
@@ -73,15 +75,18 @@ public class ToggleCBreakpointsTargetFactory implements IToggleBreakpointsTarget
return null;
}
- public String getToggleTargetDescription(String targetID) {
+ @Override
+ public String getToggleTargetDescription(String targetID) {
return ActionMessages.getString("ToggleCBreakpointsTargetFactory.CBreakpointDescription"); //$NON-NLS-1$
}
- public String getToggleTargetName(String targetID) {
+ @Override
+ public String getToggleTargetName(String targetID) {
return ActionMessages.getString("ToggleCBreakpointsTargetFactory.CBreakpointName"); //$NON-NLS-1$
}
- @SuppressWarnings("unchecked")
+ @Override
+ @SuppressWarnings("unchecked")
public Set getToggleTargets(IWorkbenchPart part, ISelection selection) {
return TOGGLE_TARGET_IDS;
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ToggleCTracepointsTargetFactory.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ToggleCTracepointsTargetFactory.java
index 9e5822c157..75789e586b 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ToggleCTracepointsTargetFactory.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ToggleCTracepointsTargetFactory.java
@@ -36,32 +36,37 @@ public class ToggleCTracepointsTargetFactory implements IToggleBreakpointsTarget
private ToggleTracepointAdapter fCToggleTracepointTarget = new ToggleTracepointAdapter();
- public IToggleBreakpointsTarget createToggleTarget(String targetID) {
+ @Override
+ public IToggleBreakpointsTarget createToggleTarget(String targetID) {
if (TOGGLE_C_TRACEPOINT_TARGET_ID.equals(targetID)) {
return fCToggleTracepointTarget;
}
return null;
}
- public String getDefaultToggleTarget(IWorkbenchPart part, ISelection selection) {
+ @Override
+ public String getDefaultToggleTarget(IWorkbenchPart part, ISelection selection) {
return null;
}
- public String getToggleTargetDescription(String targetID) {
+ @Override
+ public String getToggleTargetDescription(String targetID) {
if (TOGGLE_C_TRACEPOINT_TARGET_ID.equals(targetID)) {
return ActionMessages.getString("ToggleCBreakpointsTargetFactory.CTracepointDescription"); //$NON-NLS-1$
}
return null;
}
- public String getToggleTargetName(String targetID) {
+ @Override
+ public String getToggleTargetName(String targetID) {
if (TOGGLE_C_TRACEPOINT_TARGET_ID.equals(targetID)) {
return ActionMessages.getString("ToggleCBreakpointsTargetFactory.CTracepointName"); //$NON-NLS-1$
}
return null;
}
- @SuppressWarnings("unchecked")
+ @Override
+ @SuppressWarnings("unchecked")
public Set getToggleTargets(IWorkbenchPart part, ISelection selection) {
return TOGGLE_TARGET_IDS;
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ToggleInstructionStepModeActionDelegate.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ToggleInstructionStepModeActionDelegate.java
index 4f86b027b7..c7cb99c91b 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ToggleInstructionStepModeActionDelegate.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ToggleInstructionStepModeActionDelegate.java
@@ -46,6 +46,7 @@ public class ToggleInstructionStepModeActionDelegate extends ActionDelegate impl
/* (non-Javadoc)
* @see org.eclipse.core.runtime.Preferences.IPropertyChangeListener#propertyChange(org.eclipse.core.runtime.Preferences.PropertyChangeEvent)
*/
+ @Override
public void propertyChange( PropertyChangeEvent event ) {
IAction action = getAction();
if ( action != null ) {
@@ -60,6 +61,7 @@ public class ToggleInstructionStepModeActionDelegate extends ActionDelegate impl
/* (non-Javadoc)
* @see org.eclipse.ui.IViewActionDelegate#init(org.eclipse.ui.IViewPart)
*/
+ @Override
public void init( IViewPart view ) {
fView = view;
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ToggleShowColumnsAction.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ToggleShowColumnsAction.java
index 62828a745a..b0b57142df 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ToggleShowColumnsAction.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ToggleShowColumnsAction.java
@@ -42,12 +42,14 @@ public class ToggleShowColumnsAction extends Action implements IUpdate {
/* (non-Javadoc)
* @see org.eclipse.jface.action.Action#run()
*/
- public void run() {
+ @Override
+ public void run() {
if ( fViewer.getControl().isDisposed() ) {
return;
}
BusyIndicator.showWhile( fViewer.getControl().getDisplay(), new Runnable() {
- public void run() {
+ @Override
+ public void run() {
fViewer.setShowColumns( isChecked() );
}
} );
@@ -56,7 +58,8 @@ public class ToggleShowColumnsAction extends Action implements IUpdate {
/* (non-Javadoc)
* @see org.eclipse.ui.texteditor.IUpdate#update()
*/
- public void update() {
+ @Override
+ public void update() {
setEnabled( fViewer.canToggleColumns() );
setChecked( fViewer.isShowColumns() );
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/VariableFormatActionDelegate.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/VariableFormatActionDelegate.java
index cfe6089621..8a9182aac3 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/VariableFormatActionDelegate.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/VariableFormatActionDelegate.java
@@ -50,17 +50,20 @@ public class VariableFormatActionDelegate implements IObjectActionDelegate {
/**
* @see org.eclipse.ui.IObjectActionDelegate#setActivePart(IAction, IWorkbenchPart)
*/
+ @Override
public void setActivePart(IAction action, IWorkbenchPart targetPart) {
}
/**
* @see org.eclipse.ui.IActionDelegate#run(IAction)
*/
+ @Override
public void run(IAction action) {
ICVariable[] vars = getVariables();
if (vars != null && vars.length > 0) {
final MultiStatus ms = new MultiStatus(CDebugUIPlugin.getUniqueIdentifier(), DebugException.REQUEST_FAILED, "", null); //$NON-NLS-1$
BusyIndicator.showWhile(Display.getCurrent(), new Runnable() {
+ @Override
public void run() {
try {
doAction(getVariables());
@@ -83,6 +86,7 @@ public class VariableFormatActionDelegate implements IObjectActionDelegate {
/**
* @see org.eclipse.ui.IActionDelegate#selectionChanged(IAction, ISelection)
*/
+ @Override
public void selectionChanged(IAction action, ISelection selection) {
if (selection instanceof IStructuredSelection) {
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ViewFilterAction.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ViewFilterAction.java
index 7cc12f5e3f..90900895df 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ViewFilterAction.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ViewFilterAction.java
@@ -48,6 +48,7 @@ public abstract class ViewFilterAction extends ViewerFilter implements IViewActi
/* (non-Javadoc)
* @see org.eclipse.ui.IViewActionDelegate#init(org.eclipse.ui.IViewPart)
*/
+ @Override
public void init(IViewPart view) {
fView = view;
fAction.setChecked(getPreferenceValue(view));
@@ -57,6 +58,7 @@ public abstract class ViewFilterAction extends ViewerFilter implements IViewActi
/* (non-Javadoc)
* @see org.eclipse.ui.IActionDelegate2#init(org.eclipse.jface.action.IAction)
*/
+ @Override
public void init(IAction action) {
fAction = action;
}
@@ -64,12 +66,14 @@ public abstract class ViewFilterAction extends ViewerFilter implements IViewActi
/* (non-Javadoc)
* @see org.eclipse.ui.IActionDelegate2#dispose()
*/
+ @Override
public void dispose() {
}
/* (non-Javadoc)
* @see org.eclipse.ui.IActionDelegate2#runWithEvent(org.eclipse.jface.action.IAction, org.eclipse.swt.widgets.Event)
*/
+ @Override
public void runWithEvent(IAction action, Event event) {
run(action);
}
@@ -77,6 +81,7 @@ public abstract class ViewFilterAction extends ViewerFilter implements IViewActi
/* (non-Javadoc)
* @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
*/
+ @Override
public void run(IAction action) {
StructuredViewer viewer = getStructuredViewer();
ViewerFilter[] filters = viewer.getFilters();
@@ -116,6 +121,7 @@ public abstract class ViewFilterAction extends ViewerFilter implements IViewActi
* @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction,
* org.eclipse.jface.viewers.ISelection)
*/
+ @Override
public void selectionChanged(IAction action, ISelection selection) {
boolean enable = false;
IDebugView view = (IDebugView)getView().getAdapter(IDebugView.class);
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/commands/ReverseToggleCommandHandler.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/commands/ReverseToggleCommandHandler.java
index 36c119fa67..d6b2e7971e 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/commands/ReverseToggleCommandHandler.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/commands/ReverseToggleCommandHandler.java
@@ -89,7 +89,8 @@ public class ReverseToggleCommandHandler extends DebugCommandHandler implements
super.dispose();
}
- public void debugContextChanged(DebugContextEvent event) {
+ @Override
+ public void debugContextChanged(DebugContextEvent event) {
refresh(event.getContext());
}
@@ -139,7 +140,8 @@ public class ReverseToggleCommandHandler extends DebugCommandHandler implements
}.schedule();
}
- public void updateElement(UIElement element,
+ @Override
+ public void updateElement(UIElement element,
@SuppressWarnings("rawtypes") Map parameters) {
// Make sure the toggle state reflects the actual state
// We must check this, in case we have multiple launches
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/commands/ViewMemoryHandler.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/commands/ViewMemoryHandler.java
index faf9b5be4e..41fb08f40e 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/commands/ViewMemoryHandler.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/commands/ViewMemoryHandler.java
@@ -42,6 +42,7 @@ public class ViewMemoryHandler extends AbstractHandler {
* (non-Javadoc)
* @see org.eclipse.core.commands.AbstractHandler#execute(org.eclipse.core.commands.ExecutionEvent)
*/
+ @Override
public Object execute(ExecutionEvent event) throws ExecutionException {
ISelection selection = HandlerUtil.getCurrentSelection(event);
if (selection instanceof IStructuredSelection) {
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/dialogfields/CheckedListDialogField.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/dialogfields/CheckedListDialogField.java
index 7351cf5ca9..0ac0dd1abe 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/dialogfields/CheckedListDialogField.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/dialogfields/CheckedListDialogField.java
@@ -69,10 +69,12 @@ public class CheckedListDialogField extends ListDialogField {
/*
* @see ListDialogField#createTableViewer
*/
+ @Override
protected TableViewer createTableViewer(Composite parent) {
Table table= new Table(parent, SWT.CHECK + getListStyle());
CheckboxTableViewer tableViewer= new CheckboxTableViewer(table);
tableViewer.addCheckStateListener(new ICheckStateListener() {
+ @Override
public void checkStateChanged(CheckStateChangedEvent e) {
doCheckStateChanged(e);
}
@@ -84,6 +86,7 @@ public class CheckedListDialogField extends ListDialogField {
/*
* @see ListDialogField#getListControl
*/
+ @Override
public Control getListControl(Composite parent) {
Control control= super.getListControl(parent);
if (parent != null) {
@@ -96,6 +99,7 @@ public class CheckedListDialogField extends ListDialogField {
* @see DialogField#dialogFieldChanged
* Hooks in to get element changes to update check model.
*/
+ @Override
public void dialogFieldChanged() {
for (int i= fCheckElements.size() -1; i >= 0; i--) {
if (!fElements.contains(fCheckElements.get(i))) {
@@ -192,6 +196,7 @@ public class CheckedListDialogField extends ListDialogField {
/*
* @see ListDialogField#getManagedButtonState
*/
+ @Override
protected boolean getManagedButtonState(ISelection sel, int index) {
if (index == fCheckAllButtonIndex) {
return !fElements.isEmpty();
@@ -204,6 +209,7 @@ public class CheckedListDialogField extends ListDialogField {
/*
* @see ListDialogField#extraButtonPressed
*/
+ @Override
protected boolean managedButtonPressed(int index) {
if (index == fCheckAllButtonIndex) {
checkAll(true);
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/dialogfields/ComboDialogField.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/dialogfields/ComboDialogField.java
index 215495c4fd..ba9ae2635d 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/dialogfields/ComboDialogField.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/dialogfields/ComboDialogField.java
@@ -45,6 +45,7 @@ public class ComboDialogField extends DialogField {
/*
* @see DialogField#doFillIntoGrid
*/
+ @Override
public Control[] doFillIntoGrid(Composite parent, int nColumns) {
assertEnoughColumns(nColumns);
@@ -59,6 +60,7 @@ public class ComboDialogField extends DialogField {
/*
* @see DialogField#getNumberOfControls
*/
+ @Override
public int getNumberOfControls() {
return 2;
}
@@ -76,6 +78,7 @@ public class ComboDialogField extends DialogField {
/*
* @see DialogField#setFocus
*/
+ @Override
public boolean setFocus() {
if (isOkToUse(fComboControl)) {
fComboControl.setFocus();
@@ -94,15 +97,18 @@ public class ComboDialogField extends DialogField {
if (fComboControl == null) {
assertCompositeNotNull(parent);
fModifyListener= new ModifyListener() {
+ @Override
public void modifyText(ModifyEvent e) {
doModifyText(e);
}
};
SelectionListener selectionListener= new SelectionListener() {
+ @Override
public void widgetSelected(SelectionEvent e) {
doSelectionChanged(e);
}
+ @Override
public void widgetDefaultSelected(SelectionEvent e) {
}
};
@@ -145,6 +151,7 @@ public class ComboDialogField extends DialogField {
/*
* @see DialogField#updateEnableState
*/
+ @Override
protected void updateEnableState() {
super.updateEnableState();
if (isOkToUse(fComboControl)) {
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/dialogfields/DialogField.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/dialogfields/DialogField.java
index f6864d8d48..6d4d4dd465 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/dialogfields/DialogField.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/dialogfields/DialogField.java
@@ -85,6 +85,7 @@ public class DialogField {
if (display != null) {
display.asyncExec(
new Runnable() {
+ @Override
public void run() {
setFocus();
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/dialogfields/LayoutUtil.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/dialogfields/LayoutUtil.java
index b48eeb35ed..595e6cae1d 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/dialogfields/LayoutUtil.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/dialogfields/LayoutUtil.java
@@ -56,6 +56,7 @@ public class LayoutUtil {
* @param marginHeight The margin height to be used by the composite
* @deprecated
*/
+ @Deprecated
public static void doDefaultLayout(Composite parent, DialogField[] editors, boolean labelOnTop, int minWidth, int minHeight, int marginWidth, int marginHeight) {
int nCulumns= getNumberOfColumns(editors);
Control[][] controls= new Control[editors.length][];
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/dialogfields/ListDialogField.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/dialogfields/ListDialogField.java
index 96a01afb52..b7cd827435 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/dialogfields/ListDialogField.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/dialogfields/ListDialogField.java
@@ -177,6 +177,7 @@ public class ListDialogField extends DialogField {
/*
* @see DialogField#doFillIntoGrid
*/
+ @Override
public Control[] doFillIntoGrid(Composite parent, int nColumns) {
PixelConverter converter= new PixelConverter(parent);
@@ -214,6 +215,7 @@ public class ListDialogField extends DialogField {
/*
* @see DialogField#getNumberOfControls
*/
+ @Override
public int getNumberOfControls() {
return 3;
}
@@ -315,9 +317,11 @@ public class ListDialogField extends DialogField {
assertCompositeNotNull(parent);
SelectionListener listener= new SelectionListener() {
+ @Override
public void widgetDefaultSelected(SelectionEvent e) {
doButtonSelected(e);
}
+ @Override
public void widgetSelected(SelectionEvent e) {
doButtonSelected(e);
}
@@ -368,6 +372,7 @@ public class ListDialogField extends DialogField {
/*
* @see DialogField#dialogFieldChanged
*/
+ @Override
public void dialogFieldChanged() {
super.dialogFieldChanged();
updateButtonState();
@@ -403,6 +408,7 @@ public class ListDialogField extends DialogField {
/*
* @see DialogField#updateEnableState
*/
+ @Override
protected void updateEnableState() {
super.updateEnableState();
@@ -614,6 +620,7 @@ public class ListDialogField extends DialogField {
if (isOkToUse(fTableControl)) {
Display d= fTableControl.getDisplay();
d.asyncExec(new Runnable() {
+ @Override
public void run() {
if (isOkToUse(fTableControl)) {
selectElements(selection);
@@ -736,6 +743,7 @@ public class ListDialogField extends DialogField {
// ------- ITableContentProvider Interface ------------
+ @Override
public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
// will never happen
}
@@ -744,15 +752,18 @@ public class ListDialogField extends DialogField {
return false;
}
+ @Override
public void dispose() {
}
+ @Override
public Object[] getElements(Object obj) {
return fElements.toArray();
}
// ------- ISelectionChangedListener Interface ------------
+ @Override
public void selectionChanged(SelectionChangedEvent event) {
doListSelected(event);
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/dialogfields/SelectionButtonDialogField.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/dialogfields/SelectionButtonDialogField.java
index c318d84954..da1aba5eb4 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/dialogfields/SelectionButtonDialogField.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/dialogfields/SelectionButtonDialogField.java
@@ -78,6 +78,7 @@ public class SelectionButtonDialogField extends DialogField {
/*
* @see DialogField#doFillIntoGrid
*/
+ @Override
public Control[] doFillIntoGrid(Composite parent, int nColumns) {
assertEnoughColumns(nColumns);
@@ -97,6 +98,7 @@ public class SelectionButtonDialogField extends DialogField {
/*
* @see DialogField#getNumberOfControls
*/
+ @Override
public int getNumberOfControls() {
return 1;
}
@@ -118,9 +120,11 @@ public class SelectionButtonDialogField extends DialogField {
fButton.setEnabled(isEnabled());
fButton.setSelection(fIsSelected);
fButton.addSelectionListener(new SelectionListener() {
+ @Override
public void widgetDefaultSelected(SelectionEvent e) {
doWidgetSelected(e);
}
+ @Override
public void widgetSelected(SelectionEvent e) {
doWidgetSelected(e);
}
@@ -177,6 +181,7 @@ public class SelectionButtonDialogField extends DialogField {
/*
* @see DialogField#updateEnableState
*/
+ @Override
protected void updateEnableState() {
super.updateEnableState();
if (isOkToUse(fButton)) {
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/dialogfields/SelectionButtonDialogFieldGroup.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/dialogfields/SelectionButtonDialogFieldGroup.java
index 451899b7ef..52c14fdc03 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/dialogfields/SelectionButtonDialogFieldGroup.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/dialogfields/SelectionButtonDialogFieldGroup.java
@@ -80,6 +80,7 @@ public class SelectionButtonDialogFieldGroup extends DialogField {
/*
* @see DialogField#doFillIntoGrid
*/
+ @Override
public Control[] doFillIntoGrid(Composite parent, int nColumns) {
assertEnoughColumns(nColumns);
@@ -105,6 +106,7 @@ public class SelectionButtonDialogFieldGroup extends DialogField {
/*
* @see DialogField#doFillIntoGrid
*/
+ @Override
public int getNumberOfControls() {
return (fGroupBorderStyle == SWT.NONE) ? 2 : 1;
}
@@ -150,9 +152,11 @@ public class SelectionButtonDialogFieldGroup extends DialogField {
fButtonComposite.setLayout(layout);
SelectionListener listener= new SelectionListener() {
+ @Override
public void widgetDefaultSelected(SelectionEvent e) {
doWidgetSelected(e);
}
+ @Override
public void widgetSelected(SelectionEvent e) {
doWidgetSelected(e);
}
@@ -224,6 +228,7 @@ public class SelectionButtonDialogFieldGroup extends DialogField {
// ------ enable / disable management
+ @Override
protected void updateEnableState() {
super.updateEnableState();
if (fButtons != null) {
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/dialogfields/Separator.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/dialogfields/Separator.java
index 635e3b6b88..ab1a642387 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/dialogfields/Separator.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/dialogfields/Separator.java
@@ -55,6 +55,7 @@ public class Separator extends DialogField {
/*
* @see DialogField#doFillIntoGrid
*/
+ @Override
public Control[] doFillIntoGrid(Composite parent, int nColumns) {
return doFillIntoGrid(parent, nColumns, 4);
}
@@ -62,6 +63,7 @@ public class Separator extends DialogField {
/*
* @see DialogField#getNumberOfControls
*/
+ @Override
public int getNumberOfControls() {
return 1;
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/dialogfields/StringButtonDialogField.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/dialogfields/StringButtonDialogField.java
index b802f78b93..4641ee2db1 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/dialogfields/StringButtonDialogField.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/dialogfields/StringButtonDialogField.java
@@ -60,6 +60,7 @@ public class StringButtonDialogField extends StringDialogField {
/*
* @see DialogField#doFillIntoGrid
*/
+ @Override
public Control[] doFillIntoGrid(Composite parent, int nColumns) {
assertEnoughColumns(nColumns);
@@ -76,6 +77,7 @@ public class StringButtonDialogField extends StringDialogField {
/*
* @see DialogField#getNumberOfControls
*/
+ @Override
public int getNumberOfControls() {
return 3;
}
@@ -104,9 +106,11 @@ public class StringButtonDialogField extends StringDialogField {
fBrowseButton.setText(fBrowseButtonLabel);
fBrowseButton.setEnabled(isEnabled() && fButtonEnabled);
fBrowseButton.addSelectionListener(new SelectionListener() {
+ @Override
public void widgetDefaultSelected(SelectionEvent e) {
changeControlPressed();
}
+ @Override
public void widgetSelected(SelectionEvent e) {
changeControlPressed();
}
@@ -131,6 +135,7 @@ public class StringButtonDialogField extends StringDialogField {
/*
* @see DialogField#updateEnableState
*/
+ @Override
protected void updateEnableState() {
super.updateEnableState();
if (isOkToUse(fBrowseButton)) {
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/dialogfields/StringButtonStatusDialogField.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/dialogfields/StringButtonStatusDialogField.java
index 3458cf3968..47d99a8427 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/dialogfields/StringButtonStatusDialogField.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/dialogfields/StringButtonStatusDialogField.java
@@ -89,6 +89,7 @@ public class StringButtonStatusDialogField extends StringButtonDialogField {
/*
* @see DialogField#doFillIntoGrid
*/
+ @Override
public Control[] doFillIntoGrid(Composite parent, int nColumns) {
assertEnoughColumns(nColumns);
@@ -107,6 +108,7 @@ public class StringButtonStatusDialogField extends StringButtonDialogField {
/*
* @see DialogField#getNumberOfControls
*/
+ @Override
public int getNumberOfControls() {
return 4;
}
@@ -157,6 +159,7 @@ public class StringButtonStatusDialogField extends StringButtonDialogField {
/*
* @see DialogField#updateEnableState
*/
+ @Override
protected void updateEnableState() {
super.updateEnableState();
if (isOkToUse(fStatusLabelControl)) {
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/dialogfields/StringDialogField.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/dialogfields/StringDialogField.java
index 0cafbe492d..63412307e8 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/dialogfields/StringDialogField.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/dialogfields/StringDialogField.java
@@ -38,6 +38,7 @@ public class StringDialogField extends DialogField {
/*
* @see DialogField#doFillIntoGrid
*/
+ @Override
public Control[] doFillIntoGrid(Composite parent, int nColumns) {
assertEnoughColumns(nColumns);
@@ -52,6 +53,7 @@ public class StringDialogField extends DialogField {
/*
* @see DialogField#getNumberOfControls
*/
+ @Override
public int getNumberOfControls() {
return 2;
}
@@ -69,6 +71,7 @@ public class StringDialogField extends DialogField {
/*
* @see DialogField#setFocus
*/
+ @Override
public boolean setFocus() {
if (isOkToUse(fTextControl)) {
fTextControl.setFocus();
@@ -88,6 +91,7 @@ public class StringDialogField extends DialogField {
if (fTextControl == null) {
assertCompositeNotNull(parent);
fModifyListener= new ModifyListener() {
+ @Override
public void modifyText(ModifyEvent e) {
doModifyText(e);
}
@@ -116,6 +120,7 @@ public class StringDialogField extends DialogField {
/*
* @see DialogField#updateEnableState
*/
+ @Override
protected void updateEnableState() {
super.updateEnableState();
if (isOkToUse(fTextControl)) {
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 3d7dc2fc1a..a7760a4400 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
@@ -134,6 +134,7 @@ public class AddEventBreakpointDialog extends Dialog implements ModifyListener,
*
* @see org.eclipse.jface.dialogs.Dialog#createDialogArea(org.eclipse.swt.widgets.Composite)
*/
+ @Override
protected Control createDialogArea(Composite parent) {
// The button bar will work better if we make the parent composite
// a single column grid layout. For the widgets we add, we want a
@@ -227,6 +228,7 @@ public class AddEventBreakpointDialog extends Dialog implements ModifyListener,
*
* @see org.eclipse.jface.window.Window#configureShell(org.eclipse.swt.widgets.Shell)
*/
+ @Override
protected void configureShell(Shell newShell) {
super.configureShell(newShell);
newShell.setText(DialogMessages.getString("AddEventBreakpointDialog.2")); //$NON-NLS-1$
@@ -237,6 +239,7 @@ public class AddEventBreakpointDialog extends Dialog implements ModifyListener,
*
* @see org.eclipse.jface.dialogs.Dialog#okPressed()
*/
+ @Override
protected void okPressed() {
if (fEventTypeInput != null) {
updateEventType();
@@ -269,6 +272,7 @@ public class AddEventBreakpointDialog extends Dialog implements ModifyListener,
*
* @see org.eclipse.swt.events.ModifyListener#modifyText(org.eclipse.swt.events.ModifyEvent)
*/
+ @Override
public void modifyText(ModifyEvent e) {
if (e.getSource() == fEventTypeInput) {
updateArgumentsControl();
@@ -281,6 +285,7 @@ public class AddEventBreakpointDialog extends Dialog implements ModifyListener,
*
* @see org.eclipse.jface.dialogs.TrayDialog#createButtonBar(org.eclipse.swt.widgets.Composite)
*/
+ @Override
protected Control createButtonBar(Composite parent) {
return super.createButtonBar(parent);
}
@@ -290,6 +295,7 @@ public class AddEventBreakpointDialog extends Dialog implements ModifyListener,
*
* @see org.eclipse.swt.events.SelectionListener#widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent)
*/
+ @Override
public void widgetDefaultSelected(SelectionEvent e) {
// ignore
}
@@ -299,6 +305,7 @@ public class AddEventBreakpointDialog extends Dialog implements ModifyListener,
*
* @see org.eclipse.swt.events.SelectionListener#widgetSelected(org.eclipse.swt.events.SelectionEvent)
*/
+ @Override
public void widgetSelected(SelectionEvent e) {
if (e.getSource() == fEventTypeInput) {
updateArgumentsControl();
@@ -326,6 +333,7 @@ public class AddEventBreakpointDialog extends Dialog implements ModifyListener,
return true;
}
+ @Override
protected void createButtonsForButtonBar(Composite parent) {
// override so we can change the initial okay enabled state
createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true).setEnabled(
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/commands/DisassemblyDisplayModeHandler.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/commands/DisassemblyDisplayModeHandler.java
index dd0ca22db0..7e05314cdd 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/commands/DisassemblyDisplayModeHandler.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/commands/DisassemblyDisplayModeHandler.java
@@ -40,7 +40,8 @@ public class DisassemblyDisplayModeHandler extends AbstractHandler implements IE
/* (non-Javadoc)
* @see org.eclipse.core.commands.AbstractHandler#execute(org.eclipse.core.commands.ExecutionEvent)
*/
- public Object execute( ExecutionEvent event ) throws ExecutionException {
+ @Override
+ public Object execute( ExecutionEvent event ) throws ExecutionException {
DisassemblyEditorPresentation presentation = getEditorPresentation( event );
if ( presentation != null ) {
String param = event.getParameter( ID_PARAMETER_MODE );
@@ -57,7 +58,8 @@ public class DisassemblyDisplayModeHandler extends AbstractHandler implements IE
/* (non-Javadoc)
* @see org.eclipse.ui.commands.IElementUpdater#updateElement(org.eclipse.ui.menus.UIElement, java.util.Map)
*/
- @SuppressWarnings("unchecked")
+ @Override
+ @SuppressWarnings("unchecked")
public void updateElement( UIElement element, Map parameters ) {
IWorkbenchPartSite site = (IWorkbenchPartSite)element.getServiceLocator().getService( IWorkbenchPartSite.class );
if ( site != null ) {
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/commands/OpenDisassemblyHandler.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/commands/OpenDisassemblyHandler.java
index c25fae9145..369bce95d0 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/commands/OpenDisassemblyHandler.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/commands/OpenDisassemblyHandler.java
@@ -30,7 +30,8 @@ public class OpenDisassemblyHandler extends AbstractHandler {
/* (non-Javadoc)
* @see org.eclipse.core.commands.AbstractHandler#execute(org.eclipse.core.commands.ExecutionEvent)
*/
- public Object execute( ExecutionEvent event ) throws ExecutionException {
+ @Override
+ public Object execute( ExecutionEvent event ) throws ExecutionException {
ISelection s = HandlerUtil.getCurrentSelection( event );
if ( s instanceof IStructuredSelection ) {
Object element = ((IStructuredSelection)s).getFirstElement();
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/commands/SetSteppingModeHandler.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/commands/SetSteppingModeHandler.java
index 9aabb8dfa0..731672c0ed 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/commands/SetSteppingModeHandler.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/commands/SetSteppingModeHandler.java
@@ -48,7 +48,8 @@ public class SetSteppingModeHandler extends AbstractHandler implements IElementU
/* (non-Javadoc)
* @see org.eclipse.core.commands.AbstractHandler#execute(org.eclipse.core.commands.ExecutionEvent)
*/
- public Object execute( ExecutionEvent event ) throws ExecutionException {
+ @Override
+ public Object execute( ExecutionEvent event ) throws ExecutionException {
String param = event.getParameter( ID_PARAMETER_MODE );
if ( param == null || param.equals( fCurrentValue ) )
return null;
@@ -66,7 +67,8 @@ public class SetSteppingModeHandler extends AbstractHandler implements IElementU
/* (non-Javadoc)
* @see org.eclipse.ui.commands.IElementUpdater#updateElement(org.eclipse.ui.menus.UIElement, java.util.Map)
*/
- @SuppressWarnings("unchecked")
+ @Override
+ @SuppressWarnings("unchecked")
public void updateElement( UIElement element, Map parameters ) {
String param = (String)parameters.get( ID_PARAMETER_MODE );
if ( param != null ) {
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/dsf/AbstractDisassemblyBackend.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/dsf/AbstractDisassemblyBackend.java
index f4e3e39658..1b968dc7df 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/dsf/AbstractDisassemblyBackend.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/dsf/AbstractDisassemblyBackend.java
@@ -27,6 +27,7 @@ public abstract class AbstractDisassemblyBackend implements IDisassemblyBackend
protected AbstractDisassemblyBackend() {
}
+ @Override
public void init(IDisassemblyPartCallback callback) {
assert callback != null;
fCallback = callback;
@@ -44,11 +45,13 @@ public abstract class AbstractDisassemblyBackend implements IDisassemblyBackend
public abstract BigInteger evaluateAddressExpression(String expression, boolean suppressError);
+ @Override
public String evaluateRegister(String register) {
return null;
}
- public String getHoverInfoData(AddressRangePosition pos, String ident) {
+ @Override
+ public String getHoverInfoData(AddressRangePosition pos, String ident) {
return null;
}
@@ -69,6 +72,7 @@ public abstract class AbstractDisassemblyBackend implements IDisassemblyBackend
/**
* Do nothing, sub-class can override to update PC annotation.
*/
+ @Override
public void updateExtendedPCAnnotation(IAnnotationModel model) {
}
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/dsf/CDIDisassemblyRetrieval.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/dsf/CDIDisassemblyRetrieval.java
index 0310b2db00..db14e2b09a 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/dsf/CDIDisassemblyRetrieval.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/dsf/CDIDisassemblyRetrieval.java
@@ -47,8 +47,10 @@ public class CDIDisassemblyRetrieval implements IDisassemblyRetrieval {
/*
* @see org.eclipse.cdt.debug.ui.infinitedisassembly.views.IDisassemblyRetrieval#asyncGetDisassembly(java.math.BigInteger, java.math.BigInteger, java.lang.String, int, org.eclipse.cdt.debug.ui.infinitedisassembly.views.IDisassemblyRetrieval.DisassemblyRequest)
*/
+ @Override
public void asyncGetDisassembly(final BigInteger startAddress, final BigInteger endAddress, final String file, final int lineNumber, final int lines, final boolean mixed, final DisassemblyRequest disassemblyRequest) {
Runnable op= new Runnable() {
+ @Override
public void run() {
ICDITarget cdiTarget= (ICDITarget) fDebugTarget.getAdapter(ICDITarget.class);
try {
@@ -96,8 +98,10 @@ public class CDIDisassemblyRetrieval implements IDisassemblyRetrieval {
/*
* @see org.eclipse.cdt.debug.ui.infinitedisassembly.views.IDisassemblyRetrieval#asyncGetFrameAddress(org.eclipse.debug.core.model.IStackFrame, org.eclipse.cdt.debug.ui.infinitedisassembly.views.IDisassemblyRetrieval.AddressRequest)
*/
+ @Override
public void asyncGetFrameAddress(final IStackFrame stackFrame, final AddressRequest addressRequest) {
Runnable op= new Runnable() {
+ @Override
public void run() {
if (stackFrame instanceof ICStackFrame) {
IAddress address = ((ICStackFrame)stackFrame).getAddress();
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/dsf/DisassemblyBackendCdi.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/dsf/DisassemblyBackendCdi.java
index dfcf537f5a..ee43bf96cf 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/dsf/DisassemblyBackendCdi.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/dsf/DisassemblyBackendCdi.java
@@ -82,6 +82,7 @@ public class DisassemblyBackendCdi extends AbstractDisassemblyBackend implements
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.internal.ui.disassembly.dsf.IDisassemblyBackend#hasDebugContext()
*/
+ @Override
public boolean hasDebugContext() {
return fTargetContext != null;
}
@@ -101,6 +102,7 @@ public class DisassemblyBackendCdi extends AbstractDisassemblyBackend implements
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.internal.ui.disassembly.dsf.IDisassemblyBackend#setDebugContext(org.eclipse.core.runtime.IAdaptable)
*/
+ @Override
public SetDebugContextResult setDebugContext(IAdaptable context) {
assert supportsDebugContext(context) : "caller should not have invoked us"; //$NON-NLS-1$
@@ -182,6 +184,7 @@ public class DisassemblyBackendCdi extends AbstractDisassemblyBackend implements
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.internal.ui.disassembly.dsf.IDisassemblyBackend#supportsDebugContext(org.eclipse.core.runtime.IAdaptable)
*/
+ @Override
public boolean supportsDebugContext(IAdaptable context) {
return supportsDebugContext_(context);
}
@@ -197,6 +200,7 @@ public class DisassemblyBackendCdi extends AbstractDisassemblyBackend implements
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.internal.ui.disassembly.dsf.IDisassemblyBackend#clearDebugContext()
*/
+ @Override
public void clearDebugContext() {
fTargetContext= null;
fCdiSessionId = null;
@@ -207,13 +211,16 @@ public class DisassemblyBackendCdi extends AbstractDisassemblyBackend implements
private class AddressRequest extends CRequest implements IDisassemblyRetrieval.AddressRequest {
private BigInteger fAddress;
+ @Override
public BigInteger getAddress() { return fAddress; }
+ @Override
public void setAddress(BigInteger address) { fAddress = address; }
};
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.internal.ui.disassembly.dsf.IDisassemblyBackend#retrieveFrameAddress(int)
*/
+ @Override
public void retrieveFrameAddress(final int targetFrame) {
try {
final IStackFrame[] stackFrames= fTargetContext.getStackFrames();
@@ -245,6 +252,7 @@ public class DisassemblyBackendCdi extends AbstractDisassemblyBackend implements
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.internal.ui.disassembly.dsf.IDisassemblyBackend#getFrameLevel()
*/
+ @Override
public int getFrameLevel() {
return fFrameLevel;
}
@@ -252,6 +260,7 @@ public class DisassemblyBackendCdi extends AbstractDisassemblyBackend implements
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.internal.ui.disassembly.dsf.IDisassemblyBackend#isSuspended()
*/
+ @Override
public boolean isSuspended() {
return fTargetContext != null && fTargetContext.isSuspended();
}
@@ -259,6 +268,7 @@ public class DisassemblyBackendCdi extends AbstractDisassemblyBackend implements
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.internal.ui.disassembly.dsf.IDisassemblyBackend#getFrameFile()
*/
+ @Override
public String getFrameFile() {
return fTargetFrameContext != null ? fTargetFrameContext.getFile() : null;
}
@@ -266,19 +276,23 @@ public class DisassemblyBackendCdi extends AbstractDisassemblyBackend implements
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.internal.ui.disassembly.dsf.IDisassemblyBackend#getFrameLine()
*/
+ @Override
public int getFrameLine() {
return fTargetFrameContext.getFrameLineNumber();
}
private class DisassemblyRequest extends CRequest implements IDisassemblyRetrieval.DisassemblyRequest {
private IDisassemblyBlock fBlock;
+ @Override
public IDisassemblyBlock getDisassemblyBlock() { return fBlock; }
+ @Override
public void setDisassemblyBlock(IDisassemblyBlock block) { fBlock = block; }
};
/* (non-Javadoc)
* @see org.eclipse.cdt.dsf.debug.internal.ui.disassembly.IDisassemblyBackend#retrieveDisassembly(java.math.BigInteger, java.math.BigInteger, java.lang.String, boolean, boolean, boolean, int, int, int)
*/
+ @Override
public void retrieveDisassembly(final BigInteger startAddress,
BigInteger endAddress, final String file, int lineNumber, final int lines, final boolean mixed,
final boolean showSymbols, final boolean showDisassembly, final int linesHint) {
@@ -310,6 +324,7 @@ public class DisassemblyBackendCdi extends AbstractDisassemblyBackend implements
} else {
// give up
fCallback.doScrollLocked(new Runnable() {
+ @Override
public void run() {
fCallback.insertError(startAddress, "Unable to retrieve disassembly data from backend."); //$NON-NLS-1$
}
@@ -320,6 +335,7 @@ public class DisassemblyBackendCdi extends AbstractDisassemblyBackend implements
final IStatus status= getStatus();
if (status != null && !status.isOK()) {
fCallback.doScrollLocked(new Runnable() {
+ @Override
public void run() {
fCallback.insertError(startAddress, status.getMessage());
}
@@ -336,6 +352,7 @@ public class DisassemblyBackendCdi extends AbstractDisassemblyBackend implements
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.internal.ui.disassembly.dsf.IDisassemblyBackend#insertSource(org.eclipse.jface.text.Position, java.math.BigInteger, java.lang.String, int)
*/
+ @Override
public Object insertSource(Position pos, BigInteger address,
String file, int lineNumber) {
ISourceLocator locator = fTargetContext.getLaunch().getSourceLocator();
@@ -348,6 +365,7 @@ public class DisassemblyBackendCdi extends AbstractDisassemblyBackend implements
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.internal.ui.disassembly.dsf.IDisassemblyBackend#hasFrameContext()
*/
+ @Override
public boolean hasFrameContext() {
return fTargetFrameContext != null;
}
@@ -355,10 +373,12 @@ public class DisassemblyBackendCdi extends AbstractDisassemblyBackend implements
/* (non-Javadoc)
* @see org.eclipse.cdt.dsf.debug.internal.ui.disassembly.IDisassemblyBackend#gotoSymbol(java.lang.String)
*/
+ @Override
public void gotoSymbol(String symbol) {
final BigInteger address = evaluateAddressExpression(symbol, false);
if (address != null) {
fCallback.asyncExec(new Runnable() {
+ @Override
public void run() {
fCallback.gotoAddress(address);
}});
@@ -410,6 +430,7 @@ public class DisassemblyBackendCdi extends AbstractDisassemblyBackend implements
catch (final CDIException exc) {
if (!suppressError) {
fCallback.asyncExec(new Runnable() {
+ @Override
public void run() {
ErrorDialog.openError(fCallback.getSite().getShell(),
CDebugUIMessages.getString("DisassemblyBackendCdi_Error_Dlg_Title"), //$NON-NLS-1$
@@ -420,6 +441,7 @@ public class DisassemblyBackendCdi extends AbstractDisassemblyBackend implements
catch (final DebugException exc) {
if (!suppressError) {
fCallback.asyncExec(new Runnable() {
+ @Override
public void run() {
ErrorDialog.openError(fCallback.getSite().getShell(),
CDebugUIMessages.getString("DisassemblyBackendCdi_Error_Dlg_Title"), //$NON-NLS-1$
@@ -434,6 +456,7 @@ public class DisassemblyBackendCdi extends AbstractDisassemblyBackend implements
/* (non-Javadoc)
* @see org.eclipse.cdt.dsf.debug.internal.ui.disassembly.IDisassemblyBackend#retrieveDisassembly(java.lang.String, int, java.math.BigInteger, boolean, boolean, boolean)
*/
+ @Override
public void retrieveDisassembly(String file, int lines,
final BigInteger endAddress, final boolean mixed, final boolean showSymbols,
final boolean showDisassembly) {
@@ -446,6 +469,7 @@ public class DisassemblyBackendCdi extends AbstractDisassemblyBackend implements
final IStatus status= getStatus();
if (status != null && !status.isOK()) {
fCallback.asyncExec(new Runnable() {
+ @Override
public void run() {
ErrorDialog.openError(fCallback.getSite().getShell(), "Error", null, getStatus()); //$NON-NLS-1$
}
@@ -634,6 +658,7 @@ public class DisassemblyBackendCdi extends AbstractDisassemblyBackend implements
/* (non-Javadoc)
* @see org.eclipse.debug.core.IDebugEventSetListener#handleDebugEvents(org.eclipse.debug.core.DebugEvent[])
*/
+ @Override
public void handleDebugEvents(DebugEvent[] events) {
for (DebugEvent event : events) {
if (event.getKind() == DebugEvent.TERMINATE) {
@@ -649,6 +674,7 @@ public class DisassemblyBackendCdi extends AbstractDisassemblyBackend implements
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.internal.ui.disassembly.dsf.IDisassemblyBackend#dispose()
*/
+ @Override
public void dispose() {
DebugPlugin.getDefault().removeDebugEventListener(this);
}
@@ -656,6 +682,7 @@ public class DisassemblyBackendCdi extends AbstractDisassemblyBackend implements
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.internal.ui.disassembly.dsf.IDisassemblyBackend#evaluateExpression(java.lang.String)
*/
+ @Override
public String evaluateExpression(String expression) {
// This is called to service text hovering. We either resolve the
// expression or we don't. No error reporting needed.
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/dsf/DisassemblyBackendCdiFactory.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/dsf/DisassemblyBackendCdiFactory.java
index 96d67f6f82..e104d7309d 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/dsf/DisassemblyBackendCdiFactory.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/dsf/DisassemblyBackendCdiFactory.java
@@ -20,6 +20,7 @@ public class DisassemblyBackendCdiFactory implements IAdapterFactory {
/* (non-Javadoc)
* @see org.eclipse.core.runtime.IAdapterFactory#getAdapter(java.lang.Object, java.lang.Class)
*/
+ @Override
@SuppressWarnings("rawtypes")
public Object getAdapter(Object adaptableObject, Class adapterType) {
if (IDisassemblyBackend.class.equals(adapterType)) {
@@ -33,6 +34,7 @@ public class DisassemblyBackendCdiFactory implements IAdapterFactory {
/* (non-Javadoc)
* @see org.eclipse.core.runtime.IAdapterFactory#getAdapterList()
*/
+ @Override
@SuppressWarnings("rawtypes")
public Class[] getAdapterList() {
return ADAPTERS;
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/editor/DisassemblyEditor.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/editor/DisassemblyEditor.java
index 4247aac68c..00f7a7e1d3 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/editor/DisassemblyEditor.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/editor/DisassemblyEditor.java
@@ -184,7 +184,8 @@ public class DisassemblyEditor extends EditorPart implements ITextEditor, IReusa
/* (non-Javadoc)
* @see org.eclipse.debug.ui.contexts.IDebugContextListener#debugContextChanged(org.eclipse.debug.ui.contexts.DebugContextEvent)
*/
- public void debugContextChanged( DebugContextEvent event ) {
+ @Override
+ public void debugContextChanged( DebugContextEvent event ) {
ISelection selection = event.getContext();
if ( selection instanceof IStructuredSelection ) {
IStructuredSelection ss = (IStructuredSelection)selection;
@@ -223,7 +224,8 @@ public class DisassemblyEditor extends EditorPart implements ITextEditor, IReusa
/* (non-Javadoc)
* @see org.eclipse.ui.texteditor.ITextEditor#close(boolean)
*/
- public void close( boolean save ) {
+ @Override
+ public void close( boolean save ) {
// TODO Auto-generated method stub
}
@@ -231,7 +233,8 @@ public class DisassemblyEditor extends EditorPart implements ITextEditor, IReusa
/* (non-Javadoc)
* @see org.eclipse.ui.texteditor.ITextEditor#doRevertToSaved()
*/
- public void doRevertToSaved() {
+ @Override
+ public void doRevertToSaved() {
// TODO Auto-generated method stub
}
@@ -239,7 +242,8 @@ public class DisassemblyEditor extends EditorPart implements ITextEditor, IReusa
/* (non-Javadoc)
* @see org.eclipse.ui.texteditor.ITextEditor#getAction(java.lang.String)
*/
- public IAction getAction( String actionId ) {
+ @Override
+ public IAction getAction( String actionId ) {
// TODO Auto-generated method stub
return null;
}
@@ -247,14 +251,16 @@ public class DisassemblyEditor extends EditorPart implements ITextEditor, IReusa
/* (non-Javadoc)
* @see org.eclipse.ui.texteditor.ITextEditor#getDocumentProvider()
*/
- public IDocumentProvider getDocumentProvider() {
+ @Override
+ public IDocumentProvider getDocumentProvider() {
return CDebugUIPlugin.getDefault().getDisassemblyEditorManager().getDocumentProvider();
}
/* (non-Javadoc)
* @see org.eclipse.ui.texteditor.ITextEditor#getHighlightRange()
*/
- public IRegion getHighlightRange() {
+ @Override
+ public IRegion getHighlightRange() {
// TODO Auto-generated method stub
return null;
}
@@ -262,7 +268,8 @@ public class DisassemblyEditor extends EditorPart implements ITextEditor, IReusa
/* (non-Javadoc)
* @see org.eclipse.ui.texteditor.ITextEditor#getSelectionProvider()
*/
- public ISelectionProvider getSelectionProvider() {
+ @Override
+ public ISelectionProvider getSelectionProvider() {
VirtualSourceViewer viewer = getViewer();
return ( viewer != null ) ? viewer.getSelectionProvider() : null;
}
@@ -270,14 +277,16 @@ public class DisassemblyEditor extends EditorPart implements ITextEditor, IReusa
/* (non-Javadoc)
* @see org.eclipse.ui.texteditor.ITextEditor#isEditable()
*/
- public boolean isEditable() {
+ @Override
+ public boolean isEditable() {
return false;
}
/* (non-Javadoc)
* @see org.eclipse.ui.texteditor.ITextEditor#removeActionActivationCode(java.lang.String)
*/
- public void removeActionActivationCode( String actionId ) {
+ @Override
+ public void removeActionActivationCode( String actionId ) {
// TODO Auto-generated method stub
}
@@ -285,7 +294,8 @@ public class DisassemblyEditor extends EditorPart implements ITextEditor, IReusa
/* (non-Javadoc)
* @see org.eclipse.ui.texteditor.ITextEditor#resetHighlightRange()
*/
- public void resetHighlightRange() {
+ @Override
+ public void resetHighlightRange() {
// TODO Auto-generated method stub
}
@@ -293,7 +303,8 @@ public class DisassemblyEditor extends EditorPart implements ITextEditor, IReusa
/* (non-Javadoc)
* @see org.eclipse.ui.texteditor.ITextEditor#selectAndReveal(int, int)
*/
- public void selectAndReveal( int offset, int length ) {
+ @Override
+ public void selectAndReveal( int offset, int length ) {
// TODO Auto-generated method stub
}
@@ -301,14 +312,16 @@ public class DisassemblyEditor extends EditorPart implements ITextEditor, IReusa
/* (non-Javadoc)
* @see org.eclipse.ui.texteditor.ITextEditor#setAction(java.lang.String, org.eclipse.jface.action.IAction)
*/
- public void setAction( String actionID, IAction action ) {
+ @Override
+ public void setAction( String actionID, IAction action ) {
fDisassemblyPane.setAction( actionID, action );
}
/* (non-Javadoc)
* @see org.eclipse.ui.texteditor.ITextEditor#setActionActivationCode(java.lang.String, char, int, int)
*/
- public void setActionActivationCode( String actionId, char activationCharacter, int activationKeyCode, int activationStateMask ) {
+ @Override
+ public void setActionActivationCode( String actionId, char activationCharacter, int activationKeyCode, int activationStateMask ) {
// TODO Auto-generated method stub
}
@@ -316,7 +329,8 @@ public class DisassemblyEditor extends EditorPart implements ITextEditor, IReusa
/* (non-Javadoc)
* @see org.eclipse.ui.texteditor.ITextEditor#setHighlightRange(int, int, boolean)
*/
- public void setHighlightRange( int offset, int length, boolean moveCursor ) {
+ @Override
+ public void setHighlightRange( int offset, int length, boolean moveCursor ) {
// TODO Auto-generated method stub
}
@@ -324,7 +338,8 @@ public class DisassemblyEditor extends EditorPart implements ITextEditor, IReusa
/* (non-Javadoc)
* @see org.eclipse.ui.texteditor.ITextEditor#showHighlightRangeOnly(boolean)
*/
- public void showHighlightRangeOnly( boolean showHighlightRangeOnly ) {
+ @Override
+ public void showHighlightRangeOnly( boolean showHighlightRangeOnly ) {
// TODO Auto-generated method stub
}
@@ -332,7 +347,8 @@ public class DisassemblyEditor extends EditorPart implements ITextEditor, IReusa
/* (non-Javadoc)
* @see org.eclipse.ui.texteditor.ITextEditor#showsHighlightRangeOnly()
*/
- public boolean showsHighlightRangeOnly() {
+ @Override
+ public boolean showsHighlightRangeOnly() {
// TODO Auto-generated method stub
return false;
}
@@ -350,7 +366,8 @@ public class DisassemblyEditor extends EditorPart implements ITextEditor, IReusa
/* (non-Javadoc)
* @see org.eclipse.jface.util.IPropertyChangeListener#propertyChange(org.eclipse.jface.util.PropertyChangeEvent)
*/
- public void propertyChange( PropertyChangeEvent event ) {
+ @Override
+ public void propertyChange( PropertyChangeEvent event ) {
getViewer().refresh();
}
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 32784a990f..16bc025fa4 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
@@ -28,7 +28,8 @@ public class DisassemblyEditorInput implements IEditorInput {
/* (non-Javadoc)
* @see org.eclipse.ui.IEditorInput#exists()
*/
- public boolean exists() {
+ @Override
+ public boolean exists() {
// TODO Auto-generated method stub
return false;
}
@@ -36,7 +37,8 @@ public class DisassemblyEditorInput implements IEditorInput {
/* (non-Javadoc)
* @see org.eclipse.ui.IEditorInput#getImageDescriptor()
*/
- public ImageDescriptor getImageDescriptor() {
+ @Override
+ public ImageDescriptor getImageDescriptor() {
// TODO Auto-generated method stub
return null;
}
@@ -44,7 +46,8 @@ public class DisassemblyEditorInput implements IEditorInput {
/* (non-Javadoc)
* @see org.eclipse.ui.IEditorInput#getName()
*/
- public String getName() {
+ @Override
+ public String getName() {
// TODO Auto-generated method stub
return ""; //$NON-NLS-1$
}
@@ -52,7 +55,8 @@ public class DisassemblyEditorInput implements IEditorInput {
/* (non-Javadoc)
* @see org.eclipse.ui.IEditorInput#getPersistable()
*/
- public IPersistableElement getPersistable() {
+ @Override
+ public IPersistableElement getPersistable() {
// TODO Auto-generated method stub
return null;
}
@@ -60,7 +64,8 @@ public class DisassemblyEditorInput implements IEditorInput {
/* (non-Javadoc)
* @see org.eclipse.ui.IEditorInput#getToolTipText()
*/
- public String getToolTipText() {
+ @Override
+ public String getToolTipText() {
// TODO Auto-generated method stub
return ""; //$NON-NLS-1$
}
@@ -68,7 +73,8 @@ public class DisassemblyEditorInput implements IEditorInput {
/* (non-Javadoc)
* @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class)
*/
- @SuppressWarnings("unchecked")
+ @Override
+ @SuppressWarnings("unchecked")
public Object getAdapter( Class adapter ) {
// TODO Auto-generated method stub
return null;
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/editor/DisassemblyEditorManager.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/editor/DisassemblyEditorManager.java
index fc97f3826f..34c661f8ae 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/editor/DisassemblyEditorManager.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/editor/DisassemblyEditorManager.java
@@ -136,19 +136,22 @@ public class DisassemblyEditorManager implements IWindowListener, IDisassemblyCo
/* (non-Javadoc)
* @see org.eclipse.ui.IPartListener2#partActivated(org.eclipse.ui.IWorkbenchPartReference)
*/
- public void partActivated( IWorkbenchPartReference partRef ) {
+ @Override
+ public void partActivated( IWorkbenchPartReference partRef ) {
}
/* (non-Javadoc)
* @see org.eclipse.ui.IPartListener2#partBroughtToTop(org.eclipse.ui.IWorkbenchPartReference)
*/
- public void partBroughtToTop( IWorkbenchPartReference partRef ) {
+ @Override
+ public void partBroughtToTop( IWorkbenchPartReference partRef ) {
}
/* (non-Javadoc)
* @see org.eclipse.ui.IPartListener2#partClosed(org.eclipse.ui.IWorkbenchPartReference)
*/
- public void partClosed( IWorkbenchPartReference partRef ) {
+ @Override
+ public void partClosed( IWorkbenchPartReference partRef ) {
if ( isDisassemblyEditorPart( partRef ) ) {
IWorkbenchPart part = partRef.getPart( false );
if ( part instanceof IEditorPart ) {
@@ -169,7 +172,8 @@ public class DisassemblyEditorManager implements IWindowListener, IDisassemblyCo
/* (non-Javadoc)
* @see org.eclipse.ui.IPartListener2#partDeactivated(org.eclipse.ui.IWorkbenchPartReference)
*/
- public void partDeactivated( IWorkbenchPartReference partRef ) {
+ @Override
+ public void partDeactivated( IWorkbenchPartReference partRef ) {
// TODO Auto-generated method stub
}
@@ -177,7 +181,8 @@ public class DisassemblyEditorManager implements IWindowListener, IDisassemblyCo
/* (non-Javadoc)
* @see org.eclipse.ui.IPartListener2#partHidden(org.eclipse.ui.IWorkbenchPartReference)
*/
- public void partHidden( IWorkbenchPartReference partRef ) {
+ @Override
+ public void partHidden( IWorkbenchPartReference partRef ) {
// TODO Auto-generated method stub
}
@@ -185,7 +190,8 @@ public class DisassemblyEditorManager implements IWindowListener, IDisassemblyCo
/* (non-Javadoc)
* @see org.eclipse.ui.IPartListener2#partInputChanged(org.eclipse.ui.IWorkbenchPartReference)
*/
- public void partInputChanged( IWorkbenchPartReference partRef ) {
+ @Override
+ public void partInputChanged( IWorkbenchPartReference partRef ) {
// TODO Auto-generated method stub
}
@@ -193,7 +199,8 @@ public class DisassemblyEditorManager implements IWindowListener, IDisassemblyCo
/* (non-Javadoc)
* @see org.eclipse.ui.IPartListener2#partOpened(org.eclipse.ui.IWorkbenchPartReference)
*/
- public void partOpened( IWorkbenchPartReference partRef ) {
+ @Override
+ public void partOpened( IWorkbenchPartReference partRef ) {
if ( isDisassemblyEditorPart( partRef ) ) {
IWorkbenchPart part = partRef.getPart( false );
if ( part instanceof IEditorPart ) {
@@ -209,7 +216,8 @@ public class DisassemblyEditorManager implements IWindowListener, IDisassemblyCo
/* (non-Javadoc)
* @see org.eclipse.ui.IPartListener2#partVisible(org.eclipse.ui.IWorkbenchPartReference)
*/
- public void partVisible( IWorkbenchPartReference partRef ) {
+ @Override
+ public void partVisible( IWorkbenchPartReference partRef ) {
// TODO Auto-generated method stub
}
@@ -217,20 +225,23 @@ public class DisassemblyEditorManager implements IWindowListener, IDisassemblyCo
/* (non-Javadoc)
* @see org.eclipse.ui.IWindowListener#windowActivated(org.eclipse.ui.IWorkbenchWindow)
*/
- public void windowActivated( IWorkbenchWindow window ) {
+ @Override
+ public void windowActivated( IWorkbenchWindow window ) {
}
/* (non-Javadoc)
* @see org.eclipse.ui.IWindowListener#windowClosed(org.eclipse.ui.IWorkbenchWindow)
*/
- public void windowClosed( IWorkbenchWindow window ) {
+ @Override
+ public void windowClosed( IWorkbenchWindow window ) {
window.getPartService().removePartListener( this );
}
/* (non-Javadoc)
* @see org.eclipse.ui.IWindowListener#windowDeactivated(org.eclipse.ui.IWorkbenchWindow)
*/
- public void windowDeactivated( IWorkbenchWindow window ) {
+ @Override
+ public void windowDeactivated( IWorkbenchWindow window ) {
// TODO Auto-generated method stub
}
@@ -238,14 +249,16 @@ public class DisassemblyEditorManager implements IWindowListener, IDisassemblyCo
/* (non-Javadoc)
* @see org.eclipse.ui.IWindowListener#windowOpened(org.eclipse.ui.IWorkbenchWindow)
*/
- public void windowOpened( IWorkbenchWindow window ) {
+ @Override
+ public void windowOpened( IWorkbenchWindow window ) {
window.getPartService().addPartListener( this );
}
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.core.disassembly.IDisassemblyContextListener#contextAdded(java.lang.Object)
*/
- public void contextAdded( Object context ) {
+ @Override
+ public void contextAdded( Object context ) {
// TODO Auto-generated method stub
}
@@ -253,7 +266,8 @@ public class DisassemblyEditorManager implements IWindowListener, IDisassemblyCo
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.core.disassembly.IDisassemblyContextListener#contextRemoved(java.lang.Object)
*/
- public void contextRemoved( Object context ) {
+ @Override
+ public void contextRemoved( Object context ) {
final IEditorPart editor = fEditorParts.remove( context );
if ( editor != null ) {
UIJob job = new UIJob( editor.getSite().getShell().getDisplay(), "Closing disassembly" ) { //$NON-NLS-1$
@@ -285,12 +299,14 @@ public class DisassemblyEditorManager implements IWindowListener, IDisassemblyCo
return new ISourcePresentation() {
- public IEditorInput getEditorInput( Object element ) {
+ @Override
+ public IEditorInput getEditorInput( Object element ) {
Object disassemblyContext = getDiassemblyContext( element );
return new DisassemblyEditorInput( element, disassemblyContext );
}
- public String getEditorId( IEditorInput input, Object element ) {
+ @Override
+ public String getEditorId( IEditorInput input, Object element ) {
return ICDebugUIConstants.ID_DEFAULT_DISASSEMBLY_EDITOR;
}
};
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/rendering/DisassemblyAnnotationModel.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/rendering/DisassemblyAnnotationModel.java
index d5d45cb370..2fbc474457 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/rendering/DisassemblyAnnotationModel.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/rendering/DisassemblyAnnotationModel.java
@@ -48,6 +48,7 @@ public class DisassemblyAnnotationModel extends AnnotationModel {
DisassemblyEditorInput.PENDING_EDITOR_INPUT.equals( input ) )
return;
asyncExec( new Runnable() {
+ @Override
public void run() {
breakpointsAdded0( breakpoints, document );
}
@@ -60,6 +61,7 @@ public class DisassemblyAnnotationModel extends AnnotationModel {
DisassemblyEditorInput.PENDING_EDITOR_INPUT.equals( input ) )
return;
asyncExec( new Runnable() {
+ @Override
public void run() {
breakpointsRemoved0( breakpoints, document );
}
@@ -72,6 +74,7 @@ public class DisassemblyAnnotationModel extends AnnotationModel {
DisassemblyEditorInput.PENDING_EDITOR_INPUT.equals( input ) )
return;
asyncExec( new Runnable() {
+ @Override
public void run() {
breakpointsChanged0( breakpoints, document );
}
@@ -199,6 +202,7 @@ public class DisassemblyAnnotationModel extends AnnotationModel {
private void updateAnnotations( final IDocument document ) {
asyncExec( new Runnable() {
+ @Override
public void run() {
doUpdateAnnotations( document );
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/rendering/DisassemblyEditorInput.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/rendering/DisassemblyEditorInput.java
index 9c036aa50d..0adaa91459 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/rendering/DisassemblyEditorInput.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/rendering/DisassemblyEditorInput.java
@@ -42,6 +42,7 @@ public class DisassemblyEditorInput implements IEditorInput {
public static final IEditorInput PENDING_EDITOR_INPUT =
new DisassemblyEditorInput() {
+ @Override
public String getContents() {
return DisassemblyMessages.getString( "DisassemblyDocumentProvider.Pending_1" ); //$NON-NLS-1$
}
@@ -76,6 +77,7 @@ public class DisassemblyEditorInput implements IEditorInput {
/* (non-Javadoc)
* @see org.eclipse.ui.IEditorInput#exists()
*/
+ @Override
public boolean exists() {
return true;
}
@@ -83,6 +85,7 @@ public class DisassemblyEditorInput implements IEditorInput {
/* (non-Javadoc)
* @see org.eclipse.ui.IEditorInput#getImageDescriptor()
*/
+ @Override
public ImageDescriptor getImageDescriptor() {
return null;
}
@@ -90,6 +93,7 @@ public class DisassemblyEditorInput implements IEditorInput {
/* (non-Javadoc)
* @see org.eclipse.ui.IEditorInput#getName()
*/
+ @Override
public String getName() {
return null;
}
@@ -97,6 +101,7 @@ public class DisassemblyEditorInput implements IEditorInput {
/* (non-Javadoc)
* @see org.eclipse.ui.IEditorInput#getPersistable()
*/
+ @Override
public IPersistableElement getPersistable() {
return null;
}
@@ -104,6 +109,7 @@ public class DisassemblyEditorInput implements IEditorInput {
/* (non-Javadoc)
* @see org.eclipse.ui.IEditorInput#getToolTipText()
*/
+ @Override
public String getToolTipText() {
return null;
}
@@ -111,6 +117,7 @@ public class DisassemblyEditorInput implements IEditorInput {
/* (non-Javadoc)
* @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class)
*/
+ @Override
public Object getAdapter( Class adapter ) {
return null;
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/rendering/DisassemblyMemoryRendering.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/rendering/DisassemblyMemoryRendering.java
index b09a6d115f..f95a0e8b87 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/rendering/DisassemblyMemoryRendering.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/rendering/DisassemblyMemoryRendering.java
@@ -39,7 +39,8 @@ public class DisassemblyMemoryRendering extends AbstractMemoryRendering {
/* (non-Javadoc)
* @see org.eclipse.debug.ui.memory.IMemoryRendering#createControl(org.eclipse.swt.widgets.Composite)
*/
- public Control createControl( Composite parent ) {
+ @Override
+ public Control createControl( Composite parent ) {
Composite composite = new Composite( parent, SWT.BORDER );
GridLayout layout = new GridLayout();
layout.marginHeight = 0;
@@ -54,7 +55,8 @@ public class DisassemblyMemoryRendering extends AbstractMemoryRendering {
/* (non-Javadoc)
* @see org.eclipse.debug.ui.memory.IMemoryRendering#getControl()
*/
- public Control getControl() {
+ @Override
+ public Control getControl() {
return fDisassemblyPane.getControl();
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/rendering/DisassemblyRenderingTypeDelegate.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/rendering/DisassemblyRenderingTypeDelegate.java
index d37e296d58..4a32d9bad2 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/rendering/DisassemblyRenderingTypeDelegate.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/rendering/DisassemblyRenderingTypeDelegate.java
@@ -20,7 +20,8 @@ public class DisassemblyRenderingTypeDelegate implements IMemoryRenderingTypeDel
/* (non-Javadoc)
* @see org.eclipse.debug.ui.memory.IMemoryRenderingTypeDelegate#createRendering(java.lang.String)
*/
- public IMemoryRendering createRendering( String id ) throws CoreException {
+ @Override
+ public IMemoryRendering createRendering( String id ) throws CoreException {
return new DisassemblyMemoryRendering( id );
}
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/viewer/DisassemblyDocumentProvider.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/viewer/DisassemblyDocumentProvider.java
index c6630a1d83..e5d347cedc 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/viewer/DisassemblyDocumentProvider.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/viewer/DisassemblyDocumentProvider.java
@@ -73,13 +73,15 @@ public class DisassemblyDocumentProvider implements IDocumentProvider {
/* (non-Javadoc)
* @see org.eclipse.ui.texteditor.IDocumentProvider#aboutToChange(java.lang.Object)
*/
- public void aboutToChange( Object element ) {
+ @Override
+ public void aboutToChange( Object element ) {
}
/* (non-Javadoc)
* @see org.eclipse.ui.texteditor.IDocumentProvider#addElementStateListener(org.eclipse.ui.texteditor.IElementStateListener)
*/
- public void addElementStateListener( IElementStateListener listener ) {
+ @Override
+ public void addElementStateListener( IElementStateListener listener ) {
// TODO Auto-generated method stub
}
@@ -87,20 +89,23 @@ public class DisassemblyDocumentProvider implements IDocumentProvider {
/* (non-Javadoc)
* @see org.eclipse.ui.texteditor.IDocumentProvider#canSaveDocument(java.lang.Object)
*/
- public boolean canSaveDocument( Object element ) {
+ @Override
+ public boolean canSaveDocument( Object element ) {
return false;
}
/* (non-Javadoc)
* @see org.eclipse.ui.texteditor.IDocumentProvider#changed(java.lang.Object)
*/
- public void changed( Object element ) {
+ @Override
+ public void changed( Object element ) {
}
/* (non-Javadoc)
* @see org.eclipse.ui.texteditor.IDocumentProvider#connect(java.lang.Object)
*/
- public synchronized void connect( Object element ) throws CoreException {
+ @Override
+ public synchronized void connect( Object element ) throws CoreException {
Object disassemblyContext = ((DisassemblyEditorInput)element).getDisassemblyContext();
if ( fDocumentInfos.get( disassemblyContext ) == null ) {
IDocumentPresentation presentation = createDocumentPresentation( disassemblyContext );
@@ -113,7 +118,8 @@ public class DisassemblyDocumentProvider implements IDocumentProvider {
/* (non-Javadoc)
* @see org.eclipse.ui.texteditor.IDocumentProvider#disconnect(java.lang.Object)
*/
- public synchronized void disconnect( Object element ) {
+ @Override
+ public synchronized void disconnect( Object element ) {
Object disassemblyContext = ((DisassemblyEditorInput)element).getDisassemblyContext();
DocumentInfo info = fDocumentInfos.remove( disassemblyContext );
if ( info != null ) {
@@ -124,7 +130,8 @@ public class DisassemblyDocumentProvider implements IDocumentProvider {
/* (non-Javadoc)
* @see org.eclipse.ui.texteditor.IDocumentProvider#getAnnotationModel(java.lang.Object)
*/
- public IAnnotationModel getAnnotationModel( Object element ) {
+ @Override
+ public IAnnotationModel getAnnotationModel( Object element ) {
Object disassemblyContext = ((DisassemblyEditorInput)element).getDisassemblyContext();
DocumentInfo info = fDocumentInfos.get( disassemblyContext );
return ( info != null ) ? info.getAnnotationModel() : null;
@@ -133,7 +140,8 @@ public class DisassemblyDocumentProvider implements IDocumentProvider {
/* (non-Javadoc)
* @see org.eclipse.ui.texteditor.IDocumentProvider#getDocument(java.lang.Object)
*/
- public IDocument getDocument( Object element ) {
+ @Override
+ public IDocument getDocument( Object element ) {
Object disassemblyContext = ((DisassemblyEditorInput)element).getDisassemblyContext();
DocumentInfo info = fDocumentInfos.get( disassemblyContext );
return ( info != null ) ? info.getDocument() : null;
@@ -142,7 +150,8 @@ public class DisassemblyDocumentProvider implements IDocumentProvider {
/* (non-Javadoc)
* @see org.eclipse.ui.texteditor.IDocumentProvider#getModificationStamp(java.lang.Object)
*/
- public long getModificationStamp( Object element ) {
+ @Override
+ public long getModificationStamp( Object element ) {
// TODO Auto-generated method stub
return 0;
}
@@ -150,7 +159,8 @@ public class DisassemblyDocumentProvider implements IDocumentProvider {
/* (non-Javadoc)
* @see org.eclipse.ui.texteditor.IDocumentProvider#getSynchronizationStamp(java.lang.Object)
*/
- public long getSynchronizationStamp( Object element ) {
+ @Override
+ public long getSynchronizationStamp( Object element ) {
// TODO Auto-generated method stub
return 0;
}
@@ -158,21 +168,24 @@ public class DisassemblyDocumentProvider implements IDocumentProvider {
/* (non-Javadoc)
* @see org.eclipse.ui.texteditor.IDocumentProvider#isDeleted(java.lang.Object)
*/
- public boolean isDeleted( Object element ) {
+ @Override
+ public boolean isDeleted( Object element ) {
return false;
}
/* (non-Javadoc)
* @see org.eclipse.ui.texteditor.IDocumentProvider#mustSaveDocument(java.lang.Object)
*/
- public boolean mustSaveDocument( Object element ) {
+ @Override
+ public boolean mustSaveDocument( Object element ) {
return false;
}
/* (non-Javadoc)
* @see org.eclipse.ui.texteditor.IDocumentProvider#removeElementStateListener(org.eclipse.ui.texteditor.IElementStateListener)
*/
- public void removeElementStateListener( IElementStateListener listener ) {
+ @Override
+ public void removeElementStateListener( IElementStateListener listener ) {
// TODO Auto-generated method stub
}
@@ -180,7 +193,8 @@ public class DisassemblyDocumentProvider implements IDocumentProvider {
/* (non-Javadoc)
* @see org.eclipse.ui.texteditor.IDocumentProvider#resetDocument(java.lang.Object)
*/
- public void resetDocument( Object element ) throws CoreException {
+ @Override
+ public void resetDocument( Object element ) throws CoreException {
// TODO Auto-generated method stub
}
@@ -188,7 +202,8 @@ public class DisassemblyDocumentProvider implements IDocumentProvider {
/* (non-Javadoc)
* @see org.eclipse.ui.texteditor.IDocumentProvider#saveDocument(org.eclipse.core.runtime.IProgressMonitor, java.lang.Object, org.eclipse.jface.text.IDocument, boolean)
*/
- public void saveDocument( IProgressMonitor monitor, Object element, IDocument document, boolean overwrite ) throws CoreException {
+ @Override
+ public void saveDocument( IProgressMonitor monitor, Object element, IDocument document, boolean overwrite ) throws CoreException {
// TODO Auto-generated method stub
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/viewer/DisassemblyPane.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/viewer/DisassemblyPane.java
index fff09af779..6c58b2be48 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/viewer/DisassemblyPane.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/viewer/DisassemblyPane.java
@@ -197,7 +197,8 @@ public class DisassemblyPane implements IPropertyChangeListener {
if ( fMenuListener == null ) {
fMenuListener = new IMenuListener() {
- public void menuAboutToShow( IMenuManager menu ) {
+ @Override
+ public void menuAboutToShow( IMenuManager menu ) {
String id = menu.getId();
if ( getRulerContextMenuId().equals( id ) ) {
// setFocus();
@@ -229,21 +230,24 @@ public class DisassemblyPane implements IPropertyChangeListener {
}
}
- public void mouseUp( MouseEvent e ) {
+ @Override
+ public void mouseUp( MouseEvent e ) {
// setFocus();
if ( 1 == e.button && !fDoubleClicked )
triggerAction( ITextEditorActionConstants.RULER_CLICK );
fDoubleClicked = false;
}
- public void mouseDoubleClick( MouseEvent e ) {
+ @Override
+ public void mouseDoubleClick( MouseEvent e ) {
if ( 1 == e.button ) {
fDoubleClicked = true;
triggerAction( IInternalCDebugUIConstants.ACTION_TOGGLE_BREAKPOINT );
}
}
- public void mouseDown( MouseEvent e ) {
+ @Override
+ public void mouseDown( MouseEvent e ) {
StyledText text = getViewer().getTextWidget();
if ( text != null && !text.isDisposed() ) {
Display display = text.getDisplay();
@@ -393,7 +397,8 @@ public class DisassemblyPane implements IPropertyChangeListener {
/* (non-Javadoc)
* @see org.eclipse.jface.util.IPropertyChangeListener#propertyChange(org.eclipse.jface.util.PropertyChangeEvent)
*/
- public void propertyChange( PropertyChangeEvent event ) {
+ @Override
+ public void propertyChange( PropertyChangeEvent event ) {
// TODO Auto-generated method stub
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/viewer/DocumentAnnotationUpdate.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/viewer/DocumentAnnotationUpdate.java
index 1b37c40e19..1d999a76ff 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/viewer/DocumentAnnotationUpdate.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/viewer/DocumentAnnotationUpdate.java
@@ -37,7 +37,8 @@ public class DocumentAnnotationUpdate extends DocumentUpdate implements IDocumen
/* (non-Javadoc)
* @see com.arm.eclipse.rvd.ui.disassembly.IDocumentElementAnnotationUpdate#addAnnotation(org.eclipse.jface.text.source.Annotation)
*/
- public void addAnnotation( Annotation annotation ) {
+ @Override
+ public void addAnnotation( Annotation annotation ) {
fAnnotations.add( annotation );
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/viewer/DocumentBaseChangeUpdate.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/viewer/DocumentBaseChangeUpdate.java
index 49c01db78b..233cfc704d 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/viewer/DocumentBaseChangeUpdate.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/viewer/DocumentBaseChangeUpdate.java
@@ -41,14 +41,16 @@ public class DocumentBaseChangeUpdate extends DocumentUpdate implements IDocumen
/* (non-Javadoc)
* @see com.arm.eclipse.rvd.ui.disassembly.IDocumentBaseChangeUpdate#setOffset(int)
*/
- public void setOffset( int offset ) {
+ @Override
+ public void setOffset( int offset ) {
fOffset = offset;
}
/* (non-Javadoc)
* @see com.arm.eclipse.rvd.ui.disassembly.IDocumentBaseChangeUpdate#getOriginalOffset()
*/
- public int getOriginalOffset() {
+ @Override
+ public int getOriginalOffset() {
return fOriginalOffset;
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/viewer/DocumentContentProvider.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/viewer/DocumentContentProvider.java
index 14375fed2d..96420d87bb 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/viewer/DocumentContentProvider.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/viewer/DocumentContentProvider.java
@@ -183,7 +183,8 @@ public class DocumentContentProvider implements IModelChangedListener {
/* (non-Javadoc)
* @see org.eclipse.debug.internal.ui.viewers.model.provisional.IModelChangedListener#modelChanged(org.eclipse.debug.internal.ui.viewers.model.provisional.IModelDelta, org.eclipse.debug.internal.ui.viewers.model.provisional.IModelProxy)
*/
- public void modelChanged( final IModelDelta delta, final IModelProxy proxy ) {
+ @Override
+ public void modelChanged( final IModelDelta delta, final IModelProxy proxy ) {
WorkbenchJob job = new WorkbenchJob( "process model delta" ) { //$NON-NLS-1$
/* (non-Javadoc)
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/viewer/DocumentContentUpdate.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/viewer/DocumentContentUpdate.java
index db73dd044f..106376dd3e 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/viewer/DocumentContentUpdate.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/viewer/DocumentContentUpdate.java
@@ -39,14 +39,16 @@ public class DocumentContentUpdate extends DocumentUpdate implements IDocumentEl
/* (non-Javadoc)
* @see com.arm.eclipse.rvd.ui.disassembly.IDocumentElementContentUpdate#setLineCount(int)
*/
- public void setLineCount( int lineCount ) {
+ @Override
+ public void setLineCount( int lineCount ) {
fElements = new Object[lineCount];
}
/* (non-Javadoc)
* @see com.arm.eclipse.rvd.ui.disassembly.IDocumentElementContentUpdate#addElement(int, java.lang.Object)
*/
- public void addElement( int line, Object element ) throws IndexOutOfBoundsException {
+ @Override
+ public void addElement( int line, Object element ) throws IndexOutOfBoundsException {
if ( line < 0 || line >= fElements.length )
throw new IndexOutOfBoundsException( Integer.toString( line ) );
fElements[line] = element;
@@ -55,28 +57,32 @@ public class DocumentContentUpdate extends DocumentUpdate implements IDocumentEl
/* (non-Javadoc)
* @see com.arm.eclipse.rvd.ui.disassembly.IDocumentElementContentUpdate#getOriginalOffset()
*/
- public int getOriginalOffset() {
+ @Override
+ public int getOriginalOffset() {
return fOriginalOffset;
}
/* (non-Javadoc)
* @see com.arm.eclipse.rvd.ui.disassembly.IDocumentElementContentUpdate#getRequestedLineCount()
*/
- public int getRequestedLineCount() {
+ @Override
+ public int getRequestedLineCount() {
return fLineCount;
}
/* (non-Javadoc)
* @see com.arm.eclipse.rvd.ui.disassembly.IDocumentElementContentUpdate#setOffset(int)
*/
- public void setOffset( int offset ) {
+ @Override
+ public void setOffset( int offset ) {
fOffset = offset;
}
/* (non-Javadoc)
* @see com.arm.eclipse.rvd.ui.disassembly.IDocumentElementContentUpdate#reveal()
*/
- public boolean reveal() {
+ @Override
+ public boolean reveal() {
return fReveal;
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/viewer/DocumentLabelUpdate.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/viewer/DocumentLabelUpdate.java
index 98ca24458e..5c9cf02ed2 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/viewer/DocumentLabelUpdate.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/viewer/DocumentLabelUpdate.java
@@ -31,7 +31,8 @@ public class DocumentLabelUpdate extends DocumentUpdate implements IDocumentElem
/* (non-Javadoc)
* @see com.arm.eclipse.rvd.ui.disassembly.IDocumentElementLabelUpdate#setLabel(java.lang.String, java.lang.String)
*/
- public void setLabel( String attribute, String text ) {
+ @Override
+ public void setLabel( String attribute, String text ) {
fLabels.put( attribute, text );
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/viewer/DocumentUpdate.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/viewer/DocumentUpdate.java
index a99d6ecf5a..fb03ea9bec 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/viewer/DocumentUpdate.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/viewer/DocumentUpdate.java
@@ -38,28 +38,32 @@ public abstract class DocumentUpdate extends Request implements IDocumentUpdate
/* (non-Javadoc)
* @see com.arm.eclipse.rvd.ui.disassembly.IDocumentUpdate#getBaseElement()
*/
- public Object getBaseElement() {
+ @Override
+ public Object getBaseElement() {
return fBaseElement;
}
/* (non-Javadoc)
* @see com.arm.eclipse.rvd.ui.disassembly.IDocumentUpdate#getRootElement()
*/
- public Object getRootElement() {
+ @Override
+ public Object getRootElement() {
return fRootElement;
}
/* (non-Javadoc)
* @see org.eclipse.debug.internal.ui.viewers.model.provisional.IViewerUpdate#getElement()
*/
- public Object getElement() {
+ @Override
+ public Object getElement() {
return fElement;
}
/* (non-Javadoc)
* @see org.eclipse.debug.internal.ui.viewers.model.provisional.IViewerUpdate#getElementPath()
*/
- public TreePath getElementPath() {
+ @Override
+ public TreePath getElementPath() {
// TODO Auto-generated method stub
return null;
}
@@ -67,7 +71,8 @@ public abstract class DocumentUpdate extends Request implements IDocumentUpdate
/* (non-Javadoc)
* @see org.eclipse.debug.internal.ui.viewers.model.provisional.IViewerUpdate#getPresentationContext()
*/
- public IPresentationContext getPresentationContext() {
+ @Override
+ public IPresentationContext getPresentationContext() {
return fPresentationContext;
}
@@ -122,7 +127,8 @@ public abstract class DocumentUpdate extends Request implements IDocumentUpdate
/* (non-Javadoc)
* @see org.eclipse.debug.internal.ui.viewers.model.provisional.IViewerUpdate#getViewerInput()
*/
- public Object getViewerInput() {
+ @Override
+ public Object getViewerInput() {
return null;
}
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/viewer/VirtualSourceViewer.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/viewer/VirtualSourceViewer.java
index 5667b89e2e..f7166ca96d 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/viewer/VirtualSourceViewer.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/viewer/VirtualSourceViewer.java
@@ -48,10 +48,12 @@ public class VirtualSourceViewer extends SourceViewer {
private void initControlListener() {
getTextWidget().addControlListener( new ControlListener() {
- public void controlMoved( ControlEvent e ) {
+ @Override
+ public void controlMoved( ControlEvent e ) {
}
- public void controlResized( ControlEvent e ) {
+ @Override
+ public void controlResized( ControlEvent e ) {
handleControlResized();
}
} );
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/editors/DebugTextHoverAdapterFactory.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/editors/DebugTextHoverAdapterFactory.java
index c3ac264d03..58be1bd192 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/editors/DebugTextHoverAdapterFactory.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/editors/DebugTextHoverAdapterFactory.java
@@ -24,7 +24,8 @@ public class DebugTextHoverAdapterFactory implements IAdapterFactory {
private static final Class<?>[] TYPES = { ICEditorTextHover.class };
private static final Object fDebugTextHover= new DebugTextHover();
- @SuppressWarnings("rawtypes")
+ @Override
+ @SuppressWarnings("rawtypes")
public Object getAdapter(Object adaptableObject, Class adapterType) {
if (adaptableObject instanceof ICStackFrame) {
return fDebugTextHover;
@@ -32,7 +33,8 @@ public class DebugTextHoverAdapterFactory implements IAdapterFactory {
return null;
}
- @SuppressWarnings("rawtypes")
+ @Override
+ @SuppressWarnings("rawtypes")
public Class[] getAdapterList() {
return TYPES;
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/editors/DelegatingDebugTextHover.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/editors/DelegatingDebugTextHover.java
index 29b9dd3c31..963d9f5640 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/editors/DelegatingDebugTextHover.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/editors/DelegatingDebugTextHover.java
@@ -34,6 +34,7 @@ public class DelegatingDebugTextHover implements ICEditorTextHover, ITextHoverEx
/*
* @see org.eclipse.jface.text.ITextHover#getHoverRegion(org.eclipse.jface.text.ITextViewer, int)
*/
+ @Override
public IRegion getHoverRegion(ITextViewer viewer, int offset) {
fDelegate = getDelegate();
if (fDelegate != null) {
@@ -45,7 +46,8 @@ public class DelegatingDebugTextHover implements ICEditorTextHover, ITextHoverEx
/*
* @see org.eclipse.jface.text.ITextHover#getHoverInfo(org.eclipse.jface.text.ITextViewer, org.eclipse.jface.text.IRegion)
*/
- @SuppressWarnings("deprecation")
+ @Override
+ @SuppressWarnings("deprecation")
public String getHoverInfo(ITextViewer textViewer, IRegion hoverRegion) {
fDelegate = getDelegate();
if (fDelegate != null) {
@@ -57,7 +59,8 @@ public class DelegatingDebugTextHover implements ICEditorTextHover, ITextHoverEx
/*
* @see org.eclipse.jface.text.ITextHoverExtension2#getHoverInfo2(org.eclipse.jface.text.ITextViewer, org.eclipse.jface.text.IRegion)
*/
- @SuppressWarnings("deprecation")
+ @Override
+ @SuppressWarnings("deprecation")
public Object getHoverInfo2(ITextViewer textViewer, IRegion hoverRegion) {
fDelegate = getDelegate();
if (fDelegate instanceof ITextHoverExtension2) {
@@ -73,7 +76,8 @@ public class DelegatingDebugTextHover implements ICEditorTextHover, ITextHoverEx
/*
* @see org.eclipse.jface.text.ITextHoverExtension#getHoverControlCreator()
*/
- public IInformationControlCreator getHoverControlCreator() {
+ @Override
+ public IInformationControlCreator getHoverControlCreator() {
if (fDelegate instanceof ITextHoverExtension) {
return ((ITextHoverExtension) fDelegate).getHoverControlCreator();
}
@@ -83,7 +87,8 @@ public class DelegatingDebugTextHover implements ICEditorTextHover, ITextHoverEx
/*
* @see org.eclipse.cdt.ui.text.c.hover.ICEditorTextHover#setEditor(org.eclipse.ui.IEditorPart)
*/
- public final void setEditor(IEditorPart editor) {
+ @Override
+ public final void setEditor(IEditorPart editor) {
fEditor = editor;
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/CDebugElementAdapterFactory.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/CDebugElementAdapterFactory.java
index 2b109383e9..77a174adf8 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/CDebugElementAdapterFactory.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/CDebugElementAdapterFactory.java
@@ -68,6 +68,7 @@ public class CDebugElementAdapterFactory implements IAdapterFactory {
/* (non-Javadoc)
* @see org.eclipse.core.runtime.IAdapterFactory#getAdapter(java.lang.Object, java.lang.Class)
*/
+ @Override
@SuppressWarnings( "rawtypes" )
public Object getAdapter( Object adaptableObject, Class adapterType ) {
if ( adapterType.isInstance( adaptableObject ) ) {
@@ -171,6 +172,7 @@ public class CDebugElementAdapterFactory implements IAdapterFactory {
/* (non-Javadoc)
* @see org.eclipse.core.runtime.IAdapterFactory#getAdapterList()
*/
+ @Override
@SuppressWarnings( "rawtypes" )
public Class[] getAdapterList() {
return new Class[] {
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/CDebugElementLabelProviderFactory.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/CDebugElementLabelProviderFactory.java
index 3bb793a3aa..6e64f25caf 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/CDebugElementLabelProviderFactory.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/CDebugElementLabelProviderFactory.java
@@ -32,6 +32,7 @@ public class CDebugElementLabelProviderFactory implements IAdapterFactory {
/* (non-Javadoc)
* @see org.eclipse.core.runtime.IAdapterFactory#getAdapter(java.lang.Object, java.lang.Class)
*/
+ @Override
@SuppressWarnings("rawtypes")
public Object getAdapter( Object adaptableObject, Class adapterType ) {
if ( adapterType.equals( IElementLabelProvider.class ) ) {
@@ -54,6 +55,7 @@ public class CDebugElementLabelProviderFactory implements IAdapterFactory {
/* (non-Javadoc)
* @see org.eclipse.core.runtime.IAdapterFactory#getAdapterList()
*/
+ @Override
@SuppressWarnings("rawtypes")
public Class[] getAdapterList() {
return new Class[] {
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/CMemoryAdapterFactory.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/CMemoryAdapterFactory.java
index 4440524a26..e5257bb24e 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/CMemoryAdapterFactory.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/CMemoryAdapterFactory.java
@@ -27,6 +27,7 @@ public class CMemoryAdapterFactory implements IAdapterFactory {
/* (non-Javadoc)
* @see org.eclipse.core.runtime.IAdapterFactory#getAdapter(java.lang.Object, java.lang.Class)
*/
+ @Override
@SuppressWarnings("rawtypes")
public Object getAdapter(Object adaptableObject, Class adapterType) {
if (adapterType.isInstance(adaptableObject)) {
@@ -49,6 +50,7 @@ public class CMemoryAdapterFactory implements IAdapterFactory {
/* (non-Javadoc)
* @see org.eclipse.core.runtime.IAdapterFactory#getAdapterList()
*/
+ @Override
@SuppressWarnings("rawtypes")
public Class[] getAdapterList() {
return new Class[] { IAddMemoryBlocksTarget.class };
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/CRegisterManagerProxy.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/CRegisterManagerProxy.java
index 0cbb2c7d59..2d48ad74c6 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/CRegisterManagerProxy.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/CRegisterManagerProxy.java
@@ -50,7 +50,8 @@ public class CRegisterManagerProxy implements IDebugEventSetListener, IDebugCont
/* (non-Javadoc)
* @see org.eclipse.debug.ui.contexts.IDebugContextListener#debugContextChanged(org.eclipse.debug.ui.contexts.DebugContextEvent)
*/
- public void debugContextChanged( DebugContextEvent event ) {
+ @Override
+ public void debugContextChanged( DebugContextEvent event ) {
ICDebugElement context = null;
ISelection s = event.getContext();
if ( s instanceof IStructuredSelection ) {
@@ -67,7 +68,8 @@ public class CRegisterManagerProxy implements IDebugEventSetListener, IDebugCont
/* (non-Javadoc)
* @see org.eclipse.debug.core.IDebugEventSetListener#handleDebugEvents(org.eclipse.debug.core.DebugEvent[])
*/
- public void handleDebugEvents( DebugEvent[] events ) {
+ @Override
+ public void handleDebugEvents( DebugEvent[] events ) {
CRegisterManagerModelProxy modelProxy = getModelProxy();
for( int i = 0; i < events.length; i++ ) {
DebugEvent event = events[i];
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/CVariableLabelProvider.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/CVariableLabelProvider.java
index 0afb14f605..42a8ff107c 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/CVariableLabelProvider.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/CVariableLabelProvider.java
@@ -40,6 +40,7 @@ public class CVariableLabelProvider extends DebugElementLabelProvider {
/* (non-Javadoc)
* @see org.eclipse.debug.internal.ui.model.elements.DebugElementLabelProvider#getLabel(org.eclipse.jface.viewers.TreePath, org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext, java.lang.String)
*/
+ @Override
protected String getLabel( TreePath elementPath, IPresentationContext context, String columnId ) throws CoreException {
if ( columnId != null ) {
IVariable variable = (IVariable)elementPath.getLastSegment();
@@ -80,6 +81,7 @@ public class CVariableLabelProvider extends DebugElementLabelProvider {
return null; // super.getColumnText( variable, value, context, columnId );
}
+ @Override
protected ImageDescriptor getImageDescriptor( TreePath elementPath, IPresentationContext presentationContext, String columnId ) throws CoreException {
if ( columnId == null || VariableColumnPresentation.COLUMN_VARIABLE_NAME.equals( columnId ) ) {
return super.getImageDescriptor( elementPath, presentationContext, columnId );
@@ -90,6 +92,7 @@ public class CVariableLabelProvider extends DebugElementLabelProvider {
/* (non-Javadoc)
* @see org.eclipse.debug.internal.ui.model.elements.DebugElementLabelProvider#getBackground(org.eclipse.jface.viewers.TreePath, org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext, java.lang.String)
*/
+ @Override
protected RGB getBackground( TreePath elementPath, IPresentationContext presentationContext, String columnId ) throws CoreException {
Object element = elementPath.getLastSegment();
if ( columnId != null ) {
@@ -107,6 +110,7 @@ public class CVariableLabelProvider extends DebugElementLabelProvider {
/* (non-Javadoc)
* @see org.eclipse.debug.internal.ui.model.elements.DebugElementLabelProvider#getFontData(org.eclipse.jface.viewers.TreePath, org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext, java.lang.String)
*/
+ @Override
protected FontData getFontData( TreePath elementPath, IPresentationContext presentationContext, String columnId ) throws CoreException {
// No public access to the Variables view text font id. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=187509
return JFaceResources.getFontDescriptor( IDebugUIConstants.PREF_VARIABLE_TEXT_FONT ).getFontData()[0];
@@ -115,6 +119,7 @@ public class CVariableLabelProvider extends DebugElementLabelProvider {
/* (non-Javadoc)
* @see org.eclipse.debug.internal.ui.model.elements.DebugElementLabelProvider#getForeground(org.eclipse.jface.viewers.TreePath, org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext, java.lang.String)
*/
+ @Override
protected RGB getForeground( TreePath elementPath, IPresentationContext presentationContext, String columnId ) throws CoreException {
Object element = elementPath.getLastSegment();
if ( columnId == null ) {
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/CWatchExpressionFactoryAdapter.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/CWatchExpressionFactoryAdapter.java
index 8f8258ee97..2558c0dc6e 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/CWatchExpressionFactoryAdapter.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/CWatchExpressionFactoryAdapter.java
@@ -20,6 +20,7 @@ public class CWatchExpressionFactoryAdapter implements IWatchExpressionFactoryAd
/* (non-Javadoc)
* @see org.eclipse.debug.ui.actions.IWatchExpressionFactoryAdapterExtension#canCreateWatchExpression(org.eclipse.debug.core.model.IVariable)
*/
+ @Override
public boolean canCreateWatchExpression( IVariable variable ) {
return ( variable instanceof ICVariable );
}
@@ -27,6 +28,7 @@ public class CWatchExpressionFactoryAdapter implements IWatchExpressionFactoryAd
/* (non-Javadoc)
* @see org.eclipse.debug.ui.actions.IWatchExpressionFactoryAdapter#createWatchExpression(org.eclipse.debug.core.model.IVariable)
*/
+ @Override
public String createWatchExpression( IVariable variable ) throws CoreException {
return ( variable instanceof ICVariable ) ? ((ICVariable)variable).getExpressionString() : null;
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/CWatchExpressionFactoryAdapterFactory.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/CWatchExpressionFactoryAdapterFactory.java
index 256f9f97ec..603aaff682 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/CWatchExpressionFactoryAdapterFactory.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/CWatchExpressionFactoryAdapterFactory.java
@@ -21,6 +21,7 @@ public class CWatchExpressionFactoryAdapterFactory implements IAdapterFactory {
/* (non-Javadoc)
* @see org.eclipse.core.runtime.IAdapterFactory#getAdapter(java.lang.Object, java.lang.Class)
*/
+ @Override
public Object getAdapter( Object adaptableObject, Class adapterType ) {
if ( adapterType.equals( IWatchExpressionFactoryAdapter.class ) ) {
if ( adaptableObject instanceof ICVariable ) {
@@ -33,6 +34,7 @@ public class CWatchExpressionFactoryAdapterFactory implements IAdapterFactory {
/* (non-Javadoc)
* @see org.eclipse.core.runtime.IAdapterFactory#getAdapterList()
*/
+ @Override
public Class[] getAdapterList() {
return new Class[] {
IWatchExpressionFactoryAdapter.class,
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/DefaultViewColumnPresentationFactory.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/DefaultViewColumnPresentationFactory.java
index b4ec30a2ec..2171597d4b 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/DefaultViewColumnPresentationFactory.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/DefaultViewColumnPresentationFactory.java
@@ -19,13 +19,15 @@ import org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationCont
public class DefaultViewColumnPresentationFactory implements IColumnPresentationFactory {
- public IColumnPresentation createColumnPresentation( IPresentationContext context, Object element ) {
+ @Override
+ public IColumnPresentation createColumnPresentation( IPresentationContext context, Object element ) {
if ( context.getId().equals( ICDebugUIConstants.ID_SIGNALS_VIEW ) )
return new SignalsViewColumnPresentation();
return null;
}
- public String getColumnPresentationId( IPresentationContext context, Object element ) {
+ @Override
+ public String getColumnPresentationId( IPresentationContext context, Object element ) {
if ( context.getId().equals( ICDebugUIConstants.ID_SIGNALS_VIEW ) )
return SignalsViewColumnPresentation.ID;
return null;
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/DisassemblyElementContentProvider.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/DisassemblyElementContentProvider.java
index 1fec2b4618..134e46ac1b 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/DisassemblyElementContentProvider.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/DisassemblyElementContentProvider.java
@@ -29,7 +29,8 @@ public class DisassemblyElementContentProvider implements IDocumentElementConten
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.ui.disassembly.IDocumentElementContentProvider#updateContent(org.eclipse.cdt.debug.ui.disassembly.IDocumentElementContentUpdate)
*/
- public void updateContent( final IDocumentElementContentUpdate update ) {
+ @Override
+ public void updateContent( final IDocumentElementContentUpdate update ) {
Job job = new Job( "Source content update" ) { //$NON-NLS-1$
/* (non-Javadoc)
@@ -51,7 +52,8 @@ public class DisassemblyElementContentProvider implements IDocumentElementConten
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.ui.disassembly.IDocumentElementContentProvider#updateInput(org.eclipse.cdt.debug.ui.disassembly.IDocumentBaseChangeUpdate)
*/
- public void updateInput( final IDocumentBaseChangeUpdate update ) {
+ @Override
+ public void updateInput( final IDocumentBaseChangeUpdate update ) {
Job job = new Job( "Input update" ) { //$NON-NLS-1$
/* (non-Javadoc)
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/DisassemblyElementLabelProvider.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/DisassemblyElementLabelProvider.java
index a9ab9685ac..ca9d96d211 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/DisassemblyElementLabelProvider.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/DisassemblyElementLabelProvider.java
@@ -44,7 +44,8 @@ public class DisassemblyElementLabelProvider implements IDocumentElementLabelPro
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.ui.disassembly.IDocumentElementLabelProvider#update(org.eclipse.cdt.debug.ui.disassembly.IDocumentElementLabelUpdate[])
*/
- public void update( final IDocumentElementLabelUpdate[] updates ) {
+ @Override
+ public void update( final IDocumentElementLabelUpdate[] updates ) {
Job job = new Job( "Label update" ) { //$NON-NLS-1$
/* (non-Javadoc)
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/DisassemblyElementProxy.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/DisassemblyElementProxy.java
index c4161b7c70..848567a437 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/DisassemblyElementProxy.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/DisassemblyElementProxy.java
@@ -48,7 +48,8 @@ public class DisassemblyElementProxy extends AbstractModelProxy implements IDebu
fireModelChanged( new ModelDelta( fElement, IModelDelta.CONTENT ) );
}
- public void handleDebugEvents( DebugEvent[] events ) {
+ @Override
+ public void handleDebugEvents( DebugEvent[] events ) {
for ( DebugEvent event : events ) {
Object source = event.getSource();
int kind = event.getKind();
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/DisassemblyToggleBreakpointAdapter.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/DisassemblyToggleBreakpointAdapter.java
index 90764658bd..968e0baba8 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/DisassemblyToggleBreakpointAdapter.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/DisassemblyToggleBreakpointAdapter.java
@@ -37,7 +37,8 @@ public class DisassemblyToggleBreakpointAdapter implements IElementToggleBreakpo
/* (non-Javadoc)
* @see com.arm.eclipse.rvd.ui.disassembly.IElementToggleBreakpointAdapter#canToggleLineBreakpoints(org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext, java.lang.Object)
*/
- public boolean canToggleLineBreakpoints( IPresentationContext presentationContext, Object element ) {
+ @Override
+ public boolean canToggleLineBreakpoints( IPresentationContext presentationContext, Object element ) {
if ( element instanceof IDisassemblyInstruction ) {
return true;
}
@@ -47,7 +48,8 @@ public class DisassemblyToggleBreakpointAdapter implements IElementToggleBreakpo
/* (non-Javadoc)
* @see com.arm.eclipse.rvd.ui.disassembly.IElementToggleBreakpointAdapter#toggleLineBreakpoints(org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext, java.lang.Object)
*/
- public void toggleLineBreakpoints( IPresentationContext presentationContext, Object element ) throws CoreException {
+ @Override
+ public void toggleLineBreakpoints( IPresentationContext presentationContext, Object element ) throws CoreException {
if ( element instanceof IDisassemblyInstruction ) {
IDisassemblyInstruction instruction = (IDisassemblyInstruction)element;
IBreakpoint breakpoint = findBreakpoint( instruction );
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/RegistersViewColumnPresentation.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/RegistersViewColumnPresentation.java
index 38888e35cb..040beae5be 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/RegistersViewColumnPresentation.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/RegistersViewColumnPresentation.java
@@ -44,33 +44,38 @@ public class RegistersViewColumnPresentation implements IColumnPresentation {
/* (non-Javadoc)
* @see org.eclipse.debug.internal.ui.viewers.model.provisional.IColumnPresentation#init(org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext)
*/
- public void init( IPresentationContext context ) {
+ @Override
+ public void init( IPresentationContext context ) {
}
/* (non-Javadoc)
* @see org.eclipse.debug.internal.ui.viewers.model.provisional.IColumnPresentation#dispose()
*/
- public void dispose() {
+ @Override
+ public void dispose() {
}
/* (non-Javadoc)
* @see org.eclipse.debug.internal.ui.viewers.model.provisional.IColumnPresentation#getAvailableColumns()
*/
- public String[] getAvailableColumns() {
+ @Override
+ public String[] getAvailableColumns() {
return ALL_COLUMNS;
}
/* (non-Javadoc)
* @see org.eclipse.debug.internal.ui.viewers.model.provisional.IColumnPresentation#getInitialColumns()
*/
- public String[] getInitialColumns() {
+ @Override
+ public String[] getInitialColumns() {
return INITIAL_COLUMNS;
}
/* (non-Javadoc)
* @see org.eclipse.debug.internal.ui.viewers.model.provisional.IColumnPresentation#getHeader(java.lang.String)
*/
- public String getHeader( String id ) {
+ @Override
+ public String getHeader( String id ) {
if ( COLUMN_ID_TYPE.equals( id ) ) {
return ElementAdapterMessages.RegistersViewColumnPresentation_0;
}
@@ -86,21 +91,24 @@ public class RegistersViewColumnPresentation implements IColumnPresentation {
/* (non-Javadoc)
* @see org.eclipse.debug.internal.ui.viewers.model.provisional.IColumnPresentation#getImageDescriptor(java.lang.String)
*/
- public ImageDescriptor getImageDescriptor( String id ) {
+ @Override
+ public ImageDescriptor getImageDescriptor( String id ) {
return null;
}
/* (non-Javadoc)
* @see org.eclipse.debug.internal.ui.viewers.model.provisional.IColumnPresentation#getId()
*/
- public String getId() {
+ @Override
+ public String getId() {
return ID;
}
/* (non-Javadoc)
* @see org.eclipse.debug.internal.ui.viewers.model.provisional.IColumnPresentation#isOptional()
*/
- public boolean isOptional() {
+ @Override
+ public boolean isOptional() {
return true;
}
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/RegistersViewColumnPresentationFactory.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/RegistersViewColumnPresentationFactory.java
index eefcf7f67a..5ed14d6262 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/RegistersViewColumnPresentationFactory.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/RegistersViewColumnPresentationFactory.java
@@ -21,7 +21,8 @@ public class RegistersViewColumnPresentationFactory implements IColumnPresentati
/* (non-Javadoc)
* @see org.eclipse.debug.internal.ui.viewers.model.provisional.IColumnPresentationFactory#createColumnPresentation(org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext, java.lang.Object)
*/
- public IColumnPresentation createColumnPresentation( IPresentationContext context, Object element ) {
+ @Override
+ public IColumnPresentation createColumnPresentation( IPresentationContext context, Object element ) {
if ( context.getId().equals( IDebugUIConstants.ID_REGISTER_VIEW ) )
return new RegistersViewColumnPresentation();
return null;
@@ -30,7 +31,8 @@ public class RegistersViewColumnPresentationFactory implements IColumnPresentati
/* (non-Javadoc)
* @see org.eclipse.debug.internal.ui.viewers.model.provisional.IColumnPresentationFactory#getColumnPresentationId(org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext, java.lang.Object)
*/
- public String getColumnPresentationId( IPresentationContext context, Object element ) {
+ @Override
+ public String getColumnPresentationId( IPresentationContext context, Object element ) {
if ( context.getId().equals( IDebugUIConstants.ID_REGISTER_VIEW ) )
return RegistersViewColumnPresentation.ID;
return null;
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/launch/CApplicationLaunchShortcut.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/launch/CApplicationLaunchShortcut.java
index 8ddf6aba75..8a76a0afcd 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/launch/CApplicationLaunchShortcut.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/launch/CApplicationLaunchShortcut.java
@@ -71,10 +71,12 @@ import org.eclipse.ui.dialogs.TwoPaneElementSelector;
public class CApplicationLaunchShortcut implements ILaunchShortcut2 {
+ @Override
public void launch(IEditorPart editor, String mode) {
searchAndLaunch(new Object[] { editor.getEditorInput() }, mode);
}
+ @Override
public void launch(ISelection selection, String mode) {
if (selection instanceof IStructuredSelection) {
searchAndLaunch(((IStructuredSelection) selection).toArray(), mode);
@@ -253,6 +255,7 @@ public class CApplicationLaunchShortcut implements ILaunchShortcut2 {
* <code>ILabelProvider</code> method returns the element's <code>toString</code>
* string. Subclasses may override.
*/
+ @Override
public String getText(Object element) {
if (element == null) {
return ""; //$NON-NLS-1$
@@ -328,6 +331,7 @@ public class CApplicationLaunchShortcut implements ILaunchShortcut2 {
*/
protected IBinary chooseBinary(List<IBinary> binList, String mode) {
ILabelProvider programLabelProvider = new CElementLabelProvider() {
+ @Override
public String getText(Object element) {
if (element instanceof IBinary) {
IBinary bin = (IBinary)element;
@@ -340,6 +344,7 @@ public class CApplicationLaunchShortcut implements ILaunchShortcut2 {
};
ILabelProvider qualifierLabelProvider = new CElementLabelProvider() {
+ @Override
public String getText(Object element) {
if (element instanceof IBinary) {
IBinary bin = (IBinary)element;
@@ -394,6 +399,7 @@ public class CApplicationLaunchShortcut implements ILaunchShortcut2 {
final List<IBinary> results = new ArrayList<IBinary>();
ProgressMonitorDialog dialog = new ProgressMonitorDialog(getShell());
IRunnableWithProgress runnable = new IRunnableWithProgress() {
+ @Override
public void run(IProgressMonitor pm) throws InterruptedException {
int nElements = elements.length;
pm.beginTask("Looking for executables", nElements); //$NON-NLS-1$
@@ -453,18 +459,21 @@ public class CApplicationLaunchShortcut implements ILaunchShortcut2 {
}
}
+ @Override
public ILaunchConfiguration[] getLaunchConfigurations(ISelection selection) {
// This returns null so the platform will use the ILaunchShortcut behavior
// and get the configurations based on the project resource association.
return null;
}
+ @Override
public ILaunchConfiguration[] getLaunchConfigurations(IEditorPart editorpart) {
// This returns null so the platform will use the ILaunchShortcut behavior
// and get the configurations based on the project resource association.
return null;
}
+ @Override
public IResource getLaunchableResource(ISelection selection) {
// Take the selection and determine which project is intended to
// be used for the launch.
@@ -553,6 +562,7 @@ public class CApplicationLaunchShortcut implements ILaunchShortcut2 {
return projects;
}
+ @Override
public IResource getLaunchableResource(IEditorPart editorpart) {
// This handles the case where the selection is text in an editor.
IEditorInput editorInput = editorpart.getEditorInput();
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/launch/CPropertyTester.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/launch/CPropertyTester.java
index 46234d245e..c889e1cce9 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/launch/CPropertyTester.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/launch/CPropertyTester.java
@@ -25,6 +25,7 @@ import org.eclipse.core.runtime.IAdaptable;
*/
public class CPropertyTester extends PropertyTester {
+ @Override
public boolean test(Object receiver, String property, Object[] args, Object expectedValue) {
if ("isExecutable".equals(property)) //$NON-NLS-1$
return isExecutable(receiver);
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/launch/PlaceHolderLaunchConfigurationTabGroup.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/launch/PlaceHolderLaunchConfigurationTabGroup.java
index 08bccd4de4..ed24c0296b 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/launch/PlaceHolderLaunchConfigurationTabGroup.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/launch/PlaceHolderLaunchConfigurationTabGroup.java
@@ -27,7 +27,8 @@ public class PlaceHolderLaunchConfigurationTabGroup extends AbstractLaunchConfig
/* (non-Javadoc)
* @see org.eclipse.debug.ui.ILaunchConfigurationTabGroup#createTabs(org.eclipse.debug.ui.ILaunchConfigurationDialog, java.lang.String)
*/
- public void createTabs(ILaunchConfigurationDialog dialog, String mode) {
+ @Override
+ public void createTabs(ILaunchConfigurationDialog dialog, String mode) {
setTabs(new ILaunchConfigurationTab[0]);
}
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/pinclone/DebugContextPinProvider.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/pinclone/DebugContextPinProvider.java
index ff05de7fb5..e12755251a 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/pinclone/DebugContextPinProvider.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/pinclone/DebugContextPinProvider.java
@@ -54,6 +54,7 @@ public class DebugContextPinProvider extends AbstractDebugContextProvider implem
fActiveContext = activeContext;
fPinHandles = pin(part, activeContext, new IPinModelListener() {
+ @Override
public void modelChanged(ISelection selection) {
// send a change notification for the view to update
delegateEvent(new DebugContextEvent(DebugContextPinProvider.this,
@@ -76,6 +77,7 @@ public class DebugContextPinProvider extends AbstractDebugContextProvider implem
* (non-Javadoc)
* @see org.eclipse.debug.ui.contexts.IDebugContextProvider2#isWindowContextProvider()
*/
+ @Override
public boolean isWindowContextProvider() {
return false;
}
@@ -84,6 +86,7 @@ public class DebugContextPinProvider extends AbstractDebugContextProvider implem
* (non-Javadoc)
* @see org.eclipse.debug.ui.contexts.IDebugContextProvider#getActiveContext()
*/
+ @Override
public ISelection getActiveContext() {
return fActiveContext;
}
@@ -144,6 +147,7 @@ public class DebugContextPinProvider extends AbstractDebugContextProvider implem
*/
public void delegateEvent(final DebugContextEvent event) {
Display.getDefault().syncExec(new Runnable() {
+ @Override
public void run() {
fActiveContext = event.getContext();
fire(event);
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/pinclone/DebugEventFilterService.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/pinclone/DebugEventFilterService.java
index 5687cadbdc..11fb8de3e1 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/pinclone/DebugEventFilterService.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/pinclone/DebugEventFilterService.java
@@ -45,6 +45,7 @@ public class DebugEventFilterService {
* (non-Javadoc)
* @see org.eclipse.debug.ui.contexts.IDebugContextListener#debugContextChanged(org.eclipse.debug.ui.contexts.DebugContextEvent)
*/
+ @Override
public void debugContextChanged(DebugContextEvent event) {
ISelection eventContext = event.getContext();
if (eventContext instanceof IStructuredSelection) {
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/pinclone/PinCloneUtils.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/pinclone/PinCloneUtils.java
index 512a26d858..197029a7b2 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/pinclone/PinCloneUtils.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/pinclone/PinCloneUtils.java
@@ -40,9 +40,11 @@ public class PinCloneUtils {
* Default pin element color descriptor.
*/
private static class DefaultPinElementColorDescriptor implements IPinElementColorDescriptor {
+ @Override
public int getOverlayColor() {
return GREEN;
}
+ @Override
public ImageDescriptor getToolbarIconDescriptor() {
return null;
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/pinclone/ViewIDCounterManager.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/pinclone/ViewIDCounterManager.java
index cda1a8310d..11f2249e6b 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/pinclone/ViewIDCounterManager.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/pinclone/ViewIDCounterManager.java
@@ -109,8 +109,10 @@ public final class ViewIDCounterManager {
// add a workbench listener to listen to preShutdown and ignore view part close event
IWorkbench wb = PlatformUI.getWorkbench();
wb.addWorkbenchListener(new IWorkbenchListener() {
+ @Override
public void postShutdown(IWorkbench workbench) {}
+ @Override
public boolean preShutdown(IWorkbench workbench, boolean forced) {
fShuttingDown = true;
return true;
@@ -118,13 +120,20 @@ public final class ViewIDCounterManager {
});
final IPartListener2 partListener = new IPartListener2() {
+ @Override
public void partVisible(IWorkbenchPartReference partRef) {}
+ @Override
public void partInputChanged(IWorkbenchPartReference partRef) {}
+ @Override
public void partHidden(IWorkbenchPartReference partRef) {}
+ @Override
public void partDeactivated(IWorkbenchPartReference partRef) {}
+ @Override
public void partBroughtToTop(IWorkbenchPartReference partRef) {}
+ @Override
public void partActivated(IWorkbenchPartReference partRef) {}
+ @Override
public void partOpened(IWorkbenchPartReference partRef) {
if (partRef instanceof IViewReference) {
IViewPart part = ((IViewReference) partRef).getView(false);
@@ -134,6 +143,7 @@ public final class ViewIDCounterManager {
}
}
+ @Override
public void partClosed(IWorkbenchPartReference partRef) {
if (!fShuttingDown)
recycleCounterId(partRef);
@@ -147,10 +157,14 @@ public final class ViewIDCounterManager {
// subscribe to new workbench window listener
wb.addWindowListener(new IWindowListener() {
+ @Override
public void windowDeactivated(IWorkbenchWindow window) {}
+ @Override
public void windowActivated(IWorkbenchWindow window) {}
+ @Override
public void windowClosed(IWorkbenchWindow window) {}
+ @Override
public void windowOpened(IWorkbenchWindow window) {
window.getPartService().addPartListener(partListener);
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/preferences/CDebugPreferencePage.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/preferences/CDebugPreferencePage.java
index b1fde54416..8e0da95abd 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/preferences/CDebugPreferencePage.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/preferences/CDebugPreferencePage.java
@@ -75,6 +75,7 @@ public class CDebugPreferencePage extends PreferencePage implements IWorkbenchPr
private boolean fHasStateChanged = false;
+ @Override
public void propertyChange( PropertyChangeEvent event ) {
if ( event.getProperty().equals( ICDebugPreferenceConstants.PREF_SHOW_HEX_VALUES ) ) {
fHasStateChanged = true;
@@ -157,6 +158,7 @@ public class CDebugPreferencePage extends PreferencePage implements IWorkbenchPr
*
* @see org.eclipse.ui.IWorkbenchPreferencePage#init(IWorkbench)
*/
+ @Override
public void init( IWorkbench workbench ) {
fWorkbench = workbench;
}
@@ -262,6 +264,7 @@ public class CDebugPreferencePage extends PreferencePage implements IWorkbenchPr
private void refreshViews() {
BusyIndicator.showWhile( getShell().getDisplay(), new Runnable() {
+ @Override
public void run() {
// Refresh interested views
IWorkbenchWindow[] windows = CDebugUIPlugin.getDefault().getWorkbench().getWorkbenchWindows();
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/preferences/ComboFieldEditor.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/preferences/ComboFieldEditor.java
index f8d04a77b3..bf197c2186 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/preferences/ComboFieldEditor.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/preferences/ComboFieldEditor.java
@@ -71,6 +71,7 @@ public class ComboFieldEditor extends FieldEditor {
/**
* @see FieldEditor#adjustForNumColumns(int)
*/
+ @Override
protected void adjustForNumColumns(int numColumns) {
if ( numColumns <= 1 )
return;
@@ -86,6 +87,7 @@ public class ComboFieldEditor extends FieldEditor {
/**
* @see FieldEditor#doFillIntoGrid(Composite, int)
*/
+ @Override
protected void doFillIntoGrid(Composite parent, int numColumns) {
Control control = getLabelControl(parent);
GridData gd = new GridData();
@@ -100,6 +102,7 @@ public class ComboFieldEditor extends FieldEditor {
/**
* @see FieldEditor#doLoad()
*/
+ @Override
protected void doLoad() {
updateComboForValue(getPreferenceStore().getString(getPreferenceName()));
}
@@ -107,6 +110,7 @@ public class ComboFieldEditor extends FieldEditor {
/**
* @see FieldEditor#doLoadDefault()
*/
+ @Override
protected void doLoadDefault() {
updateComboForValue(getPreferenceStore().getDefaultString(getPreferenceName()));
}
@@ -114,6 +118,7 @@ public class ComboFieldEditor extends FieldEditor {
/**
* @see FieldEditor#doStore()
*/
+ @Override
protected void doStore() {
if (fValue == null) {
getPreferenceStore().setToDefault(getPreferenceName());
@@ -126,6 +131,7 @@ public class ComboFieldEditor extends FieldEditor {
/**
* @see FieldEditor#getNumberOfControls()
*/
+ @Override
public int getNumberOfControls() {
return 1;
}
@@ -141,6 +147,7 @@ public class ComboFieldEditor extends FieldEditor {
}
fCombo.addSelectionListener(new SelectionAdapter() {
+ @Override
public void widgetSelected(SelectionEvent evt) {
String oldValue = fValue;
String name = fCombo.getText();
@@ -185,6 +192,7 @@ public class ComboFieldEditor extends FieldEditor {
/* (non-Javadoc)
* @see org.eclipse.jface.preference.FieldEditor#fireValueChanged(String, Object, Object)
*/
+ @Override
protected void fireValueChanged( String property, Object oldValue, Object newValue )
{
super.fireValueChanged( property, oldValue, newValue );
@@ -193,6 +201,7 @@ public class ComboFieldEditor extends FieldEditor {
/* (non-Javadoc)
* @see org.eclipse.jface.preference.FieldEditor#setPresentsDefaultValue(boolean)
*/
+ @Override
protected void setPresentsDefaultValue( boolean b )
{
super.setPresentsDefaultValue( b );
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/preferences/DebuggerTypesPage.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/preferences/DebuggerTypesPage.java
index 20e7e8593b..a89beb801f 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/preferences/DebuggerTypesPage.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/preferences/DebuggerTypesPage.java
@@ -52,14 +52,17 @@ public class DebuggerTypesPage extends PreferencePage implements IWorkbenchPrefe
public DebuggerTypesDialogField() {
super( new IListAdapter() {
+ @Override
public void customButtonPressed( DialogField field, int index ) {
}
+ @Override
public void selectionChanged( DialogField field ) {
}
}, fgButtonLabels, new DebuggerTypeLabelProvider() );
}
+ @Override
public Control[] doFillIntoGrid( Composite parent, int nColumns ) {
PixelConverter converter = new PixelConverter( parent );
assertEnoughColumns( nColumns );
@@ -87,6 +90,7 @@ public class DebuggerTypesPage extends PreferencePage implements IWorkbenchPrefe
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.internal.ui.dialogfields.CheckedListDialogField#getManagedButtonState(org.eclipse.jface.viewers.ISelection, int)
*/
+ @Override
protected boolean getManagedButtonState( ISelection sel, int index ) {
// Enable/disable the "Default" button
if ( index == 2 && sel instanceof IStructuredSelection ) {
@@ -99,6 +103,7 @@ public class DebuggerTypesPage extends PreferencePage implements IWorkbenchPrefe
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.internal.ui.dialogfields.CheckedListDialogField#managedButtonPressed(int)
*/
+ @Override
protected boolean managedButtonPressed( int index ) {
if ( index == 2 ) {
List list = getSelectedElements();
@@ -114,6 +119,7 @@ public class DebuggerTypesPage extends PreferencePage implements IWorkbenchPrefe
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.internal.ui.dialogfields.ListDialogField#getListStyle()
*/
+ @Override
protected int getListStyle() {
return SWT.BORDER + SWT.SINGLE + SWT.H_SCROLL + SWT.V_SCROLL;
}
@@ -121,6 +127,7 @@ public class DebuggerTypesPage extends PreferencePage implements IWorkbenchPrefe
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.internal.ui.dialogfields.CheckedListDialogField#doCheckStateChanged(org.eclipse.jface.viewers.CheckStateChangedEvent)
*/
+ @Override
protected void doCheckStateChanged( CheckStateChangedEvent e ) {
super.doCheckStateChanged( e );
ICDebugConfiguration dc = (ICDebugConfiguration)e.getElement();
@@ -138,6 +145,7 @@ public class DebuggerTypesPage extends PreferencePage implements IWorkbenchPrefe
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.internal.ui.dialogfields.CheckedListDialogField#checkAll(boolean)
*/
+ @Override
public void checkAll( boolean state ) {
super.checkAll( state );
List list = getCheckedElements();
@@ -151,6 +159,7 @@ public class DebuggerTypesPage extends PreferencePage implements IWorkbenchPrefe
*/
class DebuggerTypeLabelProvider extends LabelProvider {
+ @Override
public String getText( Object element ) {
if ( element instanceof ICDebugConfiguration ) {
ICDebugConfiguration dc = (ICDebugConfiguration)element;
@@ -170,6 +179,7 @@ public class DebuggerTypesPage extends PreferencePage implements IWorkbenchPrefe
/* (non-Javadoc)
* @see org.eclipse.jface.preference.PreferencePage#createContents(org.eclipse.swt.widgets.Composite)
*/
+ @Override
protected Control createContents( Composite parent ) {
Font font = parent.getFont();
Composite comp = new Composite( parent, SWT.NONE );
@@ -198,6 +208,7 @@ public class DebuggerTypesPage extends PreferencePage implements IWorkbenchPrefe
/* (non-Javadoc)
* @see org.eclipse.ui.IWorkbenchPreferencePage#init(org.eclipse.ui.IWorkbench)
*/
+ @Override
public void init( IWorkbench workbench ) {
fWorkbench = workbench;
}
@@ -216,6 +227,7 @@ public class DebuggerTypesPage extends PreferencePage implements IWorkbenchPrefe
/* (non-Javadoc)
* @see org.eclipse.jface.preference.PreferencePage#performOk()
*/
+ @Override
public boolean performOk() {
CDebugCorePlugin.getDefault().saveDefaultDebugConfiguration( getDefault() );
List elements = fListField.getElements();
@@ -235,6 +247,7 @@ public class DebuggerTypesPage extends PreferencePage implements IWorkbenchPrefe
/* (non-Javadoc)
* @see org.eclipse.jface.preference.PreferencePage#performDefaults()
*/
+ @Override
protected void performDefaults() {
fListField.setCheckedElements( Arrays.asList( CDebugCorePlugin.getDefault().getDefaultActiveDebugConfigurations() ) );
ICDebugConfiguration defaultConfiguration = CDebugCorePlugin.getDefault().getDefaultDefaultDebugConfiguration();
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/preferences/DisassemblyPreferencePage.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/preferences/DisassemblyPreferencePage.java
index d76ce57380..1d226c9043 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/preferences/DisassemblyPreferencePage.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/preferences/DisassemblyPreferencePage.java
@@ -74,6 +74,7 @@ public class DisassemblyPreferencePage extends FieldEditorPreferencePage impleme
/* (non-Javadoc)
* @see org.eclipse.ui.IWorkbenchPreferencePage#init(org.eclipse.ui.IWorkbench)
*/
- public void init( IWorkbench workbench ) {
+ @Override
+ public void init( IWorkbench workbench ) {
}
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/preferences/SourcePreferencePage.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/preferences/SourcePreferencePage.java
index 9ea87e3c13..f6c2111796 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/preferences/SourcePreferencePage.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/preferences/SourcePreferencePage.java
@@ -53,6 +53,7 @@ public class SourcePreferencePage extends PreferencePage implements IWorkbenchPr
/* (non-Javadoc)
* @see org.eclipse.jface.preference.PreferencePage#createContents(org.eclipse.swt.widgets.Composite)
*/
+ @Override
protected Control createContents(Composite parent) {
Font font = parent.getFont();
Composite comp = new Composite(parent, SWT.NONE);
@@ -116,6 +117,7 @@ public class SourcePreferencePage extends PreferencePage implements IWorkbenchPr
*
* @see org.eclipse.ui.IWorkbenchPreferencePage#init(org.eclipse.ui.IWorkbench)
*/
+ @Override
public void init(IWorkbench workbench) {
fWorkbench = workbench;
}
@@ -167,6 +169,7 @@ public class SourcePreferencePage extends PreferencePage implements IWorkbenchPr
/* (non-Javadoc)
* @see org.eclipse.jface.preference.PreferencePage#performDefaults()
*/
+ @Override
protected void performDefaults() {
fPathViewer.setEntries(new ISourceContainer[0]);
super.performDefaults();
@@ -175,6 +178,7 @@ public class SourcePreferencePage extends PreferencePage implements IWorkbenchPr
/* (non-Javadoc)
* @see org.eclipse.jface.preference.PreferencePage#performOk()
*/
+ @Override
public boolean performOk() {
CDebugCorePlugin.getDefault().getCommonSourceLookupDirector().setSourceContainers(fPathViewer.getEntries());
CDebugCorePlugin.getDefault().savePluginPreferences();
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/propertypages/CBreakpointFilteringPage.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/propertypages/CBreakpointFilteringPage.java
index 3351bf7c36..7879cd8ccc 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/propertypages/CBreakpointFilteringPage.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/propertypages/CBreakpointFilteringPage.java
@@ -28,6 +28,7 @@ public class CBreakpointFilteringPage extends PropertyPage {
/* (non-Javadoc)
* @see org.eclipse.jface.preference.PreferencePage#createContents(org.eclipse.swt.widgets.Composite)
*/
+ @Override
protected Control createContents( Composite parent ) {
noDefaultAndApplyButton();
Composite mainComposite = new Composite( parent, SWT.NONE );
@@ -65,6 +66,7 @@ public class CBreakpointFilteringPage extends PropertyPage {
/* (non-Javadoc)
* @see org.eclipse.jface.preference.IPreferencePage#performOk()
*/
+ @Override
public boolean performOk() {
doStore();
return super.performOk();
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 33d7d39d72..1b188d0660 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
@@ -64,6 +64,7 @@ public class CBreakpointPropertyPage extends FieldEditorPreferencePage implement
/**
* @see IntegerFieldEditor#checkState()
*/
+ @Override
protected boolean checkState() {
Text control = getTextControl();
if ( !control.isEnabled() ) {
@@ -76,6 +77,7 @@ public class CBreakpointPropertyPage extends FieldEditorPreferencePage implement
/**
* Overrode here to be package visible.
*/
+ @Override
protected void refreshValidState() {
super.refreshValidState();
}
@@ -85,6 +87,7 @@ public class CBreakpointPropertyPage extends FieldEditorPreferencePage implement
*
* @see FieldEditor#doStore()
*/
+ @Override
protected void doStore() {
Text text = getTextControl();
if ( text.isEnabled() ) {
@@ -95,6 +98,7 @@ public class CBreakpointPropertyPage extends FieldEditorPreferencePage implement
/**
* Clears the error message from the message line if the error message is the error message from this field editor.
*/
+ @Override
protected void clearErrorMessage() {
if ( getPage() != null ) {
String message = getPage().getErrorMessage();
@@ -119,6 +123,7 @@ public class CBreakpointPropertyPage extends FieldEditorPreferencePage implement
/**
* @see StringFieldEditor#checkState()
*/
+ @Override
protected boolean checkState() {
Text control = getTextControl();
if ( !control.isEnabled() ) {
@@ -128,6 +133,7 @@ public class CBreakpointPropertyPage extends FieldEditorPreferencePage implement
return super.checkState();
}
+ @Override
protected void doStore() {
Text text = getTextControl();
if ( text.isEnabled() ) {
@@ -138,6 +144,7 @@ public class CBreakpointPropertyPage extends FieldEditorPreferencePage implement
/**
* @see FieldEditor#refreshValidState()
*/
+ @Override
protected void refreshValidState() {
super.refreshValidState();
}
@@ -145,6 +152,7 @@ public class CBreakpointPropertyPage extends FieldEditorPreferencePage implement
/**
* Clears the error message from the message line if the error message is the error message from this field editor.
*/
+ @Override
protected void clearErrorMessage() {
if ( getPage() != null ) {
String message = getPage().getErrorMessage();
@@ -213,6 +221,7 @@ public class CBreakpointPropertyPage extends FieldEditorPreferencePage implement
*
* @see org.eclipse.jface.preference.FieldEditorPreferencePage#createFieldEditors()
*/
+ @Override
protected void createFieldEditors() {
ICBreakpoint breakpoint = getBreakpoint();
createMainLabel(breakpoint);
@@ -402,6 +411,7 @@ public class CBreakpointPropertyPage extends FieldEditorPreferencePage implement
/* (non-Javadoc)
* @see org.eclipse.ui.IWorkbenchPropertyPage#getElement()
*/
+ @Override
public IAdaptable getElement() {
return fElement;
}
@@ -409,14 +419,17 @@ public class CBreakpointPropertyPage extends FieldEditorPreferencePage implement
/* (non-Javadoc)
* @see org.eclipse.ui.IWorkbenchPropertyPage#setElement(org.eclipse.core.runtime.IAdaptable)
*/
+ @Override
public void setElement( IAdaptable element ) {
fElement = element;
}
+ @Override
public IPreferenceStore getPreferenceStore() {
return fCBreakpointPreferenceStore;
}
+ @Override
public boolean performOk() {
final List changedProperties = new ArrayList( 5 );
getPreferenceStore().addPropertyChangeListener( new IPropertyChangeListener() {
@@ -424,6 +437,7 @@ public class CBreakpointPropertyPage extends FieldEditorPreferencePage implement
/**
* @see IPropertyChangeListener#propertyChange(PropertyChangeEvent)
*/
+ @Override
public void propertyChange( PropertyChangeEvent event ) {
changedProperties.add( event.getProperty() );
}
@@ -436,6 +450,7 @@ public class CBreakpointPropertyPage extends FieldEditorPreferencePage implement
protected void setBreakpointProperties( final List changedProperties ) {
IWorkspaceRunnable wr = new IWorkspaceRunnable() {
+ @Override
public void run( IProgressMonitor monitor ) throws CoreException {
ICBreakpoint breakpoint = getBreakpoint();
Iterator changed = changedProperties.iterator();
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/propertypages/ModuleProperties.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/propertypages/ModuleProperties.java
index 8d628f745c..368c2b477c 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/propertypages/ModuleProperties.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/propertypages/ModuleProperties.java
@@ -47,6 +47,7 @@ public class ModuleProperties {
return fValue;
}
+ @Override
public String toString() {
String result = ""; //$NON-NLS-1$
if ( getKey() != null )
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/propertypages/ModulePropertyPage.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/propertypages/ModulePropertyPage.java
index 858decce6e..34b86a60d1 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/propertypages/ModulePropertyPage.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/propertypages/ModulePropertyPage.java
@@ -54,6 +54,7 @@ public class ModulePropertyPage extends PropertyPage {
/* (non-Javadoc)
* @see org.eclipse.jface.preference.PreferencePage#createContents(org.eclipse.swt.widgets.Composite)
*/
+ @Override
protected Control createContents( Composite parent ) {
noDefaultAndApplyButton();
Composite composite = new Composite( parent, SWT.NONE );
@@ -78,6 +79,7 @@ public class ModulePropertyPage extends PropertyPage {
/* (non-Javadoc)
* @see org.eclipse.jface.preference.IPreferencePage#performOk()
*/
+ @Override
public boolean performOk() {
if ( getModuleProperties() != null && getModuleProperties().isDirty() ) {
final IPath path = (IPath)getModuleProperties().getProperty( ModuleProperties.SYMBOLS_FILE );
@@ -86,6 +88,7 @@ public class ModulePropertyPage extends PropertyPage {
DebugPlugin.getDefault().asyncExec(
new Runnable() {
+ @Override
public void run() {
try {
module.setSymbolsFileName( path );
@@ -171,6 +174,7 @@ public class ModulePropertyPage extends PropertyPage {
fBrowseButton.addSelectionListener(
new SelectionListener() {
+ @Override
public void widgetSelected( SelectionEvent e ) {
FileDialog dialog = new FileDialog( fBrowseButton.getShell() );
dialog.setFileName( ((IPath)getModuleProperties().getProperty( ModuleProperties.SYMBOLS_FILE )).toOSString() );
@@ -182,6 +186,7 @@ public class ModulePropertyPage extends PropertyPage {
}
}
+ @Override
public void widgetDefaultSelected( SelectionEvent e ) {
}
} );
@@ -228,6 +233,7 @@ public class ModulePropertyPage extends PropertyPage {
/* (non-Javadoc)
* @see org.eclipse.jface.dialogs.IDialogPage#dispose()
*/
+ @Override
public void dispose() {
if ( getModuleProperties() != null ) {
getModuleProperties().dispose();
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/propertypages/SignalPropertyPage.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/propertypages/SignalPropertyPage.java
index 544c25d9db..53d597b9a3 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/propertypages/SignalPropertyPage.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/propertypages/SignalPropertyPage.java
@@ -42,6 +42,7 @@ public class SignalPropertyPage extends PropertyPage {
/* (non-Javadoc)
* @see org.eclipse.jface.preference.PreferencePage#createContents(org.eclipse.swt.widgets.Composite)
*/
+ @Override
protected Control createContents( Composite parent ) {
noDefaultAndApplyButton();
Composite composite = new Composite( parent, SWT.NONE );
@@ -106,11 +107,13 @@ public class SignalPropertyPage extends PropertyPage {
/* (non-Javadoc)
* @see org.eclipse.jface.preference.IPreferencePage#performOk()
*/
+ @Override
public boolean performOk() {
boolean result = super.performOk();
if ( result ) {
DebugPlugin.getDefault().asyncExec(
new Runnable() {
+ @Override
public void run() {
if ( !getSignal().canModify() )
return;
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/propertypages/ThreadFilterEditor.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/propertypages/ThreadFilterEditor.java
index 92e01ec069..b02390ca10 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/propertypages/ThreadFilterEditor.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/propertypages/ThreadFilterEditor.java
@@ -48,6 +48,7 @@ public class ThreadFilterEditor {
/* (non-Javadoc)
* @see org.eclipse.jface.viewers.ICheckStateListener#checkStateChanged(org.eclipse.jface.viewers.CheckStateChangedEvent)
*/
+ @Override
public void checkStateChanged( CheckStateChangedEvent event ) {
Object element = event.getElement();
if ( element instanceof IDebugTarget ) {
@@ -134,6 +135,7 @@ public class ThreadFilterEditor {
/* (non-Javadoc)
* @see org.eclipse.jface.viewers.ITreeContentProvider#getChildren(java.lang.Object)
*/
+ @Override
public Object[] getChildren( Object parent ) {
if ( parent instanceof IDebugTarget ) {
ICDebugTarget target = (ICDebugTarget)((IDebugTarget)parent).getAdapter( ICDebugTarget.class );
@@ -168,6 +170,7 @@ public class ThreadFilterEditor {
/* (non-Javadoc)
* @see org.eclipse.jface.viewers.ITreeContentProvider#getParent(java.lang.Object)
*/
+ @Override
public Object getParent( Object element ) {
if ( element instanceof IThread ) {
return ((IThread)element).getDebugTarget();
@@ -184,6 +187,7 @@ public class ThreadFilterEditor {
/* (non-Javadoc)
* @see org.eclipse.jface.viewers.ITreeContentProvider#hasChildren(java.lang.Object)
*/
+ @Override
public boolean hasChildren( Object element ) {
if ( element instanceof IStackFrame ) {
return false;
@@ -203,6 +207,7 @@ public class ThreadFilterEditor {
/* (non-Javadoc)
* @see org.eclipse.jface.viewers.IStructuredContentProvider#getElements(java.lang.Object)
*/
+ @Override
public Object[] getElements( Object inputElement ) {
return getChildren( inputElement );
}
@@ -210,12 +215,14 @@ public class ThreadFilterEditor {
/* (non-Javadoc)
* @see org.eclipse.jface.viewers.IContentProvider#dispose()
*/
+ @Override
public void dispose() {
}
/* (non-Javadoc)
* @see org.eclipse.jface.viewers.IContentProvider#inputChanged(org.eclipse.jface.viewers.Viewer, java.lang.Object, java.lang.Object)
*/
+ @Override
public void inputChanged( Viewer viewer, Object oldInput, Object newInput ) {
}
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/AbsolutePathSourceContainerBrowser.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/AbsolutePathSourceContainerBrowser.java
index 0845242218..5db70a1318 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/AbsolutePathSourceContainerBrowser.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/AbsolutePathSourceContainerBrowser.java
@@ -21,6 +21,7 @@ import org.eclipse.swt.widgets.Shell;
*/
public class AbsolutePathSourceContainerBrowser extends AbstractSourceContainerBrowser {
+ @Override
public ISourceContainer[] addSourceContainers(Shell shell, ISourceLookupDirector director) {
return new ISourceContainer[] { new AbsolutePathSourceContainer() };
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/AddContainerAction.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/AddContainerAction.java
index db143d593a..5969d49c0a 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/AddContainerAction.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/AddContainerAction.java
@@ -30,6 +30,7 @@ public class AddContainerAction extends SourceContainerAction {
*
* @see org.eclipse.jface.action.IAction#run()
*/
+ @Override
public void run() {
AddSourceContainerDialog dialog = new AddSourceContainerDialog(getShell(), getViewer(), fDirector);
dialog.open();
@@ -42,6 +43,7 @@ public class AddContainerAction extends SourceContainerAction {
/* (non-Javadoc)
* @see org.eclipse.ui.actions.BaseSelectionListenerAction#updateSelection(org.eclipse.jface.viewers.IStructuredSelection)
*/
+ @Override
protected boolean updateSelection(IStructuredSelection selection) {
if (selection == null || selection.isEmpty()) {
return true;
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/AddSourceContainerDialog.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/AddSourceContainerDialog.java
index a280b30de4..b0ce1e497b 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/AddSourceContainerDialog.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/AddSourceContainerDialog.java
@@ -64,6 +64,7 @@ public class AddSourceContainerDialog extends TitleAreaDialog {
/**
* Creates the dialog area to display source container types that are "browseable"
*/
+ @Override
protected Control createDialogArea(Composite ancestor) {
getShell().setText(SourceLookupUIMessages.AddSourceContainerDialog_0);
setTitle(SourceLookupUIMessages.AddSourceContainerDialog_1);
@@ -84,6 +85,7 @@ public class AddSourceContainerDialog extends TitleAreaDialog {
if (fDoubleClickSelects) {
table.addSelectionListener(new SelectionAdapter() {
+ @Override
public void widgetDefaultSelected(SelectionEvent e) {
if (table.getSelectionCount() == 1)
okPressed();
@@ -95,6 +97,7 @@ public class AddSourceContainerDialog extends TitleAreaDialog {
fViewer.setContentProvider(new ArrayContentProvider());
fViewer.setSorter(new ViewerSorter());
fViewer.addSelectionChangedListener(new ISelectionChangedListener() {
+ @Override
public void selectionChanged(SelectionChangedEvent event) {
ISelection selection = event.getSelection();
String desc = null;
@@ -135,6 +138,7 @@ public class AddSourceContainerDialog extends TitleAreaDialog {
/* (non-Javadoc)
* @see org.eclipse.jface.dialogs.Dialog#okPressed()
*/
+ @Override
protected void okPressed() {
// Single selection dialog, so take first item in array
// there will always be a selected item since we set it with viewer.setSelection
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/CProjectSourceContainerBrowser.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/CProjectSourceContainerBrowser.java
index 0109a48e93..2901c0931f 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/CProjectSourceContainerBrowser.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/CProjectSourceContainerBrowser.java
@@ -34,6 +34,7 @@ public class CProjectSourceContainerBrowser extends AbstractSourceContainerBrows
/* (non-Javadoc)
* @see org.eclipse.debug.internal.ui.sourcelookup.ISourceContainerBrowser#createSourceContainers(org.eclipse.swt.widgets.Shell, org.eclipse.debug.core.ILaunchConfiguration)
*/
+ @Override
public ISourceContainer[] addSourceContainers(Shell shell, ISourceLookupDirector director) {
if (director.getLaunchConfiguration() == null) {
TargetProjectSourceContainerDialog dialog = new TargetProjectSourceContainerDialog(shell);
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 d7bf6cdf90..3a3441510f 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
@@ -84,11 +84,13 @@ public class CSourceNotFoundEditor extends CommonSourceNotFoundEditor {
super();
}
+ @Override
public void createPartControl(Composite parent) {
super.createPartControl(parent);
PlatformUI.getWorkbench().getHelpSystem().setHelp(parent, ICDebugHelpContextIds.SOURCE_NOT_FOUND);
}
+ @Override
public void setInput(IEditorInput input) {
if (input instanceof CSourceNotFoundEditorInput) {
isDebugElement = false;
@@ -121,6 +123,7 @@ public class CSourceNotFoundEditor extends CommonSourceNotFoundEditor {
editLookupButton.setVisible(missingFile.length() > 0);
}
+ @Override
protected String getText() {
if (missingFile.length() > 0) {
return NLS.bind(SourceLookupUIMessages.CSourceNotFoundEditor_0, missingFile);
@@ -137,6 +140,7 @@ public class CSourceNotFoundEditor extends CommonSourceNotFoundEditor {
}
}
+ @Override
protected void createButtons(Composite parent) {
if (isDebugElement) {
GridData data;
@@ -147,6 +151,7 @@ public class CSourceNotFoundEditor extends CommonSourceNotFoundEditor {
disassemblyButton.setLayoutData(data);
disassemblyButton.setText(SourceLookupUIMessages.CSourceNotFoundEditor_4);
disassemblyButton.addSelectionListener(new SelectionAdapter() {
+ @Override
public void widgetSelected(SelectionEvent evt) {
viewDisassembly();
}
@@ -163,6 +168,7 @@ public class CSourceNotFoundEditor extends CommonSourceNotFoundEditor {
locateFileButton.setLayoutData(data);
locateFileButton.setText(SourceLookupUIMessages.CSourceNotFoundEditor_1);
locateFileButton.addSelectionListener(new SelectionAdapter() {
+ @Override
public void widgetSelected(SelectionEvent evt) {
locateFile();
}
@@ -179,6 +185,7 @@ public class CSourceNotFoundEditor extends CommonSourceNotFoundEditor {
editLookupButton.setLayoutData(data);
editLookupButton.setText(SourceLookupUIMessages.CSourceNotFoundEditor_5);
editLookupButton.addSelectionListener(new SelectionAdapter() {
+ @Override
public void widgetSelected(SelectionEvent evt) {
editSourceLookupPath();
}
@@ -332,6 +339,7 @@ public class CSourceNotFoundEditor extends CommonSourceNotFoundEditor {
* @Override
* @see org.eclipse.debug.ui.sourcelookup.CommonSourceNotFoundEditor#getArtifact()
*/
+ @Override
protected Object getArtifact() {
Object o = super.getArtifact();
if (o instanceof CSourceNotFoundElement) {
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/CompilationDirectorySourceContainerBrowser.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/CompilationDirectorySourceContainerBrowser.java
index 334658bc34..8d06956911 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/CompilationDirectorySourceContainerBrowser.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/CompilationDirectorySourceContainerBrowser.java
@@ -26,6 +26,7 @@ public class CompilationDirectorySourceContainerBrowser extends AbstractSourceCo
/* (non-Javadoc)
* @see org.eclipse.debug.internal.ui.sourcelookup.ISourceContainerBrowser#createSourceContainers(org.eclipse.swt.widgets.Shell, org.eclipse.debug.core.ILaunchConfiguration)
*/
+ @Override
public ISourceContainer[] addSourceContainers(Shell shell, ISourceLookupDirector director) {
ISourceContainer[] containers = new ISourceContainer[1];
CompilationDirectorySourceContainerDialog dialog = new CompilationDirectorySourceContainerDialog(shell);
@@ -42,6 +43,7 @@ public class CompilationDirectorySourceContainerBrowser extends AbstractSourceCo
/* (non-Javadoc)
* @see org.eclipse.debug.ui.sourcelookup.AbstractSourceContainerBrowser#canEditSourceContainers(org.eclipse.debug.core.sourcelookup.ISourceLookupDirector, org.eclipse.debug.core.sourcelookup.ISourceContainer[])
*/
+ @Override
public boolean canEditSourceContainers(ISourceLookupDirector director, ISourceContainer[] containers) {
return containers.length == 1 && CompilationDirectorySourceContainer.TYPE_ID.equals(containers[0].getType().getId());
}
@@ -49,6 +51,7 @@ public class CompilationDirectorySourceContainerBrowser extends AbstractSourceCo
/* (non-Javadoc)
* @see org.eclipse.debug.ui.sourcelookup.AbstractSourceContainerBrowser#editSourceContainers(org.eclipse.swt.widgets.Shell, org.eclipse.debug.core.sourcelookup.ISourceLookupDirector, org.eclipse.debug.core.sourcelookup.ISourceContainer[])
*/
+ @Override
public ISourceContainer[] editSourceContainers(Shell shell, ISourceLookupDirector director, ISourceContainer[] containers) {
if (containers.length == 1 && CompilationDirectorySourceContainer.TYPE_ID.equals(containers[0].getType().getId()) ) {
CompilationDirectorySourceContainer c = (CompilationDirectorySourceContainer) containers[0];
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/CompilationDirectorySourceContainerDialog.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/CompilationDirectorySourceContainerDialog.java
index 050df7b9e6..de48963259 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/CompilationDirectorySourceContainerDialog.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/CompilationDirectorySourceContainerDialog.java
@@ -101,6 +101,7 @@ public class CompilationDirectorySourceContainerDialog extends TitleAreaDialog {
/* (non-Javadoc)
* @see org.eclipse.jface.dialogs.TitleAreaDialog#createDialogArea(org.eclipse.swt.widgets.Composite)
*/
+ @Override
protected Control createDialogArea(Composite parent) {
Image image = fNewContainer ?
CDebugImages.get(IInternalCDebugUIConstants.IMG_ADD_COMP_DIR_WIZ) :
@@ -139,6 +140,7 @@ public class CompilationDirectorySourceContainerDialog extends TitleAreaDialog {
fDirText.setLayoutData(data);
fDirText.setFont(font);
fDirText.addModifyListener(new ModifyListener() {
+ @Override
public void modifyText(ModifyEvent e) {
validate();
}
@@ -153,7 +155,8 @@ public class CompilationDirectorySourceContainerDialog extends TitleAreaDialog {
button.setLayoutData(data);
button.setFont(JFaceResources.getDialogFont());
button.addSelectionListener(new SelectionAdapter() {
- public void widgetSelected(SelectionEvent event) {
+ @Override
+ public void widgetSelected(SelectionEvent event) {
browse();
}
});
@@ -171,6 +174,7 @@ public class CompilationDirectorySourceContainerDialog extends TitleAreaDialog {
/* (non-Javadoc)
* @see org.eclipse.jface.window.Window#configureShell(org.eclipse.swt.widgets.Shell)
*/
+ @Override
protected void configureShell(Shell newShell) {
String title = null;
if (fNewContainer) {
@@ -185,6 +189,7 @@ public class CompilationDirectorySourceContainerDialog extends TitleAreaDialog {
/* (non-Javadoc)
* @see org.eclipse.jface.dialogs.TitleAreaDialog#createContents(org.eclipse.swt.widgets.Composite)
*/
+ @Override
protected Control createContents(Composite parent) {
Control c = super.createContents(parent);
fDirText.setText(fDirectory);
@@ -197,6 +202,7 @@ public class CompilationDirectorySourceContainerDialog extends TitleAreaDialog {
/* (non-Javadoc)
* @see org.eclipse.jface.dialogs.Dialog#okPressed()
*/
+ @Override
protected void okPressed() {
fDirectory = fDirText.getText().trim();
fCompilationSubfolders = fSubfoldersButton.getSelection();
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/DownAction.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/DownAction.java
index 33a344aa1d..be2d42e367 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/DownAction.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/DownAction.java
@@ -27,6 +27,7 @@ public class DownAction extends SourceContainerAction {
/**
* @see IAction#run()
*/
+ @Override
public void run() {
List<ISourceContainer> targets = getOrderedSelection();
if (targets.isEmpty()) {
@@ -52,6 +53,7 @@ public class DownAction extends SourceContainerAction {
/**
* @see SelectionListenerAction#updateSelection(IStructuredSelection)
*/
+ @Override
protected boolean updateSelection(IStructuredSelection selection) {
return !selection.isEmpty() && !isIndexSelected(selection, getEntriesAsList().size() - 1) &&
getViewer().getTree().getSelection()[0].getParentItem() == null;
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/EditContainerAction.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/EditContainerAction.java
index 9997214fed..8b39ce96f2 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/EditContainerAction.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/EditContainerAction.java
@@ -35,6 +35,7 @@ public class EditContainerAction extends SourceContainerAction {
*
* @see org.eclipse.jface.action.IAction#run()
*/
+ @Override
public void run() {
ISourceContainer[] replacements = fBrowser.editSourceContainers(getShell(), fDirector, fContainers);
int j = 0;
@@ -57,6 +58,7 @@ public class EditContainerAction extends SourceContainerAction {
/* (non-Javadoc)
* @see org.eclipse.ui.actions.BaseSelectionListenerAction#updateSelection(org.eclipse.jface.viewers.IStructuredSelection)
*/
+ @Override
protected boolean updateSelection(IStructuredSelection selection) {
if (selection == null || selection.isEmpty()) {
return false;
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/MappingSourceContainerBrowser.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/MappingSourceContainerBrowser.java
index 26641c938c..5437ad71cc 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/MappingSourceContainerBrowser.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/MappingSourceContainerBrowser.java
@@ -26,6 +26,7 @@ public class MappingSourceContainerBrowser extends AbstractSourceContainerBrowse
/* (non-Javadoc)
* @see org.eclipse.debug.ui.sourcelookup.AbstractSourceContainerBrowser#addSourceContainers(org.eclipse.swt.widgets.Shell, org.eclipse.debug.core.sourcelookup.ISourceLookupDirector)
*/
+ @Override
public ISourceContainer[] addSourceContainers(Shell shell, ISourceLookupDirector director) {
return new ISourceContainer[] { new MappingSourceContainer(generateName(director)) };
}
@@ -33,6 +34,7 @@ public class MappingSourceContainerBrowser extends AbstractSourceContainerBrowse
/* (non-Javadoc)
* @see org.eclipse.debug.ui.sourcelookup.AbstractSourceContainerBrowser#canAddSourceContainers(org.eclipse.debug.core.sourcelookup.ISourceLookupDirector)
*/
+ @Override
public boolean canAddSourceContainers(ISourceLookupDirector director) {
return true;
}
@@ -40,6 +42,7 @@ public class MappingSourceContainerBrowser extends AbstractSourceContainerBrowse
/* (non-Javadoc)
* @see org.eclipse.debug.ui.sourcelookup.AbstractSourceContainerBrowser#canEditSourceContainers(org.eclipse.debug.core.sourcelookup.ISourceLookupDirector, org.eclipse.debug.core.sourcelookup.ISourceContainer[])
*/
+ @Override
public boolean canEditSourceContainers(ISourceLookupDirector director, ISourceContainer[] containers) {
return (containers.length == 1 && containers[0] instanceof MappingSourceContainer);
}
@@ -47,6 +50,7 @@ public class MappingSourceContainerBrowser extends AbstractSourceContainerBrowse
/* (non-Javadoc)
* @see org.eclipse.debug.ui.sourcelookup.AbstractSourceContainerBrowser#editSourceContainers(org.eclipse.swt.widgets.Shell, org.eclipse.debug.core.sourcelookup.ISourceLookupDirector, org.eclipse.debug.core.sourcelookup.ISourceContainer[])
*/
+ @Override
public ISourceContainer[] editSourceContainers(Shell shell, ISourceLookupDirector director, ISourceContainer[] containers) {
if (containers.length == 1 && containers[0] instanceof MappingSourceContainer) {
PathMappingDialog dialog = new PathMappingDialog(shell, (MappingSourceContainer)containers[0]);
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/MappingSourceContainerDialog.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/MappingSourceContainerDialog.java
index 568714a298..efe18f0d74 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/MappingSourceContainerDialog.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/MappingSourceContainerDialog.java
@@ -68,14 +68,16 @@ public class MappingSourceContainerDialog extends TitleAreaDialog {
/* (non-Javadoc)
* @see org.eclipse.jface.viewers.ICellModifier#canModify(java.lang.Object, java.lang.String)
*/
- public boolean canModify(Object element, String property) {
+ @Override
+ public boolean canModify(Object element, String property) {
return (CP_COMPILATION_PATH.equals(property) || CP_FILE_SYSTEM_PATH.equals(property));
}
/* (non-Javadoc)
* @see org.eclipse.jface.viewers.ICellModifier#getValue(java.lang.Object, java.lang.String)
*/
- public Object getValue(Object element, String property) {
+ @Override
+ public Object getValue(Object element, String property) {
if (element instanceof MapEntrySourceContainer) {
MapEntrySourceContainer entry = (MapEntrySourceContainer)element;
if (CP_COMPILATION_PATH.equals(property))
@@ -89,7 +91,8 @@ public class MappingSourceContainerDialog extends TitleAreaDialog {
/* (non-Javadoc)
* @see org.eclipse.jface.viewers.ICellModifier#modify(java.lang.Object, java.lang.String, java.lang.Object)
*/
- public void modify(Object element, String property, Object value) {
+ @Override
+ public void modify(Object element, String property, Object value) {
MapEntrySourceContainer entry =
(element instanceof Item) ?
(MapEntrySourceContainer)((Item)element).getData()
@@ -131,7 +134,8 @@ public class MappingSourceContainerDialog extends TitleAreaDialog {
/* (non-Javadoc)
* @see org.eclipse.jface.viewers.ITableLabelProvider#getColumnImage(java.lang.Object, int)
*/
- public Image getColumnImage(Object element, int columnIndex) {
+ @Override
+ public Image getColumnImage(Object element, int columnIndex) {
if (element instanceof MapEntrySourceContainer && columnIndex == 0) {
return CDebugImages.get(CDebugImages.IMG_OBJS_PATH_MAP_ENTRY);
}
@@ -141,7 +145,8 @@ public class MappingSourceContainerDialog extends TitleAreaDialog {
/* (non-Javadoc)
* @see org.eclipse.jface.viewers.ITableLabelProvider#getColumnText(java.lang.Object, int)
*/
- public String getColumnText(Object element, int columnIndex) {
+ @Override
+ public String getColumnText(Object element, int columnIndex) {
if (element instanceof MapEntrySourceContainer) {
MapEntrySourceContainer entry = (MapEntrySourceContainer)element;
if (columnIndex == 0)
@@ -179,14 +184,16 @@ public class MappingSourceContainerDialog extends TitleAreaDialog {
/* (non-Javadoc)
* @see org.eclipse.swt.events.ControlListener#controlMoved(org.eclipse.swt.events.ControlEvent)
*/
- public void controlMoved(ControlEvent e) {
+ @Override
+ public void controlMoved(ControlEvent e) {
MappingSourceContainerDialog.this.controlMoved(e);
}
/* (non-Javadoc)
* @see org.eclipse.swt.events.ControlListener#controlResized(org.eclipse.swt.events.ControlEvent)
*/
- public void controlResized(ControlEvent e) {
+ @Override
+ public void controlResized(ControlEvent e) {
MappingSourceContainerDialog.this.controlResized(e);
}
};
@@ -294,7 +301,8 @@ public class MappingSourceContainerDialog extends TitleAreaDialog {
/* (non-Javadoc)
* @see org.eclipse.swt.events.ModifyListener#modifyText(org.eclipse.swt.events.ModifyEvent)
*/
- public void modifyText(ModifyEvent e) {
+ @Override
+ public void modifyText(ModifyEvent e) {
}
});
}
@@ -335,7 +343,8 @@ public class MappingSourceContainerDialog extends TitleAreaDialog {
/* (non-Javadoc)
* @see org.eclipse.jface.viewers.IStructuredContentProvider#getElements(java.lang.Object)
*/
- public Object[] getElements(Object inputElement) {
+ @Override
+ public Object[] getElements(Object inputElement) {
if (inputElement instanceof MappingSourceContainer) {
try {
return ((MappingSourceContainer)inputElement).getSourceContainers();
@@ -348,13 +357,15 @@ public class MappingSourceContainerDialog extends TitleAreaDialog {
/* (non-Javadoc)
* @see org.eclipse.jface.viewers.IContentProvider#dispose()
*/
- public void dispose() {
+ @Override
+ public void dispose() {
}
/* (non-Javadoc)
* @see org.eclipse.jface.viewers.IContentProvider#inputChanged(org.eclipse.jface.viewers.Viewer, java.lang.Object, java.lang.Object)
*/
- public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
+ @Override
+ public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
}
});
@@ -371,7 +382,8 @@ public class MappingSourceContainerDialog extends TitleAreaDialog {
/* (non-Javadoc)
* @see org.eclipse.jface.viewers.ISelectionChangedListener#selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent)
*/
- public void selectionChanged(SelectionChangedEvent event) {
+ @Override
+ public void selectionChanged(SelectionChangedEvent event) {
updateViewerButtons();
}
});
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/NewMappingSourceContainerBrowser.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/NewMappingSourceContainerBrowser.java
index 63bd7c42be..4af7a49e53 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/NewMappingSourceContainerBrowser.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/NewMappingSourceContainerBrowser.java
@@ -36,14 +36,16 @@ public class NewMappingSourceContainerBrowser extends AbstractSourceContainerBro
/* (non-Javadoc)
* @see org.eclipse.debug.ui.sourcelookup.AbstractSourceContainerBrowser#canEditSourceContainers(org.eclipse.debug.core.sourcelookup.ISourceLookupDirector, org.eclipse.debug.core.sourcelookup.ISourceContainer[])
*/
- public boolean canEditSourceContainers(ISourceLookupDirector director, ISourceContainer[] containers) {
+ @Override
+ public boolean canEditSourceContainers(ISourceLookupDirector director, ISourceContainer[] containers) {
return (containers.length == 1 && containers[0] instanceof MappingSourceContainer);
}
/* (non-Javadoc)
* @see org.eclipse.debug.ui.sourcelookup.AbstractSourceContainerBrowser#editSourceContainers(org.eclipse.swt.widgets.Shell, org.eclipse.debug.core.sourcelookup.ISourceLookupDirector, org.eclipse.debug.core.sourcelookup.ISourceContainer[])
*/
- public ISourceContainer[] editSourceContainers(Shell shell, ISourceLookupDirector director, ISourceContainer[] containers) {
+ @Override
+ public ISourceContainer[] editSourceContainers(Shell shell, ISourceLookupDirector director, ISourceContainer[] containers) {
if (containers.length == 1 && containers[0] instanceof MappingSourceContainer) {
MappingSourceContainerDialog dialog =
new MappingSourceContainerDialog(shell, (MappingSourceContainer)containers[0]);
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/PathMappingDialog.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/PathMappingDialog.java
index 795ddcf3c4..9ae652308e 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/PathMappingDialog.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/PathMappingDialog.java
@@ -85,6 +85,7 @@ public class PathMappingDialog extends TitleAreaDialog {
/* (non-Javadoc)
* @see org.eclipse.jface.dialogs.Dialog#createDialogArea(org.eclipse.swt.widgets.Composite)
*/
+ @Override
protected Control createDialogArea(Composite parent) {
setTitle(SourceLookupUIMessages.PathMappingDialog_0);
setTitleImage(CDebugImages.get(CDebugImages.IMG_WIZBAN_PATH_MAP_ENTRY));
@@ -120,6 +121,7 @@ public class PathMappingDialog extends TitleAreaDialog {
fBackendPathText.setLayoutData(data);
fBackendPathText.setFont(font);
fBackendPathText.addModifyListener(new ModifyListener() {
+ @Override
public void modifyText(ModifyEvent e) {
update();
}
@@ -137,6 +139,7 @@ public class PathMappingDialog extends TitleAreaDialog {
fLocalPathText.setLayoutData(data);
fLocalPathText.setFont(font);
fLocalPathText.addModifyListener(new ModifyListener() {
+ @Override
public void modifyText(ModifyEvent e) {
update();
}
@@ -147,6 +150,7 @@ public class PathMappingDialog extends TitleAreaDialog {
button.setText(SourceLookupUIMessages.PathMappingDialog_3);
button.addSelectionListener(new SelectionListener() {
+ @Override
public void widgetSelected(SelectionEvent e) {
DirectoryDialog dialog = new DirectoryDialog(MapEntryDialog.this.getShell());
String path = dialog.open();
@@ -155,6 +159,7 @@ public class PathMappingDialog extends TitleAreaDialog {
}
}
+ @Override
public void widgetDefaultSelected(SelectionEvent e) {
}
});
@@ -162,6 +167,7 @@ public class PathMappingDialog extends TitleAreaDialog {
return composite;
}
+ @Override
protected Control createContents(Composite parent) {
Control control = super.createContents(parent);
initialize();
@@ -169,6 +175,7 @@ public class PathMappingDialog extends TitleAreaDialog {
return control;
}
+ @Override
protected void configureShell(Shell newShell) {
newShell.setText(SourceLookupUIMessages.PathMappingDialog_4);
super.configureShell(newShell);
@@ -228,6 +235,7 @@ public class PathMappingDialog extends TitleAreaDialog {
return new Path(fLocalPathText.getText().trim());
}
+ @Override
protected void okPressed() {
if (fEntry == null) {
fEntry = new MapEntrySourceContainer();
@@ -245,6 +253,7 @@ public class PathMappingDialog extends TitleAreaDialog {
/* (non-Javadoc)
* @see org.eclipse.jface.viewers.ILabelProvider#getImage(java.lang.Object)
*/
+ @Override
public Image getImage(Object element) {
Image image = getWorkbenchLabelProvider().getImage(element);
if (image != null) {
@@ -256,6 +265,7 @@ public class PathMappingDialog extends TitleAreaDialog {
/* (non-Javadoc)
* @see org.eclipse.jface.viewers.ILabelProvider#getText(java.lang.Object)
*/
+ @Override
public String getText(Object element) {
String label = getWorkbenchLabelProvider().getText(element);
if (label == null || label.length() == 0) {
@@ -278,6 +288,7 @@ public class PathMappingDialog extends TitleAreaDialog {
/* (non-Javadoc)
* @see org.eclipse.jface.viewers.IBaseLabelProvider#dispose()
*/
+ @Override
public void dispose() {
super.dispose();
if (fLabelProvider != null) {
@@ -290,6 +301,7 @@ public class PathMappingDialog extends TitleAreaDialog {
/* (non-Javadoc)
* @see org.eclipse.jface.viewers.IStructuredContentProvider#getElements(java.lang.Object)
*/
+ @Override
public Object[] getElements(Object input) {
if (input instanceof MappingSourceContainer) {
try {
@@ -304,12 +316,14 @@ public class PathMappingDialog extends TitleAreaDialog {
/* (non-Javadoc)
* @see org.eclipse.jface.viewers.IContentProvider#dispose()
*/
+ @Override
public void dispose() {
}
/* (non-Javadoc)
* @see org.eclipse.jface.viewers.IContentProvider#inputChanged(org.eclipse.jface.viewers.Viewer, java.lang.Object, java.lang.Object)
*/
+ @Override
public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
}
}
@@ -332,6 +346,7 @@ public class PathMappingDialog extends TitleAreaDialog {
/* (non-Javadoc)
* @see org.eclipse.jface.window.Window#createContents(org.eclipse.swt.widgets.Composite)
*/
+ @Override
protected Control createContents(Composite parent) {
Control control = super.createContents(parent);
updateButtons();
@@ -341,6 +356,7 @@ public class PathMappingDialog extends TitleAreaDialog {
/* (non-Javadoc)
* @see org.eclipse.jface.dialogs.TitleAreaDialog#createDialogArea(org.eclipse.swt.widgets.Composite)
*/
+ @Override
protected Control createDialogArea(Composite parent) {
setTitle(SourceLookupUIMessages.PathMappingDialog_11);
setTitleImage(CDebugImages.get(CDebugImages.IMG_WIZBAN_PATH_MAPPING));
@@ -381,6 +397,7 @@ public class PathMappingDialog extends TitleAreaDialog {
fNameText.setFont(font);
fNameText.setText(getMapping().getName());
fNameText.addModifyListener(new ModifyListener() {
+ @Override
public void modifyText(ModifyEvent e) {
}
});
@@ -390,6 +407,7 @@ public class PathMappingDialog extends TitleAreaDialog {
fViewer.getControl().setLayoutData(data);
fViewer.getControl().setFont(font);
fViewer.addSelectionChangedListener(new ISelectionChangedListener() {
+ @Override
public void selectionChanged(SelectionChangedEvent event) {
updateButtons();
}
@@ -411,6 +429,7 @@ public class PathMappingDialog extends TitleAreaDialog {
fAddButton = createPushButton(buttonComp, SourceLookupUIMessages.PathMappingDialog_13, fontMetrics);
fAddButton.addSelectionListener(new SelectionAdapter() {
+ @Override
public void widgetSelected(SelectionEvent evt) {
MapEntryDialog dialog = new MapEntryDialog(getShell());
if (dialog.open() == Window.OK) {
@@ -421,6 +440,7 @@ public class PathMappingDialog extends TitleAreaDialog {
fEditButton = createPushButton(buttonComp, SourceLookupUIMessages.PathMappingDialog_14, fontMetrics);
fEditButton.addSelectionListener(new SelectionAdapter() {
+ @Override
public void widgetSelected(SelectionEvent evt) {
MapEntrySourceContainer[] entries = getSelection();
if (entries.length > 0) {
@@ -434,6 +454,7 @@ public class PathMappingDialog extends TitleAreaDialog {
fRemoveButton = createPushButton(buttonComp, SourceLookupUIMessages.PathMappingDialog_15, fontMetrics);
fRemoveButton.addSelectionListener(new SelectionAdapter() {
+ @Override
public void widgetSelected(SelectionEvent evt) {
MapEntrySourceContainer[] entries = getSelection();
for (int i = 0; i < entries.length; ++i) {
@@ -479,6 +500,7 @@ public class PathMappingDialog extends TitleAreaDialog {
/* (non-Javadoc)
* @see org.eclipse.jface.window.Window#configureShell(org.eclipse.swt.widgets.Shell)
*/
+ @Override
protected void configureShell(Shell newShell) {
newShell.setText(SourceLookupUIMessages.PathMappingDialog_16);
super.configureShell(newShell);
@@ -491,6 +513,7 @@ public class PathMappingDialog extends TitleAreaDialog {
/* (non-Javadoc)
* @see org.eclipse.jface.dialogs.Dialog#okPressed()
*/
+ @Override
protected void okPressed() {
fOriginalMapping.clear();
fOriginalMapping.setName(fNameText.getText().trim());
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/ProgramRelativePathSourceContainerBrowser.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/ProgramRelativePathSourceContainerBrowser.java
index 2e2f86715b..a606a431c6 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/ProgramRelativePathSourceContainerBrowser.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/ProgramRelativePathSourceContainerBrowser.java
@@ -21,6 +21,7 @@ import org.eclipse.swt.widgets.Shell;
*/
public class ProgramRelativePathSourceContainerBrowser extends AbstractSourceContainerBrowser {
+ @Override
public ISourceContainer[] addSourceContainers(Shell shell, ISourceLookupDirector director) {
return new ISourceContainer[] { new ProgramRelativePathSourceContainer() };
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/RemoveAction.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/RemoveAction.java
index c8547744b3..c50355fac9 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/RemoveAction.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/RemoveAction.java
@@ -28,6 +28,7 @@ public class RemoveAction extends SourceContainerAction {
*
* @see IAction#run()
*/
+ @Override
public void run() {
List<ISourceContainer> targets = getOrderedSelection();
List<ISourceContainer> list = getEntriesAsList();
@@ -38,6 +39,7 @@ public class RemoveAction extends SourceContainerAction {
/**
* @see SelectionListenerAction#updateSelection(IStructuredSelection)
*/
+ @Override
protected boolean updateSelection(IStructuredSelection selection) {
//check that something is selected and it is a root tree node.
return !selection.isEmpty() && getViewer().getTree().getSelection()[0].getParentItem() == null;
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/SourceContainerAction.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/SourceContainerAction.java
index d182b26790..86ae9771c4 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/SourceContainerAction.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/SourceContainerAction.java
@@ -130,6 +130,7 @@ public abstract class SourceContainerAction extends SelectionListenerAction {
public void setButton(Button button) {
fButton = button;
button.addSelectionListener(new SelectionAdapter() {
+ @Override
public void widgetSelected(SelectionEvent evt) {
run();
}
@@ -139,6 +140,7 @@ public abstract class SourceContainerAction extends SelectionListenerAction {
/**
* @see IAction#setEnabled(boolean)
*/
+ @Override
public void setEnabled(boolean enabled) {
super.setEnabled(enabled);
if (fButton != null) {
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/SourceContainerAdapterFactory.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/SourceContainerAdapterFactory.java
index 1a80ed2550..755345c161 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/SourceContainerAdapterFactory.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/SourceContainerAdapterFactory.java
@@ -21,6 +21,7 @@ public class SourceContainerAdapterFactory implements IAdapterFactory {
/* (non-Javadoc)
* @see org.eclipse.core.runtime.IAdapterFactory#getAdapter(java.lang.Object, java.lang.Class)
*/
+ @Override
public Object getAdapter(Object adaptableObject, @SuppressWarnings("rawtypes") Class adapterType) {
if (adapterType.equals(IWorkbenchAdapter.class)) {
return new SourceContainerWorkbenchAdapter();
@@ -31,6 +32,7 @@ public class SourceContainerAdapterFactory implements IAdapterFactory {
/* (non-Javadoc)
* @see org.eclipse.core.runtime.IAdapterFactory#getAdapterList()
*/
+ @Override
public Class<?>[] getAdapterList() {
return new Class[]{ IWorkbenchAdapter.class };
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/SourceContainerLabelProvider.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/SourceContainerLabelProvider.java
index e639e123f5..a487226169 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/SourceContainerLabelProvider.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/SourceContainerLabelProvider.java
@@ -27,6 +27,7 @@ public class SourceContainerLabelProvider extends LabelProvider {
/* (non-Javadoc)
* @see org.eclipse.jface.viewers.ILabelProvider#getImage(java.lang.Object)
*/
+ @Override
public Image getImage(Object element) {
Image image = getWorkbenchLabelProvider().getImage(element);
if (image == null) {
@@ -50,6 +51,7 @@ public class SourceContainerLabelProvider extends LabelProvider {
/* (non-Javadoc)
* @see org.eclipse.jface.viewers.ILabelProvider#getText(java.lang.Object)
*/
+ @Override
public String getText(Object element) {
// first, allo workbench adapter to provide label
String label = getWorkbenchLabelProvider().getText(element);
@@ -75,6 +77,7 @@ public class SourceContainerLabelProvider extends LabelProvider {
/* (non-Javadoc)
* @see org.eclipse.jface.viewers.IBaseLabelProvider#dispose()
*/
+ @Override
public void dispose() {
super.dispose();
if (fLabelProvider != null) {
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/SourceContainerViewer.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/SourceContainerViewer.java
index 387b092d56..89ae1b5c9f 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/SourceContainerViewer.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/SourceContainerViewer.java
@@ -39,6 +39,7 @@ public class SourceContainerViewer extends TreeViewer {
/**
* @see IStructuredContentProvider#getElements(Object)
*/
+ @Override
public Object[] getElements(Object inputElement) {
return getEntries();
}
@@ -46,18 +47,21 @@ public class SourceContainerViewer extends TreeViewer {
/**
* @see IContentProvider#dispose()
*/
+ @Override
public void dispose() {
}
/**
* @see IContentProvider#inputChanged(Viewer, Object, Object)
*/
+ @Override
public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
}
/**
* @see org.eclipse.jface.viewers.ITreeContentProvider#getChildren(java.lang.Object)
*/
+ @Override
public Object[] getChildren(Object parentElement) {
try {
return ((ISourceContainer)parentElement).getSourceContainers();
@@ -69,6 +73,7 @@ public class SourceContainerViewer extends TreeViewer {
/**
* @see org.eclipse.jface.viewers.ITreeContentProvider#getParent(java.lang.Object)
*/
+ @Override
public Object getParent(Object element) {
return null;
}
@@ -76,6 +81,7 @@ public class SourceContainerViewer extends TreeViewer {
/**
* @see org.eclipse.jface.viewers.ITreeContentProvider#hasChildren(java.lang.Object)
*/
+ @Override
public boolean hasChildren(Object element) {
return ((ISourceContainer)element).isComposite();
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/SourceContainerWorkbenchAdapter.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/SourceContainerWorkbenchAdapter.java
index 6f9d983d0d..df7c540234 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/SourceContainerWorkbenchAdapter.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/SourceContainerWorkbenchAdapter.java
@@ -32,6 +32,7 @@ public class SourceContainerWorkbenchAdapter implements IWorkbenchAdapter {
/* (non-Javadoc)
* @see org.eclipse.ui.model.IWorkbenchAdapter#getChildren(java.lang.Object)
*/
+ @Override
public Object[] getChildren(Object o) {
return null;
}
@@ -39,6 +40,7 @@ public class SourceContainerWorkbenchAdapter implements IWorkbenchAdapter {
/* (non-Javadoc)
* @see org.eclipse.ui.model.IWorkbenchAdapter#getImageDescriptor(java.lang.Object)
*/
+ @Override
public ImageDescriptor getImageDescriptor(Object o) {
if (o instanceof MappingSourceContainer) {
return CDebugImages.DESC_OBJS_PATH_MAPPING;
@@ -73,6 +75,7 @@ public class SourceContainerWorkbenchAdapter implements IWorkbenchAdapter {
/* (non-Javadoc)
* @see org.eclipse.ui.model.IWorkbenchAdapter#getLabel(java.lang.Object)
*/
+ @Override
public String getLabel(Object o) {
if (o instanceof MappingSourceContainer) {
return SourceLookupUIMessages.SourceContainerWorkbenchAdapter_0 + ((MappingSourceContainer)o).getName();
@@ -86,6 +89,7 @@ public class SourceContainerWorkbenchAdapter implements IWorkbenchAdapter {
/* (non-Javadoc)
* @see org.eclipse.ui.model.IWorkbenchAdapter#getParent(java.lang.Object)
*/
+ @Override
public Object getParent(Object o) {
return null;
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/SourceDisplayAdapter.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/SourceDisplayAdapter.java
index 24bca53a97..c28129cb34 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/SourceDisplayAdapter.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/SourceDisplayAdapter.java
@@ -43,91 +43,104 @@ public class SourceDisplayAdapter implements ISourceDisplay {
/* (non-Javadoc)
* @see org.eclipse.debug.core.model.IStackFrame#getCharEnd()
*/
- public int getCharEnd() throws DebugException {
+ @Override
+ public int getCharEnd() throws DebugException {
return fDelegate.getCharEnd();
}
/* (non-Javadoc)
* @see org.eclipse.debug.core.model.IStackFrame#getCharStart()
*/
- public int getCharStart() throws DebugException {
+ @Override
+ public int getCharStart() throws DebugException {
return fDelegate.getCharStart();
}
/* (non-Javadoc)
* @see org.eclipse.debug.core.model.IStackFrame#getLineNumber()
*/
- public int getLineNumber() throws DebugException {
+ @Override
+ public int getLineNumber() throws DebugException {
return fDelegate.getLineNumber();
}
/* (non-Javadoc)
* @see org.eclipse.debug.core.model.IStackFrame#getName()
*/
- public String getName() throws DebugException {
+ @Override
+ public String getName() throws DebugException {
return fDelegate.getName();
}
/* (non-Javadoc)
* @see org.eclipse.debug.core.model.IStackFrame#getRegisterGroups()
*/
- public IRegisterGroup[] getRegisterGroups() throws DebugException {
+ @Override
+ public IRegisterGroup[] getRegisterGroups() throws DebugException {
return fDelegate.getRegisterGroups();
}
/* (non-Javadoc)
* @see org.eclipse.debug.core.model.IStackFrame#getThread()
*/
- public IThread getThread() {
+ @Override
+ public IThread getThread() {
return fDelegate.getThread();
}
/* (non-Javadoc)
* @see org.eclipse.debug.core.model.IStackFrame#getVariables()
*/
- public IVariable[] getVariables() throws DebugException {
+ @Override
+ public IVariable[] getVariables() throws DebugException {
return fDelegate.getVariables();
}
/* (non-Javadoc)
* @see org.eclipse.debug.core.model.IStackFrame#hasRegisterGroups()
*/
- public boolean hasRegisterGroups() throws DebugException {
+ @Override
+ public boolean hasRegisterGroups() throws DebugException {
return fDelegate.hasRegisterGroups();
}
/* (non-Javadoc)
* @see org.eclipse.debug.core.model.IStackFrame#hasVariables()
*/
- public boolean hasVariables() throws DebugException {
+ @Override
+ public boolean hasVariables() throws DebugException {
return fDelegate.hasVariables();
}
/* (non-Javadoc)
* @see org.eclipse.debug.core.model.IDebugElement#getDebugTarget()
*/
- public IDebugTarget getDebugTarget() {
+ @Override
+ public IDebugTarget getDebugTarget() {
return fDelegate.getDebugTarget();
}
/* (non-Javadoc)
* @see org.eclipse.debug.core.model.IDebugElement#getLaunch()
*/
- public ILaunch getLaunch() {
+ @Override
+ public ILaunch getLaunch() {
return fDelegate.getLaunch();
}
/* (non-Javadoc)
* @see org.eclipse.debug.core.model.IDebugElement#getModelIdentifier()
*/
- public String getModelIdentifier() {
+ @Override
+ public String getModelIdentifier() {
return fDelegate.getModelIdentifier();
}
/* (non-Javadoc)
* @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class)
*/
- public Object getAdapter(@SuppressWarnings("rawtypes") Class adapter) {
+ @Override
+ public Object getAdapter(@SuppressWarnings("rawtypes") Class adapter) {
if (ICStackFrame.class.equals(adapter))
return fDelegate;
return fDelegate.getAdapter(adapter);
@@ -136,105 +149,120 @@ public class SourceDisplayAdapter implements ISourceDisplay {
/* (non-Javadoc)
* @see org.eclipse.debug.core.model.IStep#canStepInto()
*/
- public boolean canStepInto() {
+ @Override
+ public boolean canStepInto() {
return fDelegate.canStepInto();
}
/* (non-Javadoc)
* @see org.eclipse.debug.core.model.IStep#canStepOver()
*/
- public boolean canStepOver() {
+ @Override
+ public boolean canStepOver() {
return fDelegate.canStepOver();
}
/* (non-Javadoc)
* @see org.eclipse.debug.core.model.IStep#canStepReturn()
*/
- public boolean canStepReturn() {
+ @Override
+ public boolean canStepReturn() {
return fDelegate.canStepReturn();
}
/* (non-Javadoc)
* @see org.eclipse.debug.core.model.IStep#isStepping()
*/
- public boolean isStepping() {
+ @Override
+ public boolean isStepping() {
return fDelegate.isStepping();
}
/* (non-Javadoc)
* @see org.eclipse.debug.core.model.IStep#stepInto()
*/
- public void stepInto() throws DebugException {
+ @Override
+ public void stepInto() throws DebugException {
fDelegate.stepInto();
}
/* (non-Javadoc)
* @see org.eclipse.debug.core.model.IStep#stepOver()
*/
- public void stepOver() throws DebugException {
+ @Override
+ public void stepOver() throws DebugException {
fDelegate.stepOver();
}
/* (non-Javadoc)
* @see org.eclipse.debug.core.model.IStep#stepReturn()
*/
- public void stepReturn() throws DebugException {
+ @Override
+ public void stepReturn() throws DebugException {
fDelegate.stepReturn();
}
/* (non-Javadoc)
* @see org.eclipse.debug.core.model.ISuspendResume#canResume()
*/
- public boolean canResume() {
+ @Override
+ public boolean canResume() {
return fDelegate.canResume();
}
/* (non-Javadoc)
* @see org.eclipse.debug.core.model.ISuspendResume#canSuspend()
*/
- public boolean canSuspend() {
+ @Override
+ public boolean canSuspend() {
return fDelegate.canSuspend();
}
/* (non-Javadoc)
* @see org.eclipse.debug.core.model.ISuspendResume#isSuspended()
*/
- public boolean isSuspended() {
+ @Override
+ public boolean isSuspended() {
return fDelegate.isSuspended();
}
/* (non-Javadoc)
* @see org.eclipse.debug.core.model.ISuspendResume#resume()
*/
- public void resume() throws DebugException {
+ @Override
+ public void resume() throws DebugException {
fDelegate.resume();
}
/* (non-Javadoc)
* @see org.eclipse.debug.core.model.ISuspendResume#suspend()
*/
- public void suspend() throws DebugException {
+ @Override
+ public void suspend() throws DebugException {
fDelegate.suspend();
}
/* (non-Javadoc)
* @see org.eclipse.debug.core.model.ITerminate#canTerminate()
*/
- public boolean canTerminate() {
+ @Override
+ public boolean canTerminate() {
return fDelegate.canTerminate();
}
/* (non-Javadoc)
* @see org.eclipse.debug.core.model.ITerminate#isTerminated()
*/
- public boolean isTerminated() {
+ @Override
+ public boolean isTerminated() {
return fDelegate.isTerminated();
}
/* (non-Javadoc)
* @see org.eclipse.debug.core.model.ITerminate#terminate()
*/
- public void terminate() throws DebugException {
+ @Override
+ public void terminate() throws DebugException {
fDelegate.terminate();
}
}
@@ -242,7 +270,8 @@ public class SourceDisplayAdapter implements ISourceDisplay {
/* (non-Javadoc)
* @see org.eclipse.debug.ui.sourcelookup.ISourceDisplay#displaySource(java.lang.Object, org.eclipse.ui.IWorkbenchPage, boolean)
*/
- public void displaySource(Object element, IWorkbenchPage page, boolean forceSourceLookup) {
+ @Override
+ public void displaySource(Object element, IWorkbenchPage page, boolean forceSourceLookup) {
if (element instanceof ICStackFrame) {
ICStackFrame frame = (ICStackFrame)element;
if (isDisplayDisassembly(frame, page)) {
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/SourceFoldersRelativePathSourceContainerBrowser.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/SourceFoldersRelativePathSourceContainerBrowser.java
index d8f64d4f92..1641ee9116 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/SourceFoldersRelativePathSourceContainerBrowser.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/SourceFoldersRelativePathSourceContainerBrowser.java
@@ -34,6 +34,7 @@ public class SourceFoldersRelativePathSourceContainerBrowser extends AbstractSou
/* (non-Javadoc)
* @see org.eclipse.debug.internal.ui.sourcelookup.ISourceContainerBrowser#createSourceContainers(org.eclipse.swt.widgets.Shell, org.eclipse.debug.core.ILaunchConfiguration)
*/
+ @Override
public ISourceContainer[] addSourceContainers(Shell shell, ISourceLookupDirector director) {
if (director.getLaunchConfiguration() == null) {
TargetProjectSourceContainerDialog dialog = new TargetProjectSourceContainerDialog(shell);
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/TargetProjectSourceContainerDialog.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/TargetProjectSourceContainerDialog.java
index 0478374af2..aee7752cbf 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/TargetProjectSourceContainerDialog.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/TargetProjectSourceContainerDialog.java
@@ -37,6 +37,7 @@ public class TargetProjectSourceContainerDialog extends SelectionDialog {
/**
* @see org.eclipse.jface.dialogs.Dialog#createDialogArea(org.eclipse.swt.widgets.Composite)
*/
+ @Override
protected Control createDialogArea(Composite parent) {
Font font = parent.getFont();
@@ -49,6 +50,7 @@ public class TargetProjectSourceContainerDialog extends SelectionDialog {
final Button addRequired = new Button(composite, SWT.CHECK);
addRequired.setText(SourceLookupUIMessages.TargetProjectSourceContainerDialog_referencedLabel);
addRequired.addSelectionListener(new SelectionAdapter() {
+ @Override
public void widgetSelected(SelectionEvent e) {
fAddReferencedProjects = addRequired.getSelection();
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/UpAction.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/UpAction.java
index cdfc1fec40..f407f03454 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/UpAction.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/UpAction.java
@@ -29,6 +29,7 @@ public class UpAction extends SourceContainerAction {
*
* @see IAction#run()
*/
+ @Override
public void run() {
List<ISourceContainer> targets = getOrderedSelection();
if (targets.isEmpty()) {
@@ -53,6 +54,7 @@ public class UpAction extends SourceContainerAction {
/**
* @see SelectionListenerAction#updateSelection(IStructuredSelection)
*/
+ @Override
protected boolean updateSelection(IStructuredSelection selection) {
//check that something is selected, it's not first in the list, and it is a root tree node.
return !selection.isEmpty() && !isIndexSelected(selection, 0) && getViewer().getTree().getSelection()[0].getParentItem()==null;
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/AbstractDebugEventHandler.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/AbstractDebugEventHandler.java
index 099d6b7842..0451ea04e4 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/AbstractDebugEventHandler.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/AbstractDebugEventHandler.java
@@ -61,11 +61,13 @@ public abstract class AbstractDebugEventHandler implements IDebugEventSetListene
/**
* @see IDebugEventSetListener#handleDebugEvents(DebugEvent[])
*/
+ @Override
public void handleDebugEvents(final DebugEvent[] events) {
if (!isAvailable()) {
return;
}
Runnable r= new Runnable() {
+ @Override
public void run() {
if (isAvailable()) {
if (isViewVisible()) {
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/AbstractDebugEventHandlerView.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/AbstractDebugEventHandlerView.java
index 10e7c175b2..c4b4a2622b 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/AbstractDebugEventHandlerView.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/AbstractDebugEventHandlerView.java
@@ -46,6 +46,7 @@ public abstract class AbstractDebugEventHandlerView extends AbstractDebugView {
/**
* @see IWorkbenchPart#dispose()
*/
+ @Override
public void dispose() {
super.dispose();
if (getEventHandler() != null) {
@@ -56,6 +57,7 @@ public abstract class AbstractDebugEventHandlerView extends AbstractDebugView {
/**
* @see org.eclipse.debug.ui.AbstractDebugView#becomesHidden()
*/
+ @Override
protected void becomesHidden() {
super.becomesHidden();
getEventHandler().viewBecomesHidden();
@@ -64,6 +66,7 @@ public abstract class AbstractDebugEventHandlerView extends AbstractDebugView {
/**
* @see org.eclipse.debug.ui.AbstractDebugView#becomesVisible()
*/
+ @Override
protected void becomesVisible() {
super.becomesVisible();
getEventHandler().viewBecomesVisible();
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/BaseViewer.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/BaseViewer.java
index 6ef1494705..11b3d6fc5e 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/BaseViewer.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/BaseViewer.java
@@ -46,6 +46,7 @@ abstract class BaseViewer extends TreeViewer {
this.selector = selector;
}
+ @Override
public void widgetSelected(SelectionEvent e) {
setComparator(getViewerComparator(selector));
getTree().setSortColumn((TreeColumn) e.getSource());
@@ -83,7 +84,7 @@ abstract class BaseViewer extends TreeViewer {
Tree tree = getTree();
// save the column order
- StringBuilder columnOrder = new StringBuilder(); //$NON-NLS-1$
+ StringBuilder columnOrder = new StringBuilder();
for (int index : tree.getColumnOrder()) {
columnOrder.append(","); //$NON-NLS-1$
columnOrder.append(Integer.toString(index));
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/ExecutablesContentProvider.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/ExecutablesContentProvider.java
index 132c4a45fb..83d7fdee6a 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/ExecutablesContentProvider.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/ExecutablesContentProvider.java
@@ -40,6 +40,7 @@ class ExecutablesContentProvider extends ColumnLabelProvider implements IStructu
ExecutablesManager.getExecutablesManager().addExecutablesChangeListener(this);
}
+ @Override
public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
}
@@ -51,6 +52,7 @@ class ExecutablesContentProvider extends ColumnLabelProvider implements IStructu
ExecutablesManager.getExecutablesManager().removeExecutablesChangeListener(this);
}
+ @Override
public Object[] getElements(final Object inputElement) {
if (inputElement instanceof ExecutablesManager) {
ExecutablesManager em = (ExecutablesManager) inputElement;
@@ -59,10 +61,12 @@ class ExecutablesContentProvider extends ColumnLabelProvider implements IStructu
return new Object[] {};
}
+ @Override
public Object getParent(Object element) {
return null;
}
+ @Override
public boolean hasChildren(Object element) {
return false;
}
@@ -112,6 +116,7 @@ class ExecutablesContentProvider extends ColumnLabelProvider implements IStructu
return super.getText(element);
}
+ @Override
public Object[] getChildren(Object parentElement) {
return new Object[] {};
}
@@ -119,6 +124,7 @@ class ExecutablesContentProvider extends ColumnLabelProvider implements IStructu
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.core.executables.IExecutablesChangeListener#executablesListChanged()
*/
+ @Override
public void executablesListChanged() {
new WorkbenchJob("execs list changed") { //$NON-NLS-1$
@Override
@@ -135,6 +141,7 @@ class ExecutablesContentProvider extends ColumnLabelProvider implements IStructu
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.core.executables.IExecutablesChangeListener#executablesChanged(java.util.List)
*/
+ @Override
public void executablesChanged(List<Executable> executables) {
// Our concern is only if the list of executables changed. The
// content provider for the source files viewer will care about
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/ExecutablesView.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/ExecutablesView.java
index 83b37d6be7..4a9947c637 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/ExecutablesView.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/ExecutablesView.java
@@ -151,6 +151,7 @@ public class ExecutablesView extends ViewPart {
*
* @see org.eclipse.jface.viewers.IStructuredContentProvider#getElements(java.lang.Object)
*/
+ @Override
public Object[] getElements(Object inputElement) {
return columnNames;
}
@@ -160,6 +161,7 @@ public class ExecutablesView extends ViewPart {
*
* @see org.eclipse.jface.viewers.IContentProvider#dispose()
*/
+ @Override
public void dispose() {
}
@@ -169,6 +171,7 @@ public class ExecutablesView extends ViewPart {
* @see org.eclipse.jface.viewers.IContentProvider#inputChanged(org.eclipse.jface.viewers.Viewer,
* java.lang.Object, java.lang.Object)
*/
+ @Override
public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
}
@@ -256,8 +259,10 @@ public class ExecutablesView extends ViewPart {
executablesViewer.getTree().addFocusListener(new FocusListener() {
+ @Override
public void focusLost(FocusEvent e) {}
+ @Override
public void focusGained(FocusEvent e) {
focusedViewer = executablesViewer;
}
@@ -265,8 +270,10 @@ public class ExecutablesView extends ViewPart {
sourceFilesViewer.getTree().addFocusListener(new FocusListener() {
+ @Override
public void focusLost(FocusEvent e) {}
+ @Override
public void focusGained(FocusEvent e) {
focusedViewer = sourceFilesViewer;
}
@@ -274,20 +281,24 @@ public class ExecutablesView extends ViewPart {
ExecutablesView.this.getViewSite().setSelectionProvider(new ISelectionProvider() {
+ @Override
public void setSelection(ISelection selection) {
getFocusedViewer().setSelection(selection);
}
+ @Override
public void removeSelectionChangedListener(
ISelectionChangedListener listener) {
executablesViewer.removeSelectionChangedListener(listener);
sourceFilesViewer.removeSelectionChangedListener(listener);
}
+ @Override
public ISelection getSelection() {
return getFocusedViewer().getSelection();
}
+ @Override
public void addSelectionChangedListener(ISelectionChangedListener listener) {
executablesViewer.addSelectionChangedListener(listener);
sourceFilesViewer.addSelectionChangedListener(listener);
@@ -319,6 +330,7 @@ public class ExecutablesView extends ViewPart {
// update the source files viewer
executablesViewer.addSelectionChangedListener(new ISelectionChangedListener() {
+ @Override
public void selectionChanged(SelectionChangedEvent event) {
ISelection newSelection = event.getSelection();
if (newSelection instanceof IStructuredSelection) {
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/ExecutablesViewCopyHandler.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/ExecutablesViewCopyHandler.java
index baa2199f98..a0b138468a 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/ExecutablesViewCopyHandler.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/ExecutablesViewCopyHandler.java
@@ -45,6 +45,7 @@ public class ExecutablesViewCopyHandler extends AbstractHandler {
clipboard.dispose();
}
+ @Override
public Object execute(ExecutionEvent event) throws ExecutionException {
ISelection selection = HandlerUtil.getCurrentSelection(event);
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 cd225886b7..605205b7b2 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
@@ -91,6 +91,7 @@ public class ExecutablesViewer extends BaseViewer {
MenuManager popupMenuManager = new MenuManager("#PopupMenu"); //$NON-NLS-1$
IMenuListener listener = new IMenuListener() {
+ @Override
public void menuAboutToShow(IMenuManager manager) {
manager.add(ExecutablesViewer.this.getExecutablesView().refreshAction);
manager.add(ExecutablesViewer.this.getExecutablesView().importAction);
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 f259de3817..3279aec32d 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
@@ -30,12 +30,14 @@ class ExecutablesViewerComparator extends ViewerComparator {
this.columnOrder = columnOrder;
}
+ @Override
public int category(Object element) {
if (element instanceof ITranslationUnit || element instanceof Executable)
return 1;
return 0;
}
+ @Override
@SuppressWarnings("unchecked")
public int compare(Viewer viewer, Object e1, Object e2) {
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/SourceFilesContentProvider.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/SourceFilesContentProvider.java
index b515756542..53d70a1832 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/SourceFilesContentProvider.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/SourceFilesContentProvider.java
@@ -217,6 +217,7 @@ public class SourceFilesContentProvider extends CElementContentProvider implemen
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.core.executables.IExecutablesChangeListener#executablesListChanged()
*/
+ @Override
public void executablesListChanged() {
// we react via IExecutablesChangeListener2 methods
}
@@ -225,6 +226,7 @@ public class SourceFilesContentProvider extends CElementContentProvider implemen
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.core.executables.IExecutablesChangeListener#executablesChanged(java.util.List)
*/
+ @Override
public void executablesChanged(final List<Executable> executables) {
if (Trace.DEBUG_EXECUTABLES) Trace.getTrace().traceEntry(null, executables);
@@ -298,6 +300,7 @@ public class SourceFilesContentProvider extends CElementContentProvider implemen
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.core.executables.IExecutablesChangeListener2#executablesAdded(java.util.List)
*/
+ @Override
public void executablesAdded(final List<Executable> executables) {
if (Trace.DEBUG_EXECUTABLES) Trace.getTrace().traceEntry(null, executables);
@@ -345,6 +348,7 @@ public class SourceFilesContentProvider extends CElementContentProvider implemen
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.core.executables.IExecutablesChangeListener2#executablesRemoved(java.util.List)
*/
+ @Override
public void executablesRemoved(final List<Executable> executables) {
if (Trace.DEBUG_EXECUTABLES) Trace.getTrace().traceEntry(null, executables);
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/SourceFilesLabelProvider.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/SourceFilesLabelProvider.java
index b571f5b614..91b39f6dc4 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/SourceFilesLabelProvider.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/SourceFilesLabelProvider.java
@@ -45,6 +45,7 @@ public class SourceFilesLabelProvider extends TreeColumnViewerLabelProvider impl
// brute-force clear the cache when executables change
ExecutablesManager.getExecutablesManager().addExecutablesChangeListener(this);
viewer.getControl().addDisposeListener(new DisposeListener() {
+ @Override
public void widgetDisposed(DisposeEvent e) {
ExecutablesManager.getExecutablesManager().removeExecutablesChangeListener(SourceFilesLabelProvider.this);
}
@@ -127,6 +128,7 @@ public class SourceFilesLabelProvider extends TreeColumnViewerLabelProvider impl
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.core.executables.IExecutablesChangeListener#executablesListChanged()
*/
+ @Override
public void executablesListChanged() {
SourceFilesViewer.flushTranslationUnitCache();
}
@@ -134,6 +136,7 @@ public class SourceFilesLabelProvider extends TreeColumnViewerLabelProvider impl
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.core.executables.IExecutablesChangeListener#executablesChanged(java.util.List)
*/
+ @Override
public void executablesChanged(List<Executable> executables) {
// no mapping of executable -> TU maintained; just kill all for now
SourceFilesViewer.flushTranslationUnitCache();
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/SourceFilesViewer.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/SourceFilesViewer.java
index 0d7cb4ae76..648f257087 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/SourceFilesViewer.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/SourceFilesViewer.java
@@ -90,16 +90,19 @@ public class SourceFilesViewer extends BaseViewer {
this.addOpenListener(new IOpenListener() {
+ @Override
public void open(OpenEvent event) {
openSourceFile(event);
}
});
ExecutablesManager.getExecutablesManager().addExecutablesChangeListener(new IExecutablesChangeListener(){
+ @Override
public void executablesListChanged() {
// this doesn't directly affect us
}
+ @Override
public void executablesChanged(List<Executable> executables) {
// TODO: be more selective; we don't know what TUs go with which executables yet
flushTranslationUnitCache();
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/memory/AddMemoryBlockDialog.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/memory/AddMemoryBlockDialog.java
index 3456f62f03..13a4aa0f3d 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/memory/AddMemoryBlockDialog.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/memory/AddMemoryBlockDialog.java
@@ -165,6 +165,7 @@ public class AddMemoryBlockDialog extends TrayDialog implements ModifyListener,
fAddressInput.addModifyListener(this);
fAddressInput.addVerifyListener(new VerifyListener() {
// limit entry to hex or decimal
+ @Override
public void verifyText(VerifyEvent e) {
e.doit = false;
final char c = e.character;
@@ -235,6 +236,7 @@ public class AddMemoryBlockDialog extends TrayDialog implements ModifyListener,
/* (non-Javadoc)
* @see org.eclipse.swt.events.ModifyListener#modifyText(org.eclipse.swt.events.ModifyEvent)
*/
+ @Override
public void modifyText(ModifyEvent e) {
// if user enters text into either the address field or the expression one, automatically
// select its associated radio button (and deselect the other, these are mutually exclusive)
@@ -286,6 +288,7 @@ public class AddMemoryBlockDialog extends TrayDialog implements ModifyListener,
/* (non-Javadoc)
* @see org.eclipse.swt.events.SelectionListener#widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent)
*/
+ @Override
public void widgetDefaultSelected(SelectionEvent e) {
// TODO Auto-generated method stub
@@ -294,6 +297,7 @@ public class AddMemoryBlockDialog extends TrayDialog implements ModifyListener,
/* (non-Javadoc)
* @see org.eclipse.swt.events.SelectionListener#widgetSelected(org.eclipse.swt.events.SelectionEvent)
*/
+ @Override
public void widgetSelected(SelectionEvent e) {
// if user selects a memory space, select its associated radio button (and deselect the
// other, these are mutually exclusive)
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/memory/AddMemoryBlocks.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/memory/AddMemoryBlocks.java
index cb8c9e9a72..57d05bdfdc 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/memory/AddMemoryBlocks.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/memory/AddMemoryBlocks.java
@@ -72,9 +72,11 @@ public class AddMemoryBlocks implements IAddMemoryBlocksTarget {
/** Request object used to get the memory spaces */
private static class GetMemorySpacesRequest extends CRequest implements IMemorySpaceAwareMemoryBlockRetrieval.GetMemorySpacesRequest {
String [] fMemorySpaces = new String[0];
+ @Override
public String[] getMemorySpaces() {
return fMemorySpaces;
}
+ @Override
public void setMemorySpaces(String[] memorySpaceIds) {
fMemorySpaces = memorySpaceIds;
}
@@ -83,6 +85,7 @@ public class AddMemoryBlocks implements IAddMemoryBlocksTarget {
/* (non-Javadoc)
* @see org.eclipse.debug.ui.actions.IAddMemoryBlocksTarget#addMemoryBlocks(org.eclipse.ui.IWorkbenchPart, org.eclipse.jface.viewers.ISelection)
*/
+ @Override
public void addMemoryBlocks(final IWorkbenchPart part, final ISelection selection) throws CoreException {
if (!(part instanceof IMemoryRenderingSite)) {
@@ -116,8 +119,10 @@ public class AddMemoryBlocks implements IAddMemoryBlocksTarget {
@Override
protected IStatus run(IProgressMonitor monitor) {
msRetrieval.getMemorySpaces(context, new GetMemorySpacesRequest(){
+ @Override
public void done() {
runOnUIThread(new Runnable(){
+ @Override
public void run() {
if (isSuccess()) {
String[] memorySpaces = getMemorySpaces();
@@ -209,11 +214,13 @@ public class AddMemoryBlocks implements IAddMemoryBlocksTarget {
}
+ @Override
public boolean canAddMemoryBlocks(IWorkbenchPart part, ISelection selection)
throws CoreException {
return true;
}
+ @Override
public boolean supportsAddMemoryBlocks(IWorkbenchPart part) {
return (IDebugUIConstants.ID_MEMORY_VIEW.equals(part.getSite().getId()));
}
@@ -387,6 +394,7 @@ public class AddMemoryBlocks implements IAddMemoryBlocksTarget {
final ParamHolder params_f = params;
final IMemoryRenderingSite memRendSite = memSite;
Job job = new Job("Add Memory Block") { //$NON-NLS-1$
+ @Override
protected IStatus run(IProgressMonitor monitor) {
addMemoryBlocks(debugViewElement_f, retrieval_f, params_f,
memRendSite);
@@ -463,6 +471,7 @@ public class AddMemoryBlocks implements IAddMemoryBlocksTarget {
}
else {
UIJob job = new UIJob("Memory Browser UI Job"){ //$NON-NLS-1$
+ @Override
public IStatus runInUIThread(IProgressMonitor monitor) {
runnable.run();
return Status.OK_STATUS;
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/modules/ModuleContentProvider.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/modules/ModuleContentProvider.java
index 737309834c..0263e7e1b2 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/modules/ModuleContentProvider.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/modules/ModuleContentProvider.java
@@ -30,6 +30,7 @@ public class ModuleContentProvider extends ElementContentProvider {
/* (non-Javadoc)
* @see org.eclipse.debug.internal.ui.model.elements.ElementContentProvider#getChildCount(java.lang.Object, org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext, org.eclipse.debug.internal.ui.viewers.model.provisional.IViewerUpdate)
*/
+ @Override
protected int getChildCount( Object element, IPresentationContext context, IViewerUpdate monitor ) throws CoreException {
return getAllChildren( element, context ).length;
}
@@ -37,6 +38,7 @@ public class ModuleContentProvider extends ElementContentProvider {
/* (non-Javadoc)
* @see org.eclipse.debug.internal.ui.model.elements.ElementContentProvider#getChildren(java.lang.Object, int, int, org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext, org.eclipse.debug.internal.ui.viewers.model.provisional.IViewerUpdate)
*/
+ @Override
protected Object[] getChildren( Object parent, int index, int length, IPresentationContext context, IViewerUpdate monitor ) throws CoreException {
return getElements( getAllChildren( parent, context ), index, length );
}
@@ -44,6 +46,7 @@ public class ModuleContentProvider extends ElementContentProvider {
/* (non-Javadoc)
* @see org.eclipse.debug.internal.ui.model.elements.ElementContentProvider#supportsContextId(java.lang.String)
*/
+ @Override
protected boolean supportsContextId( String id ) {
return IDebugUIConstants.ID_MODULE_VIEW.equals( id );
}
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 631b17c6d3..dd632e5151 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
@@ -99,7 +99,8 @@ public class ModuleDetailPane extends AbstractDetailPane implements IAdaptable,
/* (non-Javadoc)
* @see org.eclipse.core.runtime.jobs.Job#run(org.eclipse.core.runtime.IProgressMonitor)
*/
- protected IStatus run(IProgressMonitor monitor) {
+ @Override
+ protected IStatus run(IProgressMonitor monitor) {
fMonitor = monitor;
String detail = ""; //$NON-NLS-1$
@@ -117,7 +118,8 @@ public class ModuleDetailPane extends AbstractDetailPane implements IAdaptable,
private void detailComputed(final String result) {
if (!fMonitor.isCanceled()) {
WorkbenchJob setDetail = new WorkbenchJob("set details") { //$NON-NLS-1$
- public IStatus runInUIThread(IProgressMonitor monitor) {
+ @Override
+ public IStatus runInUIThread(IProgressMonitor monitor) {
if (!fMonitor.isCanceled()) {
getDetailDocument().set(result);
}
@@ -203,7 +205,8 @@ public class ModuleDetailPane extends AbstractDetailPane implements IAdaptable,
/* (non-Javadoc)
* @see org.eclipse.debug.ui.IDetailPane#createControl(org.eclipse.swt.widgets.Composite)
*/
- public Control createControl(Composite parent) {
+ @Override
+ public Control createControl(Composite parent) {
createSourceViewer(parent);
@@ -243,22 +246,26 @@ public class ModuleDetailPane extends AbstractDetailPane implements IAdaptable,
// Add a document listener so actions get updated when the document changes
getDetailDocument().addDocumentListener(new IDocumentListener() {
- public void documentAboutToBeChanged(DocumentEvent event) {}
- public void documentChanged(DocumentEvent event) {
+ @Override
+ public void documentAboutToBeChanged(DocumentEvent event) {}
+ @Override
+ public void documentChanged(DocumentEvent event) {
updateSelectionDependentActions();
}
});
// Add the selection listener so selection dependent actions get updated.
fSourceViewer.getSelectionProvider().addSelectionChangedListener(new ISelectionChangedListener() {
- public void selectionChanged(SelectionChangedEvent event) {
+ @Override
+ public void selectionChanged(SelectionChangedEvent event) {
updateSelectionDependentActions();
}
});
// Add a focus listener to update actions when details area gains focus
fSourceViewer.getControl().addFocusListener(new FocusAdapter() {
- public void focusGained(FocusEvent e) {
+ @Override
+ public void focusGained(FocusEvent e) {
getViewSite().setSelectionProvider(fSourceViewer.getSelectionProvider());
@@ -268,7 +275,8 @@ public class ModuleDetailPane extends AbstractDetailPane implements IAdaptable,
getViewSite().getActionBars().updateActionBars();
}
- public void focusLost(FocusEvent e) {
+ @Override
+ public void focusLost(FocusEvent e) {
getViewSite().setSelectionProvider(null);
@@ -319,7 +327,8 @@ public class ModuleDetailPane extends AbstractDetailPane implements IAdaptable,
MenuManager menuMgr= new MenuManager();
menuMgr.setRemoveAllWhenShown(true);
menuMgr.addMenuListener(new IMenuListener() {
- public void menuAboutToShow(IMenuManager mgr) {
+ @Override
+ public void menuAboutToShow(IMenuManager mgr) {
fillDetailContextMenu(mgr);
}
});
@@ -350,7 +359,8 @@ public class ModuleDetailPane extends AbstractDetailPane implements IAdaptable,
/* (non-Javadoc)
* @see org.eclipse.debug.ui.IDetailPane#display(org.eclipse.jface.viewers.IStructuredSelection)
*/
- public void display(IStructuredSelection selection) {
+ @Override
+ public void display(IStructuredSelection selection) {
if (selection == null){
clearSourceViewer();
@@ -384,7 +394,8 @@ public class ModuleDetailPane extends AbstractDetailPane implements IAdaptable,
/* (non-Javadoc)
* @see org.eclipse.debug.ui.IDetailPane#setFocus()
*/
- public boolean setFocus(){
+ @Override
+ public boolean setFocus(){
if (fSourceViewer != null){
fSourceViewer.getTextWidget().setFocus();
return true;
@@ -395,7 +406,8 @@ public class ModuleDetailPane extends AbstractDetailPane implements IAdaptable,
/* (non-Javadoc)
* @see org.eclipse.debug.internal.ui.views.variables.details.AbstractDetailPane#dispose()
*/
- public void dispose(){
+ @Override
+ public void dispose(){
super.dispose();
if (fDetailJob != null) fDetailJob.cancel();
@@ -410,28 +422,32 @@ public class ModuleDetailPane extends AbstractDetailPane implements IAdaptable,
/* (non-Javadoc)
* @see org.eclipse.debug.ui.IDetailPane#getDescription()
*/
- public String getDescription() {
+ @Override
+ public String getDescription() {
return DESCRIPTION;
}
/* (non-Javadoc)
* @see org.eclipse.debug.ui.IDetailPane#getID()
*/
- public String getID() {
+ @Override
+ public String getID() {
return ID;
}
/* (non-Javadoc)
* @see org.eclipse.debug.ui.IDetailPane#getName()
*/
- public String getName() {
+ @Override
+ public String getName() {
return NAME;
}
/* (non-Javadoc)
* @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class)
*/
- public Object getAdapter(Class required) {
+ @Override
+ public Object getAdapter(Class required) {
if (ITextViewer.class.equals(required)) {
return fSourceViewer;
}
@@ -462,7 +478,8 @@ public class ModuleDetailPane extends AbstractDetailPane implements IAdaptable,
/* (non-Javadoc)
* @see org.eclipse.jface.util.IPropertyChangeListener#propertyChange(org.eclipse.jface.util.PropertyChangeEvent)
*/
- public void propertyChange(PropertyChangeEvent event) {
+ @Override
+ public void propertyChange(PropertyChangeEvent event) {
String propertyName= event.getProperty();
if (propertyName.equals(IInternalCDebugUIConstants.DETAIL_PANE_FONT)) {
fSourceViewer.getTextWidget().setFont(JFaceResources.getFont(IInternalCDebugUIConstants.DETAIL_PANE_FONT));
@@ -492,14 +509,16 @@ public class ModuleDetailPane extends AbstractDetailPane implements IAdaptable,
/* (non-Javadoc)
* @see org.eclipse.jface.text.IFindReplaceTarget#canPerformFind()
*/
- public boolean canPerformFind() {
+ @Override
+ public boolean canPerformFind() {
return fTarget.canPerformFind();
}
/* (non-Javadoc)
* @see org.eclipse.jface.text.IFindReplaceTarget#findAndSelect(int, java.lang.String, boolean, boolean, boolean)
*/
- public int findAndSelect(int widgetOffset, String findString, boolean searchForward, boolean caseSensitive, boolean wholeWord) {
+ @Override
+ public int findAndSelect(int widgetOffset, String findString, boolean searchForward, boolean caseSensitive, boolean wholeWord) {
int position = fTarget.findAndSelect(widgetOffset, findString, searchForward, caseSensitive, wholeWord);
// Explicitly tell the widget to show the selection because the viewer thinks the text is all on one line, even if wrapping is turned on.
if (fSourceViewer != null){
@@ -514,28 +533,32 @@ public class ModuleDetailPane extends AbstractDetailPane implements IAdaptable,
/* (non-Javadoc)
* @see org.eclipse.jface.text.IFindReplaceTarget#getSelection()
*/
- public Point getSelection() {
+ @Override
+ public Point getSelection() {
return fTarget.getSelection();
}
/* (non-Javadoc)
* @see org.eclipse.jface.text.IFindReplaceTarget#getSelectionText()
*/
- public String getSelectionText() {
+ @Override
+ public String getSelectionText() {
return fTarget.getSelectionText();
}
/* (non-Javadoc)
* @see org.eclipse.jface.text.IFindReplaceTarget#isEditable()
*/
- public boolean isEditable() {
+ @Override
+ public boolean isEditable() {
return fTarget.isEditable();
}
/* (non-Javadoc)
* @see org.eclipse.jface.text.IFindReplaceTarget#replaceSelection(java.lang.String)
*/
- public void replaceSelection(String text) {
+ @Override
+ public void replaceSelection(String text) {
fTarget.replaceSelection(text);
}
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/modules/ModuleDetailPaneFactory.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/modules/ModuleDetailPaneFactory.java
index 2803b6b5ae..c1cfef1fcb 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/modules/ModuleDetailPaneFactory.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/modules/ModuleDetailPaneFactory.java
@@ -28,6 +28,7 @@ public class ModuleDetailPaneFactory implements IDetailPaneFactory {
/* (non-Javadoc)
* @see org.eclipse.debug.internal.ui.views.variables.IDetailsFactory#createDetailsArea(java.lang.String)
*/
+ @Override
public IDetailPane createDetailPane(String id) {
return new ModuleDetailPane();
}
@@ -35,6 +36,7 @@ public class ModuleDetailPaneFactory implements IDetailPaneFactory {
/* (non-Javadoc)
* @see org.eclipse.debug.internal.ui.views.variables.IDetailsFactory#getDetailsTypes(org.eclipse.jface.viewers.IStructuredSelection)
*/
+ @Override
public Set getDetailPaneTypes(IStructuredSelection selection) {
Set possibleIDs = new HashSet(1);
possibleIDs.add(ModuleDetailPane.ID);
@@ -44,6 +46,7 @@ public class ModuleDetailPaneFactory implements IDetailPaneFactory {
/* (non-Javadoc)
* @see org.eclipse.debug.ui.IDetailPaneFactory#getDefaultDetailPane(java.util.Set, org.eclipse.jface.viewers.IStructuredSelection)
*/
+ @Override
public String getDefaultDetailPane(IStructuredSelection selection) {
// Return null so that any contributed detail pane can override the default
return null;
@@ -52,6 +55,7 @@ public class ModuleDetailPaneFactory implements IDetailPaneFactory {
/* (non-Javadoc)
* @see org.eclipse.debug.internal.ui.views.variables.IDetailsFactory#getName(java.lang.String)
*/
+ @Override
public String getDetailPaneName(String id) {
if (id.equals(ModuleDetailPane.ID)){
return ModuleDetailPane.NAME;
@@ -63,6 +67,7 @@ public class ModuleDetailPaneFactory implements IDetailPaneFactory {
/* (non-Javadoc)
* @see org.eclipse.debug.internal.ui.views.variables.IDetailsFactory#getDescription(java.lang.String)
*/
+ @Override
public String getDetailPaneDescription(String id) {
if (id.equals(ModuleDetailPane.ID)){
return ModuleDetailPane.DESCRIPTION;
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/modules/ModuleLabelProvider.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/modules/ModuleLabelProvider.java
index 9c0d0240e5..17c4414c0a 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/modules/ModuleLabelProvider.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/modules/ModuleLabelProvider.java
@@ -33,6 +33,7 @@ public class ModuleLabelProvider extends ElementLabelProvider {
/* (non-Javadoc)
* @see org.eclipse.debug.internal.ui.model.elements.ElementLabelProvider#getLabel(org.eclipse.jface.viewers.TreePath, org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext, java.lang.String)
*/
+ @Override
protected String getLabel( TreePath elementPath, IPresentationContext presentationContext, String columnId ) throws CoreException {
Object element = elementPath.getLastSegment();
if ( element instanceof ICModule && presentationContext instanceof DebugModelPresentationContext ) {
@@ -50,6 +51,7 @@ public class ModuleLabelProvider extends ElementLabelProvider {
/* (non-Javadoc)
* @see org.eclipse.debug.internal.ui.model.elements.ElementLabelProvider#getImageDescriptor(org.eclipse.jface.viewers.TreePath, org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext, java.lang.String)
*/
+ @Override
protected ImageDescriptor getImageDescriptor( TreePath elementPath, IPresentationContext presentationContext, String columnId ) throws CoreException {
Object element = elementPath.getLastSegment();
if ( element instanceof ICModule ) {
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/modules/ModuleMementoProvider.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/modules/ModuleMementoProvider.java
index efb348221f..ac921a6955 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/modules/ModuleMementoProvider.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/modules/ModuleMementoProvider.java
@@ -37,6 +37,7 @@ public class ModuleMementoProvider extends ElementMementoProvider {
/* (non-Javadoc)
* @see org.eclipse.debug.internal.ui.model.elements.ElementMementoProvider#encodeElement(java.lang.Object, org.eclipse.ui.IMemento, org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext)
*/
+ @Override
protected boolean encodeElement( Object element, IMemento memento, IPresentationContext context ) throws CoreException {
if ( element instanceof ICDebugTarget || element instanceof ICThread || element instanceof ICStackFrame ) {
IModuleRetrieval mr = (IModuleRetrieval)((IAdaptable)element).getAdapter( IModuleRetrieval.class );
@@ -63,6 +64,7 @@ public class ModuleMementoProvider extends ElementMementoProvider {
/* (non-Javadoc)
* @see org.eclipse.debug.internal.ui.model.elements.ElementMementoProvider#isEqual(java.lang.Object, org.eclipse.ui.IMemento, org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext)
*/
+ @Override
protected boolean isEqual( Object element, IMemento memento, IPresentationContext context ) throws CoreException {
String mementoName = memento.getString( ELEMENT_NAME );
if ( mementoName != null ) {
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/modules/ModulesViewEventHandler.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/modules/ModulesViewEventHandler.java
index 793c792e9f..f4312f4205 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/modules/ModulesViewEventHandler.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/modules/ModulesViewEventHandler.java
@@ -37,6 +37,7 @@ public class ModulesViewEventHandler extends DebugEventHandler {
/* (non-Javadoc)
* @see org.eclipse.debug.internal.ui.viewers.update.DebugEventHandler#handlesEvent(org.eclipse.debug.core.DebugEvent)
*/
+ @Override
protected boolean handlesEvent( DebugEvent event ) {
if ( event.getKind() == DebugEvent.CREATE ||
event.getKind() == DebugEvent.TERMINATE ||
@@ -48,6 +49,7 @@ public class ModulesViewEventHandler extends DebugEventHandler {
/* (non-Javadoc)
* @see org.eclipse.debug.internal.ui.viewers.update.DebugEventHandler#handleChange(org.eclipse.debug.core.DebugEvent)
*/
+ @Override
protected void handleChange( DebugEvent event ) {
if ( event.getSource() instanceof ICModule )
fireDelta( (ICModule)event.getSource(), IModelDelta.STATE );
@@ -56,6 +58,7 @@ public class ModulesViewEventHandler extends DebugEventHandler {
/* (non-Javadoc)
* @see org.eclipse.debug.internal.ui.viewers.update.DebugEventHandler#handleCreate(org.eclipse.debug.core.DebugEvent)
*/
+ @Override
protected void handleCreate( DebugEvent event ) {
Object source = event.getSource();
if ( source instanceof IDebugTarget ) {
@@ -72,6 +75,7 @@ public class ModulesViewEventHandler extends DebugEventHandler {
/* (non-Javadoc)
* @see org.eclipse.debug.internal.ui.viewers.update.DebugEventHandler#handleTerminate(org.eclipse.debug.core.DebugEvent)
*/
+ @Override
protected void handleTerminate( DebugEvent event ) {
Object source = event.getSource();
if ( source instanceof IDebugTarget ) {
@@ -91,6 +95,7 @@ public class ModulesViewEventHandler extends DebugEventHandler {
/* (non-Javadoc)
* @see org.eclipse.debug.internal.ui.viewers.update.DebugEventHandler#dispose()
*/
+ @Override
public synchronized void dispose() {
super.dispose();
fModuleRetrieval = null;
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/modules/ModulesViewModelProxy.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/modules/ModulesViewModelProxy.java
index 550198337a..0aa87cd34e 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/modules/ModulesViewModelProxy.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/modules/ModulesViewModelProxy.java
@@ -32,6 +32,7 @@ public class ModulesViewModelProxy extends EventHandlerModelProxy {
/* (non-Javadoc)
* @see org.eclipse.debug.internal.ui.viewers.update.EventHandlerModelProxy#createEventHandlers()
*/
+ @Override
protected DebugEventHandler[] createEventHandlers() {
return new DebugEventHandler[] { new ModulesViewEventHandler( this, fModuleRetrieval ) };
}
@@ -39,6 +40,7 @@ public class ModulesViewModelProxy extends EventHandlerModelProxy {
/* (non-Javadoc)
* @see org.eclipse.debug.internal.ui.viewers.update.EventHandlerModelProxy#dispose()
*/
+ @Override
public synchronized void dispose() {
super.dispose();
fModuleRetrieval = null;
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/signals/FlexibleSignalsView.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/signals/FlexibleSignalsView.java
index 99f65b7a6c..a9dd50c363 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/signals/FlexibleSignalsView.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/signals/FlexibleSignalsView.java
@@ -59,6 +59,7 @@ public class FlexibleSignalsView extends AbstractDebugView implements IViewerUpd
* resolved.
*/
private IViewerInputRequestor fRequester = new IViewerInputRequestor() {
+ @Override
public void viewerInputComplete(IViewerInputUpdate update) {
if (!update.isCanceled()) {
viewerInputUpdateComplete(update);
@@ -96,6 +97,7 @@ public class FlexibleSignalsView extends AbstractDebugView implements IViewerUpd
variablesViewer.getPresentationContext().addPropertyChangeListener(
new IPropertyChangeListener() {
+ @Override
public void propertyChange(PropertyChangeEvent event) {
if (IPresentationContext.PROPERTY_COLUMNS.equals(event.getProperty())) {
IAction action = getAction("ShowTypeNames"); //$NON-NLS-1$
@@ -173,6 +175,7 @@ public class FlexibleSignalsView extends AbstractDebugView implements IViewerUpd
/*
* @see org.eclipse.debug.internal.ui.viewers.model.provisional.IViewerUpdateListener#viewerUpdatesBegin()
*/
+ @Override
public void viewerUpdatesBegin() {
IWorkbenchSiteProgressService progressService =
(IWorkbenchSiteProgressService)getSite().getAdapter(IWorkbenchSiteProgressService.class);
@@ -184,6 +187,7 @@ public class FlexibleSignalsView extends AbstractDebugView implements IViewerUpd
/*
* @see org.eclipse.debug.internal.ui.viewers.model.provisional.IViewerUpdateListener#viewerUpdatesComplete()
*/
+ @Override
public void viewerUpdatesComplete() {
IWorkbenchSiteProgressService progressService =
(IWorkbenchSiteProgressService)getSite().getAdapter(IWorkbenchSiteProgressService.class);
@@ -195,12 +199,14 @@ public class FlexibleSignalsView extends AbstractDebugView implements IViewerUpd
/*
* @see org.eclipse.debug.internal.ui.viewers.model.provisional.IViewerUpdateListener#updateStarted(org.eclipse.debug.internal.ui.viewers.model.provisional.IViewerUpdate)
*/
+ @Override
public void updateStarted(IViewerUpdate update) {
}
/*
* @see org.eclipse.debug.internal.ui.viewers.model.provisional.IViewerUpdateListener#updateComplete(org.eclipse.debug.internal.ui.viewers.model.provisional.IViewerUpdate)
*/
+ @Override
public void updateComplete(IViewerUpdate update) {
IStatus status = update.getStatus();
if (!update.isCanceled()) {
@@ -215,6 +221,7 @@ public class FlexibleSignalsView extends AbstractDebugView implements IViewerUpd
/*
* @see org.eclipse.debug.ui.contexts.IDebugContextListener#debugContextChanged(org.eclipse.debug.ui.contexts.DebugContextEvent)
*/
+ @Override
public void debugContextChanged(DebugContextEvent event) {
if ((event.getFlags() & DebugContextEvent.ACTIVATED) > 0) {
contextActivated(event.getContext());
@@ -238,6 +245,7 @@ public class FlexibleSignalsView extends AbstractDebugView implements IViewerUpd
/*
* @see org.eclipse.debug.internal.ui.viewers.model.provisional.IModelChangedListener#modelChanged(org.eclipse.debug.internal.ui.viewers.model.provisional.IModelDelta, org.eclipse.debug.internal.ui.viewers.model.provisional.IModelProxy)
*/
+ @Override
public void modelChanged(IModelDelta delta, IModelProxy proxy) {
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/signals/SignalsView.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/signals/SignalsView.java
index b7b9e50563..bc750218b6 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/signals/SignalsView.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/signals/SignalsView.java
@@ -58,6 +58,7 @@ public class SignalsView extends AbstractDebugEventHandlerView
/* (non-Javadoc)
* @see org.eclipse.jface.viewers.ITableLabelProvider#getColumnImage(java.lang.Object, int)
*/
+ @Override
public Image getColumnImage( Object element, int columnIndex ) {
if ( columnIndex == 0 )
return getModelPresentation().getImage( element );
@@ -67,6 +68,7 @@ public class SignalsView extends AbstractDebugEventHandlerView
/* (non-Javadoc)
* @see org.eclipse.jface.viewers.ITableLabelProvider#getColumnText(java.lang.Object, int)
*/
+ @Override
public String getColumnText( Object element, int columnIndex ) {
if ( element instanceof ICSignal ) {
try {
@@ -94,6 +96,7 @@ public class SignalsView extends AbstractDebugEventHandlerView
/* (non-Javadoc)
* @see org.eclipse.debug.ui.AbstractDebugView#createViewer(org.eclipse.swt.widgets.Composite)
*/
+ @Override
protected Viewer createViewer( Composite parent ) {
// add tree viewer
@@ -115,12 +118,14 @@ public class SignalsView extends AbstractDebugEventHandlerView
/* (non-Javadoc)
* @see org.eclipse.debug.ui.AbstractDebugView#createActions()
*/
+ @Override
protected void createActions() {
}
/* (non-Javadoc)
* @see org.eclipse.debug.ui.AbstractDebugView#getHelpContextId()
*/
+ @Override
protected String getHelpContextId() {
return ICDebugHelpContextIds.SIGNALS_VIEW;
}
@@ -128,6 +133,7 @@ public class SignalsView extends AbstractDebugEventHandlerView
/* (non-Javadoc)
* @see org.eclipse.debug.ui.AbstractDebugView#fillContextMenu(org.eclipse.jface.action.IMenuManager)
*/
+ @Override
protected void fillContextMenu( IMenuManager menu ) {
menu.add( new Separator( IWorkbenchActionConstants.MB_ADDITIONS ) );
updateObjects();
@@ -136,12 +142,14 @@ public class SignalsView extends AbstractDebugEventHandlerView
/* (non-Javadoc)
* @see org.eclipse.debug.ui.AbstractDebugView#configureToolBar(org.eclipse.jface.action.IToolBarManager)
*/
+ @Override
protected void configureToolBar( IToolBarManager tbm ) {
}
/* (non-Javadoc)
* @see org.eclipse.ui.ISelectionListener#selectionChanged(org.eclipse.ui.IWorkbenchPart, org.eclipse.jface.viewers.ISelection)
*/
+ @Override
public void selectionChanged( IWorkbenchPart part, ISelection selection ) {
if ( !isAvailable() || !isVisible() )
return;
@@ -154,12 +162,14 @@ public class SignalsView extends AbstractDebugEventHandlerView
/* (non-Javadoc)
* @see org.eclipse.jface.util.IPropertyChangeListener#propertyChange(org.eclipse.jface.util.PropertyChangeEvent)
*/
+ @Override
public void propertyChange( PropertyChangeEvent event ) {
}
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.internal.ui.views.IDebugExceptionHandler#handleException(org.eclipse.debug.core.DebugException)
*/
+ @Override
public void handleException( DebugException e ) {
showMessage( e.getMessage() );
}
@@ -200,6 +210,7 @@ public class SignalsView extends AbstractDebugEventHandlerView
/* (non-Javadoc)
* @see org.eclipse.debug.ui.AbstractDebugView#becomesHidden()
*/
+ @Override
protected void becomesHidden() {
setViewerInput( new StructuredSelection() );
super.becomesHidden();
@@ -208,6 +219,7 @@ public class SignalsView extends AbstractDebugEventHandlerView
/* (non-Javadoc)
* @see org.eclipse.debug.ui.AbstractDebugView#becomesVisible()
*/
+ @Override
protected void becomesVisible() {
super.becomesVisible();
IViewPart part = getSite().getPage().findView( IDebugUIConstants.ID_DEBUG_VIEW );
@@ -220,6 +232,7 @@ public class SignalsView extends AbstractDebugEventHandlerView
/* (non-Javadoc)
* @see org.eclipse.ui.IWorkbenchPart#dispose()
*/
+ @Override
public void dispose() {
getSite().getPage().removeSelectionListener( IDebugUIConstants.ID_DEBUG_VIEW, this );
CDebugUIPlugin.getDefault().getPreferenceStore().removePropertyChangeListener( this );
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/signals/SignalsViewColumnPresentation.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/signals/SignalsViewColumnPresentation.java
index 071e13b2cd..b384286dd9 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/signals/SignalsViewColumnPresentation.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/signals/SignalsViewColumnPresentation.java
@@ -50,21 +50,26 @@ public class SignalsViewColumnPresentation implements IColumnPresentation {
COLUMN_ID_DESC
};
- public void init( IPresentationContext context ) {
+ @Override
+ public void init( IPresentationContext context ) {
}
- public void dispose() {
+ @Override
+ public void dispose() {
}
- public String[] getAvailableColumns() {
+ @Override
+ public String[] getAvailableColumns() {
return ALL_COLUMNS;
}
- public String[] getInitialColumns() {
+ @Override
+ public String[] getInitialColumns() {
return INITIAL_COLUMNS;
}
- public String getHeader( String id ) {
+ @Override
+ public String getHeader( String id ) {
if ( COLUMN_ID_NAME.equals( id ) ) {
return CL_NAME;
}
@@ -80,15 +85,18 @@ public class SignalsViewColumnPresentation implements IColumnPresentation {
return null;
}
- public ImageDescriptor getImageDescriptor( String id ) {
+ @Override
+ public ImageDescriptor getImageDescriptor( String id ) {
return null;
}
- public String getId() {
+ @Override
+ public String getId() {
return ID;
}
- public boolean isOptional() {
+ @Override
+ public boolean isOptional() {
return true;
}
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/signals/SignalsViewContentProvider.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/signals/SignalsViewContentProvider.java
index 6d9508f934..333463c23b 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/signals/SignalsViewContentProvider.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/signals/SignalsViewContentProvider.java
@@ -37,6 +37,7 @@ public class SignalsViewContentProvider implements IStructuredContentProvider {
/* (non-Javadoc)
* @see org.eclipse.jface.viewers.IStructuredContentProvider#getElements(java.lang.Object)
*/
+ @Override
public Object[] getElements( Object inputElement ) {
if ( inputElement instanceof ICDebugTarget ) {
ICDebugTarget target = (ICDebugTarget)inputElement;
@@ -58,12 +59,14 @@ public class SignalsViewContentProvider implements IStructuredContentProvider {
/* (non-Javadoc)
* @see org.eclipse.jface.viewers.IContentProvider#dispose()
*/
+ @Override
public void dispose() {
}
/* (non-Javadoc)
* @see org.eclipse.jface.viewers.IContentProvider#inputChanged(org.eclipse.jface.viewers.Viewer, java.lang.Object, java.lang.Object)
*/
+ @Override
public void inputChanged( Viewer viewer, Object oldInput, Object newInput ) {
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/signals/SignalsViewEventHandler.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/signals/SignalsViewEventHandler.java
index 6f521dbcfb..dc31761408 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/signals/SignalsViewEventHandler.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/signals/SignalsViewEventHandler.java
@@ -37,6 +37,7 @@ public class SignalsViewEventHandler extends AbstractDebugEventHandler {
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.internal.ui.views.AbstractDebugEventHandler#doHandleDebugEvents(org.eclipse.debug.core.DebugEvent[])
*/
+ @Override
protected void doHandleDebugEvents( DebugEvent[] events ) {
for( int i = 0; i < events.length; i++ ) {
DebugEvent event = events[i];
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/AbstractCDebuggerPage.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/AbstractCDebuggerPage.java
index d038b0ff3f..02cdbec83d 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/AbstractCDebuggerPage.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/AbstractCDebuggerPage.java
@@ -31,6 +31,7 @@ abstract public class AbstractCDebuggerPage extends AbstractLaunchConfigurationT
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.ui.ICDebuggerPage#init(java.lang.String)
*/
+ @Override
public void init(String debuggerID) {
fDebuggerID = debuggerID;
}
@@ -47,6 +48,7 @@ abstract public class AbstractCDebuggerPage extends AbstractLaunchConfigurationT
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.ui.ICDebuggerPage#getDebuggerIdentifier()
*/
+ @Override
public String getDebuggerIdentifier() {
return fDebuggerID;
}
@@ -55,7 +57,8 @@ abstract public class AbstractCDebuggerPage extends AbstractLaunchConfigurationT
* @see org.eclipse.cdt.debug.ui.ICDebuggerPageExtension#addContentChangeListener(org.eclipse.cdt.debug.ui.ICDebuggerPageExtension.IContentChangeListener)
*/
/** @since 7.0 */
- public void addContentChangeListener(IContentChangeListener listener) {
+ @Override
+ public void addContentChangeListener(IContentChangeListener listener) {
fContentListeners.add(listener);
}
@@ -63,7 +66,8 @@ abstract public class AbstractCDebuggerPage extends AbstractLaunchConfigurationT
* @see org.eclipse.cdt.debug.ui.ICDebuggerPageExtension#removeContentChangeListener(org.eclipse.cdt.debug.ui.ICDebuggerPageExtension.IContentChangeListener)
*/
/** @since 7.0 */
- public void removeContentChangeListener(IContentChangeListener listener) {
+ @Override
+ public void removeContentChangeListener(IContentChangeListener listener) {
fContentListeners.remove(listener);
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/PinElementHandle.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/PinElementHandle.java
index df13a90df2..c66b2b04b9 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/PinElementHandle.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/PinElementHandle.java
@@ -35,6 +35,7 @@ public class PinElementHandle extends PlatformObject implements IPinElementHandl
* (non-Javadoc)
* @see org.eclipse.cdt.debug.ui.IPinProvider.IPinElementHandle#getDebugContext()
*/
+ @Override
public synchronized Object getDebugContext() {
return fDebugContext;
}
@@ -52,6 +53,7 @@ public class PinElementHandle extends PlatformObject implements IPinElementHandl
* (non-Javadoc)
* @see org.eclipse.cdt.debug.core.IPinProvider.IHandleLabelProvider#getLabel()
*/
+ @Override
public String getLabel() {
return fLabel;
}
@@ -60,6 +62,7 @@ public class PinElementHandle extends PlatformObject implements IPinElementHandl
* (non-Javadoc)
* @see org.eclipse.cdt.debug.ui.IPinProvider.IPinElementHandle#getPinElementColorDescriptor()
*/
+ @Override
public IPinElementColorDescriptor getPinElementColorDescriptor() {
return fColorDescriptor;
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/ActionDialog.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/ActionDialog.java
index c0e7310c85..0c317785ea 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/ActionDialog.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/ActionDialog.java
@@ -70,11 +70,13 @@ public class ActionDialog extends Dialog {
lastSelectedActionTypeIndex = 0;
}
+ @Override
protected void cancelPressed() {
actionPage.actionDialogCanceled();
super.cancelPressed();
}
+ @Override
protected void configureShell(Shell newShell) {
super.configureShell(newShell);
if (originalAction == null)
@@ -88,6 +90,7 @@ public class ActionDialog extends Dialog {
*
* @param parent
*/
+ @Override
protected void createButtonsForButtonBar(Composite parent) {
createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true);
createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false);
@@ -98,6 +101,7 @@ public class ActionDialog extends Dialog {
*
* @param parent
*/
+ @Override
protected Control createDialogArea(Composite parent) {
dialogArea = (Composite) super.createDialogArea(parent);
final GridLayout gridLayout = new GridLayout();
@@ -115,6 +119,7 @@ public class ActionDialog extends Dialog {
combo = new Combo(dialogArea, SWT.READ_ONLY);
combo.addSelectionListener(new SelectionAdapter() {
+ @Override
public void widgetSelected(final SelectionEvent e) {
try {
showActionComposite();
@@ -185,10 +190,12 @@ public class ActionDialog extends Dialog {
/**
* Return the initial size of the dialog
*/
+ @Override
protected Point getInitialSize() {
return new Point(500, 375);
}
+ @Override
protected void okPressed() {
if (originalAction == null)
CDebugUIPlugin.getDefault().getPreferenceStore().setValue(ACTION_DIALOG_LAST_SELECTED, breakpointAction.getTypeName());
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/ActionsList.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/ActionsList.java
index 8cbed1eefb..2309b34c0d 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/ActionsList.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/ActionsList.java
@@ -44,6 +44,7 @@ public class ActionsList extends Composite {
table.setLinesVisible(true);
table.setHeaderVisible(true);
table.addSelectionListener(new SelectionAdapter() {
+ @Override
public void widgetSelected(SelectionEvent e) {
updateButtons();
}
@@ -65,6 +66,7 @@ public class ActionsList extends Composite {
removeButton.setText(Messages.getString("ActionsList.3")); //$NON-NLS-1$
removeButton.addSelectionListener(new SelectionAdapter() {
+ @Override
public void widgetSelected(SelectionEvent e) {
HandleRemoveButton();
}
@@ -72,6 +74,7 @@ public class ActionsList extends Composite {
final Button upButton = new Button(this, SWT.NONE);
upButton.addSelectionListener(new SelectionAdapter() {
+ @Override
public void widgetSelected(final SelectionEvent e) {
HandleUpButton();
}
@@ -81,6 +84,7 @@ public class ActionsList extends Composite {
final Button downButton = new Button(this, SWT.NONE);
downButton.addSelectionListener(new SelectionAdapter() {
+ @Override
public void widgetSelected(final SelectionEvent e) {
HandleDownButton();
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/ActionsPreferencePage.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/ActionsPreferencePage.java
index b5beb79787..3c93a524ca 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/ActionsPreferencePage.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/ActionsPreferencePage.java
@@ -34,6 +34,7 @@ public class ActionsPreferencePage extends PreferencePage implements IWorkbenchP
setPreferenceStore(CDebugUIPlugin.getDefault().getPreferenceStore());
}
+ @Override
public Control createContents(Composite parent) {
Composite container = new Composite(parent, SWT.NONE);
final GridLayout gridLayout = new GridLayout();
@@ -45,6 +46,7 @@ public class ActionsPreferencePage extends PreferencePage implements IWorkbenchP
actionsList.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, true));
actionsList.getDeleteButton().addSelectionListener(new SelectionAdapter() {
+ @Override
public void widgetSelected(SelectionEvent e) {
actionsList.HandleDeleteButton();
}
@@ -56,14 +58,17 @@ public class ActionsPreferencePage extends PreferencePage implements IWorkbenchP
return container;
}
+ @Override
public void init(IWorkbench workbench) {
}
+ @Override
public boolean performCancel() {
CDebugCorePlugin.getDefault().getBreakpointActionManager().revertActionData();
return super.performCancel();
}
+ @Override
public boolean performOk() {
CDebugCorePlugin.getDefault().getBreakpointActionManager().saveActionData();
return super.performOk();
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/ActionsPropertyPage.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/ActionsPropertyPage.java
index 12755bf0ba..704c6df3c5 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/ActionsPropertyPage.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/ActionsPropertyPage.java
@@ -37,6 +37,7 @@ public class ActionsPropertyPage extends PropertyPage {
super();
}
+ @Override
public Control createContents(Composite parent) {
Composite container = new Composite(parent, SWT.NULL);
@@ -80,12 +81,14 @@ public class ActionsPropertyPage extends PropertyPage {
actionsList.setNames(actionNames);
globalActionsList.getAttachButton().addSelectionListener(new SelectionAdapter() {
+ @Override
public void widgetSelected(SelectionEvent e) {
HandleAttachButton();
}
});
globalActionsList.getDeleteButton().addSelectionListener(new SelectionAdapter() {
+ @Override
public void widgetSelected(SelectionEvent e) {
HandleDeleteButton();
}
@@ -118,6 +121,7 @@ public class ActionsPropertyPage extends PropertyPage {
globalActionsList.HandleDeleteButton();
}
+ @Override
protected void performDefaults() {
try {
breakpointMarker.setAttribute(BreakpointActionManager.BREAKPOINT_ACTION_ATTRIBUTE, ""); //$NON-NLS-1$
@@ -127,6 +131,7 @@ public class ActionsPropertyPage extends PropertyPage {
super.performDefaults();
}
+ @Override
public boolean performCancel() {
try {
breakpointMarker.setAttribute(BreakpointActionManager.BREAKPOINT_ACTION_ATTRIBUTE, savedActionNames);
@@ -136,6 +141,7 @@ public class ActionsPropertyPage extends PropertyPage {
return super.performCancel();
}
+ @Override
public boolean performOk() {
try {
CDebugCorePlugin.getDefault().getBreakpointActionManager().saveActionData();
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/ExternalToolAction.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/ExternalToolAction.java
index aa5942fec4..16a683cce0 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/ExternalToolAction.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/ExternalToolAction.java
@@ -45,6 +45,7 @@ public class ExternalToolAction extends AbstractBreakpointAction {
private String externalToolName = ""; //$NON-NLS-1$
+ @Override
public IStatus execute(IBreakpoint breakpoint, IAdaptable context, IProgressMonitor monitor) {
IStatus errorStatus = null;
ILaunchManager lcm = DebugPlugin.getDefault().getLaunchManager();
@@ -79,6 +80,7 @@ public class ExternalToolAction extends AbstractBreakpointAction {
return Status.OK_STATUS;
}
+ @Override
public String getDefaultName() {
return "Untitled External Tool Action"; //$NON-NLS-1$
}
@@ -91,10 +93,12 @@ public class ExternalToolAction extends AbstractBreakpointAction {
this.externalToolName = launchConfigName;
}
+ @Override
public String getIdentifier() {
return "org.eclipse.cdt.debug.ui.breakpointactions.ExternalToolAction"; //$NON-NLS-1$
}
+ @Override
public String getMemento() {
String executeData = ""; //$NON-NLS-1$
if (externalToolName != null) {
@@ -129,14 +133,17 @@ public class ExternalToolAction extends AbstractBreakpointAction {
return executeData;
}
+ @Override
public String getSummary() {
return MessageFormat.format(Messages.getString("ExternalToolAction.Summary"), new Object[] { externalToolName }); //$NON-NLS-1$
}
+ @Override
public String getTypeName() {
return Messages.getString("ExternalToolAction.TypeName"); //$NON-NLS-1$
}
+ @Override
public void initializeFromMemento(String data) {
Element root = null;
DocumentBuilder parser;
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 cbbcd6bb38..8e1c799f8e 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
@@ -63,6 +63,7 @@ public class ExternalToolActionComposite extends Composite {
*
* @see org.eclipse.ui.IPluginContribution#getLocalId()
*/
+ @Override
public String getLocalId() {
return type.getIdentifier();
}
@@ -72,6 +73,7 @@ public class ExternalToolActionComposite extends Composite {
*
* @see org.eclipse.ui.IPluginContribution#getPluginId()
*/
+ @Override
public String getPluginId() {
return type.getPluginIdentifier();
}
@@ -90,12 +92,15 @@ public class ExternalToolActionComposite extends Composite {
this.setInput(composite);
this.setContentProvider(new IStructuredContentProvider() {
+ @Override
public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
}
+ @Override
public void dispose() {
}
+ @Override
public Object[] getElements(Object parent) {
return launchConfigs;
}
@@ -103,6 +108,7 @@ public class ExternalToolActionComposite extends Composite {
this.setLabelProvider(new LabelProvider() {
+ @Override
public String getText(Object element) {
return ((ILaunchConfiguration) element).getName();
}
@@ -138,6 +144,7 @@ public class ExternalToolActionComposite extends Composite {
final Button browseButton = new Button(this, SWT.NONE);
browseButton.addSelectionListener(new SelectionAdapter() {
+ @Override
public void widgetSelected(SelectionEvent e) {
ILaunchConfiguration[] lcs = getLaunchConfigurations();
@@ -174,6 +181,7 @@ public class ExternalToolActionComposite extends Composite {
final Button externalToolsButton = new Button(this, SWT.NONE);
externalToolsButton.addSelectionListener(new SelectionAdapter() {
+ @Override
public void widgetSelected(SelectionEvent e) {
DebugUITools.openLaunchConfigurationDialogOnGroup(externalToolActionComposite.getShell(), new StructuredSelection(), "org.eclipse.ui.externaltools.launchGroup"); //$NON-NLS-1$
browseButton.setEnabled(getLaunchConfigurations().length > 0);
@@ -221,10 +229,12 @@ public class ExternalToolActionComposite extends Composite {
return (ILaunchConfiguration[]) onlyExternalTools.toArray(new ILaunchConfiguration[onlyExternalTools.size()]);
}
+ @Override
public void dispose() {
super.dispose();
}
+ @Override
protected void checkSubclass() {
// Disable the check that prevents subclassing of SWT components
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/ExternalToolActionPage.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/ExternalToolActionPage.java
index 3e82bc3363..9004af6641 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/ExternalToolActionPage.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/ExternalToolActionPage.java
@@ -19,6 +19,7 @@ public class ExternalToolActionPage extends PlatformObject implements IBreakpoin
private ExternalToolAction externalToolAction;
private ExternalToolActionComposite runComposite;
+ @Override
public void actionDialogCanceled() {
}
@@ -26,10 +27,12 @@ public class ExternalToolActionPage extends PlatformObject implements IBreakpoin
return externalToolAction;
}
+ @Override
public void actionDialogOK() {
externalToolAction.setExternalToolName(runComposite.getLaunchConfigName());
}
+ @Override
public Composite createComposite(IBreakpointAction action, Composite composite, int style) {
externalToolAction = (ExternalToolAction) action;
runComposite = new ExternalToolActionComposite(composite, style, this);
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/GlobalActionsList.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/GlobalActionsList.java
index d2bf73a342..71fa80c838 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/GlobalActionsList.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/GlobalActionsList.java
@@ -44,10 +44,12 @@ public class GlobalActionsList extends Composite {
table = new Table(this, SWT.BORDER | SWT.FULL_SELECTION | SWT.MULTI);
table.addSelectionListener(new SelectionAdapter() {
+ @Override
public void widgetSelected(SelectionEvent e) {
updateButtons();
}
+ @Override
public void widgetDefaultSelected(SelectionEvent e) {
HandleEditButton();
}
@@ -92,6 +94,7 @@ public class GlobalActionsList extends Composite {
newButton = new Button(this, SWT.NONE);
newButton.setLayoutData(new GridData());
newButton.addSelectionListener(new SelectionAdapter() {
+ @Override
public void widgetSelected(SelectionEvent e) {
try {
@@ -106,6 +109,7 @@ public class GlobalActionsList extends Composite {
editButton = new Button(this, SWT.NONE);
editButton.setText(Messages.getString("GlobalActionsList.5")); //$NON-NLS-1$
editButton.addSelectionListener(new SelectionAdapter() {
+ @Override
public void widgetSelected(SelectionEvent e) {
HandleEditButton();
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/LogAction.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/LogAction.java
index 3dfa3f3fec..1de08d0c32 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/LogAction.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/LogAction.java
@@ -58,6 +58,7 @@ public class LogAction extends AbstractBreakpointAction {
* (non-Javadoc)
* @see org.eclipse.cdt.debug.core.breakpointactions.IBreakpointAction#execute(org.eclipse.debug.core.model.IBreakpoint, org.eclipse.core.runtime.IAdaptable, org.eclipse.core.runtime.IProgressMonitor)
*/
+ @Override
public IStatus execute(IBreakpoint breakpoint, IAdaptable context, IProgressMonitor monitor) {
IStatus result = Status.OK_STATUS;
try {
@@ -101,14 +102,17 @@ public class LogAction extends AbstractBreakpointAction {
ConsolePlugin.getDefault().getConsoleManager().showConsoleView(console);
}
+ @Override
public String getDefaultName() {
return Messages.getString("LogAction.UntitledName"); //$NON-NLS-1$
}
+ @Override
public String getIdentifier() {
return "org.eclipse.cdt.debug.ui.breakpointactions.LogAction"; //$NON-NLS-1$
}
+ @Override
public String getMemento() {
String logData = ""; //$NON-NLS-1$
@@ -151,6 +155,7 @@ public class LogAction extends AbstractBreakpointAction {
this.message = message;
}
+ @Override
public String getSummary() {
String summary = getMessage();
if (summary.length() > 32)
@@ -158,10 +163,12 @@ public class LogAction extends AbstractBreakpointAction {
return summary;
}
+ @Override
public String getTypeName() {
return Messages.getString("LogAction.TypeName"); //$NON-NLS-1$
}
+ @Override
public void initializeFromMemento(String data) {
Element root = null;
DocumentBuilder parser;
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/LogActionComposite.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/LogActionComposite.java
index b2a76f84d9..d092776e5b 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/LogActionComposite.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/LogActionComposite.java
@@ -43,6 +43,7 @@ public class LogActionComposite extends Composite {
expressionButton = new Button(this, SWT.CHECK);
expressionButton.addSelectionListener(new SelectionAdapter() {
+ @Override
public void widgetSelected(final SelectionEvent e) {
}
});
@@ -53,10 +54,12 @@ public class LogActionComposite extends Composite {
expressionButton.setSelection(this.logActionPage.getLogAction().isEvaluateExpression());
}
+ @Override
protected void checkSubclass() {
// Disable the check that prevents subclassing of SWT components
}
+ @Override
public void dispose() {
super.dispose();
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/LogActionPage.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/LogActionPage.java
index d6ed1b1eea..fdb7c983b6 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/LogActionPage.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/LogActionPage.java
@@ -23,14 +23,17 @@ public class LogActionPage extends PlatformObject implements IBreakpointActionPa
return logAction;
}
+ @Override
public void actionDialogCanceled() {
}
+ @Override
public void actionDialogOK() {
logAction.setMessage(editor.getMessage());
logAction.setEvaluateExpression(editor.getIsExpression());
}
+ @Override
public Composite createComposite(IBreakpointAction action, Composite composite, int style) {
logAction = (LogAction) action;
editor = new LogActionComposite(composite, style, this);
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/PreferenceInitializer.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/PreferenceInitializer.java
index dd03f3a9c0..53f1172b4d 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/PreferenceInitializer.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/PreferenceInitializer.java
@@ -24,6 +24,7 @@ public class PreferenceInitializer extends AbstractPreferenceInitializer {
*
* @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences()
*/
+ @Override
public void initializeDefaultPreferences() {
IPreferenceStore store = CDebugUIPlugin.getDefault().getPreferenceStore();
store.setDefault(PreferenceConstants.P_BOOLEAN, true);
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/ResumeAction.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/ResumeAction.java
index cfac0f8160..1dde0b7f61 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/ResumeAction.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/ResumeAction.java
@@ -49,6 +49,7 @@ public class ResumeAction extends AbstractBreakpointAction {
* (non-Javadoc)
* @see org.eclipse.cdt.debug.core.breakpointactions.IBreakpointAction#execute(org.eclipse.debug.core.model.IBreakpoint, org.eclipse.core.runtime.IAdaptable, org.eclipse.core.runtime.IProgressMonitor)
*/
+ @Override
public IStatus execute(IBreakpoint breakpoint, IAdaptable context, IProgressMonitor monitor) {
IStatus errorStatus = null;
long endTime = System.currentTimeMillis() + getPauseTime()*1000;
@@ -87,6 +88,7 @@ public class ResumeAction extends AbstractBreakpointAction {
return errorStatus;
}
+ @Override
public String getDefaultName() {
return Messages.getString("ResumeAction.UntitledName"); //$NON-NLS-1$
}
@@ -99,10 +101,12 @@ public class ResumeAction extends AbstractBreakpointAction {
this.pauseTime = pauseTime;
}
+ @Override
public String getIdentifier() {
return "org.eclipse.cdt.debug.ui.breakpointactions.ResumeAction"; //$NON-NLS-1$
}
+ @Override
public String getMemento() {
String resumeData = ""; //$NON-NLS-1$
@@ -136,16 +140,19 @@ public class ResumeAction extends AbstractBreakpointAction {
return resumeData;
}
+ @Override
public String getSummary() {
if (pauseTime == 0)
return Messages.getString("ResumeAction.SummaryImmediately"); //$NON-NLS-1$
return MessageFormat.format(Messages.getString("ResumeAction.SummaryResumeTime"), new Object[] { Integer.valueOf(pauseTime) }); //$NON-NLS-1$
}
+ @Override
public String getTypeName() {
return Messages.getString("ResumeAction.TypeName"); //$NON-NLS-1$
}
+ @Override
public void initializeFromMemento(String data) {
Element root = null;
DocumentBuilder parser;
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/ResumeActionComposite.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/ResumeActionComposite.java
index 9a1a9a9913..2c986c6950 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/ResumeActionComposite.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/ResumeActionComposite.java
@@ -50,10 +50,12 @@ public class ResumeActionComposite extends Composite {
//
}
+ @Override
public void dispose() {
super.dispose();
}
+ @Override
protected void checkSubclass() {
// Disable the check that prevents subclassing of SWT components
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/ResumeActionPage.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/ResumeActionPage.java
index ebb8f578a9..03fcafe9ab 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/ResumeActionPage.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/ResumeActionPage.java
@@ -23,13 +23,16 @@ public class ResumeActionPage extends PlatformObject implements IBreakpointActio
return resumeAction;
}
+ @Override
public void actionDialogCanceled() {
}
+ @Override
public void actionDialogOK() {
resumeAction.setPauseTime(resumeComposite.getPauseTime());
}
+ @Override
public Composite createComposite(IBreakpointAction action, Composite composite, int style) {
resumeAction = (ResumeAction) action;
resumeComposite = new ResumeActionComposite(composite, style, this);
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/SoundAction.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/SoundAction.java
index 234ff3bec7..86773f1c59 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/SoundAction.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/SoundAction.java
@@ -50,6 +50,7 @@ public class SoundAction extends AbstractBreakpointAction {
class SoundPlayer extends Thread {
+ @Override
public void run() {
AudioInputStream soundStream;
try {
@@ -95,6 +96,7 @@ public class SoundAction extends AbstractBreakpointAction {
public SoundAction() {
}
+ @Override
public IStatus execute(IBreakpoint breakpoint, IAdaptable context, IProgressMonitor monitor) {
if (soundFile == null || !soundFile.exists()) {
String errorMsg = MessageFormat.format(Messages.getString("SoundAction.error.0"), new Object[] {getSummary()}); //$NON-NLS-1$
@@ -105,6 +107,7 @@ public class SoundAction extends AbstractBreakpointAction {
return Status.OK_STATUS;
}
+ @Override
public String getDefaultName() {
return Messages.getString("SoundAction.UntitledName"); //$NON-NLS-1$
}
@@ -113,16 +116,19 @@ public class SoundAction extends AbstractBreakpointAction {
return soundFile;
}
+ @Override
public String getSummary() {
if (soundFile == null)
return ""; //$NON-NLS-1$
return soundFile.getAbsolutePath();
}
+ @Override
public String getTypeName() {
return Messages.getString("SoundAction.ActionTypeName"); //$NON-NLS-1$
}
+ @Override
public String getMemento() {
String soundData = ""; //$NON-NLS-1$
if (soundFile != null) {
@@ -157,6 +163,7 @@ public class SoundAction extends AbstractBreakpointAction {
return soundData;
}
+ @Override
public void initializeFromMemento(String data) {
Element root = null;
DocumentBuilder parser;
@@ -173,6 +180,7 @@ public class SoundAction extends AbstractBreakpointAction {
}
}
+ @Override
public String getIdentifier() {
return "org.eclipse.cdt.debug.ui.breakpointactions.SoundAction"; //$NON-NLS-1$
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/SoundActionComposite.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/SoundActionComposite.java
index 56f8faed24..7282abcccb 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/SoundActionComposite.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/SoundActionComposite.java
@@ -63,6 +63,7 @@ public class SoundActionComposite extends Composite {
combo_1.setLayoutData(gridData);
comboModifyListener = new ModifyListener() {
+ @Override
public void modifyText(ModifyEvent e) {
if (combo_1.getText().length() > 0) {
String filePath = combo_1.getText();
@@ -85,6 +86,7 @@ public class SoundActionComposite extends Composite {
final Button browseButton = new Button(this, SWT.NONE);
browseButton.addSelectionListener(new SelectionAdapter() {
+ @Override
public void widgetSelected(SelectionEvent e) {
FileDialog dialog = new FileDialog(getShell(), SWT.NONE);
dialog.setText(Messages.getString("SoundActionComposite.5")); //$NON-NLS-1$
@@ -104,6 +106,7 @@ public class SoundActionComposite extends Composite {
tryItButton.setLayoutData(new GridData());
tryItButton.setText(Messages.getString("SoundActionComposite.7")); //$NON-NLS-1$
tryItButton.addSelectionListener(new SelectionAdapter() {
+ @Override
public void widgetSelected(SelectionEvent e) {
File soundFile = new File(soundFilePathLabel.getText());
playSoundFile(soundFile);
@@ -126,10 +129,12 @@ public class SoundActionComposite extends Composite {
rebuildRecentSoundsCombo();
}
+ @Override
protected void checkSubclass() {
// Disable the check that prevents subclassing of SWT components
}
+ @Override
public void dispose() {
super.dispose();
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/SoundActionPage.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/SoundActionPage.java
index 7ca9e1734b..4c6aa92afd 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/SoundActionPage.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpointactions/SoundActionPage.java
@@ -66,9 +66,11 @@ public class SoundActionPage extends PlatformObject implements IBreakpointAction
loadRecentSounds();
}
+ @Override
public void actionDialogCanceled() {
}
+ @Override
public void actionDialogOK() {
saveRecentSounds();
soundAction.setSoundFile(editor.getSoundFile());
@@ -92,6 +94,7 @@ public class SoundActionPage extends PlatformObject implements IBreakpointAction
}
+ @Override
public Composite createComposite(IBreakpointAction action, Composite composite, int style) {
this.soundAction = (SoundAction) action;
loadRecentSounds();
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpoints/CEventBreakpointsLabelProviderFactory.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpoints/CEventBreakpointsLabelProviderFactory.java
index f3f58b10c4..53c76328c1 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpoints/CEventBreakpointsLabelProviderFactory.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/breakpoints/CEventBreakpointsLabelProviderFactory.java
@@ -115,6 +115,7 @@ public class CEventBreakpointsLabelProviderFactory implements IAdapterFactory {
/* (non-Javadoc)
* @see org.eclipse.core.runtime.IAdapterFactory#getAdapter(java.lang.Object, java.lang.Class)
*/
+ @Override
@SuppressWarnings("rawtypes")
public Object getAdapter(Object adaptableObject, Class adapterType) {
if (adapterType.equals(IElementLabelProvider.class)) {
@@ -133,6 +134,7 @@ public class CEventBreakpointsLabelProviderFactory implements IAdapterFactory {
/* (non-Javadoc)
* @see org.eclipse.core.runtime.IAdapterFactory#getAdapterList()
*/
+ @Override
@SuppressWarnings("rawtypes")
public Class[] getAdapterList() {
return new Class[] { IElementLabelProvider.class, ILabelProvider.class };
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 177329d5a2..65c2bc8139 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
@@ -33,14 +33,17 @@ class DefaultCBreakpointUIContribution implements ICBreakpointsUIContribution {
private Map<String, String> valueLabels = new LinkedHashMap<String, String>();
private Map<String, String> conditions = new HashMap<String, String>();
+ @Override
public String getId() {
return attId;
}
+ @Override
public String getLabel() {
return attLabel;
}
+ @Override
public String getDebugModelId() {
return modelId;
}
@@ -48,6 +51,7 @@ class DefaultCBreakpointUIContribution implements ICBreakpointsUIContribution {
static private Class[] fieldSignature = new Class[] { String.class, String.class,
Composite.class };
+ @Override
public FieldEditor getFieldEditor(String name, String labelText, Composite parent) {
String className = fieldEditorClassName;
if (fieldEditorClassName == null) {
@@ -68,25 +72,30 @@ class DefaultCBreakpointUIContribution implements ICBreakpointsUIContribution {
}
}
+ @Override
public String getLabelForValue(String value) {
if (valueLabels.containsKey(value))
return valueLabels.get(value);
return value;
}
+ @Override
public String getMarkerType() {
return markerType;
}
+ @Override
public String[] getPossibleValues() {
Set<String> set = valueLabels.keySet();
return set.toArray(new String[set.size()]);
}
+ @Override
public String getType() {
return attType;
}
+ @Override
public boolean isApplicable(Map properties) {
for (Object key : properties.keySet()) {
String value = conditions.get(key);
@@ -150,6 +159,7 @@ class DefaultCBreakpointUIContribution implements ICBreakpointsUIContribution {
return attId + " " + attLabel; //$NON-NLS-1$
}
+ @Override
public String getFieldEditorClassName() {
return fieldEditorClassName;
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/editors/AbstractDebugTextHover.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/editors/AbstractDebugTextHover.java
index 3204443011..e3e51d9055 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/editors/AbstractDebugTextHover.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/editors/AbstractDebugTextHover.java
@@ -152,6 +152,7 @@ public abstract class AbstractDebugTextHover implements ICEditorTextHover, IText
*/
protected abstract String evaluateExpression(String expression);
+ @Override
public String getHoverInfo(ITextViewer textViewer, IRegion hoverRegion) {
if (canEvaluate()) {
String expression = getExpressionText(textViewer, hoverRegion);
@@ -173,18 +174,21 @@ public abstract class AbstractDebugTextHover implements ICEditorTextHover, IText
return null;
}
+ @Override
public IRegion getHoverRegion(ITextViewer viewer, int offset) {
if (viewer != null)
return CDebugUIUtils.findWord(viewer.getDocument(), offset);
return null;
}
+ @Override
public final void setEditor(IEditorPart editor) {
if (editor != null) {
fEditor = editor;
}
}
+ @Override
public IInformationControlCreator getHoverControlCreator() {
return null;
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/importexecutable/AbstractImportExecutableWizard.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/importexecutable/AbstractImportExecutableWizard.java
index 9e90b28594..05d2834861 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/importexecutable/AbstractImportExecutableWizard.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/importexecutable/AbstractImportExecutableWizard.java
@@ -94,6 +94,7 @@ public abstract class AbstractImportExecutableWizard extends Wizard implements I
}
}
+ @Override
public void addPages() {
super.addPages();
pageOne = new ImportExecutablePageOne(this);
@@ -128,6 +129,7 @@ public abstract class AbstractImportExecutableWizard extends Wizard implements I
UIJob openLaunchConfigJob = new UIJob(Messages.AbstractImportExecutableWizard_CreateLaunchConfiguration) {
+ @Override
public IStatus runInUIThread(IProgressMonitor monitor) {
DebugUITools.openLaunchConfigurationDialogOnGroup(CUIPlugin.getActiveWorkbenchShell(), selection, identifier);
return Status.OK_STATUS;
@@ -146,6 +148,7 @@ public abstract class AbstractImportExecutableWizard extends Wizard implements I
return pageTwo;
}
+ @Override
public IWizardPage getNextPage(IWizardPage page) {
if (page == pageOne) {
pageTwo.checkExecutableSettings();
@@ -165,11 +168,13 @@ public abstract class AbstractImportExecutableWizard extends Wizard implements I
return Messages.AbstractImportExecutableWizard_windowTitle;
}
+ @Override
public void init(IWorkbench workbench, IStructuredSelection selection) {
setWindowTitle(getDefaultWindowTitle());
setNeedsProgressMonitor(true);
}
+ @Override
public boolean performFinish() {
ICProject targetProject = null;
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 290974f22d..cdbb2841e6 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
@@ -171,6 +171,7 @@ public class ImportExecutablePageOne extends WizardPage {
return true;
}
+ @Override
public void createControl(Composite parent) {
initializeDialogUnits(parent);
@@ -233,26 +234,32 @@ public class ImportExecutablePageOne extends WizardPage {
executablesViewer.setContentProvider(new ITreeContentProvider() {
+ @Override
public void dispose() {
}
+ @Override
public Object[] getChildren(Object parentElement) {
return null;
}
+ @Override
public Object[] getElements(Object inputElement) {
return executables;
}
+ @Override
public Object getParent(Object element) {
return null;
}
+ @Override
public boolean hasChildren(Object element) {
return false;
}
+ @Override
public void inputChanged(Viewer viewer, Object oldInput,
Object newInput) {
}
@@ -260,6 +267,7 @@ public class ImportExecutablePageOne extends WizardPage {
});
executablesViewer.setLabelProvider(new LabelProvider() {
+ @Override
public String getText(Object element) {
return ((File) element).getName();
}
@@ -267,6 +275,7 @@ public class ImportExecutablePageOne extends WizardPage {
executablesViewer.addCheckStateListener(new ICheckStateListener() {
+ @Override
public void checkStateChanged(CheckStateChangedEvent event) {
setPageComplete(executablesViewer.getCheckedElements().length > 0);
}
@@ -275,7 +284,8 @@ public class ImportExecutablePageOne extends WizardPage {
executablesViewer.setInput(this);
executablesViewer.getTree().getAccessible().addAccessibleListener(
new AccessibleAdapter() {
- public void getName(AccessibleEvent e) {
+ @Override
+ public void getName(AccessibleEvent e) {
e.result = wizard.getExecutableListLabel();
}
}
@@ -290,6 +300,7 @@ public class ImportExecutablePageOne extends WizardPage {
selectMultipleButton.setText(Messages.ImportExecutablePageOne_SearchDirectory);
selectMultipleButton.addSelectionListener(new SelectionAdapter() {
+ @Override
public void widgetSelected(SelectionEvent e) {
checkControlState();
String selectedDirectory = multipleExecutablePathField
@@ -308,7 +319,8 @@ public class ImportExecutablePageOne extends WizardPage {
this.multipleExecutablePathField = new Text(workArea, SWT.BORDER);
multipleExecutablePathField.getAccessible().addAccessibleListener(
new AccessibleAdapter() {
- public void getName(AccessibleEvent e) {
+ @Override
+ public void getName(AccessibleEvent e) {
e.result = Messages.ImportExecutablePageOne_SearchDirectory;
}
}
@@ -320,6 +332,7 @@ public class ImportExecutablePageOne extends WizardPage {
setButtonLayoutData(selectMultipleBrowseButton);
selectMultipleBrowseButton.addSelectionListener(new SelectionAdapter() {
+ @Override
public void widgetSelected(SelectionEvent e) {
handleLocationBrowseButtonPressed();
}
@@ -327,6 +340,7 @@ public class ImportExecutablePageOne extends WizardPage {
});
multipleExecutablePathField.addFocusListener(new FocusAdapter() {
+ @Override
public void focusLost(FocusEvent e) {
updateExecutablesList(multipleExecutablePathField.getText()
.trim());
@@ -353,8 +367,10 @@ public class ImportExecutablePageOne extends WizardPage {
binaryParserCombo.addSelectionListener(new SelectionListener() {
+ @Override
public void widgetDefaultSelected(SelectionEvent e) {
}
+ @Override
public void widgetSelected(SelectionEvent e) {
supportedBinaryParsers[0] = instantiateBinaryParser(exts[binaryParserCombo.getSelectionIndex()]);
supportedBinaryParserIds[0] = exts[binaryParserCombo.getSelectionIndex()].getUniqueIdentifier();
@@ -413,6 +429,7 @@ public class ImportExecutablePageOne extends WizardPage {
selectSingleButton = new Button(workArea, SWT.RADIO);
selectSingleButton.setText(Messages.ImportExecutablePageOne_SelectExecutable);
selectSingleButton.addSelectionListener(new SelectionAdapter() {
+ @Override
public void widgetSelected(SelectionEvent e) {
checkControlState();
if (selectSingleFile) {
@@ -428,7 +445,8 @@ public class ImportExecutablePageOne extends WizardPage {
this.singleExecutablePathField = new Text(workArea, SWT.BORDER);
singleExecutablePathField.getAccessible().addAccessibleListener(
new AccessibleAdapter() {
- public void getName(AccessibleEvent e) {
+ @Override
+ public void getName(AccessibleEvent e) {
e.result = Messages.ImportExecutablePageOne_SelectExecutable;
}
}
@@ -437,6 +455,7 @@ public class ImportExecutablePageOne extends WizardPage {
singleExecutablePathField.setData("name", "singleExecutablePathField"); //$NON-NLS-1$ //$NON-NLS-2$
singleExecutablePathField.addModifyListener(new ModifyListener() {
+ @Override
public void modifyText(ModifyEvent e) {
validateExe(singleExecutablePathField.getText());
}
@@ -450,6 +469,7 @@ public class ImportExecutablePageOne extends WizardPage {
setButtonLayoutData(selectSingleBrowseButton);
selectSingleBrowseButton.addSelectionListener(new SelectionAdapter() {
+ @Override
public void widgetSelected(SelectionEvent e) {
FileDialog dialog = new FileDialog(getShell(), SWT.NONE);
wizard.setupFileDialog(dialog);
@@ -483,6 +503,7 @@ public class ImportExecutablePageOne extends WizardPage {
selectAll = new Button(buttonsComposite, SWT.PUSH);
selectAll.setText(Messages.ImportExecutablePageOne_SelectAll);
selectAll.addSelectionListener(new SelectionAdapter() {
+ @Override
public void widgetSelected(SelectionEvent e) {
executablesViewer.setAllChecked(true);
setPageComplete(executables.length > 0);
@@ -494,6 +515,7 @@ public class ImportExecutablePageOne extends WizardPage {
deselectAll = new Button(buttonsComposite, SWT.PUSH);
deselectAll.setText(Messages.ImportExecutablePageOne_DeselectAll);
deselectAll.addSelectionListener(new SelectionAdapter() {
+ @Override
public void widgetSelected(SelectionEvent e) {
executablesViewer.setAllChecked(false);
@@ -570,6 +592,7 @@ public class ImportExecutablePageOne extends WizardPage {
previouslySearchedDirectory = path;
try {
getContainer().run(true, true, new IRunnableWithProgress() {
+ @Override
public void run(IProgressMonitor monitor) {
monitor.beginTask(Messages.ImportExecutablePageOne_Searching, IProgressMonitor.UNKNOWN);
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 c2187a2c21..6ed5b53e1d 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
@@ -150,6 +150,7 @@ public class ImportExecutablePageTwo extends WizardPage {
return null;
}
+ @Override
public void createControl(Composite parent) {
Composite container = new Composite(parent, SWT.NULL);
@@ -166,6 +167,7 @@ public class ImportExecutablePageTwo extends WizardPage {
newProjectButton = new Button(composite, SWT.RADIO);
newProjectButton.setText(Messages.ImportExecutablePageTwo_NewProjectName);
newProjectButton.addSelectionListener(new SelectionAdapter() {
+ @Override
public void widgetSelected(SelectionEvent e) {
isCreateNewProjectSelected = newProjectButton.getSelection();
updateControls();
@@ -178,6 +180,7 @@ public class ImportExecutablePageTwo extends WizardPage {
newProjectName.setLayoutData(gridData);
newProjectName.addModifyListener(new ModifyListener() {
+ @Override
public void modifyText(ModifyEvent e) {
updateControls();
}
@@ -201,6 +204,7 @@ public class ImportExecutablePageTwo extends WizardPage {
existingProjectButton = new Button(composite, SWT.RADIO);
existingProjectButton.setText(Messages.ImportExecutablePageTwo_ExistingProject);
existingProjectButton.addSelectionListener(new SelectionAdapter() {
+ @Override
public void widgetSelected(SelectionEvent e) {
isCreateNewProjectSelected = !newProjectButton.getSelection();
updateControls();
@@ -213,6 +217,7 @@ public class ImportExecutablePageTwo extends WizardPage {
existingProjectName.setLayoutData(gridData_3);
existingProjectName.addModifyListener(new ModifyListener() {
+ @Override
public void modifyText(ModifyEvent e) {
updateControls();
}
@@ -223,6 +228,7 @@ public class ImportExecutablePageTwo extends WizardPage {
searchButton.setLayoutData(new GridData());
searchButton.setText(Messages.ImportExecutablePageTwo_Search);
searchButton.addSelectionListener(new SelectionAdapter() {
+ @Override
public void widgetSelected(SelectionEvent e) {
ICProject project = chooseCProject();
if (project == null) {
@@ -253,6 +259,7 @@ public class ImportExecutablePageTwo extends WizardPage {
createLaunch.setText(Messages.ImportExecutablePageTwo_CreateLaunch);
createLaunch.setSelection(true);
createLaunch.addSelectionListener(new SelectionAdapter() {
+ @Override
public void widgetSelected(SelectionEvent e) {
isCreateLaunchConfigurationSelected = createLaunch
.getSelection();
@@ -267,6 +274,7 @@ public class ImportExecutablePageTwo extends WizardPage {
configTypes.setLayoutData(gridData_6);
configTypes.addModifyListener(new ModifyListener() {
+ @Override
public void modifyText(ModifyEvent e) {
setLaunchConfigurationName(configurationName.getText().trim());
}
@@ -284,6 +292,7 @@ public class ImportExecutablePageTwo extends WizardPage {
configurationName.setLayoutData(gridData_7);
configurationName.addModifyListener(new ModifyListener() {
+ @Override
public void modifyText(ModifyEvent e) {
updateControls();
}
@@ -388,7 +397,8 @@ public class ImportExecutablePageTwo extends WizardPage {
getContainer().updateButtons();
}
- public boolean isPageComplete() {
+ @Override
+ public boolean isPageComplete() {
setErrorMessage(null);
if (isCreateNewProjectSelected()) {
if (getNewProjectName().length() == 0) {
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/importexecutable/ImportExecutableWizard.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/importexecutable/ImportExecutableWizard.java
index 00435f704e..602a44651a 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/importexecutable/ImportExecutableWizard.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/importexecutable/ImportExecutableWizard.java
@@ -22,22 +22,27 @@ import org.eclipse.swt.widgets.FileDialog;
*/
public class ImportExecutableWizard extends AbstractImportExecutableWizard {
+ @Override
public String getPageOneTitle() {
return Messages.ImportExecutableWizard_pageOneTitle;
}
+ @Override
public String getPageOneDescription() {
return Messages.ImportExecutableWizard_pageOneDescription;
}
+ @Override
public String getExecutableListLabel() {
return Messages.ImportExecutableWizard_executableListLabel;
}
+ @Override
public void setupFileDialog(FileDialog dialog) {
dialog.setText(Messages.ImportExecutableWizard_fileDialogTitle);
}
+ @Override
public boolean supportsConfigurationType(ILaunchConfigurationType type) {
return true;
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/preferences/ReadOnlyFieldEditor.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/preferences/ReadOnlyFieldEditor.java
index b410f8dd54..5b6f2615ec 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/preferences/ReadOnlyFieldEditor.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/preferences/ReadOnlyFieldEditor.java
@@ -35,6 +35,7 @@ public class ReadOnlyFieldEditor extends FieldEditor implements ICBreakpointsUIC
/* (non-Javadoc)
* Method declared on FieldEditor.
*/
+ @Override
protected void adjustForNumColumns(int numColumns) {
GridData gd = (GridData) textField.getLayoutData();
gd.horizontalSpan = numColumns - 1;
@@ -52,6 +53,7 @@ public class ReadOnlyFieldEditor extends FieldEditor implements ICBreakpointsUIC
* but must call <code>super.doFillIntoGrid</code>.
* </p>
*/
+ @Override
protected void doFillIntoGrid(Composite parent, int numColumns) {
getLabelControl(parent);
@@ -68,6 +70,7 @@ public class ReadOnlyFieldEditor extends FieldEditor implements ICBreakpointsUIC
/* (non-Javadoc)
* Method declared on FieldEditor.
*/
+ @Override
protected void doLoad() {
if (textField != null) {
String value = getPreferenceStore().getString(getPreferenceName());
@@ -83,6 +86,7 @@ public class ReadOnlyFieldEditor extends FieldEditor implements ICBreakpointsUIC
/* (non-Javadoc)
* Method declared on FieldEditor.
*/
+ @Override
protected void doLoadDefault() {
if (textField != null) {
String value = getPreferenceStore().getDefaultString(getPreferenceName());
@@ -93,6 +97,7 @@ public class ReadOnlyFieldEditor extends FieldEditor implements ICBreakpointsUIC
/* (non-Javadoc)
* Method declared on FieldEditor.
*/
+ @Override
public int getNumberOfControls() {
return 2;
}
@@ -134,6 +139,7 @@ public class ReadOnlyFieldEditor extends FieldEditor implements ICBreakpointsUIC
textField = new Label(parent, SWT.WRAP);
textField.setFont(parent.getFont());
textField.addDisposeListener(new DisposeListener() {
+ @Override
public void widgetDisposed(DisposeEvent event) {
textField = null;
}
@@ -147,6 +153,7 @@ public class ReadOnlyFieldEditor extends FieldEditor implements ICBreakpointsUIC
/* (non-Javadoc)
* Method declared on FieldEditor.
*/
+ @Override
public boolean isValid() {
return true;
}
@@ -154,6 +161,7 @@ public class ReadOnlyFieldEditor extends FieldEditor implements ICBreakpointsUIC
/* (non-Javadoc)
* Method declared on FieldEditor.
*/
+ @Override
public void setFocus() {
if (textField != null) {
textField.setFocus();
@@ -163,6 +171,7 @@ public class ReadOnlyFieldEditor extends FieldEditor implements ICBreakpointsUIC
/*
* @see FieldEditor.setEnabled(boolean,Composite).
*/
+ @Override
public void setEnabled(boolean enabled, Composite parent) {
super.setEnabled(enabled, parent);
getTextControl(parent).setEnabled(enabled);
@@ -174,10 +183,12 @@ public class ReadOnlyFieldEditor extends FieldEditor implements ICBreakpointsUIC
// nothing
}
+ @Override
public ICBreakpointsUIContribution getContribution() {
return contribution;
}
+ @Override
public void setContribution(ICBreakpointsUIContribution contribution) {
this.contribution = contribution;
}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/sourcelookup/DefaultSourceLocator.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/sourcelookup/DefaultSourceLocator.java
index cbef6f18eb..81ad415c89 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/sourcelookup/DefaultSourceLocator.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/sourcelookup/DefaultSourceLocator.java
@@ -36,6 +36,7 @@ public class DefaultSourceLocator extends CSourceLookupDirector {
/* (non-Javadoc)
* @see org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector#initializeFromMemento(java.lang.String, org.eclipse.debug.core.ILaunchConfiguration)
*/
+ @Override
public void initializeFromMemento(String memento, ILaunchConfiguration configuration) throws CoreException {
Element rootElement = DebugPlugin.parseDocument(memento);
if (rootElement.getNodeName().equalsIgnoreCase(OldDefaultSourceLocator.ELEMENT_NAME)) {
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/sourcelookup/OldDefaultSourceLocator.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/sourcelookup/OldDefaultSourceLocator.java
index 5e4fd03b1e..ef48577bea 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/sourcelookup/OldDefaultSourceLocator.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/sourcelookup/OldDefaultSourceLocator.java
@@ -68,6 +68,7 @@ public class OldDefaultSourceLocator implements IPersistableSourceLocator, IAdap
/* (non-Javadoc)
* @see org.eclipse.debug.core.model.IPersistableSourceLocator#getMemento()
*/
+ @Override
public String getMemento() throws CoreException {
if ( getCSourceLocator() != null ) {
Document document = null;
@@ -100,6 +101,7 @@ public class OldDefaultSourceLocator implements IPersistableSourceLocator, IAdap
/* (non-Javadoc)
* @see org.eclipse.debug.core.model.IPersistableSourceLocator#initializeFromMemento(java.lang.String)
*/
+ @Override
public void initializeFromMemento( String memento ) throws CoreException {
Exception ex = null;
try {
@@ -145,6 +147,7 @@ public class OldDefaultSourceLocator implements IPersistableSourceLocator, IAdap
/* (non-Javadoc)
* @see org.eclipse.debug.core.model.IPersistableSourceLocator#initializeDefaults(org.eclipse.debug.core.ILaunchConfiguration)
*/
+ @Override
public void initializeDefaults( ILaunchConfiguration configuration ) throws CoreException {
setCSourceLocator( SourceLookupFactory.createSourceLocator( getProject( configuration ) ) );
String memento = configuration.getAttribute( ILaunchConfiguration.ATTR_SOURCE_LOCATOR_MEMENTO, "" ); //$NON-NLS-1$
@@ -155,6 +158,7 @@ public class OldDefaultSourceLocator implements IPersistableSourceLocator, IAdap
/* (non-Javadoc)
* @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class)
*/
+ @Override
public Object getAdapter( Class adapter ) {
if ( getCSourceLocator() instanceof IAdaptable ) {
if ( adapter.equals( ICSourceLocator.class ) ) {
@@ -170,6 +174,7 @@ public class OldDefaultSourceLocator implements IPersistableSourceLocator, IAdap
/* (non-Javadoc)
* @see org.eclipse.debug.core.model.ISourceLocator#getSourceElement(org.eclipse.debug.core.model.IStackFrame)
*/
+ @Override
public Object getSourceElement( IStackFrame stackFrame ) {
return null;
}

Back to the top