Tabnine Logo
IActiveComponentTreeNode
Code IndexAdd Tabnine to your IDE (free)

How to use
IActiveComponentTreeNode
in
jadex.base.gui.componenttree

Best Java code snippets using jadex.base.gui.componenttree.IActiveComponentTreeNode (Showing top 20 results out of 315)

origin: net.sourceforge.jadex/jadex-tools-comanalyzer

      public void nodeRemoved(ITreeNode node)
      {
        if(node instanceof IActiveComponentTreeNode)
        {
          IComponentDescription ad = ((IActiveComponentTreeNode)node).getDescription();
//                    System.out.println("died: "+ad.getName());
          agentDied(ad);
        }
      }
    });
origin: net.sourceforge.jadex/jadex-runtimetools-swing

  public void valueChanged(TreeSelectionEvent e)
  {
    JTree tree = comptree.getTree();
    if(tree.getSelectionPath()!=null)
    {
      Object node = tree.getSelectionPath().getLastPathComponent();
      if(node instanceof IActiveComponentTreeNode)
      {
        cards.show(((IActiveComponentTreeNode)node).getId());
      }
    }
  }
});
origin: net.sourceforge.jadex/jadex-tools-base-swing

else if(node.getComponentIdentifier()!=null)	// Might by null initially for proxy node.
    if(!lookup.getSecondEntity().contains(node.getComponentIdentifier().getRoot()))
      lookup.getSecondEntity().add(node.getComponentIdentifier().getRoot());
    fut    = lookup.getFirstEntity();
    if(!jccaccess.getComponentIdentifier().getRoot().equals(node.getComponentIdentifier().getRoot()))
      todo.add(node.getComponentIdentifier().getRoot());	// Search remote if not found locally.
origin: net.sourceforge.jadex/jadex-tools-base-swing

final IComponentIdentifier cid = ((IActiveComponentTreeNode)node).getComponentIdentifier();
origin: net.sourceforge.jadex/jadex-tools-comanalyzer

      public void nodeAdded(ITreeNode node)
      {
        if(node instanceof IActiveComponentTreeNode)
        {
          IComponentDescription ad = ((IActiveComponentTreeNode)node).getDescription();
//                    System.out.println("born: "+ad.getName());
          agentBorn(ad);
        }
      }
       
origin: org.activecomponents.jadex/jadex-runtimetools-swing

  public void valueChanged(TreeSelectionEvent e)
  {
    JTree tree = comptree.getTree();
    if(tree.getSelectionPath()!=null)
    {
      Object node = tree.getSelectionPath().getLastPathComponent();
      if(node instanceof IActiveComponentTreeNode)
      {
        cards.show(((IActiveComponentTreeNode)node).getId());
      }
    }
  }
});
origin: net.sourceforge.jadex/jadex-tools-base-swing

AbstractJCCPlugin.getClassLoader(((IActiveComponentTreeNode)node.getParent().getParent()).getComponentIdentifier(), jcc)
  .addResultListener(new ExceptionDelegationResultListener<ClassLoader, JComponent>(ret)
origin: net.sourceforge.jadex/jadex-tools-bdi

  public Action getDefaultAction(ISwingTreeNode node)
  {
    Action    a    = null;
    if(node instanceof IActiveComponentTreeNode)
    {
      if(cards.getComponent(((IActiveComponentTreeNode)node).getDescription())!=null)
      {
        a    = STOP_PROFILER;
      }
      else if(BDIAgentFactory.FILETYPE_BDIAGENT.equals(((IActiveComponentTreeNode)node).getDescription().getType()))
      {
        a    = START_PROFILER;
      }
    }
    return a;
  }
});
origin: org.activecomponents.jadex/jadex-runtimetools-swing

  public void actionPerformed(ActionEvent e)
  {
    TreePath[]    paths    = comptree.getTree().getSelectionPaths();
    for(int i=0; paths!=null && i<paths.length; i++)
    {
      if(paths[i].getLastPathComponent() instanceof IActiveComponentTreeNode)
      {
        IActiveComponentTreeNode node = (IActiveComponentTreeNode)paths[i].getLastPathComponent();
        DebuggerMainPanel panel = (DebuggerMainPanel)cards.getComponent(node.getId());
        panel.dispose();
        detail.remove(panel);
        comptree.getModel().fireNodeChanged(node);
      }
    }
  }
};
origin: net.sourceforge.jadex/jadex-tools-base-swing

/**
 *  Create a new component node.
 */
public ISwingTreeNode	createComponentNode(final IComponentDescription desc)
{
  ISwingTreeNode    node    = getModel().getNode(desc.getName());
  if(node==null)
  {
    boolean proxy = "jadex.platform.service.remote.Proxy".equals(desc.getModelName())
      // Only create proxy nodes for local proxy components to avoid infinite nesting.
      && ((IActiveComponentTreeNode)getModel().getRoot()).getComponentIdentifier().getName().equals(desc.getName().getPlatformName());
    if(proxy)
    {
      node = new ProxyComponentTreeNode(ComponentTreeNode.this, getModel(), getTree(), desc, cms, iconcache, access);
    }
    else
    {
      node = new ComponentTreeNode(ComponentTreeNode.this, getModel(), getTree(), desc, cms, iconcache, access);
    }
  }
  return node;
}

origin: org.activecomponents.jadex/jadex-runtimetools-swing

