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

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.DiscoverJavaModelFromLibrary
All Implemented Interfaces:
Discoverer

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

@Deprecated
public class DiscoverJavaModelFromLibrary
extends DefaultDiscoverer

Action to discover a Java model from a library of a Java project.

See Also:
IPackageFragmentRoot

Field Summary
 
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
DiscoverJavaModelFromLibrary()
          Deprecated.  
 
Method Summary
 void discoverElement(java.lang.Object source, java.util.Map<DiscoveryParameter,java.lang.Object> parameters)
          Deprecated. Discovers a Java model.
 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, 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
 

Constructor Detail

DiscoverJavaModelFromLibrary

public DiscoverJavaModelFromLibrary()
Deprecated. 
Method Detail

isApplicableTo

public final 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.
See Also:
Discoverer.isApplicableTo(java.lang.Object)

discoverElement

public void discoverElement(java.lang.Object source,
                            java.util.Map<DiscoveryParameter,java.lang.Object> parameters)
Deprecated. 
Discovers a Java model.

Specified by:
discoverElement in interface Discoverer
Overrides:
discoverElement in class DefaultDiscoverer
Parameters:
source - a IJavaProject instance
parameters -
  • SILENT_MODE : IN parameter; if not set or set to false, the discovered model will be opened in an editor.
  • TARGET_RESOURCE : OUT parameter; the discovered model is stored with this key.

toString

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

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.