Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2010-04-18 21:29:55 -0400
committerslewis2010-04-18 21:29:55 -0400
commit0a9cc56da0d267b4665c62695ebdc479dbd6e93d (patch)
tree25dda9867c97d62b445907af31b6f0870398fc29
parent3c1dc8acda16f51695b20d5a218ad0427228c8af (diff)
downloadorg.eclipse.ecf-0a9cc56da0d267b4665c62695ebdc479dbd6e93d.tar.gz
org.eclipse.ecf-0a9cc56da0d267b4665c62695ebdc479dbd6e93d.tar.xz
org.eclipse.ecf-0a9cc56da0d267b4665c62695ebdc479dbd6e93d.zip
Updated examples to use generics for IAsyncCallback
-rw-r--r--examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.ds.consumer/.settings/org.eclipse.jdt.core.prefs2
-rw-r--r--examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.ds.consumer/META-INF/MANIFEST.MF4
-rw-r--r--examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.ds.consumer/build.properties2
-rw-r--r--examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.ds.consumer/src/org/eclipse/ecf/examples/internal/remoteservices/hello/ds/consumer/HelloClientComponent.java4
4 files changed, 8 insertions, 4 deletions
diff --git a/examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.ds.consumer/.settings/org.eclipse.jdt.core.prefs b/examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.ds.consumer/.settings/org.eclipse.jdt.core.prefs
index c1ec9d44d..7fa172faf 100644
--- a/examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.ds.consumer/.settings/org.eclipse.jdt.core.prefs
+++ b/examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.ds.consumer/.settings/org.eclipse.jdt.core.prefs
@@ -1,7 +1,7 @@
#Sun Apr 18 18:13:11 PDT 2010
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=jsr14
org.eclipse.jdt.core.compiler.compliance=1.5
org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
diff --git a/examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.ds.consumer/META-INF/MANIFEST.MF b/examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.ds.consumer/META-INF/MANIFEST.MF
index ed4be24d2..a742617d1 100644
--- a/examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.ds.consumer/META-INF/MANIFEST.MF
+++ b/examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.ds.consumer/META-INF/MANIFEST.MF
@@ -4,7 +4,9 @@ Bundle-Name: %bundleName
Bundle-SymbolicName: org.eclipse.ecf.examples.remoteservices.hello.ds.consumer;singleton:=true
Bundle-Version: 1.1.0.qualifier
Bundle-Vendor: %bundleProvider
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
+Bundle-RequiredExecutionEnvironment: J2SE-1.5,
+ J2SE-1.4,
+ CDC-1.1/Foundation-1.1
Import-Package: org.eclipse.ecf.examples.remoteservices.hello,
org.eclipse.ecf.remoteservice,
org.eclipse.ecf.remoteservice.events,
diff --git a/examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.ds.consumer/build.properties b/examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.ds.consumer/build.properties
index a24732288..7b08033e1 100644
--- a/examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.ds.consumer/build.properties
+++ b/examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.ds.consumer/build.properties
@@ -10,3 +10,5 @@ source.. = src/
src.includes = bundle.properties,\
about.html,\
products/
+javacTarget=jsr14
+javacSource=1.5
diff --git a/examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.ds.consumer/src/org/eclipse/ecf/examples/internal/remoteservices/hello/ds/consumer/HelloClientComponent.java b/examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.ds.consumer/src/org/eclipse/ecf/examples/internal/remoteservices/hello/ds/consumer/HelloClientComponent.java
index 760eb73e0..4b1a338ce 100644
--- a/examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.ds.consumer/src/org/eclipse/ecf/examples/internal/remoteservices/hello/ds/consumer/HelloClientComponent.java
+++ b/examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.ds.consumer/src/org/eclipse/ecf/examples/internal/remoteservices/hello/ds/consumer/HelloClientComponent.java
@@ -39,8 +39,8 @@ public class HelloClientComponent {
if (proxy instanceof IHelloAsync) {
IHelloAsync helloA = (IHelloAsync) proxy;
// Create callback for use in IHelloAsync
- IAsyncCallback callback = new IAsyncCallback() {
- public void onSuccess(Object result) {
+ IAsyncCallback callback = new IAsyncCallback<Void>() {
+ public void onSuccess(Void result) {
System.out.println("COMPLETED remote call with callback SUCCESS with result="+result);
System.out.println();
}

Back to the top