<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED>
<!ELEMENT run EMPTY>
<!ATTLIST run
class CDATA #REQUIRED
asynchronous (true | false) >
<extension point="org.eclipse.ecf.start"> <run class="org.eclipse.ecf.example.collab.start.CollabStart"/> </extension> <extension point="org.eclipse.ecf.start"> <run class="org.eclipse.ecf.example.collab.start.CollabStart" asynchronous="true"/> </extension>Note that the CollabStart class must implement the org.eclipse.ecf.start.IECFStart interface. Here's an example implementation class:
public class CollabStart implements IECFStart {
public IStatus run(IProgressMonitor monitor) {
...
}
}
/**
* Interface that must be implemented by extensions of the org.eclipse.ecf.start
* extension point. Such extensions will have their start method called by a new
* Job upon ECF startup.
*/
public interface IECFStart {
/**
* Run some startup task.
*
* @return IStatus the status of the start
*/
public IStatus run(IProgressMonitor monitor);
}
Copyright (c) 2007 Composent, Inc. 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: Composent, Inc. - initial API and implementation