summaryrefslogtreecommitdiffstats
path: root/src/com/ibm
diff options
context:
space:
mode:
authornjames <nkskjames@gmail.com>2016-08-26 16:47:51 -0500
committernjames <nkskjames@gmail.com>2016-08-26 16:47:51 -0500
commit5d299e0fb247e24300bd9c11ac1a7d7a87b2a5b1 (patch)
treea2ce2d97ddded7ad9004b6fd8a079944341eaeef /src/com/ibm
parentd4e70cdccd9bfe9b36b744ff63b6c5e84b727307 (diff)
downloadserverwiz-5d299e0fb247e24300bd9c11ac1a7d7a87b2a5b1.tar.gz
serverwiz-5d299e0fb247e24300bd9c11ac1a7d7a87b2a5b1.zip
Fix the Widget is disposed exception under Linux
Listener that expanding column was not checking if widget was disposed Signed-off-by: Norman James <nkskjames@gmail.com>
Diffstat (limited to 'src/com/ibm')
-rw-r--r--src/com/ibm/ServerWizard2/view/MainDialog.java25
1 files changed, 5 insertions, 20 deletions
diff --git a/src/com/ibm/ServerWizard2/view/MainDialog.java b/src/com/ibm/ServerWizard2/view/MainDialog.java
index d431fff..1c8320f 100644
--- a/src/com/ibm/ServerWizard2/view/MainDialog.java
+++ b/src/com/ibm/ServerWizard2/view/MainDialog.java
@@ -175,29 +175,11 @@ public class MainDialog extends Dialog {
buttonRow1.setLayout(rl_buttonRow1);
this.createButtonsForButtonBar2(buttonRow1);
- new Label(buttonRow1, SWT.NONE);
- new Label(buttonRow1, SWT.NONE);
- new Label(buttonRow1, SWT.NONE);
- new Label(buttonRow1, SWT.NONE);
- new Label(buttonRow1, SWT.NONE);
- new Label(buttonRow1, SWT.NONE);
- new Label(buttonRow1, SWT.NONE);
- new Label(buttonRow1, SWT.NONE);
- new Label(buttonRow1, SWT.NONE);
- new Label(buttonRow1, SWT.NONE);
- new Label(buttonRow1, SWT.NONE);
- new Label(buttonRow1, SWT.NONE);
- new Label(buttonRow1, SWT.NONE);
- new Label(buttonRow1, SWT.NONE);
- new Label(buttonRow1, SWT.NONE);
- new Label(buttonRow1, SWT.NONE);
-
sashForm = new SashForm(sashForm_1, SWT.NONE);
// Target Instances View
tree = new Tree(sashForm, SWT.BORDER | SWT.VIRTUAL);
- tree.setToolTipText("To add an instance\r\n- click on parent\r\n- choose an instance type\r\n- click add instance");
tree.setHeaderVisible(true);
tree.setFont(SWTResourceManager.getFont("Arial", 9, SWT.NORMAL));
columnName = new TreeColumn(tree, 0);
@@ -1112,11 +1094,14 @@ public class MainDialog extends Dialog {
final TreeItem treeItem = (TreeItem) e.item;
getShell().getDisplay().asyncExec(new Runnable() {
public void run() {
- treeItem.getParent().getColumns()[0].pack();
+ if (!treeItem.isDisposed()) {
+ treeItem.getParent().getColumns()[0].pack();
+ }
}
- });
+ });
}
});
+
btnAddTarget.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
OpenPOWER on IntegriCloud