From cb8d8d3a37196fb87dbc457291e10c12eccc45ae Mon Sep 17 00:00:00 2001 From: Sergey Prigogin Date: Sat, 3 May 2008 05:49:21 +0000 Subject: [PATCH] Fixed compilation errors with Eclipse 3.4M7. --- .../text/c/hover/CMacroExpansionExplorationControl.java | 9 +++------ .../ui/text/contentassist/ContentAssistHandler.java | 1 - .../ui/text/correction/CorrectionCommandHandler.java | 1 - 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/c/hover/CMacroExpansionExplorationControl.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/c/hover/CMacroExpansionExplorationControl.java index f33d375c9e3..7ca85c4c72d 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/c/hover/CMacroExpansionExplorationControl.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/c/hover/CMacroExpansionExplorationControl.java @@ -219,22 +219,19 @@ public class CMacroExpansionExplorationControl extends AbstractCompareViewerInfo protected void registerCommandHandlers() { IHandler backwardHandler= new AbstractHandler() { - @Override - public Object execute(ExecutionEvent event) throws ExecutionException { + public Object execute(ExecutionEvent event) throws ExecutionException { backward(); return null; } }; IHandler forwardHandler= new AbstractHandler() { - @Override - public Object execute(ExecutionEvent event) throws ExecutionException { + public Object execute(ExecutionEvent event) throws ExecutionException { forward(); return null; } }; IHandler gotoDefinitionHandler= new AbstractHandler() { - @Override - public Object execute(ExecutionEvent event) throws ExecutionException { + public Object execute(ExecutionEvent event) throws ExecutionException { gotoMacroDefinition(); return null; } diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/contentassist/ContentAssistHandler.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/contentassist/ContentAssistHandler.java index 4201c3ead67..7f0811e9daa 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/contentassist/ContentAssistHandler.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/contentassist/ContentAssistHandler.java @@ -36,7 +36,6 @@ public final class ContentAssistHandler extends AbstractHandler { /* * @see org.eclipse.core.commands.IHandler#execute(org.eclipse.core.commands.ExecutionEvent) */ - @Override public Object execute(ExecutionEvent event) throws ExecutionException { ITextEditor editor= getActiveEditor(); if (editor == null) diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/correction/CorrectionCommandHandler.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/correction/CorrectionCommandHandler.java index d506f7e0b48..d4d381e2e8b 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/correction/CorrectionCommandHandler.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/correction/CorrectionCommandHandler.java @@ -59,7 +59,6 @@ public class CorrectionCommandHandler extends AbstractHandler { /* (non-Javadoc) * @see org.eclipse.core.commands.IHandler#execute(org.eclipse.core.commands.ExecutionEvent) */ - @Override public Object execute(ExecutionEvent event) throws ExecutionException { ISelection selection= fEditor.getSelectionProvider().getSelection(); ITranslationUnit cu= CUIPlugin.getDefault().getWorkingCopyManager().getWorkingCopy(fEditor.getEditorInput());