From 0063bbf490c51a59762274e469cb70a8b90791dc Mon Sep 17 00:00:00 2001 From: Sergey Prigogin Date: Thu, 14 Apr 2011 23:17:02 +0000 Subject: [PATCH] Fixed typos. --- .../dialogfields/TreeListDialogField.java | 24 +++++++------------ 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/wizards/dialogfields/TreeListDialogField.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/wizards/dialogfields/TreeListDialogField.java index ecea397c447..57a045e1550 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/wizards/dialogfields/TreeListDialogField.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/wizards/dialogfields/TreeListDialogField.java @@ -48,11 +48,10 @@ import org.eclipse.cdt.internal.ui.util.SWTUtil; /** * A list with a button bar. Typical buttons are 'Add', 'Remove', 'Up' and - * 'Down'. List model is independend of widget creation. DialogFields controls + * 'Down'. List model is independent of widget creation. DialogFields controls * are: Label, List and Composite containing buttons. */ public class TreeListDialogField extends DialogField { - protected TreeViewer fTree; protected ILabelProvider fLabelProvider; protected TreeViewerAdapter fTreeViewerAdapter; @@ -80,8 +79,7 @@ public class TreeListDialogField extends DialogField { private int fTreeExpandLevel; /** - * @param adapter - * Can be null. + * @param adapter Can be null. */ public TreeListDialogField(ITreeListAdapter adapter, String[] buttonLabels, ILabelProvider lprovider) { super(); @@ -115,9 +113,9 @@ public class TreeListDialogField extends DialogField { /** * Sets the index of the 'remove' button in the button label array passed in - * the constructor. The behaviour of the button marked as the 'remove' - * button will then behandled internally. (enable state, button invocation - * behaviour) + * the constructor. The behavior of the button marked as the 'remove' + * button will then be handled internally. (enable state, button invocation + * behavior) */ public void setRemoveButtonIndex(int removeButtonIndex) { Assert.isTrue(removeButtonIndex < fButtonLabels.length); @@ -126,8 +124,8 @@ public class TreeListDialogField extends DialogField { /** * Sets the index of the 'up' button in the button label array passed in the - * constructor. The behaviour of the button marked as the 'up' button will - * then behandled internally. (enable state, button invocation behaviour) + * constructor. The behavior of the button marked as the 'up' button will + * then be handled internally. (enable state, button invocation behavior) */ public void setUpButtonIndex(int upButtonIndex) { Assert.isTrue(upButtonIndex < fButtonLabels.length); @@ -136,9 +134,9 @@ public class TreeListDialogField extends DialogField { /** * Sets the index of the 'down' button in the button label array passed in - * the constructor. The behaviour of the button marked as the 'down' button + * the constructor. The behavior of the button marked as the 'down' button * will then be handled internally. (enable state, button invocation - * behaviour) + * behavior) */ public void setDownButtonIndex(int downButtonIndex) { Assert.isTrue(downButtonIndex < fButtonLabels.length); @@ -705,7 +703,6 @@ public class TreeListDialogField extends DialogField { if (isOkToUse(fTreeControl)) { Display d = fTreeControl.getDisplay(); d.asyncExec(new Runnable() { - public void run() { if (isOkToUse(fTreeControl)) { selectElements(selection); @@ -844,7 +841,6 @@ public class TreeListDialogField extends DialogField { // ------- TreeViewerAdapter private class TreeViewerAdapter implements ITreeContentProvider, ISelectionChangedListener, IDoubleClickListener { - private final Object[] NO_ELEMENTS = new Object[0]; // ------- ITreeContentProvider Interface ------------ @@ -895,7 +891,6 @@ public class TreeListDialogField extends DialogField { public void doubleClick(DoubleClickEvent event) { doDoubleClick(event); } - } protected void doListSelected(SelectionChangedEvent event) { @@ -910,5 +905,4 @@ public class TreeListDialogField extends DialogField { fTreeAdapter.doubleClicked(this); } } - }