aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeanderson Candido2014-03-25 23:32:44 (EDT)
committerJeanderson Candido2014-03-25 23:32:44 (EDT)
commitf0639997c1f6a2fab1fa1fc9f4615b8a02b00fdf (patch)
tree96e499ef8f49ecb421c9630f7e810f83022ecbee
parentfb75e64d2e700c0d6e76b188c5c81746547dbec6 (diff)
downloadeclipse.platform.ui-f0639997c1f6a2fab1fa1fc9f4615b8a02b00fdf.zip
eclipse.platform.ui-f0639997c1f6a2fab1fa1fc9f4615b8a02b00fdf.tar.gz
eclipse.platform.ui-f0639997c1f6a2fab1fa1fc9f4615b8a02b00fdf.tar.bz2
Bug 430873 - Cleanup JFace code in preparation for GSocrefs/changes/05/23905/1
Deprecated public methods and fields of TableTreeViewer Change-Id: I510ee56aafb1a391789a83a058ef49391bd2aee5 Signed-off-by: Jeanderson Candido <jeandersonbc@gmail.com>
-rw-r--r--bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/TableTreeViewer.java21
1 files changed, 20 insertions, 1 deletions
diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/TableTreeViewer.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/TableTreeViewer.java
index c7619eb..4d60a46 100644
--- a/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/TableTreeViewer.java
+++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/TableTreeViewer.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2013 IBM Corporation and others.
+ * Copyright (c) 2000, 2014 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -457,6 +457,7 @@ public class TableTreeViewer extends AbstractTreeViewer {
* @param tree
* the table tree control
*/
+ @Deprecated
public TableTreeViewer(TableTree tree) {
super();
tableTree = tree;
@@ -475,6 +476,7 @@ public class TableTreeViewer extends AbstractTreeViewer {
* @param parent
* the parent control
*/
+ @Deprecated
public TableTreeViewer(Composite parent) {
this(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER);
}
@@ -490,6 +492,7 @@ public class TableTreeViewer extends AbstractTreeViewer {
* @param style
* the SWT style bits
*/
+ @Deprecated
public TableTreeViewer(Composite parent, int style) {
this(new TableTree(parent, style));
}
@@ -500,6 +503,7 @@ public class TableTreeViewer extends AbstractTreeViewer {
}
@Override
+ @Deprecated
public void cancelEditing() {
tableEditorImpl.cancelEditing();
}
@@ -561,16 +565,19 @@ public class TableTreeViewer extends AbstractTreeViewer {
}
@Override
+ @Deprecated
public void editElement(Object element, int column) {
tableEditorImpl.editElement(element, column);
}
@Override
+ @Deprecated
public CellEditor[] getCellEditors() {
return tableEditorImpl.getCellEditors();
}
@Override
+ @Deprecated
public ICellModifier getCellModifier() {
return tableEditorImpl.getCellModifier();
}
@@ -598,11 +605,13 @@ public class TableTreeViewer extends AbstractTreeViewer {
}
@Override
+ @Deprecated
public Object[] getColumnProperties() {
return tableEditorImpl.getColumnProperties();
}
@Override
+ @Deprecated
public Control getControl() {
return tableTree;
}
@@ -619,6 +628,7 @@ public class TableTreeViewer extends AbstractTreeViewer {
* @return the element at the given index, or <code>null</code> if the
* index is out of range
*/
+ @Deprecated
public Object getElementAt(int index) {
// XXX: Workaround for 1GBCSB1: SWT:WIN2000 - TableTree should have
// getItem(int index)
@@ -666,6 +676,7 @@ public class TableTreeViewer extends AbstractTreeViewer {
* image for the first column, and any remaining columns are blank.
*/
@Override
+ @Deprecated
public IBaseLabelProvider getLabelProvider() {
return super.getLabelProvider();
}
@@ -685,6 +696,7 @@ public class TableTreeViewer extends AbstractTreeViewer {
*
* @return the table tree control
*/
+ @Deprecated
public TableTree getTableTree() {
return tableTree;
}
@@ -718,6 +730,7 @@ public class TableTreeViewer extends AbstractTreeViewer {
}
@Override
+ @Deprecated
public boolean isCellEditorActive() {
return tableEditorImpl.isCellEditorActive();
}
@@ -747,26 +760,31 @@ public class TableTreeViewer extends AbstractTreeViewer {
}
@Override
+ @Deprecated
public void setCellEditors(CellEditor[] editors) {
tableEditorImpl.setCellEditors(editors);
}
@Override
+ @Deprecated
public void setCellModifier(ICellModifier modifier) {
tableEditorImpl.setCellModifier(modifier);
}
@Override
+ @Deprecated
public void setColumnProperties(String[] columnProperties) {
tableEditorImpl.setColumnProperties(columnProperties);
}
@Override
+ @Deprecated
protected void setExpanded(Item node, boolean expand) {
((TableTreeItem) node).setExpanded(expand);
}
@Override
+ @Deprecated
protected void setSelection(List items) {
TableTreeItem[] newItems = new TableTreeItem[items.size()];
items.toArray(newItems);
@@ -774,6 +792,7 @@ public class TableTreeViewer extends AbstractTreeViewer {
}
@Override
+ @Deprecated
protected void showItem(Item item) {
getTableTree().showItem((TableTreeItem) item);
}