Package org.emftrace.quarc.core.commands.prioritizedelementsset

Examples of org.emftrace.quarc.core.commands.prioritizedelementsset.RemovePrioritizedElementCommand


   * deselectes a element by removing the PriorizedElement
   * @param element a Element
   */
  protected void removePriorizedElement(Element element) {
    getNodeForElement(element);
    new RemovePrioritizedElementCommand(priorizedElementSet, selectedElementsMap.get(element)).runAsJob();
    selectedElementsMap.remove(element);
  }
View Full Code Here


     
     
      if (node == null) { //due to changes principle is no longer applicable
        if( displayQuestionMessagebox(element.getName() + " is no longer applicable. Deselect Principle?")){
         
          new RemovePrioritizedElementCommand(priorizedElementSet, selectedPrinciple).run();
          }
        continue;
      }
       
      if (!cacheManager.isLeafAppicableElement(element))
View Full Code Here

      for (Entry<Element, HashMap<Element, PrioritizedDecomposition>> entry : prioritizedDecompositionsSourceTargetMap
          .entrySet()) {
        entry.getValue().remove(element);
      }

      new RemovePrioritizedElementCommand(getPrioritizedElementSet(),
          prioritizedElement).run();

    }
    decompositionsToRemove.clear();
    elementsToRemove.clear();
View Full Code Here

    PrioritizedElement selectedGoal1 = createSelectedGoal(gssQuery, g1, 0);
    PrioritizedElement selectedGoal2 = createSelectedGoal(gssQuery, g2, 0);
   
    createPriorizedDecomposition(gssQuery, d1, 0);

    new RemovePrioritizedElementCommand(gssQuery.getSelectedGoalsSet(), selectedGoal2).runWithoutUnicaseCommand();
   
    assertEquals(1, gssQuery.getSelectedGoalsSet().getPrioritizedElements().size());
   
    assertTrue(gssQuery.getSelectedGoalsSet().getPrioritizedElements().contains(selectedGoal1));
    assertFalse(gssQuery.getSelectedGoalsSet().getPrioritizedElements().contains(selectedGoal2));
View Full Code Here

    PrioritizedElement selectedGoal3 = createSelectedGoal(gssQuery, g3, 0);
   
    createPriorizedDecomposition(gssQuery, d1, 0);
    createPriorizedDecomposition(gssQuery, d2, 0);
 
    new RemovePrioritizedElementCommand(gssQuery.getSelectedGoalsSet(), selectedGoal2).runWithoutUnicaseCommand();
   
    assertEquals(2, gssQuery.getSelectedGoalsSet().getPrioritizedElements().size());
   
    assertTrue(gssQuery.getSelectedGoalsSet().getPrioritizedElements().contains(selectedGoal1));
    assertFalse(gssQuery.getSelectedGoalsSet().getPrioritizedElements().contains(selectedGoal2));
View Full Code Here

    PrioritizedElement selectedGoal3 = createSelectedGoal(gssQuery, g3, 0);
   
    createPriorizedDecomposition(gssQuery, d1, 0);
    createPriorizedDecomposition(gssQuery, d2, 0);
 
    new RemovePrioritizedElementCommand(gssQuery.getSelectedGoalsSet(), selectedGoal3).runWithoutUnicaseCommand();
   
    assertEquals(2, gssQuery.getSelectedGoalsSet().getPrioritizedElements().size());
   
    assertTrue(gssQuery.getSelectedGoalsSet().getPrioritizedElements().contains(selectedGoal1));
    assertTrue(gssQuery.getSelectedGoalsSet().getPrioritizedElements().contains(selectedGoal2));
View Full Code Here

TOP

Related Classes of org.emftrace.quarc.core.commands.prioritizedelementsset.RemovePrioritizedElementCommand

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.