diff options
author | Steve Northover <steve> | 2006-10-10 22:24:46 +0000 |
---|---|---|
committer | Steve Northover <steve> | 2006-10-10 22:24:46 +0000 |
commit | 8eb1bb4566b0e80a953227304514305df3c44dae (patch) | |
tree | 6db85b7fc5615762e30fcd7e6ec72a9ea79b4e48 /bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/TableTreeEditor.java | |
parent | 7aa7304ab21ab67ec1f79876fdde9ac78ea3c81b (diff) | |
download | eclipse.platform.swt-8eb1bb4566b0e80a953227304514305df3c44dae.tar.gz eclipse.platform.swt-8eb1bb4566b0e80a953227304514305df3c44dae.tar.xz eclipse.platform.swt-8eb1bb4566b0e80a953227304514305df3c44dae.zip |
105764 - org.eclipse.swt.custom.ControlEditor.computeBounds() is package private
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/TableTreeEditor.java')
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/TableTreeEditor.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/TableTreeEditor.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/TableTreeEditor.java index 98cce4e247..9dd85a7bba 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/TableTreeEditor.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/TableTreeEditor.java @@ -101,7 +101,7 @@ public TableTreeEditor (TableTree tableTree) { public void run() { if (editor == null || editor.isDisposed()) return; if (TableTreeEditor.this.tableTree.isDisposed()) return; - _resize(); + layout(); editor.setVisible(true); } }; @@ -120,10 +120,10 @@ public TableTreeEditor (TableTree tableTree) { columnListener = new ControlListener() { public void controlMoved(ControlEvent e){ - _resize (); + layout (); } public void controlResized(ControlEvent e){ - _resize (); + layout (); } }; @@ -208,7 +208,7 @@ public void setColumn(int column) { // In this situation, there is a single default column. if (columnCount == 0) { this.column = (column == 0) ? 0 : -1; - _resize(); + layout(); return; } if (this.column > -1 && this.column < columnCount){ @@ -222,11 +222,11 @@ public void setColumn(int column) { this.column = column; TableColumn tableColumn = table.getColumn(this.column); tableColumn.addControlListener(columnListener); - _resize(); + layout(); } public void setItem (TableTreeItem item) { this.item = item; - _resize(); + layout(); } /** @@ -244,13 +244,13 @@ public void setEditor (Control editor, TableTreeItem item, int column) { setColumn(column); setEditor(editor); } -void _resize () { +public void layout () { if (tableTree.isDisposed()) return; if (item == null || item.isDisposed()) return; Table table = tableTree.getTable(); int columnCount = table.getColumnCount(); if (columnCount == 0 && column != 0) return; if (columnCount > 0 && (column < 0 || column >= columnCount)) return; - super._resize(); + super.layout(); } } |