Extension SDK 10.1.2

oracle.ide.addin
Interface ExtensionGroup


public interface ExtensionGroup

Enable programmable control of extension groups.


Field Summary
static int ALL_EXTENSIONS
           
static int NO_EXTENSIONS
           
static int PART_EXTENSIONS
           
 
Method Summary
 void addListener(ExtensionGroupListener gListener)
          Add a listener to receive notication when this group is initialized & deInitialized
 int areInitialized()
          Are all the group extensions initialized
 boolean canDeInitialize()
          Can the extension group extensions be de-initialized
 boolean canInitialize()
          Can the extension group extensions be initialized
 boolean deInitialize()
          De-initialise all extensions which belong to the group and dependent extensions which depend on this group.
 java.util.Iterator getExtensions()
          Get the extensions which belong to this extension group.
 Displayable getInformation()
          Get the information which describes the group
 ExtensionGroup getParent()
          Get parent group
 java.util.Iterator getSubGroups()
          Get immediate extension sub groups, null returned if no extension sub groups.
 boolean initialize()
          Initialise all extensions which belong to the group and dependent extensions.
 boolean isDefault()
          If the group is mutually exclusive is this the default group.
 boolean isInitialized()
          Is the group initialized
 boolean isMutuallyExclusive()
          Is the group mutually exclusive.
 void removeListener(ExtensionGroupListener gListener)
          Remove a listener
 

Field Detail

ALL_EXTENSIONS

public static final int ALL_EXTENSIONS
See Also:
Constant Field Values

PART_EXTENSIONS

public static final int PART_EXTENSIONS
See Also:
Constant Field Values

NO_EXTENSIONS

public static final int NO_EXTENSIONS
See Also:
Constant Field Values
Method Detail

canInitialize

public boolean canInitialize()
Can the extension group extensions be initialized

Returns:
true: group can be initialized; false: group can't be initialized

canDeInitialize

public boolean canDeInitialize()
Can the extension group extensions be de-initialized

Returns:
true: group can be de-initialized; false: group can't be de-initialized

initialize

public boolean initialize()
                   throws java.lang.IllegalStateException
Initialise all extensions which belong to the group and dependent extensions. Use canInitialize to check that all extensions can be initialized.

Returns:
true: group initialized; false: group not initialized
Throws:
java.lang.IllegalStateException - thrown if a group belonging to a mutually exclusive group is being initialized when the current initialized group has not been deinitialized

deInitialize

public boolean deInitialize()
De-initialise all extensions which belong to the group and dependent extensions which depend on this group. Use canDeInitialize to check that all extensions can be deInitialized

Returns:
true: group de-initialized; false: group not de-initialized

isInitialized

public boolean isInitialized()
Is the group initialized


areInitialized

public int areInitialized()
Are all the group extensions initialized

Returns:
ALL_EXTENSIONS, PART_EXTENSIONS, NO_EXTENSIONS

getInformation

public Displayable getInformation()
Get the information which describes the group


getExtensions

public java.util.Iterator getExtensions()
Get the extensions which belong to this extension group.


getParent

public ExtensionGroup getParent()
Get parent group


getSubGroups

public java.util.Iterator getSubGroups()
Get immediate extension sub groups, null returned if no extension sub groups.


isMutuallyExclusive

public boolean isMutuallyExclusive()
Is the group mutually exclusive. This group is within a set where only one group can be initialized.


isDefault

public boolean isDefault()
If the group is mutually exclusive is this the default group.


addListener

public void addListener(ExtensionGroupListener gListener)
Add a listener to receive notication when this group is initialized & deInitialized


removeListener

public void removeListener(ExtensionGroupListener gListener)
Remove a listener


Extension SDK

 

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