congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
CompilationUnitDocumentProvider$5
Code IndexAdd Tabnine to your IDE (free)

How to use
CompilationUnitDocumentProvider$5
in
org.eclipse.jdt.internal.ui.javaeditor

Best Java code snippets using org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitDocumentProvider$5 (Showing top 2 results out of 1,395)

origin: org.eclipse.jdt/org.eclipse.jdt.ui

@Override
public void run() {
  try {
    long stamp= unit.getResource().getModificationStamp();
    listener.saved(unit, changedRegions, getSubProgressMonitor(monitor, 4));
    if (stamp != unit.getResource().getModificationStamp()) {
      String msg= Messages.format(JavaEditorMessages.CompilationUnitDocumentProvider_error_saveParticipantSavedFile, participantName);
      errorStatus.add(new Status(IStatus.ERROR, JavaUI.ID_PLUGIN, IJavaStatusConstants.EDITOR_POST_SAVE_NOTIFICATION, msg, null));
    }
    if (buffer.hasUnsavedChanges())
      buffer.save(getSubProgressMonitor(monitor, 1), true);
  } catch (CoreException ex) {
    handleException(ex);
  } finally {
    monitor.worked(1);
  }
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

@Override
public void run() {
  try {
    long stamp= unit.getResource().getModificationStamp();
    listener.saved(unit, changedRegions, getSubProgressMonitor(monitor, 4));
    if (stamp != unit.getResource().getModificationStamp()) {
      String msg= Messages.format(JavaEditorMessages.CompilationUnitDocumentProvider_error_saveParticipantSavedFile, participantName);
      errorStatus.add(new Status(IStatus.ERROR, JavaUI.ID_PLUGIN, IJavaStatusConstants.EDITOR_POST_SAVE_NOTIFICATION, msg, null));
    }
    if (buffer.hasUnsavedChanges())
      buffer.save(getSubProgressMonitor(monitor, 1), true);
  } catch (CoreException ex) {
    handleException(ex);
  } finally {
    monitor.worked(1);
  }
}
org.eclipse.jdt.internal.ui.javaeditorCompilationUnitDocumentProvider$5

Most used methods

  • handleException

Popular in Java

  • Updating database using SQL prepared statement
  • getSharedPreferences (Context)
  • setScale (BigDecimal)
  • getExternalFilesDir (Context)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • 21 Best Atom Packages for 2021
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now