Package org.eclipse.ui.editors.text

Examples of org.eclipse.ui.editors.text.TextFileDocumentProvider$SingleElementIterator


  /** The outline page */
  private JsonContentOutlinePage fOutlinePage;
 
  public JsonTextEditor() {
    super();
    setDocumentProvider(new TextFileDocumentProvider());
  }
View Full Code Here


  public static final String WOD_FILE_CONTENT_TYPE_STRING = "org.objectstyle.wolips.wodclipse.wod";

  public static final IContentType WOD_FILE_CONTENT_TYPE = Platform.getContentTypeManager().getContentType(WodFileDocumentProvider.WOD_FILE_CONTENT_TYPE_STRING); //$NON-NLS-1$

  public WodFileDocumentProvider() {
    IDocumentProvider provider = new TextFileDocumentProvider();
    provider = new ForwardingDocumentProvider(IWodFilePartitions.WOD_FILE_PARTITIONING, new WodFileDocumentSetupParticipant(), provider);
    setParentDocumentProvider(provider);
  }
View Full Code Here

    IDocumentProvider htmlProvider = null;
    if (htmlDocument == null) {
      IFile htmlFile = cache.getHtmlEntry().getFile();
      if (htmlFile != null) {
        htmlInput = new FileEditorInput(cache.getHtmlEntry().getFile());
        htmlProvider = new TextFileDocumentProvider();
        htmlProvider.connect(htmlInput);
        htmlDocument = htmlProvider.getDocument(htmlInput);
        cache.getHtmlEntry().setDocument(htmlDocument);
      }
    }
View Full Code Here

    protected IDocument createDocument(Object element) throws CoreException {
        IDocument document = super.createDocument(element);
        String filename = getFileName(element);
        if (document == null) {
            textFileDocumentProvider = new TextFileDocumentProvider();
            textFileDocumentProvider.connect(element);
            document = textFileDocumentProvider.getDocument(element);
        }
        initializeDocument(document, filename);
        return document;
View Full Code Here

    private IPropertyChangeListener fPropertyListener;

    /** Annotation model listener added to all created CU annotation models */

    public ApexDocumentProvider() {
        IDocumentProvider provider = new TextFileDocumentProvider();
        provider =
                new ForwardingDocumentProvider(IJavaPartitions.JAVA_PARTITIONING, new JavaDocumentSetupParticipant(),
                        provider);
        setParentDocumentProvider(provider);

View Full Code Here

          // handle untitled document debugging
          // first save the file to the disk and after that set the
          // document as dirty
          if (editor instanceof ITextEditor) {
            ITextEditor textEditor = (ITextEditor) editor;
            final TextFileDocumentProvider documentProvider = (TextFileDocumentProvider) textEditor
                .getDocumentProvider();
            final IDocument document = documentProvider
                .getDocument(input);
            documentProvider.saveDocument(null, input, document,
                true);
            // set document dirty
            document.replace(0, 0, ""); //$NON-NLS-1$
          }
          path = ((NonExistingPHPFileEditorInput) input)
View Full Code Here

TOP

Related Classes of org.eclipse.ui.editors.text.TextFileDocumentProvider$SingleElementIterator

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.