1 19 20 21 package ca.mcgill.sable.graph.model; 22 23 import org.eclipse.ui.views.properties.IPropertyDescriptor; 24 import org.eclipse.ui.views.properties.IPropertySource; 25 import java.beans.*; 26 27 public class Element implements IPropertySource { 28 29 public static final String GRAPH_CHILD = "graph child"; 30 public static final String COMPLEX_CHILD = "complex child"; 31 public static final String INPUTS = "inputs"; 32 public static final String OUTPUTS = "outputs"; 33 public static final String DATA = "data"; 34 public static final String COMPLEX_CHILD_ADDED = "complex child added"; 35 public static final String EDGE_LABEL = "edge label"; 36 37 public Element() { 38 super(); 39 } 40 41 protected PropertyChangeSupport listeners = new PropertyChangeSupport(this); 42 43 public void addPropertyChangeListener(PropertyChangeListener l){ 44 listeners.addPropertyChangeListener(l); 45 } 46 47 protected void firePropertyChange(String name, Object oldVal, Object newVal){ 48 listeners.firePropertyChange(name, oldVal, newVal); 49 } 50 51 protected void firePropertyChange(String name, Object newVal){ 52 firePropertyChange(name, null, newVal); 53 } 54 55 public void removePropertyChangeListener(PropertyChangeListener l){ 56 listeners.removePropertyChangeListener(l); 57 } 58 59 public void fireStructureChange(String name, Object newVal){ 60 firePropertyChange(name, null, newVal); 61 } 62 63 66 public Object getEditableValue() { 67 return null; 68 } 69 70 73 public IPropertyDescriptor[] getPropertyDescriptors() { 74 return null; 75 } 76 77 80 public Object getPropertyValue(Object id) { 81 return null; 82 } 83 84 87 public boolean isPropertySet(Object id) { 88 return false; 89 } 90 91 94 public void resetPropertyValue(Object id) { 95 } 96 97 100 public void setPropertyValue(Object id, Object value) { 101 } 102 103 } 104 | Popular Tags |