EGF Engine
Release 0.1.0

org.eclipse.egf.model.contract.type
Interface ITypeHolder

All Known Implementing Classes:
AbstractTypeHolder, BooleanTypeHolder, ClassTypeHolder, PrimitiveTypeHolder, StringTypeHolder

public interface ITypeHolder

Hosts a java type to avoid Eclipse class loader issues through extension mechanism.
Implementors have to provide a default constructor with no arguments.


Method Summary
 String getSelectionDialog()
          Return the class name of the selection dialog to open when 'Browse' button is pressed to enter the value of a type holder.
 ISelectionHandler getSelectionHandler()
          Return a class that is able to handle selected object returned by the selection dialog.
 Object getValue(String value_p)
          Convert value from string to object.
 boolean isJava()
          Is it standing for a java type (ie a class) ?
 boolean isValid(String value_p)
          Is value string representation valid ?
 void setPluginId(String pluginId_p)
          Set the id of the plug-in responsible to deal with the given value in getValue(String) and isValid(String).
 

Method Detail

isJava

boolean isJava()
Is it standing for a java type (ie a class) ?

Returns:

isValid

boolean isValid(String value_p)
Is value string representation valid ?

Parameters:
value_p -
Returns:

getValue

Object getValue(String value_p)
Convert value from string to object.

Parameters:
value_p -
Returns:

setPluginId

void setPluginId(String pluginId_p)
Set the id of the plug-in responsible to deal with the given value in getValue(String) and isValid(String).
The plug-in id is provided to get the related bundle to figure out class loader issues for instance.

Parameters:
pluginId_p - must be the id of the plug-in not its name (e.g "org.eclipse.core.runtime").

getSelectionDialog

String getSelectionDialog()
Return the class name of the selection dialog to open when 'Browse' button is pressed to enter the value of a type holder.
The returned class must extend org.eclipse.ui.dialogs.SelectionDialog.
The class must implement the following constructor SelectionDialog(Shell parentShell).

Returns:
null if no selection dialog is provided.
See Also:
getSelectionHandler().

getSelectionHandler

ISelectionHandler getSelectionHandler()
Return a class that is able to handle selected object returned by the selection dialog.

Returns:
null if no selection handler is provided.
See Also:
getSelectionDialog().

EGF Engine
Release 0.1.0

Copyright (c) Thales Corporate Services S.A.S, 2009.

This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.