Examples of saveDocument()


Examples of com.intellij.openapi.fileEditor.FileDocumentManager.saveDocument()

            }
          }
        }.execute();
        FileDocumentManager docManager = FileDocumentManager.getInstance();
        com.intellij.openapi.editor.Document doc = docManager.getDocument(psiFile.getVirtualFile());
        docManager.saveDocument(doc);
        PsiDocumentManager.getInstance(project).commitDocument(doc);
        /*
        MavenId mavenid = new MavenId(result.getGroupId(), result.getArtifactId(), result.getVersion());
        Module module = getModuleForFile(problemDescriptor.getPsiElement().getContainingFile());
        MavenModel model = MavenUtil.getMavenModel(project, problemDescriptor.getPsiElement().getContainingFile().getVirtualFile());
View Full Code Here

Examples of org.apache.uima.caseditor.core.model.DocumentElement.saveDocument()

      if (nlpElement instanceof DocumentElement) {
        DocumentElement documentElement = (DocumentElement) nlpElement;

        try {
          documentElement.saveDocument();
        } catch (CoreException e) {
          fireElementStateChangeFailed(element);
          throw e;
        }
      } else {
View Full Code Here

Examples of org.apache.uima.caseditor.core.model.DocumentElement.saveDocument()

      if (nlpElement instanceof DocumentElement) {
        DocumentElement documentElement = (DocumentElement) nlpElement;

        try {
          documentElement.saveDocument();
        } catch (CoreException e) {
          fireElementStateChangeFailed(element);
          throw e;
        }
      } else if (CasEditorPlugin.getNlpModel().
View Full Code Here

Examples of org.eclipse.ui.editors.text.TextFileDocumentProvider.saveDocument()

            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

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

            boolean success = false;
            try
            {
                provider.aboutToChange( newInput );
                provider.saveDocument( progressMonitor, newInput, provider.getDocument( input ), true );
                success = true;
            }
            catch ( CoreException x )
            {
                final IStatus status = x.getStatus();
View Full Code Here

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

      boolean success = false;
      try {

        provider.aboutToChange(newInput);
        provider.saveDocument(progressMonitor, newInput, provider.getDocument(input), true);
        success = true;

      }
      catch(CoreException x) {
        final IStatus status = x.getStatus();
View Full Code Here

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

    if (element instanceof IEditorInput) {
      provider = DocumentProviderRegistry.getDefault().getDocumentProvider((IEditorInput) element);
    }
    if (provider == null)
      provider = new FileDocumentProvider();
    provider.saveDocument(monitor, element, document, overwrite);
  }
 
  /* (non-Javadoc)
   * @see org.eclipse.ui.editors.text.StorageDocumentProvider#getPersistedEncoding(java.lang.Object)
   */
 
View Full Code Here

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

    if (element instanceof IEditorInput) {
      provider = DocumentProviderRegistry.getDefault().getDocumentProvider((IEditorInput) element);
    }
    if (provider == null)
      provider = new FileDocumentProvider();
    provider.saveDocument(monitor, element, document, overwrite);
  }
 
  /* (non-Javadoc)
   * @see org.eclipse.ui.editors.text.StorageDocumentProvider#getPersistedEncoding(java.lang.Object)
   */
 
View Full Code Here

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

            boolean success = false;
            try
            {
                provider.aboutToChange( newInput );
                provider.saveDocument( progressMonitor, newInput, provider.getDocument( input ), true );
                success = true;
            }
            catch ( CoreException x )
            {
                final IStatus status = x.getStatus();
View Full Code Here

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

            boolean success = false;
            try
            {
                provider.aboutToChange( newInput );
                provider.saveDocument( progressMonitor, newInput, provider.getDocument( input ), true );
                success = true;
            }
            catch ( CoreException x )
            {
                final IStatus status = x.getStatus();
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.