File tree 4 files changed +7
-13
lines changed
org.archicontribs.modelrepository/src/org/archicontribs/modelrepository/views
4 files changed +7
-13
lines changed Original file line number Diff line number Diff line change 29
29
30
30
import com .archimatetool .editor .ui .ColorFactory ;
31
31
import com .archimatetool .editor .ui .FontFactory ;
32
- import com .archimatetool .editor .ui .components .UpdatingTableColumnLayout ;
33
32
34
33
35
34
/**
@@ -89,7 +88,7 @@ public void doSetInput(IArchiRepository archiRepo) {
89
88
setInput (archiRepo );
90
89
91
90
// Do the Layout kludge
92
- (( UpdatingTableColumnLayout ) getTable ().getParent ().getLayout ()). doRelayout ();
91
+ getTable ().getParent ().layout ();
93
92
94
93
// Select first row
95
94
//Object element = getElementAt(0);
Original file line number Diff line number Diff line change 25
25
import org .eclipse .jface .action .IToolBarManager ;
26
26
import org .eclipse .jface .action .MenuManager ;
27
27
import org .eclipse .jface .action .Separator ;
28
+ import org .eclipse .jface .layout .TableColumnLayout ;
28
29
import org .eclipse .jface .viewers .ISelection ;
29
30
import org .eclipse .jface .viewers .IStructuredSelection ;
30
31
import org .eclipse .swt .SWT ;
39
40
import org .eclipse .ui .PlatformUI ;
40
41
import org .eclipse .ui .part .ViewPart ;
41
42
42
- import com .archimatetool .editor .ui .components .UpdatingTableColumnLayout ;
43
43
import com .archimatetool .model .IArchimateModel ;
44
44
45
45
@@ -111,7 +111,7 @@ private void createInfoSection(Composite parent) {
111
111
112
112
private void createTableSection (Composite parent ) {
113
113
Composite tableComp = new Composite (parent , SWT .NONE );
114
- tableComp .setLayout (new UpdatingTableColumnLayout ( tableComp ));
114
+ tableComp .setLayout (new TableColumnLayout ( ));
115
115
116
116
// This ensures a minumum and equal size and no horizontal size creep for the table
117
117
GridData gd = new GridData (GridData .FILL_BOTH );
Original file line number Diff line number Diff line change 33
33
import org .eclipse .swt .SWT ;
34
34
import org .eclipse .swt .graphics .Image ;
35
35
import org .eclipse .swt .widgets .Composite ;
36
-
37
- import com .archimatetool .editor .ui .components .UpdatingTableColumnLayout ;
36
+ import org .eclipse .swt .widgets .Display ;
38
37
39
38
40
39
/**
@@ -102,8 +101,7 @@ public void doSetInput(IArchiRepository archiRepo) {
102
101
103
102
setInput (archiRepo );
104
103
105
- // Do the Layout kludge
106
- ((UpdatingTableColumnLayout )getTable ().getParent ().getLayout ()).doRelayout ();
104
+ Display .getCurrent ().asyncExec (() -> getTable ().getParent ().layout ()); // avoid bogus horizontal scrollbar cheese
107
105
108
106
// Select first row
109
107
//Object element = getElementAt(0);
@@ -120,9 +118,6 @@ public void setSelectedBranch(BranchInfo branchInfo) {
120
118
fSelectedBranch = branchInfo ;
121
119
122
120
setInput (getInput ());
123
-
124
- // Layout kludge
125
- ((UpdatingTableColumnLayout )getTable ().getParent ().getLayout ()).doRelayout ();
126
121
}
127
122
128
123
// ===============================================================================================
Original file line number Diff line number Diff line change 24
24
import org .eclipse .jface .action .IToolBarManager ;
25
25
import org .eclipse .jface .action .MenuManager ;
26
26
import org .eclipse .jface .action .Separator ;
27
+ import org .eclipse .jface .layout .TableColumnLayout ;
27
28
import org .eclipse .jface .viewers .ISelection ;
28
29
import org .eclipse .jface .viewers .ISelectionChangedListener ;
29
30
import org .eclipse .jface .viewers .IStructuredSelection ;
43
44
import org .eclipse .ui .PlatformUI ;
44
45
import org .eclipse .ui .part .ViewPart ;
45
46
46
- import com .archimatetool .editor .ui .components .UpdatingTableColumnLayout ;
47
47
import com .archimatetool .model .IArchimateModel ;
48
48
49
49
@@ -151,7 +151,7 @@ private void createHistorySection(Composite parent) {
151
151
tableSash .setLayoutData (new GridData (GridData .FILL_BOTH ));
152
152
153
153
Composite tableComp = new Composite (tableSash , SWT .NONE );
154
- tableComp .setLayout (new UpdatingTableColumnLayout ( tableComp ));
154
+ tableComp .setLayout (new TableColumnLayout ( ));
155
155
156
156
// This ensures a minumum and equal size and no horizontal size creep for the table
157
157
GridData gd = new GridData (GridData .FILL_BOTH );
You can’t perform that action at this time.
0 commit comments