Package org.eclipse.ui.texteditor

Examples of org.eclipse.ui.texteditor.IDocumentProvider.disconnect()


                    checksum.getHash()));

                return true;
            }
        } finally {
            provider.disconnect(input);
        }
        return false;
    }

    /**
 
View Full Code Here


            return;
        }

        FileEditorInput input = new FileEditorInput(file);
        IDocumentProvider documentProvider = getDocumentProvider(input);
        documentProvider.disconnect(input);

        connectedFiles.remove(file);
    }

    public void addSharedEditorListener(ISharedEditorListener editorListener) {
View Full Code Here

            }
            IAnnotationModel model = provider.getAnnotationModel(input);
            contributionAnnotationManager.insertAnnotation(model, offset,
                text.length(), source);
        } finally {
            provider.disconnect(input);
        }
    }

    /**
     * Save file denoted by the given project relative path if necessary
View Full Code Here

            log.trace("EditorManager.saveText File " + file.getName()
                + " will be reseted");

        } finally {
            provider.disconnect(input);
        }
    }

    /**
     * Sends an activityDataObject for clients to save the editor of given path.
View Full Code Here

                  .getLineInformation(lineNumber - 1);
              textEditor.selectAndReveal(line.getOffset(), line
                  .getLength());
            } catch (BadLocationException e) {
            }
            provider.disconnect(editorInput);
          }
        }
      } catch (JavaModelException e) {
        Activator.getDefault().log(e);
      } catch (CoreException e) {
View Full Code Here

        runnable.run(progressMonitor);
      }
      finally {
        if (wodProvider != null) {
          wodProvider.saveDocument(progressMonitor, wodInput, wodDocument, true);
          wodProvider.disconnect(wodInput);
          cache.getWodEntry().setDocument(null);
        }
      }
    }
    finally {
View Full Code Here

            IRegion line = document.getLineInformation(lineNumber);
            textEditor.selectAndReveal(line.getOffset(), line.getLength());
          } catch (BadLocationException e) {

          }
          provider.disconnect(input);
        }
        return;
      }
      // did not find source
      MessageDialog.openInformation(DLTKDebugUIPlugin.getActiveWorkbenchShell(),
View Full Code Here

        textEditor.selectAndReveal(lineRegion.getOffset(), lineRegion.getLength());
      }
      catch (BadLocationException e) {
        // ignore if specified line is not available in document
      }
      provider.disconnect(input);
    }
  }

  public static IEditorPart openInEditor(IResourceModelElement element) {
    return openInEditor(element, true);
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.