Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.0.0)

E17493-01

oracle.jdeveloper.model
Class JProjectTechnologyNotifier

java.lang.Object
  extended by oracle.jdeveloper.model.JProjectTechnologyNotifier
All Implemented Interfaces:
Addin

public final class JProjectTechnologyNotifier
extends java.lang.Object
implements Addin

Class to observe all projects for technology scope changes and fire technology events to the registered technology listeners.


Constructor Summary
JProjectTechnologyNotifier()
           
 
Method Summary
 void initialize()
          Invoked by the AddinManager after the instance of the Addin is instantiated.
static void registerTechnologyListener(java.lang.String technologyKey, JProjectTechnologyListener listener)
          Registers a technology listener for the specified technology.
static void unregisterTechnologyListener(java.lang.String technologyKey, JProjectTechnologyListener listener)
          Unregisters a technology listener for the specified technology.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JProjectTechnologyNotifier

public JProjectTechnologyNotifier()
Method Detail

initialize

public void initialize()
Description copied from interface: Addin
Invoked by the AddinManager after the instance of the Addin is instantiated. When invoked, The Addin should register and menu items, and actions required for use during this classes lifecycle. Addin authors should take care to ensure that any extraneous initialization is not preformed on this method, and any startup code that can be delayed until a later time is delayed, as the Addin's are synchronously initialized during the startup of the IDE, and each Addin has the potential to negatively impact the startup time of the product.

Specified by:
initialize in interface Addin
See Also:
AddinManager

registerTechnologyListener

public static void registerTechnologyListener(java.lang.String technologyKey,
                                              JProjectTechnologyListener listener)
Registers a technology listener for the specified technology. The listener is called whenever the technology is added or removed from any project.

Parameters:
technologyKey - The key for a registered technology.
listener - The listener to register.

unregisterTechnologyListener

public static void unregisterTechnologyListener(java.lang.String technologyKey,
                                                JProjectTechnologyListener listener)
Unregisters a technology listener for the specified technology.

Parameters:
technologyKey - The key for a registered technology.
listener - The listener to register.
Throws:
java.lang.IllegalArgumentException - if no such listener has been registered.

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.0.0)

E17493-01

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