Package org.eclipse.php.internal.ui.editor.input

Examples of org.eclipse.php.internal.ui.editor.input.NonExistingPHPFileEditorInput


    highlightingPositionMap = new HashMap<String, Position[]>();
    IPath stateLocation = PHPUiPlugin.getDefault().getStateLocation();
    IPath path = stateLocation.append("/_" + "PHPSyntax"); //$NON-NLS-1$ //$NON-NLS-2$
    IFileStore fileStore = EFS.getLocalFileSystem().getStore(path);

    NonExistingPHPFileEditorInput input = new NonExistingPHPFileEditorInput(
        fileStore, "PHPSyntax"); //$NON-NLS-1$

    File realFile = ((NonExistingPHPFileEditorInput) input).getPath(input)
        .toFile();
View Full Code Here


  protected static String getNewConfigurationName(String fileName) {
    String configurationName = PHPDebugUIMessages.PHPExeLaunchShortcut_0;
    try {
      IPath path = Path.fromOSString(fileName);

      NonExistingPHPFileEditorInput editorInput = NonExistingPHPFileEditorInput
          .findEditorInput(path);
      if (editorInput != null) {
        path = new Path(editorInput.getName());
      }

      String fileExtention = path.getFileExtension();
      String lastSegment = path.lastSegment();
      if (lastSegment != null) {
View Full Code Here

    }
    return false;
  }

  public ISourceModule findSourceModuleByLocalPath(final IPath path) {
    NonExistingPHPFileEditorInput nonExistingEditorInput = NonExistingPHPFileEditorInput
        .findEditorInput(path);
    if (nonExistingEditorInput != null) {
      IWorkbenchPage activePage = PHPUiPlugin.getActivePage();
      if (activePage != null) {
        IEditorPart editor = activePage
View Full Code Here

    IPath stateLocation = PHPUiPlugin.getDefault().getStateLocation();
    IPath path = stateLocation.append("/_" + new Object().hashCode()); //$NON-NLS-1$
    IFileStore fileStore = EFS.getLocalFileSystem().getStore(path);

    NonExistingPHPFileEditorInput input = new NonExistingPHPFileEditorInput(
        fileStore, UNTITLED_PHP_DOC_PREFIX);

    File realFile = ((NonExistingPHPFileEditorInput) input).getPath(input)
        .toFile();
    realFile.deleteOnExit();
View Full Code Here

      if (location == null) {
        return null;
      }
      IPath path = Path.fromPortableString(location);

      NonExistingPHPFileEditorInput nonExistingEditorInput = NonExistingPHPFileEditorInput
          .findEditorInput(path);
      if (nonExistingEditorInput != null) {
        return nonExistingEditorInput;
      }
View Full Code Here

        } else {
          path = EnvironmentPathUtils.getLocalPath(path);
        }


        NonExistingPHPFileEditorInput nonExistingEditorInput = NonExistingPHPFileEditorInput
            .findEditorInput(path);
        if (nonExistingEditorInput != null) {
          fileName = nonExistingEditorInput.getName();
        } else {
          if (EnvironmentPathUtils.isFull(path)) {
            fileName = EnvironmentPathUtils
                .getLocalPathString(path);
          } else {
View Full Code Here

    return label + PHPDebugUIMessages.MPresentation_PHP_APP_1;
  }

  private String resolveUntitledEditorName(String location) {
    try {
      NonExistingPHPFileEditorInput nonExistingEditorInput = NonExistingPHPFileEditorInput
          .findEditorInput(new Path(location));
      if (nonExistingEditorInput != null) {
        location = nonExistingEditorInput.getName();
      }
    } catch (Exception e) {
    }
    return location;
  }
View Full Code Here

    if (element instanceof IStorage) {
      return new ExternalStorageEditorInput((IStorage) element);
    }
    if (element instanceof IFileStore) {
      IFileStore fileStore = (IFileStore) element;
      NonExistingPHPFileEditorInput nonExistingEditorInput = NonExistingPHPFileEditorInput
          .findEditorInput(new Path(fileStore.toURI().getPath()));
      if (nonExistingEditorInput != null) {
        return nonExistingEditorInput;
      }
View Full Code Here

        highlightingPositionMap = new HashMap<String, Position[]>();
        IPath stateLocation = TwigUICorePlugin.getDefault().getStateLocation();
        IPath path = stateLocation.append("/_" + "TwigSyntax"); //$NON-NLS-1$
        IFileStore fileStore = EFS.getLocalFileSystem().getStore(path);

        NonExistingPHPFileEditorInput input = new NonExistingPHPFileEditorInput(
                fileStore, "TwigSyntax");

        File realFile = ((NonExistingPHPFileEditorInput) input).getPath(input)
                .toFile();
View Full Code Here

TOP

Related Classes of org.eclipse.php.internal.ui.editor.input.NonExistingPHPFileEditorInput

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.