1 11 package org.eclipse.ui.texteditor.rulers; 12 13 import org.eclipse.core.runtime.Assert; 14 import org.eclipse.core.runtime.IConfigurationElement; 15 16 import org.eclipse.ui.texteditor.ITextEditor; 17 18 19 28 public abstract class AbstractContributedRulerColumn implements IContributedRulerColumn { 29 30 private RulerColumnDescriptor fDescriptor; 31 32 private ITextEditor fEditor; 33 34 35 38 public final RulerColumnDescriptor getDescriptor() { 39 return fDescriptor; 40 } 41 42 45 public final void setDescriptor(RulerColumnDescriptor descriptor) { 46 Assert.isLegal(descriptor != null); 47 Assert.isTrue(fDescriptor == null); 48 fDescriptor= descriptor; 49 } 50 51 54 public final void setEditor(ITextEditor editor) { 55 Assert.isLegal(editor != null); 56 Assert.isTrue(fEditor == null); 57 fEditor= editor; 58 } 59 60 63 public final ITextEditor getEditor() { 64 return fEditor; 65 } 66 67 70 public void columnCreated() { 71 } 72 73 76 public void columnRemoved() { 77 } 78 } 79 | Popular Tags |