Examples of IPathEditorInput


Examples of org.eclipse.ui.IPathEditorInput

      if (editor != null) {
        ((HudsonBrowser) editor).openUrl(url, name);
      }

      if (editor == null) {
        getSite().getPage().openEditor(new IPathEditorInput() {
          public IPath getPath() {
            return new Path(url);
          }

          public boolean exists() {
View Full Code Here

Examples of org.eclipse.ui.IPathEditorInput

      if (editor != null) {
        ((HudsonBrowser) editor).openUrl(url, name);
      }

      if (editor == null) {
        getSite().getPage().openEditor(new IPathEditorInput() {
          public IPath getPath() {
            return new Path(url);
          }

          public boolean exists() {
View Full Code Here

Examples of org.eclipse.ui.IPathEditorInput

      if (editor != null) {
        ((HudsonBrowser) editor).openUrl(url, name);
      }

      if (editor == null) {
        getSite().getPage().openEditor(new IPathEditorInput() {
          public IPath getPath() {
            return new Path(url);
          }

          public boolean exists() {
View Full Code Here

Examples of org.eclipse.ui.IPathEditorInput

      if (editor != null) {
        ((HudsonBrowser) editor).openUrl(url, name);
      }

      if (editor == null) {
        getSite().getPage().openEditor(new IPathEditorInput() {
          public IPath getPath() {
            return new Path(url);
          }

          public boolean exists() {
View Full Code Here

Examples of org.eclipse.ui.IPathEditorInput

      if (editor != null) {
        ((HudsonBrowser) editor).openUrl(url, name);
      }

      if (editor == null) {
        getSite().getPage().openEditor(new IPathEditorInput() {
          public IPath getPath() {
            return new Path(url);
          }

          public boolean exists() {
View Full Code Here

Examples of org.eclipse.ui.IPathEditorInput

    {
        File file = null;
        String elementClassName = element.getClass().getName();
        if ( element instanceof IPathEditorInput )
        {
            IPathEditorInput pei = ( IPathEditorInput ) element;
            IPath path = pei.getPath();
            file = path.toFile();
        }
        else if ( elementClassName.equals( "org.eclipse.ui.internal.editors.text.JavaFileEditorInput" )
            || elementClassName.equals( "org.eclipse.ui.ide.FileStoreEditorInput" ) )
        // The class 'org.eclipse.ui.internal.editors.text.JavaFileEditorInput'
View Full Code Here

Examples of org.eclipse.ui.IPathEditorInput

    public boolean isModifiable( Object element )
    {
        String elementClassName = element.getClass().getName();
        if ( element instanceof IPathEditorInput )
        {
            IPathEditorInput pei = ( IPathEditorInput ) element;
            File file = pei.getPath().toFile();
            return file.canWrite() || !file.exists(); // Allow to edit new files
        }
        else if ( elementClassName.equals( "org.eclipse.ui.internal.editors.text.JavaFileEditorInput" )
            || elementClassName.equals( "org.eclipse.ui.ide.FileStoreEditorInput" ) )
        // The class 'org.eclipse.ui.internal.editors.text.JavaFileEditorInput'
View Full Code Here

Examples of org.eclipse.ui.IPathEditorInput

     */
    public void init( IEditorSite site, IEditorInput input ) throws PartInitException
    {
        if ( input instanceof IPathEditorInput )
        {
            IPathEditorInput pei = ( IPathEditorInput ) input;
            IPath path = pei.getPath();
            File javaIoFile = path.toFile();
            long fileLength = javaIoFile.length();
            if ( fileLength > ( 1 * 1024 * 1024 ) )
            {
                MessageDialog.openError( site.getShell(), "LDIF file is too big",
View Full Code Here

Examples of org.eclipse.ui.IPathEditorInput

            }
            return new File(resourceOSString);
        }

        if (o instanceof IPathEditorInput) {
            IPathEditorInput input = (IPathEditorInput) o;
            return new File(input.getPath().toOSString());
        }

        try {
            if (o instanceof IURIEditorInput) {
                IURIEditorInput iuriEditorInput = (IURIEditorInput) o;
View Full Code Here

Examples of org.eclipse.ui.IPathEditorInput

                    if (editor != null) {
                        if (editor instanceof PyEdit) {
                            PyEdit pyEdit = (PyEdit) editor;
                            IEditorInput editorInput = pyEdit.getEditorInput();
                            if (editorInput instanceof IPathEditorInput) {
                                IPathEditorInput pathEditorInput = (IPathEditorInput) editorInput;
                                IPath localPath = pathEditorInput.getPath();
                                if (localPath != null) {
                                    String considerName = localPath.segment(localPath.segmentCount() - 1);
                                    if (matchName.equals(considerName)) {
                                        workbenchAndReturn.o2 = editorInput;
                                        return;
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.