Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2007-08-22 17:24:06 -0400
committerslewis2007-08-22 17:24:06 -0400
commit5698fe772be4bda52a043a4d367803e6588eb9a0 (patch)
tree8c36b2a7001f971209edb7fa0bd8c4961bc0b1f9 /examples
parentcece12fe5a723ece13eff42156099f037ffc4a78 (diff)
downloadorg.eclipse.ecf-5698fe772be4bda52a043a4d367803e6588eb9a0.tar.gz
org.eclipse.ecf-5698fe772be4bda52a043a4d367803e6588eb9a0.tar.xz
org.eclipse.ecf-5698fe772be4bda52a043a4d367803e6588eb9a0.zip
formatting
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/bundles/org.eclipse.ecf.examples.provider.trivial/src/org/eclipse/ecf/examples/provider/trivial/TrivialClient.java6
-rwxr-xr-xexamples/bundles/org.eclipse.ecf.examples.provider.trivial/src/org/eclipse/ecf/internal/examples/provider/trivial/Activator.java2
-rwxr-xr-xexamples/bundles/org.eclipse.ecf.examples.provider.trivial/src/org/eclipse/ecf/internal/examples/provider/trivial/container/TrivialContainer.java11
-rwxr-xr-xexamples/bundles/org.eclipse.ecf.examples.provider.trivial/src/org/eclipse/ecf/internal/examples/provider/trivial/container/TrivialContainerInstantiator.java10
-rwxr-xr-xexamples/bundles/org.eclipse.ecf.examples.provider.trivial/src/org/eclipse/ecf/internal/examples/provider/trivial/identity/TrivialNamespace.java7
5 files changed, 13 insertions, 23 deletions
diff --git a/examples/bundles/org.eclipse.ecf.examples.provider.trivial/src/org/eclipse/ecf/examples/provider/trivial/TrivialClient.java b/examples/bundles/org.eclipse.ecf.examples.provider.trivial/src/org/eclipse/ecf/examples/provider/trivial/TrivialClient.java
index afb33ba53..0be29811f 100755
--- a/examples/bundles/org.eclipse.ecf.examples.provider.trivial/src/org/eclipse/ecf/examples/provider/trivial/TrivialClient.java
+++ b/examples/bundles/org.eclipse.ecf.examples.provider.trivial/src/org/eclipse/ecf/examples/provider/trivial/TrivialClient.java
@@ -25,8 +25,7 @@ public class TrivialClient implements Runnable {
public void run() {
try {
// Create instance of trivial container
- IContainer container = ContainerFactory.getDefault()
- .createContainer("ecf.container.trivial");
+ IContainer container = ContainerFactory.getDefault().createContainer("ecf.container.trivial");
// Get appropriate container adapter...e.g. IChannelContainerAdapter
// IChannelContainerAdapter containerAdapter =
@@ -34,8 +33,7 @@ public class TrivialClient implements Runnable {
// container.getAdapter(IChannelContainerAdapter.class);
// Connect
- ID targetID = IDFactory.getDefault().createID(
- container.getConnectNamespace(), "myid");
+ ID targetID = IDFactory.getDefault().createID(container.getConnectNamespace(), "myid");
container.connect(targetID, null);
} catch (ECFException e) {
diff --git a/examples/bundles/org.eclipse.ecf.examples.provider.trivial/src/org/eclipse/ecf/internal/examples/provider/trivial/Activator.java b/examples/bundles/org.eclipse.ecf.examples.provider.trivial/src/org/eclipse/ecf/internal/examples/provider/trivial/Activator.java
index bbdeafa70..0a098cb62 100755
--- a/examples/bundles/org.eclipse.ecf.examples.provider.trivial/src/org/eclipse/ecf/internal/examples/provider/trivial/Activator.java
+++ b/examples/bundles/org.eclipse.ecf.examples.provider.trivial/src/org/eclipse/ecf/internal/examples/provider/trivial/Activator.java
@@ -13,7 +13,7 @@ public class Activator extends Plugin {
// The shared instance
private static Activator plugin;
-
+
/**
* The constructor
*/
diff --git a/examples/bundles/org.eclipse.ecf.examples.provider.trivial/src/org/eclipse/ecf/internal/examples/provider/trivial/container/TrivialContainer.java b/examples/bundles/org.eclipse.ecf.examples.provider.trivial/src/org/eclipse/ecf/internal/examples/provider/trivial/container/TrivialContainer.java
index 2b5ad5f9d..d5a295842 100755
--- a/examples/bundles/org.eclipse.ecf.examples.provider.trivial/src/org/eclipse/ecf/internal/examples/provider/trivial/container/TrivialContainer.java
+++ b/examples/bundles/org.eclipse.ecf.examples.provider.trivial/src/org/eclipse/ecf/internal/examples/provider/trivial/container/TrivialContainer.java
@@ -39,7 +39,7 @@ public class TrivialContainer extends AbstractContainer
* The targetID. This value is set on 'connect' and unset in 'disconnect'.
* This represents the other process that this container is connected to.
* Value is returned via getConnectedID()
- */
+ */
private ID targetID = null;
/*
* This is the ID for this container. Returned via getID().
@@ -57,12 +57,9 @@ public class TrivialContainer extends AbstractContainer
* @see org.eclipse.ecf.core.IContainer#connect(org.eclipse.ecf.core.identity.ID,
* org.eclipse.ecf.core.security.IConnectContext)
*/
- public void connect(ID targetID, IConnectContext connectContext)
- throws ContainerConnectException {
- if (!targetID.getNamespace().getName().equals(
- getConnectNamespace().getName()))
- throw new ContainerConnectException(
- "targetID not of appropriate Namespace");
+ public void connect(ID targetID, IConnectContext connectContext) throws ContainerConnectException {
+ if (!targetID.getNamespace().getName().equals(getConnectNamespace().getName()))
+ throw new ContainerConnectException("targetID not of appropriate Namespace");
fireContainerEvent(new ContainerConnectingEvent(getID(), targetID));
diff --git a/examples/bundles/org.eclipse.ecf.examples.provider.trivial/src/org/eclipse/ecf/internal/examples/provider/trivial/container/TrivialContainerInstantiator.java b/examples/bundles/org.eclipse.ecf.examples.provider.trivial/src/org/eclipse/ecf/internal/examples/provider/trivial/container/TrivialContainerInstantiator.java
index 7eea04aa8..300f5b4e0 100755
--- a/examples/bundles/org.eclipse.ecf.examples.provider.trivial/src/org/eclipse/ecf/internal/examples/provider/trivial/container/TrivialContainerInstantiator.java
+++ b/examples/bundles/org.eclipse.ecf.examples.provider.trivial/src/org/eclipse/ecf/internal/examples/provider/trivial/container/TrivialContainerInstantiator.java
@@ -26,21 +26,19 @@ public class TrivialContainerInstantiator extends BaseContainerInstantiator {
* @see org.eclipse.ecf.core.provider.BaseContainerInstantiator#createInstance(org.eclipse.ecf.core.ContainerTypeDescription, java.lang.Object[])
*/
@Override
- public IContainer createInstance(ContainerTypeDescription description,
- Object[] parameters) throws ContainerCreateException {
+ public IContainer createInstance(ContainerTypeDescription description, Object[] parameters) throws ContainerCreateException {
try {
return new TrivialContainer();
} catch (IDCreateException e) {
- throw new ContainerCreateException("Exception creating trivial container",e);
+ throw new ContainerCreateException("Exception creating trivial container", e);
}
}
-
+
/* (non-Javadoc)
* @see org.eclipse.ecf.core.provider.BaseContainerInstantiator#getSupportedAdapterTypes(org.eclipse.ecf.core.ContainerTypeDescription)
*/
@Override
- public String[] getSupportedAdapterTypes(
- ContainerTypeDescription description) {
+ public String[] getSupportedAdapterTypes(ContainerTypeDescription description) {
// TODO Return String [] with adapter types supported for the given description
return super.getSupportedAdapterTypes(description);
}
diff --git a/examples/bundles/org.eclipse.ecf.examples.provider.trivial/src/org/eclipse/ecf/internal/examples/provider/trivial/identity/TrivialNamespace.java b/examples/bundles/org.eclipse.ecf.examples.provider.trivial/src/org/eclipse/ecf/internal/examples/provider/trivial/identity/TrivialNamespace.java
index b110fe8b5..c55993c80 100755
--- a/examples/bundles/org.eclipse.ecf.examples.provider.trivial/src/org/eclipse/ecf/internal/examples/provider/trivial/identity/TrivialNamespace.java
+++ b/examples/bundles/org.eclipse.ecf.examples.provider.trivial/src/org/eclipse/ecf/internal/examples/provider/trivial/identity/TrivialNamespace.java
@@ -20,20 +20,17 @@ import org.eclipse.ecf.core.identity.Namespace;
*/
public class TrivialNamespace extends Namespace {
- /**
- *
- */
private static final long serialVersionUID = 1235788855435011811L;
public static final String SCHEME = "trivial";
public static final String NAME = "ecf.namespace.trivial";
-
+
/* (non-Javadoc)
* @see org.eclipse.ecf.core.identity.Namespace#createInstance(java.lang.Object[])
*/
public ID createInstance(Object[] parameters) throws IDCreateException {
// XXX Note that this assumes that a unique string is provided for creating the ID
// e.g. IDFactory.getDefault().createID("myid");
- return new TrivialID(this,(String) parameters[0]);
+ return new TrivialID(this, (String) parameters[0]);
}
/* (non-Javadoc)

Back to the top