Package org.eclipse.sapphire.modeling

Examples of org.eclipse.sapphire.modeling.FileResourceStore


        this( new ByteArrayResourceStore( contents ) );
    }
   
    public XmlResourceStore( final File file ) throws ResourceStoreException
    {
        this( new FileResourceStore( file ) );
    }
View Full Code Here


            file = new File( file, CreateNormalizedXmlSchemaOp.class.getSimpleName() );
            file = new File( file, digest );
           
            try
            {
                final FileResourceStore fileResourceStore = new FileResourceStore( file );
                final XmlResourceStore xmlResourceStore = new XmlResourceStore( fileResourceStore );
                final XmlResource xmlResource = new RootXmlResource( xmlResourceStore );
               
                return PersistedState.TYPE.instantiate( xmlResource );
            }
View Full Code Here

                {
                    includedSchemaResourceStore = new UrlResourceStore( new URL( includedSchemaLocation ) );
                }
                else
                {
                    includedSchemaResourceStore = new FileResourceStore( new File( includedSchemaLocation ) );
                }
           
                final XmlResourceStore xmlResourceStore = new XmlResourceStore( includedSchemaResourceStore );
                final XmlElement includedSchemaRoot = new XmlElement( xmlResourceStore, xmlResourceStore.getDomDocument().getDocumentElement() );
   
View Full Code Here

    {
      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)
    {
View Full Code Here

            if (localFile == null)
              localFile = store.toLocalFile(EFS.CACHE, null);
            if (localFile == null)
              throw new IllegalArgumentException();
            File layoutFile = new File(localFile.getParentFile(), fileName);
            resourceStore = new XmlResourceStore( new FileResourceStore(layoutFile));
          }
          else
          {
              throw new IllegalStateException();
          }
View Full Code Here

TOP

Related Classes of org.eclipse.sapphire.modeling.FileResourceStore

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.