warnings removed when a new scout project is created using the new project wizard (for 3.7.2)
diff --git a/org.eclipse.scout.sdk/src/org/eclipse/scout/sdk/operation/project/template/SingleFormTemplateOperation.java b/org.eclipse.scout.sdk/src/org/eclipse/scout/sdk/operation/project/template/SingleFormTemplateOperation.java
index ebc2cb8..d707701 100644
--- a/org.eclipse.scout.sdk/src/org/eclipse/scout/sdk/operation/project/template/SingleFormTemplateOperation.java
+++ b/org.eclipse.scout.sdk/src/org/eclipse/scout/sdk/operation/project/template/SingleFormTemplateOperation.java
@@ -21,6 +21,7 @@
import org.eclipse.scout.sdk.icon.ScoutIconDesc;
import org.eclipse.scout.sdk.jdt.signature.IImportValidator;
import org.eclipse.scout.sdk.operation.ConfigPropertyMethodUpdateOperation;
+import org.eclipse.scout.sdk.operation.annotation.AnnotationCreateOperation;
import org.eclipse.scout.sdk.operation.form.FormHandlerNewOperation;
import org.eclipse.scout.sdk.operation.form.FormNewOperation;
import org.eclipse.scout.sdk.operation.form.formdata.FormDataUpdateOperation;
@@ -143,6 +144,7 @@
workingCopyManager.reconcile(serviceOp.getCreatedServiceImplementation().getCompilationUnit(), monitor);
MethodCreateOperation loadMethodOp = new MethodCreateOperation(serviceOp.getCreatedServiceImplementation(), "load");
+ loadMethodOp.addAnnotation(new AnnotationCreateOperation(null, Signature.createTypeSignature(Override.class.getName(), true)));
loadMethodOp.setMethodFlags(Flags.AccPublic);
loadMethodOp.setReturnTypeSignature(Signature.createTypeSignature(formData.getFullyQualifiedName(), true));
loadMethodOp.setParameterNames(new String[]{"formData"});
diff --git a/org.eclipse.scout.sdk/templates/server/src/ServerApplication.java b/org.eclipse.scout.sdk/templates/server/src/ServerApplication.java
index 464805e..61f969a 100644
--- a/org.eclipse.scout.sdk/templates/server/src/ServerApplication.java
+++ b/org.eclipse.scout.sdk/templates/server/src/ServerApplication.java
@@ -4,7 +4,7 @@
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
- *
+ *
* Contributors:
* BSI Business Systems Integration AG - initial API and implementation
******************************************************************************/
@@ -18,13 +18,13 @@
/**
* Dummy application in order to manage server side product configurations in *.product files.
-* A typical config.ini for such a product has (among others) the following properties:
+ * A typical config.ini for such a product has (among others) the following properties:
* osgi.clean=true
* osgi.console=
* eclipse.consoleLog=true
* org.eclipse.equinox.http.jetty.http.port=8080
* org.eclipse.equinox.http.jetty.context.path=/@@ALIAS@@
-* osgi.bundles=org.eclipse.equinox.common@2:start, org.eclipse.update.configurator@start, org.eclipse.equinox.http.jetty@start, org.eclipse.equinox.http.registry@start, org.eclipse.core.runtime@start
+ * osgi.bundles=org.eclipse.equinox.common@2:start, org.eclipse.update.configurator@start, org.eclipse.equinox.http.jetty@start, org.eclipse.equinox.http.registry@start, org.eclipse.core.runtime@start
* osgi.bundles.defaultStartLevel=4
* osgi.noShutdown=true
* eclipse.ignoreApp=false
@@ -33,6 +33,7 @@
public class ServerApplication implements IApplication{
private static IScoutLogger logger=ScoutLogManager.getLogger(ServerApplication.class);
+ @Override
public Object start(IApplicationContext context) throws Exception {
//start the scheduler
/*
@@ -45,6 +46,7 @@
return EXIT_OK;
}
+ @Override
public void stop() {}
}
diff --git a/org.eclipse.scout.sdk/templates/shared/src/Activator.java b/org.eclipse.scout.sdk/templates/shared/src/Activator.java
index 17564ab..31b07de 100644
--- a/org.eclipse.scout.sdk/templates/shared/src/Activator.java
+++ b/org.eclipse.scout.sdk/templates/shared/src/Activator.java
@@ -4,7 +4,7 @@
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
- *
+ *
* Contributors:
* BSI Business Systems Integration AG - initial API and implementation
******************************************************************************/
@@ -23,10 +23,12 @@
return plugin;
}
+ @Override
public void start(BundleContext context) throws Exception{
plugin=this;
}
+ @Override
public void stop(BundleContext context) throws Exception{
plugin=null;
}
diff --git a/org.eclipse.scout.sdk/templates/ui.swing/src/Activator.java b/org.eclipse.scout.sdk/templates/ui.swing/src/Activator.java
index 28d32f4..f7b65ff 100644
--- a/org.eclipse.scout.sdk/templates/ui.swing/src/Activator.java
+++ b/org.eclipse.scout.sdk/templates/ui.swing/src/Activator.java
@@ -4,7 +4,7 @@
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
- *
+ *
* Contributors:
* BSI Business Systems Integration AG - initial API and implementation
******************************************************************************/
@@ -23,13 +23,14 @@
return plugin;
}
+ @Override
public void start(BundleContext context) throws Exception{
plugin=this;
}
+ @Override
public void stop(BundleContext context) throws Exception{
plugin=null;
}
-
}
diff --git a/org.eclipse.scout.sdk/templates/ui.swing/src/SwingApplication.java b/org.eclipse.scout.sdk/templates/ui.swing/src/SwingApplication.java
index 63f0f52..8f49eb9 100644
--- a/org.eclipse.scout.sdk/templates/ui.swing/src/SwingApplication.java
+++ b/org.eclipse.scout.sdk/templates/ui.swing/src/SwingApplication.java
@@ -4,7 +4,7 @@
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
- *
+ *
* Contributors:
* BSI Business Systems Integration AG - initial API and implementation
******************************************************************************/
@@ -34,6 +34,7 @@
Subject subject=new Subject();
subject.getPrincipals().add(new SimplePrincipal(System.getProperty("user.name")));
return Subject.doAs(subject, new PrivilegedExceptionAction<Object>(){
+ @Override
public Object run() throws Exception{
return startSecure(context);
}
diff --git a/org.eclipse.scout.sdk/templates/ui.swt/src/Activator.java b/org.eclipse.scout.sdk/templates/ui.swt/src/Activator.java
index d0e93aa..7ab5ee5 100644
--- a/org.eclipse.scout.sdk/templates/ui.swt/src/Activator.java
+++ b/org.eclipse.scout.sdk/templates/ui.swt/src/Activator.java
@@ -4,7 +4,7 @@
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
- *
+ *
* Contributors:
* BSI Business Systems Integration AG - initial API and implementation
******************************************************************************/
@@ -35,11 +35,13 @@
// the shared instance
private static Activator m_bundle;
+ @Override
public void start(BundleContext context) throws Exception {
m_bundle = this;
m_environment = new SwtEnvironment(context.getBundle(), PERSPECITVE_ID, ClientSession.class);
}
+ @Override
public void stop(BundleContext context) throws Exception {
m_bundle = null;
}
diff --git a/org.eclipse.scout.sdk/templates/ui.swt/src/application/Application.java b/org.eclipse.scout.sdk/templates/ui.swt/src/application/Application.java
index 777e69a..21b69e7 100644
--- a/org.eclipse.scout.sdk/templates/ui.swt/src/application/Application.java
+++ b/org.eclipse.scout.sdk/templates/ui.swt/src/application/Application.java
@@ -4,7 +4,7 @@
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
- *
+ *
* Contributors:
* BSI Business Systems Integration AG - initial API and implementation
******************************************************************************/
@@ -22,14 +22,15 @@
/** <h3>Activator</h3>
* This class controls all aspects of the application's execution
-*/
+ */
public class Application implements IApplication {
-
+ @Override
public Object start(final IApplicationContext context) throws Exception {
Subject subject=new Subject();
subject.getPrincipals().add(new SimplePrincipal(System.getProperty("user.name")));
return Subject.doAs(subject, new PrivilegedExceptionAction<Object>(){
+ @Override
public Object run() throws Exception{
return startSecure(context);
}
@@ -53,14 +54,16 @@
/*
* (non-Javadoc)
-* @see org.eclipse.equinox.app.IApplication#stop()
+ * @see org.eclipse.equinox.app.IApplication#stop()
*/
+ @Override
public void stop() {
final IWorkbench workbench = PlatformUI.getWorkbench();
if (workbench == null)
return;
final Display display = workbench.getDisplay();
display.syncExec(new Runnable() {
+ @Override
public void run() {
if (!display.isDisposed())
workbench.close();
diff --git a/org.eclipse.scout.sdk/templates/ui.swt/src/perspective/Perspective.java b/org.eclipse.scout.sdk/templates/ui.swt/src/perspective/Perspective.java
index 66454e0..64230f9 100644
--- a/org.eclipse.scout.sdk/templates/ui.swt/src/perspective/Perspective.java
+++ b/org.eclipse.scout.sdk/templates/ui.swt/src/perspective/Perspective.java
@@ -4,7 +4,7 @@
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
- *
+ *
* Contributors:
* BSI Business Systems Integration AG - initial API and implementation
******************************************************************************/
@@ -22,6 +22,7 @@
*/
public class Perspective implements IPerspectiveFactory {
+ @Override
public void createInitialLayout(IPageLayout layout) {
layout.setEditorAreaVisible(false);