Package org.eclipse.ecf.internal.sync.resources.core

Examples of org.eclipse.ecf.internal.sync.resources.core.ResourceChangeMessage


            kind = (kind & ~SyncInfo.OUTGOING)
                | SyncInfo.OUTGOING | SyncInfo.CHANGE;
          }
          return config.getImage(image, kind);
        } else {
          ResourceChangeMessage message = (ResourceChangeMessage) element;
          int type = message.getType();
          IPath path = new Path(message.getPath());

          Image image = null;
          if (type == IResource.FILE) {
            image = labelProvider.getImage(ResourcesPlugin
                .getWorkspace().getRoot().getFile(path));
          } else {
            image = labelProvider.getImage(ResourcesPlugin
                .getWorkspace().getRoot().getFolder(path));
          }

          if (message.isConflicted()) {
            return config.getImage(image, SyncInfo.CHANGE
                | SyncInfo.CONFLICTING);
          }

          int imageKind = 0;
          switch (message.getKind()) {
          case IResourceDelta.ADDED:
            imageKind = (imageKind & ~SyncInfo.CHANGE)
                | SyncInfo.DELETION;
            break;
          case IResourceDelta.CHANGED:
View Full Code Here

TOP

Related Classes of org.eclipse.ecf.internal.sync.resources.core.ResourceChangeMessage

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.