1 11 package org.eclipse.team.internal.ui.synchronize; 12 13 import org.eclipse.compare.structuremergeviewer.IDiffContainer; 14 import org.eclipse.core.resources.IResource; 15 import org.eclipse.core.runtime.Assert; 16 import org.eclipse.core.runtime.IAdaptable; 17 18 21 public class UnchangedResourceModelElement extends SynchronizeModelElement implements IAdaptable { 22 23 private final IResource resource; 24 25 public UnchangedResourceModelElement(IDiffContainer parent, IResource resource) { 26 super(parent); 27 Assert.isNotNull(resource); 28 this.resource = resource; 29 } 30 31 34 public IResource getResource() { 35 return resource; 36 } 37 38 41 public String getName() { 42 return resource.getName(); 43 } 44 } 45 | Popular Tags |