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

java.lang.Object
  extended by org.eclipse.modisco.kdm.source.extension.discovery.AbstractRegionDiscoverer
      extended by org.eclipse.gmt.modisco.java.actions.DefaultDiscoverer
All Implemented Interfaces:
Discoverer
Direct Known Subclasses:
DiscoverJavaModelFromClassFile, DiscoverJavaModelFromJavaProject, DiscoverJavaModelFromLibrary, DiscoverKdmModelFromJavaModel, DiscoverKdmModelFromJavaProject

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

@Deprecated
public abstract class DefaultDiscoverer
extends AbstractRegionDiscoverer

A default implementation of a discoverer suitable for subclassing.


Field Summary
static java.lang.String JAVA_FILE_EXTENSION
          Deprecated.  
static DiscoveryParameter PARAMETER_BROWSE_RESULT
          Deprecated. A parameter key for indicating to open the result model in a editor (no effect if parameter PARAMETER_SILENT_MODE is set to false)
static DiscoveryParameter PARAMETER_LOG_JAVA_ANALYSIS_WARNINGS
          Deprecated. A parameter key for indicating to log warnings from java analysis.
static DiscoveryParameter PARAMETER_OVERWRITE_RESULT
          Deprecated. A parameter key for indicating to overwrite the output result file if it exists.
static DiscoveryParameter PARAMETER_SILENT_MODE
          Deprecated. A parameter key for indicating to work without user interaction.
static DiscoveryParameter PARAMETER_TARGET_RESOURCE
          Deprecated. A parameter key for indicating a target Resource instance.
 
Constructor Summary
DefaultDiscoverer()
          Deprecated.  
 
Method Summary
 Resource discoverElement(java.lang.Object source, URI target)
          Deprecated. Discovers a Java model and open MoDisco editor or default editor.
 JavaFactory getEFactory()
          Deprecated.  
 Resource getResource(java.lang.String resourceName, IJavaProject javaProject)
          Deprecated.  
 Resource getResourceResult()
          Deprecated.  
 void saveResource(URI target, IPath path, Resource resource, IProgressMonitor monitor)
          Deprecated.  
 void setResourceResult(Resource resourceResult)
          Deprecated.  
 
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, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.gmt.modisco.infra.discoverymanager.Discoverer
getDiscovererParameters, isApplicableTo
 

Field Detail

JAVA_FILE_EXTENSION

public static final java.lang.String JAVA_FILE_EXTENSION
Deprecated. 
See Also:
Constant Field Values

PARAMETER_SILENT_MODE

public static final DiscoveryParameter PARAMETER_SILENT_MODE
Deprecated. 
A parameter key for indicating to work without user interaction.


PARAMETER_TARGET_RESOURCE

public static final DiscoveryParameter PARAMETER_TARGET_RESOURCE
Deprecated. 
A parameter key for indicating a target Resource instance.


PARAMETER_BROWSE_RESULT

public static final DiscoveryParameter PARAMETER_BROWSE_RESULT
Deprecated. 
A parameter key for indicating to open the result model in a editor (no effect if parameter PARAMETER_SILENT_MODE is set to false)


PARAMETER_OVERWRITE_RESULT

public static final DiscoveryParameter PARAMETER_OVERWRITE_RESULT
Deprecated. 
A parameter key for indicating to overwrite the output result file if it exists. This parameter is optional and the default behavior is to overwrite any existing file.


PARAMETER_LOG_JAVA_ANALYSIS_WARNINGS

public static final DiscoveryParameter PARAMETER_LOG_JAVA_ANALYSIS_WARNINGS
Deprecated. 
A parameter key for indicating to log warnings from java analysis. For instance, sometimes java bindings (reference to a Java type, method, ...) cannot be completed. Such java binding problems occurs typically when there are some missing libraries in Java project classpath. Such java bindings problems will result in some missing informations in resulting Java model (occurences of UnresolvedItem)

Constructor Detail

DefaultDiscoverer

public DefaultDiscoverer()
Deprecated. 
Method Detail

getResourceResult

public Resource getResourceResult()
Deprecated. 

setResourceResult

public void setResourceResult(Resource resourceResult)
Deprecated. 

getResource

public Resource getResource(java.lang.String resourceName,
                            IJavaProject javaProject)
Deprecated. 

discoverElement

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

Parameters:
source - a IJavaProject instance
target - should be null here.
Returns:
the EMF resource of the target model discovered from source.

saveResource

public void saveResource(URI target,
                         IPath path,
                         Resource resource,
                         IProgressMonitor monitor)
                  throws java.io.IOException
Deprecated. 
Throws:
java.io.IOException

getEFactory

public JavaFactory getEFactory()
Deprecated.