Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2010-02-05 08:28:53 +0000
committerEike Stepper2010-02-05 08:28:53 +0000
commitfbfb387c3c9de238574587890efb1db2fc90dcc7 (patch)
treea0c63ed51bdfe3452ffbfd8b2ff2fcb5ae0a0c1d /plugins/org.gastro.rcp.table
parent9a0ea0f0e8b361a7617589cdbc6b5e0bfba79bf1 (diff)
downloadcdo-fbfb387c3c9de238574587890efb1db2fc90dcc7.tar.gz
cdo-fbfb387c3c9de238574587890efb1db2fc90dcc7.tar.xz
cdo-fbfb387c3c9de238574587890efb1db2fc90dcc7.zip
fixed warnings
Diffstat (limited to 'plugins/org.gastro.rcp.table')
-rw-r--r--plugins/org.gastro.rcp.table/.settings/org.eclipse.jdt.core.prefs6
-rw-r--r--plugins/org.gastro.rcp.table/src/com/swtdesigner/ResourceManager.java8
-rw-r--r--plugins/org.gastro.rcp.table/src/org/gastro/rcp/internal/table/Activator.java2
-rw-r--r--plugins/org.gastro.rcp.table/src/org/gastro/rcp/internal/table/TableView.java13
4 files changed, 22 insertions, 7 deletions
diff --git a/plugins/org.gastro.rcp.table/.settings/org.eclipse.jdt.core.prefs b/plugins/org.gastro.rcp.table/.settings/org.eclipse.jdt.core.prefs
index 9224c5b4e8..6d1e49fd20 100644
--- a/plugins/org.gastro.rcp.table/.settings/org.eclipse.jdt.core.prefs
+++ b/plugins/org.gastro.rcp.table/.settings/org.eclipse.jdt.core.prefs
@@ -37,7 +37,7 @@ org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning
org.eclipse.jdt.core.compiler.problem.forbiddenReference=error
org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning
org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning
-org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=warning
+org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=ignore
org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore
org.eclipse.jdt.core.compiler.problem.invalidJavadoc=warning
org.eclipse.jdt.core.compiler.problem.invalidJavadocTags=enabled
@@ -66,7 +66,7 @@ org.eclipse.jdt.core.compiler.problem.nullReference=warning
org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning
org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore
org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=warning
-org.eclipse.jdt.core.compiler.problem.potentialNullReference=warning
+org.eclipse.jdt.core.compiler.problem.potentialNullReference=ignore
org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning
org.eclipse.jdt.core.compiler.problem.redundantNullCheck=warning
org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=warning
@@ -88,7 +88,7 @@ org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverridin
org.eclipse.jdt.core.compiler.problem.unusedImport=warning
org.eclipse.jdt.core.compiler.problem.unusedLabel=warning
org.eclipse.jdt.core.compiler.problem.unusedLocal=warning
-org.eclipse.jdt.core.compiler.problem.unusedObjectAllocation=warning
+org.eclipse.jdt.core.compiler.problem.unusedObjectAllocation=ignore
org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore
org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled
org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled
diff --git a/plugins/org.gastro.rcp.table/src/com/swtdesigner/ResourceManager.java b/plugins/org.gastro.rcp.table/src/com/swtdesigner/ResourceManager.java
index d006272069..a7208c4e57 100644
--- a/plugins/org.gastro.rcp.table/src/com/swtdesigner/ResourceManager.java
+++ b/plugins/org.gastro.rcp.table/src/com/swtdesigner/ResourceManager.java
@@ -66,7 +66,7 @@ public class ResourceManager extends SWTResourceManager
{
try
{
- return ImageDescriptor.createFromURL((new File(path)).toURL());
+ return ImageDescriptor.createFromURL(new File(path).toURL());
}
catch (MalformedURLException e)
{
@@ -157,6 +157,7 @@ public class ResourceManager extends SWTResourceManager
final Point baseImageSize = new Point(bib.width, bib.height);
CompositeImageDescriptor compositImageDesc = new CompositeImageDescriptor()
{
+ @Override
protected void drawCompositeImage(int width, int height)
{
drawImage(baseImage.getImageData(), 0, 0);
@@ -178,6 +179,7 @@ public class ResourceManager extends SWTResourceManager
}
}
+ @Override
protected Point getSize()
{
return baseImageSize;
@@ -262,7 +264,7 @@ public class ResourceManager extends SWTResourceManager
/**
* Instance of {@link PluginResourceProvider}, used by WindowBuilder at design time.
*/
- private static PluginResourceProvider m_designTimePluginResourceProvider = null;
+ private static PluginResourceProvider m_designTimePluginResourceProvider;
/**
* Returns an {@link Image} based on a plugin and file path.
@@ -274,6 +276,7 @@ public class ResourceManager extends SWTResourceManager
* @return the {@link Image} stored in the file at the specified path
* @deprecated Use {@link #getPluginImage(String, String)} instead.
*/
+ @Deprecated
public static Image getPluginImage(Object plugin, String name)
{
try
@@ -371,6 +374,7 @@ public class ResourceManager extends SWTResourceManager
* @return the {@link ImageDescriptor} stored in the file at the specified path.
* @deprecated Use {@link #getPluginImageDescriptor(String, String)} instead.
*/
+ @Deprecated
public static ImageDescriptor getPluginImageDescriptor(Object plugin, String name)
{
try
diff --git a/plugins/org.gastro.rcp.table/src/org/gastro/rcp/internal/table/Activator.java b/plugins/org.gastro.rcp.table/src/org/gastro/rcp/internal/table/Activator.java
index d85fa20d4b..756899b1b0 100644
--- a/plugins/org.gastro.rcp.table/src/org/gastro/rcp/internal/table/Activator.java
+++ b/plugins/org.gastro.rcp.table/src/org/gastro/rcp/internal/table/Activator.java
@@ -44,6 +44,7 @@ public class Activator extends AbstractUIPlugin
* (non-Javadoc)
* @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
*/
+ @Override
public void start(BundleContext context) throws Exception
{
super.start(context);
@@ -54,6 +55,7 @@ public class Activator extends AbstractUIPlugin
* (non-Javadoc)
* @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
*/
+ @Override
public void stop(BundleContext context) throws Exception
{
ResourceManager.dispose();
diff --git a/plugins/org.gastro.rcp.table/src/org/gastro/rcp/internal/table/TableView.java b/plugins/org.gastro.rcp.table/src/org/gastro/rcp/internal/table/TableView.java
index abaa79fc57..ce1eee7147 100644
--- a/plugins/org.gastro.rcp.table/src/org/gastro/rcp/internal/table/TableView.java
+++ b/plugins/org.gastro.rcp.table/src/org/gastro/rcp/internal/table/TableView.java
@@ -165,6 +165,7 @@ public class TableView extends ViewPart
/**
* Passing the focus request to the viewer's control.
*/
+ @Override
public void setFocus()
{
// Do nothing
@@ -185,6 +186,7 @@ public class TableView extends ViewPart
/**
* This is a callback that will allow us to create the viewer and initialize it.
*/
+ @Override
public void createPartControl(Composite parent)
{
BusinessDay businessDay = IModel.INSTANCE.getBusinessDay();
@@ -326,6 +328,7 @@ public class TableView extends ViewPart
buttonPrev.setToolTipText("Voriger Eintrag");
buttonPrev.addSelectionListener(new SelectionAdapter()
{
+ @Override
public void widgetSelected(SelectionEvent e)
{
prevMenu();
@@ -362,6 +365,7 @@ public class TableView extends ViewPart
buttonDelete.setToolTipText("Weniger bestellen");
buttonDelete.addSelectionListener(new SelectionAdapter()
{
+ @Override
public void widgetSelected(SelectionEvent e)
{
deleteOrder();
@@ -377,6 +381,7 @@ public class TableView extends ViewPart
buttonAdd.setImage(ResourceManager.getPluginImage("org.gastro.rcp.table", "icons/add.gif"));
buttonAdd.addSelectionListener(new SelectionAdapter()
{
+ @Override
public void widgetSelected(SelectionEvent e)
{
addOrder();
@@ -395,6 +400,7 @@ public class TableView extends ViewPart
buttonNext.setToolTipText("N\u00E4chster Eintrag");
buttonNext.addSelectionListener(new SelectionAdapter()
{
+ @Override
public void widgetSelected(SelectionEvent e)
{
nextMenu();
@@ -507,6 +513,7 @@ public class TableView extends ViewPart
Button buttonCancel = new Button(composite, SWT.NONE);
buttonCancel.addSelectionListener(new SelectionAdapter()
{
+ @Override
public void widgetSelected(SelectionEvent e)
{
cancelOrder();
@@ -528,6 +535,7 @@ public class TableView extends ViewPart
Button buttonSend = new Button(composite, SWT.NONE);
buttonSend.addSelectionListener(new SelectionAdapter()
{
+ @Override
public void widgetSelected(SelectionEvent e)
{
sendOrder();
@@ -557,6 +565,7 @@ public class TableView extends ViewPart
shelf.addSelectionListener(new SelectionAdapter()
{
+ @Override
public void widgetSelected(SelectionEvent e)
{
orderViewer.refresh(true);
@@ -684,7 +693,7 @@ public class TableView extends ViewPart
EList<EObject> result = new BasicEList<EObject>();
for (Iterator<EObject> it = menuCard.eAllContents(); it.hasNext();)
{
- result.add((EObject)it.next());
+ result.add(it.next());
}
return result;
@@ -741,7 +750,7 @@ public class TableView extends ViewPart
{
for (;;)
{
- name = "meal-" + (++fakeImageID);
+ name = "meal-" + ++fakeImageID;
Image image = getCachedImage(name);
if (image != null)
{

Back to the top