|
Extension SDK 10.1.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.ide.gallery.GalleryManager oracle.ide.gallery.ObjectGalleryAddin
Addin which glues the Object Gallery into the JDeveloper IDE.
Field Summary | |
static java.lang.String |
OBJECT_GALLERY_CMD
|
static int |
OBJECT_GALLERY_CMD_ID
|
Constructor Summary | |
ObjectGalleryAddin()
Constructor |
Method Summary | |
protected void |
addPendingGalleryItems()
Add all pending gallery items that were registered programmatically via the GalleryManager . |
boolean |
canShutdown()
This method is invoked by the AddinManager before the IDE
terminates. |
java.util.Properties |
getBuilderProperties()
Get builder generator properties. |
ObjectGallery |
getGallery()
Get the instance of the Object Gallery. |
boolean |
handleDefaultAction(Context context)
Called when the user double clicks on an item that has a popup menu. |
boolean |
handleEvent(IdeAction action,
Context context)
This method is called when a user interaction with a View
triggers the execution of a command. |
float |
ideVersion()
This method is called to determine the ide version number for which this Addin was implemented. |
void |
initialize()
Initialize the addin. |
void |
poppingDown(ContextMenu popup)
|
void |
poppingUp(ContextMenu popup)
Called just before the context menu is popping up. |
void |
registerGalleryElement(ElementInfo info)
Register an element to be added to the gallery. |
protected void |
removePendingGalleryItems()
Remove all pending gallery items that were registered programmatically via the GalleryManager . |
void |
shutdown()
This method is invoked by the AddinManager when the IDE
terminates. |
void |
unregisterGalleryElement(ElementInfo info)
Unregister an element to be removed from the gallery. |
boolean |
update(IdeAction action,
Context context)
This method updates the enabled status of the specified action within the specified context. |
float |
version()
This method is called to determine the Addin version number. |
Methods inherited from class oracle.ide.gallery.GalleryManager |
getGalleryManager, setGalleryManager |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int OBJECT_GALLERY_CMD_ID
public static final java.lang.String OBJECT_GALLERY_CMD
Constructor Detail |
public ObjectGalleryAddin()
Method Detail |
public ObjectGallery getGallery()
GalleryManager
getGallery
in class GalleryManager
public void registerGalleryElement(ElementInfo info)
registerGalleryElement
in class GalleryManager
info
- information specifying the location and attributes of the
new gallery element to be added.public void unregisterGalleryElement(ElementInfo info)
unregisterGalleryElement
in class GalleryManager
info
- information specifying the location and attributes of the
existing gallery element to be removed.public java.util.Properties getBuilderProperties()
getBuilderProperties
in class GalleryManager
public void initialize()
initialize
in interface Addin
AddinManager
public boolean canShutdown()
Addin
AddinManager
before the IDE
terminates. Addins should NOT use this method to release resources.
They should only use this method to give users the opportunity to
cancel the exit process if there is some process started by this
addin still running.
Implementations should return false
to cancel the shutdown
process.
canShutdown
in interface Addin
public void shutdown()
Addin
AddinManager
when the IDE
terminates. Any non java resources (file handles, database connections,
etc) which are still being held by this Addin
should be
released by this method immediately. This method is not guaranteed to
be called, but on normal terminations of the IDE, this method will be
invoked.
shutdown
in interface Addin
public float version()
Addin
Addin
version number.
version
in interface Addin
public float ideVersion()
Addin
Addin
was implemented.
ideVersion
in interface Addin
public boolean handleEvent(IdeAction action, Context context)
Controller
View
triggers the execution of a command.
handleEvent
in interface Controller
action
- action whose command is to be executed.
public boolean update(IdeAction action, Context context)
Controller
update
in interface Controller
action
- action whose command is to be executed.context
- the current context
public void poppingUp(ContextMenu popup)
ContextMenuListener
poppingUp
in interface ContextMenuListener
public void poppingDown(ContextMenu popup)
poppingDown
in interface ContextMenuListener
public boolean handleDefaultAction(Context context)
ContextMenuListener
handleDefaultAction
in interface ContextMenuListener
context
- the current contextprotected void addPendingGalleryItems()
GalleryManager
. This is called lazily when the
gallery dialog is opened, to avoid having to open the gallery file
until absolutely necessary.
protected void removePendingGalleryItems()
GalleryManager
. This is called lazily when the
gallery dialog is opened, to avoid having to open the gallery file
until absolutely necessary.
|
Extension SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.