Mercurial > projects > dwt-addons
comparison dwtx/jface/viewers/TableViewerEditor.d @ 43:ea8ff534f622
Fix override and super aliases
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Fri, 11 Apr 2008 01:24:25 +0200 |
parents | b6c35faf97c8 |
children | 07b9d96fd764 |
comparison
equal
deleted
inserted
replaced
42:4567a6f54939 | 43:ea8ff534f622 |
---|---|
119 ColumnViewerEditorActivationStrategy editorActivationStrategy, | 119 ColumnViewerEditorActivationStrategy editorActivationStrategy, |
120 int feature) { | 120 int feature) { |
121 create(viewer, null, editorActivationStrategy, feature); | 121 create(viewer, null, editorActivationStrategy, feature); |
122 } | 122 } |
123 | 123 |
124 protected void setEditor(Control w, Item item, int columnNumber) { | 124 protected override void setEditor(Control w, Item item, int columnNumber) { |
125 tableEditor.setEditor(w, cast(TableItem) item, columnNumber); | 125 tableEditor.setEditor(w, cast(TableItem) item, columnNumber); |
126 } | 126 } |
127 | 127 |
128 protected void setLayoutData(CellEditor.LayoutData layoutData) { | 128 protected override void setLayoutData(CellEditor.LayoutData layoutData) { |
129 tableEditor.grabHorizontal = layoutData.grabHorizontal; | 129 tableEditor.grabHorizontal = layoutData.grabHorizontal; |
130 tableEditor.horizontalAlignment = layoutData.horizontalAlignment; | 130 tableEditor.horizontalAlignment = layoutData.horizontalAlignment; |
131 tableEditor.minimumWidth = layoutData.minimumWidth; | 131 tableEditor.minimumWidth = layoutData.minimumWidth; |
132 } | 132 } |
133 | 133 |
134 public ViewerCell getFocusCell() { | 134 public override ViewerCell getFocusCell() { |
135 if (focusCellManager !is null) { | 135 if (focusCellManager !is null) { |
136 return focusCellManager.getFocusCell(); | 136 return focusCellManager.getFocusCell(); |
137 } | 137 } |
138 | 138 |
139 return super.getFocusCell(); | 139 return super.getFocusCell(); |
140 } | 140 } |
141 | 141 |
142 protected void updateFocusCell(ViewerCell focusCell, | 142 protected override void updateFocusCell(ViewerCell focusCell, |
143 ColumnViewerEditorActivationEvent event) { | 143 ColumnViewerEditorActivationEvent event) { |
144 // Update the focus cell when we activated the editor with these 2 | 144 // Update the focus cell when we activated the editor with these 2 |
145 // events | 145 // events |
146 if (event.eventType is ColumnViewerEditorActivationEvent.PROGRAMMATIC | 146 if (event.eventType is ColumnViewerEditorActivationEvent.PROGRAMMATIC |
147 || event.eventType is ColumnViewerEditorActivationEvent.TRAVERSAL) { | 147 || event.eventType is ColumnViewerEditorActivationEvent.TRAVERSAL) { |