Package org.eclipse.compare

Examples of org.eclipse.compare.IContentChangeListener


        // Legacy listeners may expect to be notified in the UI thread.
        Runnable runnable = new Runnable() {
          public void run() {
            Object[] listeners= fListenerList.getListeners();
            for (int i= 0; i < listeners.length; i++) {
              final IContentChangeListener contentChangeListener = (IContentChangeListener)listeners[i];
              SafeRunner.run(new ISafeRunnable() {
                public void run() throws Exception {
                  (contentChangeListener).contentChanged(element);
                }
                public void handleException(Throwable exception) {
View Full Code Here


  private static ITypedElement getIndexTypedElement(
      final Repository repository, final String gitPath, String encoding) {
    IFileRevision nextFile = GitFileRevision.inIndex(repository, gitPath);
    final EditableRevision next = new EditableRevision(nextFile, encoding);

    IContentChangeListener listener = new IContentChangeListener() {
      public void contentChanged(IContentChangeNotifier source) {
        final byte[] newContent = next.getModifiedContent();
        setIndexEntryContents(repository, gitPath, newContent);
      }
    };
View Full Code Here

TOP

Related Classes of org.eclipse.compare.IContentChangeListener

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.