Examples of RootXmlResource


Examples of org.eclipse.sapphire.modeling.xml.RootXmlResource

    }

    @Override
    protected Element createModel()
    {
        return System.TYPE.instantiate( new RootXmlResource( new XmlEditorResourceStore( this, this.sourceEditorPage ) ) );
    }
View Full Code Here

Examples of org.eclipse.sapphire.modeling.xml.RootXmlResource

    }

    @Override
    protected Element createModel()
    {
        return ArchitectureSketch.TYPE.instantiate( new RootXmlResource( new XmlEditorResourceStore( this, this.pageSource ) ) );
    }
View Full Code Here

Examples of org.eclipse.sapphire.modeling.xml.RootXmlResource

      String fileName = computeLayoutFileName(this.editorInput);
      if (fileName != null)
      {
        File layoutFile = getLayoutPersistenceFile(fileName);
        final XmlResourceStore resourceStore = new XmlResourceStore( new FileResourceStore(layoutFile));
        layoutModel = StandardDiagramLayout.TYPE.instantiate(new RootXmlResource( resourceStore ));     
      }
    }
    catch (Exception e)
    {
        Sapphire.service( LoggingService.class ).log( e );
View Full Code Here

Examples of org.eclipse.sapphire.modeling.xml.RootXmlResource

          else
          {
              throw new IllegalStateException();
          }
       
        layoutModel = StandardDiagramLayout.TYPE.instantiate(new RootXmlResource( resourceStore ));
      }
    }
    catch (Exception e)
    {
        Sapphire.service( LoggingService.class ).log( e );
View Full Code Here

Examples of org.eclipse.sapphire.modeling.xml.RootXmlResource

      {
        IFile layoutFile = getLayoutPersistenceFile(fileName);
        if (layoutFile != null)
        {
          final XmlResourceStore resourceStore = new XmlResourceStore( new WorkspaceFileResourceStore(layoutFile));
          layoutModel = StandardDiagramLayout.TYPE.instantiate(new RootXmlResource( resourceStore ));
        }
      }
    }
    catch (Exception e)
    {
View Full Code Here

Examples of org.eclipse.sapphire.modeling.xml.RootXmlResource

   
    public void testValueProperties1() throws Exception
    {
        final ByteArrayResourceStore resourceStore = new ByteArrayResourceStore();
        final XmlResourceStore xmlResourceStore = new XmlResourceStore( resourceStore );
        final XmlBindingTestModel model = XmlBindingTestModel.TYPE.instantiate( new RootXmlResource( xmlResourceStore ) );
       
        testValueProperties( resourceStore, model, loadResource( XmlBindingTests.class.getSimpleName() + ".testValueProperties1.txt" ) );
    }
View Full Code Here

Examples of org.eclipse.sapphire.modeling.xml.RootXmlResource

   
    public void testValueProperties2() throws Exception
    {
        final ByteArrayResourceStore resourceStore = new ByteArrayResourceStore();
        final XmlResourceStore xmlResourceStore = new XmlResourceStore( resourceStore );
        final XmlBindingTestModelAltB model = XmlBindingTestModelAltB.TYPE.instantiate( new RootXmlResource( xmlResourceStore ) );
       
        testValueProperties( resourceStore, model, loadResource( XmlBindingTests.class.getSimpleName() + ".testValueProperties2.txt" ) );
    }
View Full Code Here

Examples of org.eclipse.sapphire.modeling.xml.RootXmlResource

   
    public void testValueProperties3() throws Exception
    {
        final ByteArrayResourceStore resourceStore = new ByteArrayResourceStore();
        final XmlResourceStore xmlResourceStore = new XmlResourceStore( resourceStore );
        final XmlBindingTestModelAltC model = XmlBindingTestModelAltC.TYPE.instantiate( new RootXmlResource( xmlResourceStore ) );
       
        testValueProperties( resourceStore, model, loadResource( XmlBindingTests.class.getSimpleName() + ".testValueProperties3.txt" ) );
    }
View Full Code Here

Examples of org.eclipse.sapphire.modeling.xml.RootXmlResource

    @Test
   
    public void testInsertOrder() throws Exception
    {
        final ByteArrayResourceStore resourceStore = new ByteArrayResourceStore();
        final TestXmlXsd0002ModelRoot model = TestXmlXsd0002ModelRoot.TYPE.instantiate( new RootXmlResource( new XmlResourceStore( resourceStore ) ) );
       
        model.setCcc( "ccc" );
        model.setAaa( "aaa" );
       
        TestXmlXsd0002Element2b element2b = model.getElement2();
View Full Code Here

Examples of org.eclipse.sapphire.modeling.xml.RootXmlResource

    @Test
   
    public void testInsertOrder() throws Exception
    {
        final ByteArrayResourceStore resourceStore = new ByteArrayResourceStore();
        final TestXmlXsd0003Element model = TestXmlXsd0003Element.TYPE.instantiate( new RootXmlResource( new XmlResourceStore( resourceStore ) ) );
       
        model.setCcc( "ccc" );
        model.setBbb( "bbb" );
        TestXmlXsd0003Circle circle=  model.getCircle();
        circle.setCircle3( "333");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.