Examples of FileResourceStore


Examples of org.apache.commons.jci.stores.FileResourceStore

                maxwarns = Integer.parseInt(option.getValue());
            }
        }

        final ResourceReader reader = new FileResourceReader(sourcepath);
        final ResourceStore store = new FileResourceStore(targetpath);
       
        final int maxErrors = maxerrs;
        final int maxWarnings = maxwarns;
        compiler.setCompilationProblemHandler(new CompilationProblemHandler() {
            int errors = 0;
View Full Code Here

Examples of org.apache.commons.jci.stores.FileResourceStore

                    + ctxt.getServletClassName()).replace('.', '/') + ".java";
        String[] resources = new String[] {targetResource};

        JavaCompiler javaCompiler = (new JavaCompilerFactory()).createCompiler(options.getCompiler().substring(4));
        FileResourceReader reader = new FileResourceReader(ctxt.getOptions().getScratchDir());
        FileResourceStore store = new FileResourceStore(ctxt.getOptions().getScratchDir());
        JavaCompilerSettings settings = javaCompiler.createDefaultSettings();
        if (settings == null) {
            settings = new JavaCompilerSettings();
        }
        settings.setDeprecations(false);
View Full Code Here

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

Examples of org.eclipse.sapphire.modeling.FileResourceStore

            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

Examples of org.eclipse.sapphire.modeling.FileResourceStore

                {
                    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

Examples of org.eclipse.sapphire.modeling.FileResourceStore

    {
      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

Examples of org.eclipse.sapphire.modeling.FileResourceStore

            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
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.