Grid Element Creator

Identifier:
eu.geclipse.core.gridElementCreator

Since:
0.5

Description:
This extension point is the entry point into the g-Eclipse model. It defines element creators that are able to create Grid model elements from arbitrary Objects like IResources or URIs. These element creators are used to both create elements and to insert them into the model hierarchy.

Configuration Markup:

<!ELEMENT extension (creator+)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT creator (source+ , target)>

<!ATTLIST creator

id     CDATA #REQUIRED

name   CDATA #REQUIRED

class  CDATA #REQUIRED

wizard CDATA #IMPLIED>


<!ELEMENT source EMPTY>

<!ATTLIST source

class    CDATA #REQUIRED

pattern  CDATA #IMPLIED

priority CDATA #IMPLIED

default  (true | false)

matcher  CDATA #IMPLIED>

Specifies the source of the creator. The source of a creator is an arbitrary class (inheriting from java.lang.Object from which a Grid element can be created. Furthermore an optional pattern can be defined that will be matched against toString() of the source. As last step a matcher may be defined that may have a final look at the specified object. Only if all defined matching rules hold for the specified source object it is assumed that this creator potentially can create an IGridElement from the source object.



<!ELEMENT target EMPTY>

<!ATTLIST target

name  CDATA #REQUIRED

class CDATA #REQUIRED>

Specifies the target of the creator. The target of a creator is a class that implements eu.geclipse.core.model.IGridElement and that is created by a specific creator.



Examples:

<extension point="eu.geclipse.core.gridElementCreator">
  <creator
    class="eu.geclipse.core.model.impl.GenericVoCreator"
    name="Generic VO"
    wizard="eu.geclipse.ui.wizards.GenericVoWizard">
    <source
      class="org.eclipse.core.filesystem.IFileStore">
    </source>
    <target
      class="eu.geclipse.core.model.impl.GenericVirtualOrganization">
    </target>
  </creator>
</extension>

Supplied Implementation:
A core implementation of this extension point is for instance used for the Generic Virtual Organization.


Copyright (c) 2006, 2007 g-Eclipse Consortium

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.

Initial development of the original code was made for the g-Eclipse project founded by European Union project number: FP6-IST-034327 http://www.geclipse.eu.