Package org.eclipse.ui.editors.text

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


    }

    @Override
    protected void initializeEditor() {
        colorManager = new ColorManager();
        setDocumentProvider(new TextFileDocumentProvider());

        final IPreferenceStore store = getErlangEditorPreferenceStore();
        setPreferenceStore(store);

        final ErlangSourceViewerConfiguration cfg = new ErlangScratchPadConfiguration(
View Full Code Here


    protected void initializeEditor() {
        colorManager = new ColorManager();
        if (SystemConfiguration.hasFeatureEnabled(Features.NEW_MODEL)) {
            setDocumentProvider(new ErlFileDocumentProvider());
        } else {
            setDocumentProvider(new TextFileDocumentProvider());
        }

        final IPreferenceStore store = getErlangEditorPreferenceStore();
        setPreferenceStore(store);
View Full Code Here

    }
  }

  public IDocument getImplementationDocument() {
    if (this.implementationDocument == null){
      IDocumentProvider provider = new TextFileDocumentProvider();
        try
        {
          IFile implFile = getFile();
            provider.connect(implFile);
            this.implementationDocument = provider.getDocument(implFile);
        }
        catch (CoreException e)
        {
        }
    }
View Full Code Here

          return null;
        model = new ToolServiceObject();
        model.setFile(modelFile);
        model.setPlanName(planName);
        model.setParent(model.getPlan());
        IDocumentProvider provider = new TextFileDocumentProvider();
        provider.connect(modelFile);
        model.document = provider.getDocument(modelFile);
        model.parse(model.document);
        addToCache(model.getProject(), model);
        model.setDirty(false);

      } catch (CoreException e) {
View Full Code Here

          return null;
       
        model = new ToolClass();
        model.setFile(modelFile);
        model.setPlanName(planName);
        model.provider = new TextFileDocumentProvider();
        model.provider.connect(modelFile);
        model.document = model.provider.getDocument(modelFile);
       
        model.parse(model.document);
        getTypeCache(model.getProject()).put(keyString, model);
View Full Code Here

       
        model = new ToolCursor();
        model.setFile(modelFile);
        model.setPlanName(planName);
        model.setToolName(cursorName);
        model.provider = new TextFileDocumentProvider();
        model.provider.connect(modelFile);
        model.document = model.provider.getDocument(modelFile);
       
        model.parse(model.document);
        getCursorCache(project).put(keyString, model);
View Full Code Here

  protected static ToolPlan createPlanFromFile(IFile modelFile){
    ToolPlan prx = null;
    try {
      prx = new ToolPlan();
      prx.setFile(modelFile);
      prx.provider = new TextFileDocumentProvider();
      prx.provider.connect(modelFile);
      IDocument document = prx.provider.getDocument(modelFile);   
      prx.document = document;
      String source = document.get();
      boolean isPEX = modelFile.getFileExtension().equalsIgnoreCase("pex");
View Full Code Here

    }
  }

  public IDocument getImplementationDocument() {
    if (this.implementationDocument == null){
      IDocumentProvider provider = new TextFileDocumentProvider();
        try
        {
          IFile implFile = getFile();
            provider.connect(implFile);
            this.implementationDocument = provider.getDocument(implFile);
        }
        catch (CoreException e)
        {
        }
    }
View Full Code Here

        if (describer.describe(modelFile.getContents(), null) != IContentDescriber.VALID)
          return null;
        ToolInterface inter = new ToolInterface();
        inter.setFile(modelFile);
        inter.setPlanName(plan);
        IDocumentProvider provider = new TextFileDocumentProvider();
        provider.connect(modelFile);
        IDocument document = provider.getDocument(modelFile);
        inter.parse(document);
        getTypeCache(project).put((plan + "." + interfaceName).toUpperCase(), model);
        model = inter;
      } catch (CoreException e) {
        ToolPlugin.log(IStatus.ERROR,"Error updating Interface Model.", e);
View Full Code Here

          return null;
        model = new ToolServiceObject();
        model.setFile(modelFile);
        model.setPlanName(planName);
        model.setParent(model.getPlan());
        IDocumentProvider provider = new TextFileDocumentProvider();
        provider.connect(modelFile);
        model.document = provider.getDocument(modelFile);
        model.parse(model.document);
        addToCache(model.getProject(), model);
        model.setDirty(false);

      } catch (CoreException e) {
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.