Révision 1471
tmp/org.txm.rcp/src/main/java/org/txm/rcp/editors/TXMEditor.java (revision 1471) | ||
---|---|---|
414 | 414 |
this._createPartControl(); // child editor creates its parameters and displays widgets |
415 | 415 |
this.notifyExtensions("notifyEndOfCreatePartControl"); //$NON-NLS-1$ |
416 | 416 |
|
417 |
|
|
418 |
this.firstLineComposite.pack(); |
|
419 |
this.extendedParametersGroup.pack(); |
|
420 |
|
|
417 | 421 |
// remove empty toolbar |
418 | 422 |
//TODO SJ: Hack? MD: yeah -> need to find a way to not display the bottom toolbar on Windows instead |
419 | 423 |
if (this.bottomToolBar.getItems().length == 0) { |
... | ... | |
427 | 431 |
} |
428 | 432 |
|
429 | 433 |
// uninstall parameters group if not used |
430 |
if (extendedParametersGroup.getChildren().length == 0) { |
|
434 |
if (this.extendedParametersGroup.getChildren().length == 0) {
|
|
431 | 435 |
this.topToolBar.unInstallGroup(COMPUTING_PARAMETERS_GROUP_ID); |
432 | 436 |
} |
433 | 437 |
|
434 |
if (getResult().isLocked()) { |
|
438 |
if (this.getResult().isLocked()) {
|
|
435 | 439 |
this.firstLineComposite.setEnabled(false); |
436 | 440 |
} |
437 | 441 |
|
... | ... | |
440 | 444 |
if (computeButton != null) { |
441 | 445 |
computeButton.setEnabled(false); |
442 | 446 |
} |
443 |
|
|
447 |
|
|
444 | 448 |
} catch(Throwable e) { |
445 | 449 |
Log.severe(TXMCoreMessages.bind("TXMEditor.createPartControl(): can not create the editor for result {0}.", this.getResult())); //$NON-NLS-1$ |
446 | 450 |
e.printStackTrace(); |
tmp/org.txm.rcp/src/main/java/org/txm/rcp/editors/TXMEditorToolBar.java (revision 1471) | ||
---|---|---|
248 | 248 |
group.setText(groupTitle); |
249 | 249 |
|
250 | 250 |
// FIXME: SJ: new version to avoid to redefine the grid layout in each subclasses editors |
251 |
GridLayout layout = new GridLayout(); |
|
252 |
layout.marginLeft = 5; |
|
253 |
layout.marginWidth = 0; |
|
254 |
layout.marginBottom = 0; |
|
255 |
layout.marginHeight = 0; |
|
256 |
layout.marginTop = 0; |
|
251 |
// GridLayout layout = new GridLayout();
|
|
252 |
// layout.marginLeft = 5;
|
|
253 |
// layout.marginWidth = 0;
|
|
254 |
// layout.marginBottom = 0;
|
|
255 |
// layout.marginHeight = 0;
|
|
256 |
// layout.marginTop = 0;
|
|
257 | 257 |
|
258 | 258 |
// FIXME: SJ: old version |
259 |
// RowLayout layout = new RowLayout(); |
|
260 |
// layout.wrap = true; |
|
261 |
// layout.center = true; |
|
262 |
// layout.spacing = 8; |
|
263 |
// layout.marginWidth = layout.marginBottom = layout.marginHeight = layout.marginTop = 0; |
|
259 |
RowLayout layout = new RowLayout(); |
|
260 |
layout.wrap = true; |
|
261 |
layout.center = true; |
|
262 |
layout.spacing = 8; |
|
263 |
layout.marginWidth = layout.marginBottom = layout.marginHeight = layout.marginTop = 0; |
|
264 |
|
|
264 | 265 |
group.setLayout(layout); |
265 | 266 |
|
266 | 267 |
GridData gd2 = new GridData(GridData.FILL_BOTH); |
tmp/org.txm.wordcloud.rcp/src/org/txm/wordcloud/rcp/editors/WordCloudEditor.java (revision 1471) | ||
---|---|---|
73 | 73 |
// disable all component of the rendering tool bar |
74 | 74 |
this.advancedChartToolBar.setEnabled(false); |
75 | 75 |
|
76 |
extendedParametersGroup.pack(); |
|
76 |
//extendedParametersGroup.pack();
|
|
77 | 77 |
|
78 | 78 |
Log.info(WordCloudUIMessages.wordCloudReadyColon + this.getResult()); |
79 | 79 |
|
tmp/org.txm.specificities.rcp/src/org/txm/specificities/rcp/editors/SpecificitiesEditor.java (revision 1471) | ||
---|---|---|
129 | 129 |
|
130 | 130 |
// Extended parameters |
131 | 131 |
Composite extendedParametersArea = this.getExtendedParametersGroup(); |
132 |
((GridLayout)extendedParametersArea.getLayout()).numColumns = 3; |
|
132 |
//((GridLayout)extendedParametersArea.getLayout()).numColumns = 3;
|
|
133 | 133 |
|
134 | 134 |
// GridLayout gridLayout = new GridLayout(); |
135 | 135 |
// gridLayout.numColumns = 3; |
Formats disponibles : Unified diff