1 11 package org.eclipse.compare.structuremergeviewer; 12 13 import org.eclipse.swt.graphics.Image; 14 import org.eclipse.compare.ITypedElement; 15 16 23 public abstract class DiffElement implements IDiffElement { 24 25 private int fKind; 26 private IDiffContainer fParent; 27 28 35 public DiffElement(IDiffContainer parent, int kind) { 36 fParent= parent; 37 fKind= kind; 38 if (parent != null) 39 parent.add(this); 40 } 41 42 48 public Image getImage() { 49 return null; 50 } 51 52 58 public String getType() { 59 return ITypedElement.UNKNOWN_TYPE; 60 } 61 62 68 public void setKind(int kind) { 69 fKind= kind; 70 } 71 72 75 public int getKind() { 76 return fKind; 77 } 78 79 82 public IDiffContainer getParent() { 83 return fParent; 84 } 85 86 89 public void setParent(IDiffContainer parent) { 90 fParent= parent; 91 } 92 } 93 94 | Popular Tags |