@Override public void actionPerformed(ActionEvent e) { if (checkBoxTree.getSelectionPath() != null) { DefaultMutableTreeNode selectedNode = (DefaultMutableTreeNode) checkBoxTree.getSelectionPath().getLastPathComponent(); DefaultMutableTreeNode parentNode = (DefaultMutableTreeNode) selectedNode.getParent(); if (parentNode != null) { DefaultMutableTreeNode immediateSiblingNode = directionUp ? (DefaultMutableTreeNode) parentNode.getChildBefore(selectedNode) : (DefaultMutableTreeNode) parentNode.getChildAfter(selectedNode); if (immediateSiblingNode != null) { parentNode.insert(immediateSiblingNode, parentNode.getIndex(selectedNode)); ((DefaultTreeModel) checkBoxTree.getModel()).nodeStructureChanged(parentNode); checkBoxTree.setSelectionPath(new TreePath(selectedNode.getPath())); } } } } }
@Override public void insert(N node, int position) { super.insert(node, position); } }
public DecisionNode createDecisionNode(String id){ DecisionNode object=new DecisionNode(id); DefaultMutableTreeNode nn=new DefaultMutableTreeNode(object); DecisionNodeNode.insert(nn, DecisionNodeNode.getChildCount()); nn.setParent(DecisionNodeNode); this.reload(); arbolObjetos.repaint(); return object; }
public TestingPackage createTestingPackage(String id){ TestingPackage object=new TestingPackage(id); DefaultMutableTreeNode nn=new DefaultMutableTreeNode(object); TestingPackageNode.insert(nn, TestingPackageNode.getChildCount()); nn.setParent(TestingPackageNode); this.reload(); arbolObjetos.repaint(); return object; }
public WFTest createWFTest(String id){ WFTest object=new WFTest(id); DefaultMutableTreeNode nn=new DefaultMutableTreeNode(object); WFTestNode.insert(nn, WFTestNode.getChildCount()); nn.setParent(WFTestNode); this.reload(); arbolObjetos.repaint(); return object; }
public ShareTouple createShareTouple(String id){ ShareTouple object=new ShareTouple(id); DefaultMutableTreeNode nn=new DefaultMutableTreeNode(object); ShareToupleNode.insert(nn, ShareToupleNode.getChildCount()); nn.setParent(ShareToupleNode); this.reload(); arbolObjetos.repaint(); return object; }
public DeploymentUnitByTypeWithInitMS createDeploymentUnitByTypeWithInitMS(String id){ DeploymentUnitByTypeWithInitMS object=new DeploymentUnitByTypeWithInitMS(id); DefaultMutableTreeNode nn=new DefaultMutableTreeNode(object); DeploymentUnitByTypeWithInitMSNode.insert(nn, DeploymentUnitByTypeWithInitMSNode.getChildCount()); nn.setParent(DeploymentUnitByTypeWithInitMSNode); this.reload(); arbolObjetos.repaint(); return object; }
public RemoteProcedureCall createRemoteProcedureCall(String id){ RemoteProcedureCall object=new RemoteProcedureCall(id); DefaultMutableTreeNode nn=new DefaultMutableTreeNode(object); RemoteProcedureCallNode.insert(nn, RemoteProcedureCallNode.getChildCount()); nn.setParent(RemoteProcedureCallNode); this.reload(); arbolObjetos.repaint(); return object; }
public AgentModelBelieve createAgentModelBelieve(String id){ AgentModelBelieve object=new AgentModelBelieve(id); DefaultMutableTreeNode nn=new DefaultMutableTreeNode(object); AgentModelBelieveNode.insert(nn, AgentModelBelieveNode.getChildCount()); nn.setParent(AgentModelBelieveNode); this.reload(); arbolObjetos.repaint(); return object; }
public INGENIASUseCase createINGENIASUseCase(String id){ INGENIASUseCase object=new INGENIASUseCase(id); DefaultMutableTreeNode nn=new DefaultMutableTreeNode(object); INGENIASUseCaseNode.insert(nn, INGENIASUseCaseNode.getChildCount()); nn.setParent(INGENIASUseCaseNode); this.reload(); arbolObjetos.repaint(); return object; }
public ForkNode createForkNode(String id){ ForkNode object=new ForkNode(id); DefaultMutableTreeNode nn=new DefaultMutableTreeNode(object); ForkNodeNode.insert(nn, ForkNodeNode.getChildCount()); nn.setParent(ForkNodeNode); this.reload(); arbolObjetos.repaint(); return object; }
public FAERIECtxtModel createFAERIECtxtModel(String id){ FAERIECtxtModel object=new FAERIECtxtModel(id); DefaultMutableTreeNode nn=new DefaultMutableTreeNode(object); FAERIECtxtModelNode.insert(nn, FAERIECtxtModelNode.getChildCount()); nn.setParent(FAERIECtxtModelNode); this.reload(); arbolObjetos.repaint(); return object; }
public Application createApplication(String id){ Application object=new Application(id); DefaultMutableTreeNode nn=new DefaultMutableTreeNode(object); ApplicationNode.insert(nn, ApplicationNode.getChildCount()); nn.setParent(ApplicationNode); this.reload(); arbolObjetos.repaint(); return object; }
public FAERIECtxtEntity createFAERIECtxtEntity(String id){ FAERIECtxtEntity object=new FAERIECtxtEntity(id); DefaultMutableTreeNode nn=new DefaultMutableTreeNode(object); FAERIECtxtEntityNode.insert(nn, FAERIECtxtEntityNode.getChildCount()); nn.setParent(FAERIECtxtEntityNode); this.reload(); arbolObjetos.repaint(); return object; }
public ContextReleaseTask createContextReleaseTask(String id){ ContextReleaseTask object=new ContextReleaseTask(id); DefaultMutableTreeNode nn=new DefaultMutableTreeNode(object); ContextReleaseTaskNode.insert(nn, ContextReleaseTaskNode.getChildCount()); nn.setParent(ContextReleaseTaskNode); this.reload(); arbolObjetos.repaint(); return object; }
public WFTestFinalState createWFTestFinalState(String id){ WFTestFinalState object=new WFTestFinalState(id); DefaultMutableTreeNode nn=new DefaultMutableTreeNode(object); WFTestFinalStateNode.insert(nn, WFTestFinalStateNode.getChildCount()); nn.setParent(WFTestFinalStateNode); this.reload(); arbolObjetos.repaint(); return object; }
public MentalInstanceSpecification createMentalInstanceSpecification(String id){ MentalInstanceSpecification object=new MentalInstanceSpecification(id); DefaultMutableTreeNode nn=new DefaultMutableTreeNode(object); MentalInstanceSpecificationNode.insert(nn, MentalInstanceSpecificationNode.getChildCount()); nn.setParent(MentalInstanceSpecificationNode); this.reload(); arbolObjetos.repaint(); return object; }
public MergeNode createMergeNode(String id){ MergeNode object=new MergeNode(id); DefaultMutableTreeNode nn=new DefaultMutableTreeNode(object); MergeNodeNode.insert(nn, MergeNodeNode.getChildCount()); nn.setParent(MergeNodeNode); this.reload(); arbolObjetos.repaint(); return object; }
public Test createTest(String id){ Test object=new Test(id); DefaultMutableTreeNode nn=new DefaultMutableTreeNode(object); TestNode.insert(nn, TestNode.getChildCount()); nn.setParent(TestNode); this.reload(); arbolObjetos.repaint(); return object; }
public Conversation createConversation(String id){ Conversation object=new Conversation(id); DefaultMutableTreeNode nn=new DefaultMutableTreeNode(object); ConversationNode.insert(nn, ConversationNode.getChildCount()); nn.setParent(ConversationNode); this.reload(); arbolObjetos.repaint(); return object; }