Examples of IStorageEditorInput


Examples of org.eclipse.ui.IStorageEditorInput

          throw new IllegalArgumentException();
        uniquePath = localFile.getCanonicalPath();
      }
      else if (editorInput instanceof IStorageEditorInput)
      {
        IStorageEditorInput storageEditorInput = (IStorageEditorInput) editorInput;
        IPath storagePath = storageEditorInput.getStorage().getFullPath();
        if (storagePath != null)
        {
          uniquePath = storagePath.toPortableString();
        }       
      }
View Full Code Here

Examples of org.eclipse.ui.IStorageEditorInput

    IFile file = (IFile) input.getAdapter(IFile.class);
    if (file == null) {
      IPath path = null;
      try {
        if (input instanceof IStorageEditorInput) {
          IStorageEditorInput editorInput = (IStorageEditorInput) input;
          IStorage storage = editorInput.getStorage();
          path = storage.getFullPath();
        } else if (input instanceof IURIEditorInput) {
          path = URIUtil.toPath(((IURIEditorInput) input).getURI());
        } else if (input instanceof NonExistingPHPFileEditorInput) {
          // handle untitled document debugging
View Full Code Here

Examples of org.eclipse.ui.IStorageEditorInput

  protected IAnnotationModel createAnnotationModel(Object element)
      throws CoreException {
    IAnnotationModel model = null;
    if (element instanceof IStorageEditorInput) {
      IStorageEditorInput input = (IStorageEditorInput) element;
      String contentType = (getModel(input) != null ? getModel(input)
          .getContentTypeIdentifier() : null);
      String ext = BreakpointRulerAction
          .getFileExtension((IEditorInput) element);
      IResource res = BreakpointProviderBuilder.getInstance()
          .getResource(input, contentType, ext);
      String id = input.getName();
      if (input.getStorage() != null
          && input.getStorage().getFullPath() != null) {
        id = input.getStorage().getFullPath().toString();
      }
      // we can only create a resource marker annotationmodel off of a
      // valid resource
      if (res != null)
        model = new PHPResourceMarkerAnnotationModel(res, id);
View Full Code Here

Examples of org.eclipse.ui.IStorageEditorInput

        return Paths.get(uriEditorInput.getURI());
      } catch (Exception e) {
      }
    }
    if(editorInput instanceof IStorageEditorInput) {
      IStorageEditorInput storageEditorInput = (IStorageEditorInput) editorInput;
      try {
        IPath fullPath = storageEditorInput.getStorage().getFullPath();
        if(fullPath != null) {
          return fullPath.toFile().toPath();
        }
      } catch (CoreException ce) {
        LangCore.logStatus(ce);
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.