Skip to main content
summaryrefslogtreecommitdiffstats
path: root/dsf
diff options
context:
space:
mode:
authorAlexander Kurtakov2015-12-14 04:06:00 -0500
committerAlexander Kurtakov2015-12-14 04:06:00 -0500
commit8a834d59702025a3d1f44f379977b80068189213 (patch)
tree7f7c55fd20b0c5c7bdfbc80266bec0e60bebee4b /dsf
parent34281a96e0e6e4c72938b4c0beb46a361d17f696 (diff)
downloadorg.eclipse.cdt-8a834d59702025a3d1f44f379977b80068189213.tar.gz
org.eclipse.cdt-8a834d59702025a3d1f44f379977b80068189213.tar.xz
org.eclipse.cdt-8a834d59702025a3d1f44f379977b80068189213.zip
Cleanups.
Remove useless: * casts. * suppress warnings unchecked. * @see comments Change-Id: I4713e9ddf90195cf1e465b3743f5f0bc7e41d338 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'dsf')
-rw-r--r--dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/disassembly/DisassemblyPart.java4
-rw-r--r--dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/actions/DsfStepIntoSelectionHyperlinkDetector.java19
2 files changed, 1 insertions, 22 deletions
diff --git a/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/disassembly/DisassemblyPart.java b/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/disassembly/DisassemblyPart.java
index b7815a3b83..fa96dd120c 100644
--- a/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/disassembly/DisassemblyPart.java
+++ b/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/disassembly/DisassemblyPart.java
@@ -2829,11 +2829,7 @@ public abstract class DisassemblyPart extends WorkbenchPart implements IDisassem
*/
protected abstract void closePart();
- /*
- * @see org.eclipse.jface.text.ITextPresentationListener#applyTextPresentation(org.eclipse.jface.text.TextPresentation)
- */
@Override
- @SuppressWarnings("unchecked")
public void applyTextPresentation(TextPresentation textPresentation) {
IRegion coverage = textPresentation.getExtent();
if (coverage == null) {
diff --git a/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/actions/DsfStepIntoSelectionHyperlinkDetector.java b/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/actions/DsfStepIntoSelectionHyperlinkDetector.java
index cff45b3af8..7477cbb2e6 100644
--- a/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/actions/DsfStepIntoSelectionHyperlinkDetector.java
+++ b/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/actions/DsfStepIntoSelectionHyperlinkDetector.java
@@ -65,33 +65,21 @@ public class DsfStepIntoSelectionHyperlinkDetector extends AbstractHyperlinkDete
fSelectionResolver = selectionResolver;
}
- /**
- * @see org.eclipse.jface.text.hyperlink.IHyperlink#getHyperlinkRegion()
- */
@Override
public IRegion getHyperlinkRegion() {
return new Region(fSelection.getOffset(), fSelection.getLength());
}
- /**
- * @see org.eclipse.jface.text.hyperlink.IHyperlink#getHyperlinkText()
- */
@Override
public String getHyperlinkText() {
return Messages.DsfUIStepIntoEditorSelection;
}
- /**
- * @see org.eclipse.jface.text.hyperlink.IHyperlink#getTypeLabel()
- */
@Override
public String getTypeLabel() {
return null;
}
- /**
- * @see org.eclipse.jface.text.hyperlink.IHyperlink#open()
- */
@Override
public void open() {
// Resolve the debug context
@@ -111,15 +99,10 @@ public class DsfStepIntoSelectionHyperlinkDetector extends AbstractHyperlinkDete
}
}
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.jface.text.hyperlink.IHyperlinkDetector#detectHyperlinks(org.eclipse.jface.text.ITextViewer, org.eclipse.jface.text.IRegion, boolean)
- */
@Override
public IHyperlink[] detectHyperlinks(ITextViewer textViewer, final IRegion region, boolean canShowMultipleHyperlinks) {
// Only valid in the context of a selection within the CEditor
- ITextEditor editor = (ITextEditor) getAdapter(ITextEditor.class);
+ ITextEditor editor = getAdapter(ITextEditor.class);
if (editor == null || region == null || !(editor instanceof CEditor))
return null;

Back to the top