Commit a63e1a53 authored by Nick Stanish's avatar Nick Stanish
Browse files

Added extension point for ItemBuilder and added ItemBuilder extensions


Signed-off-by: default avatarNick Stanish <nickstanish@gmail.com>
parent b026199e
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Test
Bundle-SymbolicName: org.eclipse.ice.core.jaxrs.test
Bundle-SymbolicName: org.eclipse.ice.core.jaxrs.test;singleton:=true
Bundle-Version: 1.0.0.qualifier
Export-Package: org.eclipse.ice.core.jaxrs.test
Require-Bundle: org.junit,
......
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
</plugin>
<?xml version='1.0' encoding='UTF-8'?>
<!-- Schema file written by PDE -->
<schema targetNamespace="org.eclipse.ice.core.jaxrs.test" xmlns="http://www.w3.org/2001/XMLSchema">
<annotation>
<appinfo>
<meta.schema plugin="org.eclipse.ice.core.jaxrs.test" id="ItemBuilder" name="Item Builder"/>
</appinfo>
<documentation>
[Enter description of this extension point.]
</documentation>
</annotation>
<element name="extension">
<annotation>
<appinfo>
<meta.element />
</appinfo>
</annotation>
<complexType>
<attribute name="point" type="string" use="required">
<annotation>
<documentation>
</documentation>
</annotation>
</attribute>
<attribute name="id" type="string">
<annotation>
<documentation>
</documentation>
</annotation>
</attribute>
<attribute name="name" type="string">
<annotation>
<documentation>
</documentation>
<appinfo>
<meta.attribute translatable="true"/>
</appinfo>
</annotation>
</attribute>
</complexType>
</element>
<annotation>
<appinfo>
<meta.section type="since"/>
</appinfo>
<documentation>
[Enter the first release in which this extension point appears.]
</documentation>
</annotation>
<annotation>
<appinfo>
<meta.section type="examples"/>
</appinfo>
<documentation>
[Enter extension point usage example here.]
</documentation>
</annotation>
<annotation>
<appinfo>
<meta.section type="apiinfo"/>
</appinfo>
<documentation>
[Enter API information here.]
</documentation>
</annotation>
<annotation>
<appinfo>
<meta.section type="implementation"/>
</appinfo>
<documentation>
[Enter information about supplied implementation of this extension point.]
</documentation>
</annotation>
</schema>
......@@ -37,6 +37,9 @@ import org.eclipse.core.resources.IWorkspaceRoot;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.FileLocator;
import org.eclipse.core.runtime.IConfigurationElement;
import org.eclipse.core.runtime.IExtension;
import org.eclipse.core.runtime.IExtensionPoint;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.Platform;
......@@ -231,7 +234,16 @@ public class Core extends Application implements ICore {
+ " registered with Core.");
itemManager.registerBuilder(itemBuilder);
}
IExtensionPoint point = Platform.getExtensionRegistry().getExtensionPoint("org.eclipse.ice.item.itemBuilder");
System.out.println("##### Extensions for: org.eclipse.ice.item.itemBuilder #####");
if (point != null) {
IExtension[] extensions = point.getExtensions();
for(IExtension extension: extensions) {
System.out.println(extension.getSimpleIdentifier());
}
}
System.out.println("##### end of list #####");
return;
}
......
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: FileSimulation
Bundle-SymbolicName: org.eclipse.ice.filesimulation
Bundle-SymbolicName: org.eclipse.ice.filesimulation;singleton:=true
Bundle-Version: 1.0.0.qualifier
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
Import-Package: org.eclipse.ice.datastructures.ICEObject,
......
......@@ -3,7 +3,8 @@ output.. = bin/
bin.includes = META-INF/,\
.,\
OSGi-INF/,\
testFiles/
testFiles/,\
plugin.xml
src.includes = testFiles/,\
src/,\
build.properties,\
......
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
id="fileSimulationBuilder"
name="File Simulation"
point="org.eclipse.ice.item.itemBuilder">
<implementation
class="org.eclipse.ice.filesimulation.FileSimulationBuilder">
</implementation>
</extension>
</plugin>
......@@ -34,7 +34,8 @@ Export-Package: org.eclipse.ice.item,
Require-Bundle: org.eclipse.core.resources;bundle-version="3.7.100",
org.eclipse.core.runtime;bundle-version="3.7.0",
org.eclipse.core.filesystem;bundle-version="1.3.200",
org.eclipse.ice.datastructures
org.eclipse.ice.datastructures,
org.eclipse.e4.core.di;bundle-version="1.5.0"
Service-Component: OSGi-INF/*.xml
Meta-Persistence: META-INF/persistence.xml
JPA-PersistenceUnits: org.eclipse.ice.item
......
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension-point id="itemBuilder" name="Item Builder" schema="schema/itemBuilder.exsd"/>
<extension
id="geometryEditorBuilder"
name="Geometry Editor"
point="org.eclipse.ice.item.itemBuilder">
<implementation
class="org.eclipse.ice.item.geometry.GeometryEditorBuilder">
</implementation>
</extension>
<extension
id="jobProfileBuilder"
name="Job Profile"
point="org.eclipse.ice.item.itemBuilder">
<implementation
class="org.eclipse.ice.item.jobprofile.JobProfileBuilder">
</implementation>
</extension>
<extension
id="mooseLauncherComponent"
name="Moose Launcher"
point="org.eclipse.ice.item.itemBuilder">
<implementation
class="org.eclipse.ice.item.nuclear.MOOSELauncherBuilder">
</implementation>
</extension>
<extension
id="sharpLauncherBuilder"
name="Sharp Launcher"
point="org.eclipse.ice.item.itemBuilder">
<implementation
class="org.eclipse.ice.item.nuclear.SHARPLauncherBuilder">
</implementation>
</extension>
<extension
id="sharpModelBuilder"
name="Sharp Model Builder"
point="org.eclipse.ice.item.itemBuilder">
<implementation
class="org.eclipse.ice.item.nuclear.SHARPModelBuilder">
</implementation>
</extension>
<extension
id="mooseModelBuilder"
name="Moose Model"
point="org.eclipse.ice.item.itemBuilder">
<implementation
class="org.eclipse.ice.item.nuclear.MOOSEModelBuilder">
</implementation>
</extension>
</plugin>
<?xml version='1.0' encoding='UTF-8'?>
<!-- Schema file written by PDE -->
<schema targetNamespace="org.eclipse.ice.item" xmlns="http://www.w3.org/2001/XMLSchema">
<annotation>
<appinfo>
<meta.schema plugin="org.eclipse.ice.item" id="itemBuilder" name="Item Builder"/>
</appinfo>
<documentation>
[Enter description of this extension point.]
</documentation>
</annotation>
<element name="extension">
<annotation>
<appinfo>
<meta.element />
</appinfo>
</annotation>
<complexType>
<choice minOccurs="1" maxOccurs="unbounded">
<element ref="implementation"/>
</choice>
<attribute name="point" type="string" use="required">
<annotation>
<documentation>
</documentation>
</annotation>
</attribute>
<attribute name="id" type="string">
<annotation>
<documentation>
</documentation>
</annotation>
</attribute>
<attribute name="name" type="string">
<annotation>
<documentation>
</documentation>
<appinfo>
<meta.attribute translatable="true"/>
</appinfo>
</annotation>
</attribute>
</complexType>
</element>
<element name="implementation">
<complexType>
<attribute name="class" type="string">
<annotation>
<documentation>
</documentation>
<appinfo>
<meta.attribute kind="java" basedOn=":org.eclipse.ice.item.ItemBuilder"/>
</appinfo>
</annotation>
</attribute>
</complexType>
</element>
<annotation>
<appinfo>
<meta.section type="since"/>
</appinfo>
<documentation>
[Enter the first release in which this extension point appears.]
</documentation>
</annotation>
<annotation>
<appinfo>
<meta.section type="examples"/>
</appinfo>
<documentation>
[Enter extension point usage example here.]
</documentation>
</annotation>
<annotation>
<appinfo>
<meta.section type="apiinfo"/>
</appinfo>
<documentation>
[Enter API information here.]
</documentation>
</annotation>
<annotation>
<appinfo>
<meta.section type="implementation"/>
</appinfo>
<documentation>
[Enter information about supplied implementation of this extension point.]
</documentation>
</annotation>
</schema>
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Mesh
Bundle-SymbolicName: org.eclipse.ice.mesh
Bundle-SymbolicName: org.eclipse.ice.mesh;singleton:=true
Bundle-Version: 2.1.7.20150825
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
Require-Bundle: org.eclipse.ice.datastructures
......
output.. = bin/
bin.includes = META-INF/,\
.,\
OSGI-INF/meshEditorComponent.xml
OSGI-INF/meshEditorComponent.xml,\
plugin.xml
source.. = src/
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
id="meshEditorBuilder"
name="Mesh Editor"
point="org.eclipse.ice.item.itemBuilder">
<implementation
class="org.eclipse.ice.mesh.editor.MeshEditorBuilder">
</implementation>
</extension>
</plugin>
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Nek5000 ICE Plug-in
Bundle-SymbolicName: org.eclipse.ice.nek5000
Bundle-SymbolicName: org.eclipse.ice.nek5000;singleton:=true
Bundle-Version: 2.1.7.20150825
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
Import-Package: org.eclipse.ice.datastructures.ICEObject,
......
bin.includes = META-INF/,\
.,\
OSGI-INF/nekModelComponent.xml,\
OSGI-INF/nek5000LauncherComponent.xml
OSGI-INF/nek5000LauncherComponent.xml,\
plugin.xml
output.. = bin/
source.. = src/
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
id="nekModelBuilder"
name="Nek Model"
point="org.eclipse.ice.item.itemBuilder">
<implementation
class="org.eclipse.ice.nek5000.NekModelBuilder">
</implementation>
</extension>
<extension
id="nekLauncherBuilder"
name="Nek Launcher"
point="org.eclipse.ice.item.itemBuilder">
<implementation
class="org.eclipse.ice.nek5000.NekLauncherBuilder">
</implementation>
</extension>
</plugin>
output.. = bin/
bin.includes = META-INF/,\
.,\
OSGI-INF/polyComponent.xml
OSGI-INF/polyComponent.xml,\
plugin.xml
source.. = src/
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
id="PolyItemBuilder"
name="Poly Item"
point="org.eclipse.ice.item.itemBuilder">
<implementation
class="org.eclipse.ice.poly.PolyItemBuilder">
</implementation>
</extension>
</plugin>
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: PROTEUS
Bundle-SymbolicName: org.eclipse.ice.proteus
Bundle-SymbolicName: org.eclipse.ice.proteus;singleton:=true
Bundle-Version: 2.1.7.20150825
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
Service-Component: OSGI-INF/*.xml
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment