Extension SDK

oracle.jdeveloper.model
Class DocumentRecognizer

java.lang.Object
  extended byoracle.jdeveloper.model.DocumentRecognizer
All Implemented Interfaces:
Addin, ContextMenuListener

public class DocumentRecognizer
extends java.lang.Object
implements Addin, ContextMenuListener

The DocumentRecognizer class responsible for defining the context menu items for the creation of projects and workspaces. In addition, this class also maps extensions to node types.

See Also:
oracle.ide.model.Addin

Constructor Summary
DocumentRecognizer()
           
 
Method Summary
 boolean canShutdown()
          This method is called by the IDE to confirm that the ide can shutdown.
 boolean handleDefaultAction(Context context)
          Called when the user double clicks on an item that has a popup menu
 float ideVersion()
          This method is called to determine the ide version number for which this feature was implemented.
 void initialize()
          This method is called by the IDE to request that the feature be initialized.
static boolean isSystemFile(java.net.URL url)
           
 void poppingDown(ContextMenu popup)
           
 void poppingUp(ContextMenu popup)
          Called just before the context menu is popping up.
protected  URLFilter registerFilter(java.lang.String description, java.lang.String extension)
           
protected  void registerPreferencesPanels()
           
protected  void registerRecognizerExtensions()
           
protected  void registerTaggedFileConvertors()
           
protected  void registerURLFilters()
           
 void shutdown()
          This method is called by the IDE to request that the feature release any resources held before the ide shuts down.
 float version()
          This method is called to determine the feature version number, i.e.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentRecognizer

public DocumentRecognizer()
Method Detail

initialize

public void initialize()
This method is called by the IDE to request that the feature be initialized.

Specified by:
initialize in interface Addin
See Also:
AddinManager

shutdown

public void shutdown()
This method is called by the IDE to request that the feature release any resources held before the ide shuts down.

Specified by:
shutdown in interface Addin

canShutdown

public boolean canShutdown()
This method is called by the IDE to confirm that the ide can shutdown.

Specified by:
canShutdown in interface Addin

version

public float version()
This method is called to determine the feature version number, i.e. 1.0

Specified by:
version in interface Addin
Returns:
the feature version number.

ideVersion

public float ideVersion()
This method is called to determine the ide version number for which this feature was implemented.

Specified by:
ideVersion in interface Addin
Returns:
the ide version number, i.e. 5.0 .

poppingUp

public void poppingUp(ContextMenu popup)
Called just before the context menu is popping up.

Specified by:
poppingUp in interface ContextMenuListener

poppingDown

public void poppingDown(ContextMenu popup)
Specified by:
poppingDown in interface ContextMenuListener

handleDefaultAction

public boolean handleDefaultAction(Context context)
Called when the user double clicks on an item that has a popup menu

Specified by:
handleDefaultAction in interface ContextMenuListener
Parameters:
context - the current context

isSystemFile

public static boolean isSystemFile(java.net.URL url)

registerRecognizerExtensions

protected void registerRecognizerExtensions()

registerURLFilters

protected void registerURLFilters()

registerFilter

protected URLFilter registerFilter(java.lang.String description,
                                   java.lang.String extension)

registerTaggedFileConvertors

protected void registerTaggedFileConvertors()

registerPreferencesPanels

protected void registerPreferencesPanels()

Extension SDK

 

Copyright ©1997, 2003, Oracle. All rights reserved.