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

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


    if (selectedElementsMap.containsKey(element))
      return;
    PrioritizedElement prioritizedElement = QueryFactory.eINSTANCE.createPrioritizedElement();
    prioritizedElement.setElement(element);

    new AddPrioritizedElementCommand(priorizedElementSet, prioritizedElement, outgoingDecompositions, incomingDecompositions).runAsJob();
    selectedElementsMap.put(element, prioritizedElement);
  }
View Full Code Here


    List<Decomposition> outgoingDecompositions = new ArrayList<Decomposition>();
    List<Decomposition> incomingDecompositions = new ArrayList<Decomposition>();
   
    outgoingDecompositions.add(d1);
   
    new AddPrioritizedElementCommand(gssQuery.getSelectedGoalsSet(), selectedGoal2, outgoingDecompositions, incomingDecompositions).runWithoutUnicaseCommand();
   
    assertEquals(2, gssQuery.getSelectedGoalsSet().getPrioritizedElements().size());
   
    assertTrue(gssQuery.getSelectedGoalsSet().getPrioritizedElements().contains(selectedGoal1));
    assertTrue(gssQuery.getSelectedGoalsSet().getPrioritizedElements().contains(selectedGoal2));
View Full Code Here

    List<Decomposition> incomingDecompositions = new ArrayList<Decomposition>();
   
    outgoingDecompositions.add(d1);
    incomingDecompositions.add(d2);
   
    new AddPrioritizedElementCommand(gssQuery.getSelectedGoalsSet(), selectedGoal2, outgoingDecompositions, incomingDecompositions).runWithoutUnicaseCommand();
   
    assertEquals(3, gssQuery.getSelectedGoalsSet().getPrioritizedElements().size());
   
    assertTrue(gssQuery.getSelectedGoalsSet().getPrioritizedElements().contains(selectedGoal1));
    assertTrue(gssQuery.getSelectedGoalsSet().getPrioritizedElements().contains(selectedGoal2));
View Full Code Here

    List<Decomposition> incomingDecompositions = new ArrayList<Decomposition>();
   
  //  outgoingDecompositions.add(d1);
    incomingDecompositions.add(d1);
   
    new AddPrioritizedElementCommand(gssQuery.getSelectedGoalsSet(), selectedGoal1, outgoingDecompositions, incomingDecompositions).runWithoutUnicaseCommand();
   
    assertEquals(2, gssQuery.getSelectedGoalsSet().getPrioritizedElements().size());
   
    assertTrue(gssQuery.getSelectedGoalsSet().getPrioritizedElements().contains(selectedGoal1));
    assertTrue(gssQuery.getSelectedGoalsSet().getPrioritizedElements().contains(selectedGoal2));
View Full Code Here

    List<Decomposition> incomingDecompositions = new ArrayList<Decomposition>();
   
    incomingDecompositions.add(d1);
    incomingDecompositions.add(d2);
   
    new AddPrioritizedElementCommand(gssQuery.getSelectedGoalsSet(), selectedGoal1, outgoingDecompositions, incomingDecompositions).runWithoutUnicaseCommand();
   
    assertEquals(3, gssQuery.getSelectedGoalsSet().getPrioritizedElements().size());
   
    assertTrue(gssQuery.getSelectedGoalsSet().getPrioritizedElements().contains(selectedGoal1));
    assertTrue(gssQuery.getSelectedGoalsSet().getPrioritizedElements().contains(selectedGoal2));
View Full Code Here

    List<Decomposition> incomingDecompositions = new ArrayList<Decomposition>();
   
    incomingDecompositions.add(d3);
    outgoingDecompositions.add(d1);
   
    new AddPrioritizedElementCommand(gssQuery.getSelectedGoalsSet(), selectedGoal2, outgoingDecompositions, incomingDecompositions).runWithoutUnicaseCommand();
   
    incomingDecompositions.clear();
    outgoingDecompositions.clear();
   
    outgoingDecompositions.add(d3);
    outgoingDecompositions.add(d4);
   
   
    PrioritizedElement selectedGoal4clone = QueryFactory.eINSTANCE.createPrioritizedElement();
    selectedGoal4clone.setElement(g4);
    new AddPrioritizedElementCommand(gssQuery.getSelectedGoalsSet(), selectedGoal4clone, outgoingDecompositions, incomingDecompositions).runWithoutUnicaseCommand();
   
   
    assertEquals(4, gssQuery.getSelectedGoalsSet().getPrioritizedElements().size());
   
    assertTrue(gssQuery.getSelectedGoalsSet().getPrioritizedElements().contains(selectedGoal1));
View Full Code Here

TOP

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

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.