<!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. This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which is available at https://www.eclipse.org/legal/epl-2.0/ SPDX-License-Identifier: EPL-2.0