@Override
    public void addedModule(final INaviAddressSpace addressSpace, final INaviModule module) {
      m_cachedValues = null;

      module.addListener(m_modulesListener);

      fireTableDataChanged();
    }
  /**
   * Creates a new module node.
   *
   * @param parent Parent window of the dialog.
   * @param module The module represented by the node.
   * @param model Tree model of the tree the node belongs to.
   */
  public ViewSelectionModuleNode(
      final Window parent, final INaviModule module, final DefaultTreeModel model) {
    Preconditions.checkNotNull(module, "IE01821: Module argument can not be null");

    m_dialog = parent;
    m_module = module;
    m_model = model;

    m_module.addListener(m_internalModuleListener);

    createChildren();
  }
  /**
   * Creates a new model object.
   *
   * @param addressSpace The address space that provides the modules.
   */
  public CProjectModulesModel(final INaviAddressSpace addressSpace) {
    Preconditions.checkNotNull(addressSpace, "IE01955: Address space argument can't be null");

    m_addressSpace = addressSpace;

    addressSpace.addListener(m_addressSpaceListener);

    if (addressSpace.isLoaded()) {
      addressSpace.getContent().addListener(m_contentListener);

      for (final INaviModule module : addressSpace.getContent().getModules()) {
        module.addListener(m_modulesListener);
      }
    }
  }
Example #4
0
  // / @endcond
  public Module(
      final Database database,
      final INaviModule module,
      final TagManager nodeTagManager,
      final TagManager viewTagManager) {
    m_database = Preconditions.checkNotNull(database, "Error: Database argument can't be null");
    m_module = Preconditions.checkNotNull(module, "Error: Module argument can't be null");
    m_nodeTagManager =
        Preconditions.checkNotNull(
            nodeTagManager, "Error: Node tag manager argument can't be null");
    m_viewTagManager =
        Preconditions.checkNotNull(
            viewTagManager, "Error: View tag manager argument can't be null");

    if (m_module.getConfiguration().getDebugger() != null) {
      m_debugger = new Debugger(m_module.getConfiguration().getDebugger());
    }

    if (module.isLoaded()) {
      convertData();
    }

    module.addListener(m_listener);
  }