Package com.subgraph.vega.api.paths

Examples of com.subgraph.vega.api.paths.IPathFinder


    }
    return true;
  }
 
  private URL getLockLocationURL() {
    final IPathFinder pathFinder = Activator.getDefault().getPathFinder();
    final File path = pathFinder.getWorkspaceDirectory();
    try {
      return new URL("file:"+ path.getPath());
    } catch (MalformedURLException e) {
      return null;
    }
View Full Code Here


    else
      renderer = new AlertRenderer(loader);
  }
 
  private TemplateLoader createTemplateLoader() {
    final IPathFinder pathFinder = Activator.getDefault().getPathFinder();
    if(pathFinder == null)
      throw new IllegalStateException("Cannot find templates to render because path finder service is not available");
    final File templateDirectory = new File(pathFinder.getDataDirectory(), "templates");
    try {
      return new FileTemplateLoader(templateDirectory);
    } catch (IOException e) {
      logger.log(Level.WARNING, "Failed to open template directory: "+ e.getMessage());
      return null;
View Full Code Here

TOP

Related Classes of com.subgraph.vega.api.paths.IPathFinder

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.