Package org.eclipse.core.runtime

Examples of org.eclipse.core.runtime.Path


   
    int result = dialog.open();
    if (result == ListDialog.OK) {
      IFile selectedScript = (IFile) dialog.getResult()[0];
      IPath selectedScriptPath = selectedScript.getLocation();
      IPath tmlScriptDirectoryPath = new Path(_model.getTMLScriptDirectory().getAbsolutePath());     
      _txtInitScript.setText(computePathToScriptFrom(tmlScriptDirectoryPath,selectedScriptPath));
         
    }   
  }
View Full Code Here


   
    int result = dialog.open();
    if (result == ListDialog.OK) {
        IFile selectedScript = (IFile) dialog.getResult()[0];
          IPath selectedScriptPath = selectedScript.getLocation();
          IPath tmlScriptDirectoryPath = new Path(_model.getTMLScriptDirectory().getAbsolutePath());         
          _txtConnectionScript.setText(computePathToScriptFrom(tmlScriptDirectoryPath,selectedScriptPath));
   
  }
View Full Code Here

   
    int result = dialog.open();
    if (result == ListDialog.OK) {
        IFile selectedScript = (IFile) dialog.getResult()[0];
          IPath selectedScriptPath = selectedScript.getLocation();
          IPath tmlScriptDirectoryPath = new Path(_model.getTMLScriptDirectory().getAbsolutePath());         
          _txtDisconnectionScript.setText(computePathToScriptFrom(tmlScriptDirectoryPath,selectedScriptPath));
   
  }
View Full Code Here

  public void logWarning(String message) {
    logWarning(message, null);
  }

  public InputStream getResourceAsStream(String relativePath) throws IOException {
    return FileLocator.toFileURL(FileLocator.find(Platform.getBundle(PLUGIN_ID), new Path(relativePath), null)).openStream();
  }
View Full Code Here

      }
    }   
  }

    public File getResourceAsFile(String resourcePath) throws IOException {
        URL url = FileLocator.find(getBundle(), new Path(resourcePath), null);
        if (url != null) {
            return new File (FileLocator.toFileURL(url).getPath());
        } else {
            return null;
        }
View Full Code Here

        ResourceIndexManager rsm = Plugin.getDefault().getResourceIndexManager();
        if (rsm != null) {
          // the path to the file which we are currently editing
          IPath pathOfEditedFile = activeFile.getParent().getProjectRelativePath();
          // the path of the medium of the current file
          IPath mediumPath = designHelper.getTmlRoot().getFolder(new Path(medium)).getProjectRelativePath();
          pathOfEditedFile = pathOfEditedFile.removeFirstSegments(mediumPath.segmentCount());
                         
          Iterator<String> scriptPaths = rsm.getScriptPaths(designRoot, type).iterator();
         
          while (scriptPaths.hasNext()) {
            String scriptPath = scriptPaths.next();
           
            // scriptfile path
            IPath scriptFile = new Path(scriptPath).removeFileExtension();
   
            // path of the current file
            IPath currentFilePath = scriptFile.removeLastSegments(1);
   
            // removing the path of the selected medium
View Full Code Here

     
      final IFile fSyncInfo = ((IFileEditorInput)getEditorInput()).getFile();
      final IFile fCsConfig = new WGADesignStructureHelper(fSyncInfo).getCsConfig();
      IFile schema = null;
      if (fSyncInfo != null && fSyncInfo.exists()) {
          schema = fSyncInfo.getParent().getFolder(new Path("files").append("system")).getFile("schema.xml");
      }
      final IFile fSchema = schema;
      event.getDelta().accept(new IResourceDeltaVisitor() {

        public boolean visit(IResourceDelta delta) throws CoreException {
View Full Code Here

        } else {
          return WGADesignerPlugin.getDefault().getImageRegistry().get(WGADesignerPlugin.IMAGE_WGA_DESIGN);
        }
      } else if (container.isAccessible()) {
        // we might have to resolve dirlinks
        IFile dirlink = container.getFile(new Path("dirlink.xml"));
        if (dirlink.exists()) {
          File target = WGUtils.resolveDirLink(dirlink.getParent().getLocation().toFile());
          if (WGADesignStructureHelper.isDesignFolder(target)) {
            IContainer targets[] = ResourcesPlugin.getWorkspace().getRoot().findContainersForLocation(new Path(target.getAbsolutePath()));
            if (targets != null && targets.length >= 1) {
              WGADesignStructureHelper helper = new WGADesignStructureHelper(targets[0]);
              if (helper.hasPluginConfig()) {
                return WGADesignerPlugin.getDefault().getImageRegistry().get(WGADesignerPlugin.IMAGE_WGA_PLUGIN_LINK);
              } else {
View Full Code Here

    try {
      plugin = this;
     
      // #00000046 - try to init library sets as early as possible
      Bundle bundle = Platform.getBundle(PLUGIN_ID);      
      IPath path = new Path("resources/librarySets");
      URL librarySetURL = FileLocator.find(bundle, path, null);      
      File librarySetsDir = new File(FileLocator.toFileURL(librarySetURL).getPath());
 
      DirectoryLibrarySet j2ee13 = new DirectoryLibrarySet(LIBRARY_SET_J2EE_1_3);
      j2ee13.setName("Partial J2EE 1.3");
View Full Code Here

        settings.mkdir();
      }     
      _wgaRemoteServerStore = new BeanListStore<WGARemoteServer>(settings,STORAGE_KEY_WGA_REMOTESERVERS, WGARemoteServer.class.getClassLoader());

      Bundle bundle = Platform.getBundle(PLUGIN_ID);      
      Path path = new Path("resources/tomcat");
      URL tomcatURL = FileLocator.find(bundle, path, null);      
      File catalinaHome = new File(FileLocator.toFileURL(tomcatURL).getPath());
      TomcatUtils.getInstance().init(catalinaHome, new File(catalinaHome, "conf"));
     
      path = new Path("resources/wga/defaultPlugins");
      URL defaultPluginsURL = FileLocator.find(bundle, path, null);
      _wgaDefaultPluginsDir = new File (FileLocator.toFileURL(defaultPluginsURL).getPath());
     
      _wgaDeploymentManager = new WGADeploymentManager();     
      _wgaDeploymentManager.init(new File(getStateLocation().toFile(), "wgadeployments"));
View Full Code Here

TOP

Related Classes of org.eclipse.core.runtime.Path

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.