Package org.eclipse.team.ui.synchronize

Examples of org.eclipse.team.ui.synchronize.ISynchronizeModelElement


  private DesignFolderDecorator _designFolderDecorator = new DesignFolderDecorator();
  private NatureDecorator _natureDecorator = new NatureDecorator();
 
  public Image decorateImage(Image image, Object element) {
    if(element instanceof ISynchronizeModelElement) {
        ISynchronizeModelElement node = (ISynchronizeModelElement)element;
        if(node instanceof IAdaptable) {
          SyncInfo info = (SyncInfo)((IAdaptable)node).getAdapter(SyncInfo.class);
          if (info != null) {
            Image result = null;
            IResource resource = info.getLocal();
View Full Code Here


*/
public class DesignFolderDecorator extends LabelProvider implements ILabelDecorator {

  public Image decorateImage(Image image, Object element) {
    if(element instanceof ISynchronizeModelElement) {
          ISynchronizeModelElement node = (ISynchronizeModelElement)element;
          element = node.getResource();
    }
   
    if (element instanceof IContainer) {
      IContainer container = (IContainer) element;
      if (container.isAccessible() && WGADesignStructureHelper.isDesignFolder(container)) {
View Full Code Here

public class NatureDecorator extends LabelProvider implements ILabelDecorator {

  public Image decorateImage(Image image, Object element) {
    if(element instanceof ISynchronizeModelElement) {
          ISynchronizeModelElement node = (ISynchronizeModelElement)element;
          element = node.getResource();
    }
   
    if (element instanceof IProject) {
      try {
        if (((IProject) element).hasNature(WGADesignerPlugin.NATURE_WGA_RUNTIME)) {
View Full Code Here

TOP

Related Classes of org.eclipse.team.ui.synchronize.ISynchronizeModelElement

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.