org.eclipse.gmt.modisco.java.actions
Class DiscoverKdmModelFromJavaModel

java.lang.Object
  extended by org.eclipse.modisco.kdm.source.extension.discovery.AbstractRegionDiscoverer
      extended by org.eclipse.gmt.modisco.java.actions.DefaultDiscoverer
          extended by org.eclipse.gmt.modisco.java.actions.DiscoverKdmModelFromJavaModel
All Implemented Interfaces:
Discoverer

Deprecated. the whole plug-in is replaced by "org.eclipse.modisco.java.discoverer" (without the "gmt" part)

@Deprecated
public class DiscoverKdmModelFromJavaModel
extends DefaultDiscoverer


Field Summary
static DiscoveryParameter PARAMETER_PATH_TO_TRANSFORMATION
          Deprecated. A parameter key for indicating which asm file to use for atl transformation.
 
Fields inherited from class org.eclipse.gmt.modisco.java.actions.DefaultDiscoverer
JAVA_FILE_EXTENSION, PARAMETER_BROWSE_RESULT, PARAMETER_LOG_JAVA_ANALYSIS_WARNINGS, PARAMETER_OVERWRITE_RESULT, PARAMETER_SILENT_MODE, PARAMETER_TARGET_RESOURCE
 
Constructor Summary
DiscoverKdmModelFromJavaModel()
          Deprecated.  
 
Method Summary
 Resource discoverElement(java.lang.Object source, URI target)
          Deprecated. Discovers a Java model and open MoDisco editor or default editor.
 java.util.List<DiscoveryParameter> getDiscovererParameters()
          Deprecated. Get a complete list of all parameters available in this discoverer.
 boolean isApplicableTo(java.lang.Object source)
          Deprecated. To determine if the source object can be handled by the discoverer.
 java.lang.String toString()
          Deprecated.  
 
Methods inherited from class org.eclipse.gmt.modisco.java.actions.DefaultDiscoverer
getEFactory, getResource, getResourceResult, saveResource, setResourceResult
 
Methods inherited from class org.eclipse.modisco.kdm.source.extension.discovery.AbstractRegionDiscoverer
addSourceVisitListener, getListSourceVisitListener, notifyRegionSourceVisit, notifyRegionSourceVisit, removeSourceVisitListener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PARAMETER_PATH_TO_TRANSFORMATION

public static final DiscoveryParameter PARAMETER_PATH_TO_TRANSFORMATION
Deprecated. 
A parameter key for indicating which asm file to use for atl transformation. The given path may be : example: "file//C:/MyPath/MyTransformation.asm"

Constructor Detail

DiscoverKdmModelFromJavaModel

public DiscoverKdmModelFromJavaModel()
Deprecated. 
Method Detail

discoverElement

public Resource discoverElement(java.lang.Object source,
                                URI target)
Deprecated. 
Description copied from class: DefaultDiscoverer
Discovers a Java model and open MoDisco editor or default editor.

Specified by:
discoverElement in interface Discoverer
Overrides:
discoverElement in class DefaultDiscoverer
Parameters:
source - a IJavaProject instance
target - should be null here.
Returns:
the EMF resource of the target model discovered from source.

getDiscovererParameters

public java.util.List<DiscoveryParameter> getDiscovererParameters()
Deprecated. 
Description copied from interface: Discoverer
Get a complete list of all parameters available in this discoverer. Further information should be provided to indicate features of each parameter; for example, direction kind (in, out, in-out), whether the parameter is optional or not ...

Returns:
the set of parameter names provided by this discoverer.

isApplicableTo

public boolean isApplicableTo(java.lang.Object source)
Deprecated. 
Description copied from interface: Discoverer
To determine if the source object can be handled by the discoverer. Each discoverer has to implement this method with its own criteria to filter the selected object. If the source object is managed by this discoverer, the discoverer menu will be available in the pop-up menu when users click with the contextual button (right-click), and in the discoverer launch configuration types.

Parameters:
source - the selected object.
Returns:
true if the selected object is managed by this discoverer, false otherwise.

toString

public java.lang.String toString()
Deprecated. 
Overrides:
toString in class java.lang.Object