Package org.emftrace.metamodel.QUARCModel.Query

Examples of org.emftrace.metamodel.QUARCModel.Query.GSSQueryContainment


  /* (non-Javadoc)
   * @see org.eclipse.core.commands.AbstractHandler#execute(org.eclipse.core.commands.ExecutionEvent)
   */
  @Override
  public Object execute(ExecutionEvent event) throws ExecutionException {
    final GSSQueryContainment gssQueryContainment = (GSSQueryContainment) UiUtil.getSelectedEObject()
    NewGSSQueryWizard wizard = new NewGSSQueryWizard(gssQueryContainment);
    WizardDialog dialog = new WizardDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), wizard);
    dialog.create();
    dialog.open();   
    return null;
View Full Code Here


      builder =  new QueryResultGraphBuilder(managedFormComposite, SWT.NONE, getSite(), (QueryResultSet)modelElement, accessLayer);
    } else
  */ 
    if (modelElement instanceof SelectedGoalsSet){
      GSSQuery query =  (GSSQuery) modelElement.eContainer();
      GSSQueryContainment queryContainment  =  (GSSQueryContainment) query.eContainer();
      Toolbox toolbox  =  (Toolbox) queryContainment.eContainer();
      GSS gss  =  toolbox.getGssCatalogue();
      builder = new GoalSelectorGraphBuilder(managedFormComposite, SWT.NONE, getSite(), gss, (SelectedGoalsSet)modelElement, accessLayer);
    } else
   
    if (modelElement instanceof SelectedPrinciplesSet){
      GSSQuery query =  (GSSQuery) modelElement.eContainer();
      GSSQueryContainment queryContainment  =  (GSSQueryContainment) query.eContainer();
      Toolbox toolbox  =  (Toolbox) queryContainment.eContainer();
      GSS gss  =  toolbox.getGssCatalogue();
      builder = new PrincipleSelectorGraphBuilder(managedFormComposite, SWT.NONE, getSite(), gss,query, (SelectedPrinciplesSet)modelElement, accessLayer);

    }
    if (builder != null)
View Full Code Here

    TechnicalPropertiesCatalogue technicalPropertiesCatalogue = constraintsFactory.createTechnicalPropertiesCatalogue();
    PredefinedConstraintSetCatalogue predefinedConstraintSetCatalogue = constraintsFactory.createPredefinedConstraintSetCatalogue();
   
    QueryFactory queryFactory = new QueryFactoryImpl();
   
    GSSQueryContainment gssQueryContainment = queryFactory.createGSSQueryContainment();

    toolbox.setGssCatalogue(gss);
    toolbox.setTagsCatalogue(tags);
    toolbox.setPredefinedContraintsSetCatalogue(predefinedConstraintSetCatalogue);
    toolbox.setPropertiesCatalogue(technicalPropertiesCatalogue);
View Full Code Here

public class AddGSSQueryTest extends QUARCCoreTestCase {

  @Test
  public void test() {
    String username = System.getProperty("user.name");
    GSSQueryContainment gssQueryContainment = QueryFactory.eINSTANCE
        .createGSSQueryContainment();
    GSSQuery query = QueryFactory.eINSTANCE.createGSSQuery();
    query.setUsername(username);
    query.setUuid("id");
    query.setTimestamp("now");
    new AddGSSQuery(gssQueryContainment, query).runWithoutUnicaseCommand();

    assertEquals(1, gssQueryContainment.getGssQueries().size());
    GSSQuery query_ = (GSSQuery) gssQueryContainment.getGssQueries().get(0);
    assertEquals(query, query_);
    assertEquals(username, query_.getUsername());
    assertEquals("id", query_.getUuid());
    assertEquals("now", query_.getTimestamp());
View Full Code Here

TOP

Related Classes of org.emftrace.metamodel.QUARCModel.Query.GSSQueryContainment

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.