diff options
Diffstat (limited to 'plugins/org.eclipse.net4j.buddies.common/src/org/eclipse/net4j/buddies/spi/common/Facility.java')
-rw-r--r-- | plugins/org.eclipse.net4j.buddies.common/src/org/eclipse/net4j/buddies/spi/common/Facility.java | 132 |
1 files changed, 66 insertions, 66 deletions
diff --git a/plugins/org.eclipse.net4j.buddies.common/src/org/eclipse/net4j/buddies/spi/common/Facility.java b/plugins/org.eclipse.net4j.buddies.common/src/org/eclipse/net4j/buddies/spi/common/Facility.java index d6e3bf9e97..09b3f540b1 100644 --- a/plugins/org.eclipse.net4j.buddies.common/src/org/eclipse/net4j/buddies/spi/common/Facility.java +++ b/plugins/org.eclipse.net4j.buddies.common/src/org/eclipse/net4j/buddies/spi/common/Facility.java @@ -1,66 +1,66 @@ -/*
- * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
- * All rights reserved. This program and the accompanying materials
- * 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:
- * Eike Stepper - initial API and implementation
- */
-package org.eclipse.net4j.buddies.spi.common;
-
-import org.eclipse.net4j.buddies.common.ICollaboration;
-import org.eclipse.net4j.buddies.common.IFacility;
-import org.eclipse.net4j.buddies.common.IMessage;
-import org.eclipse.net4j.buddies.internal.common.Collaboration;
-import org.eclipse.net4j.util.lifecycle.Lifecycle;
-
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.core.runtime.PlatformObject;
-
-/**
- * @author Eike Stepper
- */
-public abstract class Facility extends Lifecycle implements IFacility
-{
- private String type;
-
- private Collaboration collaboration;
-
- public Facility(String type)
- {
- this.type = type;
- }
-
- public String getType()
- {
- return type;
- }
-
- public Collaboration getCollaboration()
- {
- return collaboration;
- }
-
- public void setCollaboration(ICollaboration collaboration)
- {
- this.collaboration = (Collaboration)collaboration;
- }
-
- /**
- * @see PlatformObject#getAdapter(Class)
- */
- @SuppressWarnings("rawtypes")
- public Object getAdapter(Class adapter)
- {
- return Platform.getAdapterManager().getAdapter(this, adapter);
- }
-
- public void sendMessage(IMessage message)
- {
- collaboration.sendMessage(collaboration.getID(), type, message);
- }
-
- public abstract void handleMessage(IMessage message);
-}
+/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * 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: + * Eike Stepper - initial API and implementation + */ +package org.eclipse.net4j.buddies.spi.common; + +import org.eclipse.net4j.buddies.common.ICollaboration; +import org.eclipse.net4j.buddies.common.IFacility; +import org.eclipse.net4j.buddies.common.IMessage; +import org.eclipse.net4j.buddies.internal.common.Collaboration; +import org.eclipse.net4j.util.lifecycle.Lifecycle; + +import org.eclipse.core.runtime.Platform; +import org.eclipse.core.runtime.PlatformObject; + +/** + * @author Eike Stepper + */ +public abstract class Facility extends Lifecycle implements IFacility +{ + private String type; + + private Collaboration collaboration; + + public Facility(String type) + { + this.type = type; + } + + public String getType() + { + return type; + } + + public Collaboration getCollaboration() + { + return collaboration; + } + + public void setCollaboration(ICollaboration collaboration) + { + this.collaboration = (Collaboration)collaboration; + } + + /** + * @see PlatformObject#getAdapter(Class) + */ + @SuppressWarnings("rawtypes") + public Object getAdapter(Class adapter) + { + return Platform.getAdapterManager().getAdapter(this, adapter); + } + + public void sendMessage(IMessage message) + { + collaboration.sendMessage(collaboration.getID(), type, message); + } + + public abstract void handleMessage(IMessage message); +} |