From a14a63c06081e95010c4c7b56ee169279c6465e9 Mon Sep 17 00:00:00 2001 From: Markus Schorn Date: Wed, 9 Apr 2008 11:24:27 +0000 Subject: Increased warning levels for ui-plugin, fixed warnings. --- .../cdt/ui/wizards/conversion/ConversionWizard.java | 18 ++++++++++++------ .../wizards/conversion/ConvertProjectWizardPage.java | 10 +++++++--- 2 files changed, 19 insertions(+), 9 deletions(-) (limited to 'core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/wizards/conversion') diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/wizards/conversion/ConversionWizard.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/wizards/conversion/ConversionWizard.java index 59191f7299d..fa47510f942 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/wizards/conversion/ConversionWizard.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/wizards/conversion/ConversionWizard.java @@ -62,7 +62,8 @@ public abstract class ConversionWizard /* (non-Javadoc) * Method declared on IWorkbenchWizard. */ - public void init(IWorkbench workbench, IStructuredSelection currentSelection) { + @Override + public void init(IWorkbench workbench, IStructuredSelection currentSelection) { super.init(workbench, currentSelection); setWindowTitle(getWindowTitleResource()); } @@ -114,7 +115,8 @@ public abstract class ConversionWizard * Method doRun calls the doRunPrologue and mainPage's doRun method and the * doRunEpliogue. Subclasses may overwrite to add further actions */ - protected void doRun(IProgressMonitor monitor) throws CoreException { + @Override + protected void doRun(IProgressMonitor monitor) throws CoreException { try{ mainPage.doRun(monitor, getProjectID(), getBuildSystemId()); } catch (CoreException ce){ @@ -129,7 +131,8 @@ public abstract class ConversionWizard * Return the type of project that it is being converted to * The default if a make project */ - public abstract String getProjectID(); + @Override + public abstract String getProjectID(); /** * Method addPages allows subclasses to add as many pages as they need. Overwrite @@ -143,19 +146,22 @@ public abstract class ConversionWizard * * @see NewCProjectWizard#addPages */ - public abstract void addPages(); + @Override + public abstract void addPages(); /** * Required by superclass but with no implementation here * * @param monitor */ - protected void doRunPrologue(IProgressMonitor monitor) {} + @Override + protected void doRunPrologue(IProgressMonitor monitor) {} /** * Required by superclass but with no implementation here * * @param monitor */ - protected void doRunEpilogue(IProgressMonitor monitor) {} + @Override + protected void doRunEpilogue(IProgressMonitor monitor) {} } diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/wizards/conversion/ConvertProjectWizardPage.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/wizards/conversion/ConvertProjectWizardPage.java index ba68d7dee53..66364c32828 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/wizards/conversion/ConvertProjectWizardPage.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/wizards/conversion/ConvertProjectWizardPage.java @@ -155,6 +155,7 @@ public abstract class ConvertProjectWizardPage SelectionListener cListener = new SelectionAdapter() { + @Override public void widgetSelected(SelectionEvent event) { convertToC = cRadioButton.getSelection(); convertToCC = ccRadioButton.getSelection(); @@ -212,7 +213,8 @@ public abstract class ConvertProjectWizardPage table.setLinesVisible(false); table.getAccessible().addAccessibleListener( new AccessibleAdapter() { - public void getName(AccessibleEvent e) { + @Override + public void getName(AccessibleEvent e) { e.result = CUIPlugin.getResourceString(PROJECT_LIST); } } @@ -232,7 +234,8 @@ public abstract class ConvertProjectWizardPage // define and assign sorter tableViewer.setSorter(new ViewerSorter() { - public int compare(Viewer viewer, Object object1, Object object2) { + @Override + public int compare(Viewer viewer, Object object1, Object object2) { if ((object1 instanceof IProject) && (object2 instanceof IProject)) { IProject left = (IProject)object1; @@ -247,7 +250,8 @@ public abstract class ConvertProjectWizardPage return super.compare(viewer, object1, object2); } - public boolean isSorterProperty(Object element, String property) { + @Override + public boolean isSorterProperty(Object element, String property) { return true; } }); -- cgit v1.2.3