public void nodeRemoved(final ITreeNode node)
{
  if(node instanceof IActiveComponentTreeNode)
  {
    if(((IActiveComponentTreeNode)node).getDescription().getName().equals(spanel.parent))
      spanel.setParent(null);
  }
}
 
origin: net.sourceforge.jadex/jadex-runtimetools-swing

  public void actionPerformed(ActionEvent e)
  {
    TreePath[]    paths    = comptree.getTree().getSelectionPaths();
    for(int i=0; paths!=null && i<paths.length; i++)
    {
      if(paths[i].getLastPathComponent() instanceof IActiveComponentTreeNode)
      {
        IActiveComponentTreeNode node = (IActiveComponentTreeNode)paths[i].getLastPathComponent();
        DebuggerMainPanel panel = (DebuggerMainPanel)cards.getComponent(node.getId());
        panel.dispose();
        detail.remove(panel);
        comptree.getModel().fireNodeChanged(node);
      }
    }
  }
};
origin: net.sourceforge.jadex/jadex-tools-base-swing

final IComponentIdentifier cid = ((IActiveComponentTreeNode)node).getComponentIdentifier();
origin: net.sourceforge.jadex/jadex-runtimetools-swing

public void nodeRemoved(final ITreeNode node)
{
  if(node instanceof IActiveComponentTreeNode)
  {
    if(((IActiveComponentTreeNode)node).getDescription().getName().equals(spanel.parent))
      spanel.setParent(null);
  }
}
 
origin: net.sourceforge.jadex/jadex-tools-base-swing

final IComponentIdentifier cid = node.getComponentIdentifier();
origin: net.sourceforge.jadex/jadex-tools-bdi

public Icon getSwingOverlay(ISwingTreeNode node)
{
  Icon ret    = null;
  if(node instanceof IActiveComponentTreeNode)
  {
    IComponentDescription ad = ((IActiveComponentTreeNode)node).getDescription();
    if(cards.getComponent(ad)!=null)
    {
      ret = icons.getIcon("component_debugged");
    }
  }
  return ret;
}
 
origin: net.sourceforge.jadex/jadex-tools-base-swing

final IComponentIdentifier cid = node.getComponentIdentifier();
origin: net.sourceforge.jadex/jadex-tools-bdi

  public void actionPerformed(ActionEvent e)
  {
    TreePath[]    paths    = comptree.getTree().getSelectionPaths();
    for(int i=0; paths!=null && i<paths.length; i++)
    {
      if(paths[i].getLastPathComponent() instanceof IActiveComponentTreeNode
        && BDIAgentFactory.FILETYPE_BDIAGENT.equals(((IActiveComponentTreeNode)paths[i].getLastPathComponent()).getDescription().getType()))
      {
        IActiveComponentTreeNode node = (IActiveComponentTreeNode)paths[i].getLastPathComponent();
        IComponentDescription desc = node.getDescription();
        RuleProfilerPanel intro = (RuleProfilerPanel)cards.getComponent(desc);            
        detail.remove(intro);
        comptree.getModel().fireNodeChanged(node);
      }
    }
  }
};
origin: org.activecomponents.jadex/jadex-runtimetools-swing

public Icon getSwingOverlay(ISwingTreeNode node)
{
  Icon    ret    = null;
  if(node instanceof IActiveComponentTreeNode)
  {
    IComponentIdentifier    id    = ((IActiveComponentTreeNode)node).getDescription().getName();
    IComponentIdentifier[]    recs    = (IComponentIdentifier[])convcenter.getMessagePanel().getReceivers();
    if(recs!=null && Arrays.asList(recs).contains(id))
    {
      ret    = icons.getIcon("message_overlay");
    }
  }
  return ret;
}
 
origin: net.sourceforge.jadex/jadex-tools-base-swing

      public Icon getSwingOverlay(ISwingTreeNode node)
      {
        Icon    ret    = null;
        
        IComponentDescription    desc = null;
        if(node instanceof IActiveComponentTreeNode)
        {
          desc = ((IActiveComponentTreeNode)node).getDescription();
        
//                    if(IComponentDescription.PROCESSINGSTATE_READY.equals(desc.getProcessingState()))
//                    {
//                        ret = icons.getIcon("overlay_ready");
//                    }
//                    else if(IComponentDescription.PROCESSINGSTATE_RUNNING.equals(desc.getProcessingState()))
//                    {
//                        ret = icons.getIcon("overlay_running");
//                    }
//                    else if(IComponentDescription.PROCESSINGSTATE_IDLE.equals(desc.getProcessingState()))
//                    {
//                        // -> susp
//                    }        
          if(IComponentDescription.STATE_SUSPENDED.equals(desc.getState()))
          {
            ret = icons.getIcon("component_suspended");
          }
        }
        return ret;
      }
      
jadex.base.gui.componenttreeIActiveComponentTreeNode

Javadoc

Interface for all active component tree nodes.

Most used methods

  • getDescription
    Get the component description.
  • getId
  • getComponentIdentifier
    Get the component id.

Popular in Java

  • Finding current android device location
  • onCreateOptionsMenu (Activity)
  • compareTo (BigDecimal)
  • getResourceAsStream (ClassLoader)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • JComboBox (javax.swing)
  • Table (org.hibernate.mapping)
    A relational table
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now