Package org.eclipse.debug.core.sourcelookup.containers

Examples of org.eclipse.debug.core.sourcelookup.containers.LocalFileStorage


        if (element instanceof ILineBreakpoint) {
            return new FileEditorInput((IFile) ((ILineBreakpoint) element).getMarker()
                    .getResource());
        }
        if (element instanceof LocalFileStorage) {
            final LocalFileStorage lfs = (LocalFileStorage) element;
            try {
                final IErlElementLocator model = ErlangEngine.getInstance().getModel();
                final IErlModule module = ErlangEngine
                        .getInstance()
                        .getModelFindService()
                        .findModule(model, null, null, lfs.getFullPath().toString(),
                                IErlElementLocator.Scope.ALL_PROJECTS);
                return EditorUtility.getEditorInput(module);
            } catch (final CoreException e) {
                ErlLogger.error(e);
            }
View Full Code Here


      name = name.replace('\\','/');
      if(name.endsWith(".java")) {
        name = name.substring(0, name.length()-".java".length());
      }
      String src = WojServicesHelper.getDefault().getSource(_visibility, _organisation, _moduleName, _revision, name);
      LocalFileStorage fileStorage = new LocalFileStorage(saveToFile(src, name));
      return new Object[]{fileStorage};
    } catch (WojException e) {
      e.printStackTrace();
    }
    return new Object[]{};
View Full Code Here

  @Override
  public IEditorInput getEditorInput(Object element) {
    IEditorInput input = null;
   
    if (element instanceof LocalFileStorage) {
      LocalFileStorage lfs = (LocalFileStorage)element;

      for (CamelDebugRegistryEntry entry : CamelDebugRegistry.getInstance().getEntries().values()) {
        IFile f = (IFile)entry.getEditorInput().getAdapter(IFile.class);
        if (f.getLocation().toFile().getPath().equals(lfs.getFile().getPath())) {
          input = entry.getEditorInput();
          break;
        }
      }
      return input;
View Full Code Here

      // Nothing can be done
    } else if (sourceFile.isDirectory()) {
      final File maybeSourceFile = sourceAbsolutePath.append(searchedPath + "/" + searchedFileName).toFile();
      if (maybeSourceFile.exists()) {
        return new LocalFileStorageEditorInput(
            new LocalFileStorage(maybeSourceFile));
      } else {
        // Nothing, alas
      }
    } else {
      ZipFile zipFile;
View Full Code Here

  private File fFile;
  private LocalFileStorage fStorage;

  public PHPFileSourceContainer(File file) {
    fFile = file;
    fStorage = new LocalFileStorage(fFile);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.debug.core.sourcelookup.containers.LocalFileStorage

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.