Пример #1
0
  /**
   * Constructor for a BlueJ proxy object. See the ExtensionBridge class
   *
   * @param aWrapper Description of the Parameter
   * @param aPrefManager Description of the Parameter
   */
  BlueJ(ExtensionWrapper aWrapper, ExtensionPrefManager aPrefManager) {
    myWrapper = aWrapper;
    prefManager = aPrefManager;

    eventListeners = new ArrayList();
    applicationListeners = new ArrayList();
    packageListeners = new ArrayList();
    compileListeners = new ArrayList();
    invocationListeners = new ArrayList();
    classListeners = new ArrayList();

    /* I do NOT want lazy initialization otherwise I may try to load it
     * may times just because I cannof find anything.
     * Or having state variables to know I I did load it but had nothing found
     */
    localLabels = myWrapper.getLabelProperties();
  }