Package org.emftrace.metamodel.LinkModel

Examples of org.emftrace.metamodel.LinkModel.LinkType


    @Test
    public void testCreateLinkProjectModelElementModelElementStringLinkType()
    {      
        Concern c1 = URNModelFactory.eINSTANCE.createConcern();
        Concern c2 = URNModelFactory.eINSTANCE.createConcern();
        LinkType t = LinkModelFactory.eINSTANCE.createLinkType();
       
        assertEquals(0, accessLayer.getElements(project, "LinkContainer").size());
        assertNotNull(linkManager.createLink(project, c1, c2, "42", t, ""));
        assertEquals(1, accessLayer.getElements(project, "LinkContainer").size());
        assertNull(linkManager.createLink(null, c1, c2, "42", t, ""));
View Full Code Here


      {
      @Override
      public Void call() throws Exception
      {
            LinkTypeCatalog cat = LinkModelFactory.eINSTANCE.createLinkTypeCatalog();
            LinkType          t1  = LinkModelFactory.eINSTANCE.createLinkType();
            LinkType          t2  = LinkModelFactory.eINSTANCE.createLinkType();
            project.getContents().add(cat);
            project.getContents().add(t1);
            project.getContents().add(t2);
           
            cat.getLinkTypes().add(t1);
View Full Code Here

      {           
        project.getContents().clear();
       
            Concern c1 = URNModelFactory.eINSTANCE.createConcern();
            Concern c2 = URNModelFactory.eINSTANCE.createConcern();
            LinkType t = LinkModelFactory.eINSTANCE.createLinkType();
           
            List<EObject> sources = new ArrayList<EObject>();
            sources.add(c1);
            List<EObject> targets = new ArrayList<EObject>();
            targets.add(c2);
View Full Code Here

      {
      @Override
      public Void call() throws Exception
      {
            LinkTypeCatalog cat = LinkModelFactory.eINSTANCE.createLinkTypeCatalog();
            LinkType          t1  = LinkModelFactory.eINSTANCE.createLinkType();
            LinkType          t2  = LinkModelFactory.eINSTANCE.createLinkType();
            LinkType          t3  = LinkModelFactory.eINSTANCE.createLinkType();
            project.getContents().add(cat);
            project.getContents().add(t1);
            project.getContents().add(t2);
            project.getContents().add(t3);
           
View Full Code Here

      public Void call() throws Exception
      {
            LinkTypeCatalog catalog = LinkModelFactory.eINSTANCE.createLinkTypeCatalog();
            accessLayer.addElement(project, catalog);
           
            LinkType type = LinkModelFactory.eINSTANCE.createLinkType();
            accessLayer.addElement(project, type);
            
            catalog.getLinkTypes().add(type);       
            assertEquals(catalog, accessLayer.getParent(type));
            assertEquals(null, accessLayer.getParent(null));       
View Full Code Here

      {      
        project.getContents().clear();
       
            Concern c1 = URNModelFactory.eINSTANCE.createConcern();
            Concern c2 = URNModelFactory.eINSTANCE.createConcern();
            LinkType t = LinkModelFactory.eINSTANCE.createLinkType();
                   
            assertEquals(0, accessLayer.getElements(project, "LinkContainer").size());
            assertNotNull(linkManager.createLink(project, c1, c2, "42", t, ""));
            assertEquals(1, accessLayer.getElements(project, "LinkContainer").size());
            assertNull(linkManager.createLink(null, c1, c2, "42", t, ""));
View Full Code Here

      {
      @Override
      public Void call() throws Exception
      {
            LinkTypeCatalog cat = LinkModelFactory.eINSTANCE.createLinkTypeCatalog();
            LinkType          t1  = LinkModelFactory.eINSTANCE.createLinkType();
            LinkType          t2  = LinkModelFactory.eINSTANCE.createLinkType();
            project.getContents().clear();
            project.getContents().add(cat);
            project.getContents().add(t1);
            project.getContents().add(t2);
           
View Full Code Here

         
          LinkTypeCatalog linkTypes = LinkModelFactory.eINSTANCE.createLinkTypeCatalog();
         
          accessLayer.addElement(project, linkTypes);
         
          LinkType linkType1 = LinkModelFactory.eINSTANCE.createLinkType();
          LinkType linkType2 = LinkModelFactory.eINSTANCE.createLinkType();
          LinkType linkType3 = LinkModelFactory.eINSTANCE.createLinkType();
         
          accessLayer.addElement(project, linkType1);
          accessLayer.addElement(project, linkType2);
          accessLayer.addElement(project, linkType3);
         
          linkType1.setName("refinement");
          linkType2.setName("implements");
          linkType3.setName("requires");
         
          linkTypes.getLinkTypes().add(linkType1);
          linkTypes.getLinkTypes().add(linkType2);
          linkTypes.getLinkTypes().add(linkType3);
         
View Full Code Here

      {
      @Override
      public Void call() throws Exception
      {
            LinkTypeCatalog cat = LinkModelFactory.eINSTANCE.createLinkTypeCatalog();
            LinkType          t1  = LinkModelFactory.eINSTANCE.createLinkType();
            LinkType          t2  = LinkModelFactory.eINSTANCE.createLinkType();
            project.getContents().clear();
            project.getContents().add(cat);
            project.getContents().add(t1);
            project.getContents().add(t2);
           
View Full Code Here

            e2.setType("Actor");
           
            rule.getElements().add(e1);
            rule.getElements().add(e2);
           
            LinkType l1 = LinkModelFactory.eINSTANCE.createLinkType();
            accessLayer.addElement(project, l1);
            l1.setName("Test");
           
            ActionDefinition a1 = RuleModelFactory.eINSTANCE.createActionDefinition();
            accessLayer.addElement(project, a1);
            a1.setSourceElement("e1");
            a1.setTargetElement("e2");
View Full Code Here

TOP

Related Classes of org.emftrace.metamodel.LinkModel.LinkType

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.