Révision 3444
TXM/trunk/org.txm.chartsengine.rcp/src/org/txm/chartsengine/rcp/handlers/ResetChartView.java (revision 3444) | ||
---|---|---|
4 | 4 |
import org.eclipse.core.commands.ExecutionEvent; |
5 | 5 |
import org.eclipse.core.commands.ExecutionException; |
6 | 6 |
import org.eclipse.osgi.util.NLS; |
7 |
import org.txm.chartsengine.core.results.ChartResult; |
|
7 | 8 |
import org.txm.chartsengine.rcp.SWTChartsComponentsProvider; |
8 | 9 |
import org.txm.chartsengine.rcp.editors.ChartEditor; |
9 | 10 |
import org.txm.utils.logger.Log; |
... | ... | |
18 | 19 |
|
19 | 20 |
@Override |
20 | 21 |
public Object execute(ExecutionEvent event) throws ExecutionException { |
21 |
ChartEditor chartEditor = SWTChartsComponentsProvider.getActiveChartEditor(event); |
|
22 |
ChartEditor<? extends ChartResult> chartEditor = SWTChartsComponentsProvider.getActiveChartEditor(event);
|
|
22 | 23 |
|
23 | 24 |
try { |
24 | 25 |
chartEditor.resetView(); |
TXM/trunk/org.txm.rcp/src/main/java/org/txm/rcp/editors/imports/CorpusPage.java (revision 3444) | ||
---|---|---|
740 | 740 |
|
741 | 741 |
Label titleLabel = toolkit.createLabel(hyperlinks, "", SWT.WRAP); //$NON-NLS-1$ |
742 | 742 |
titleLabel.setLayoutData(new TableWrapData(TableWrapData.FILL, TableWrapData.TOP)); |
743 |
titleLabel.setText(NLS.bind(TXMUIMessages.importParametersOfP0, editor.getImportName())); |
|
743 |
|
|
744 |
if (editor.project == null) { |
|
745 |
titleLabel.setText(NLS.bind(TXMUIMessages.importParametersOfP0, editor.getImportName())); |
|
746 |
} else { |
|
747 |
titleLabel.setText(NLS.bind("Update parameters for the {0} import module", editor.getImportName())); |
|
748 |
} |
|
749 |
|
|
744 | 750 |
FontData[] fD = titleLabel.getFont().getFontData(); |
745 | 751 |
fD[0].setHeight(16); |
746 | 752 |
titleLabel.setFont(new Font(titleLabel.getDisplay(), fD[0])); |
... | ... | |
843 | 849 |
line4.setLayout(hLayout); |
844 | 850 |
toolkit.createLabel(line4, ""+(n++)+".", SWT.WRAP); |
845 | 851 |
Hyperlink hyperlink3 = toolkit.createHyperlink(line4, TXMUIMessages.startCorpusImport, SWT.WRAP); |
852 |
if (editor.project == null) { |
|
853 |
hyperlink3.setText("Start corpus update"); |
|
854 |
} |
|
846 | 855 |
hyperlink3.addHyperlinkListener(startImportListener); |
847 | 856 |
ImageHyperlink startImportLink2 = toolkit.createImageHyperlink(line4, SWT.NULL); |
848 | 857 |
startImportLink2.setImage(IImageKeys.getImage(IImageKeys.START)); |
TXM/trunk/org.txm.rcp/src/main/java/org/txm/rcp/swt/dialog/UpdateCorpusDialog.java (revision 3444) | ||
---|---|---|
100 | 100 |
if (buttonId == Dialog.OK) { |
101 | 101 |
doUpdateEditions = updateEditionsCheck.getSelection(); |
102 | 102 |
doForceUpdate = forceUpdateCheck.getSelection(); |
103 |
doOpenCorpusParameters = openCorpusParameters.getSelection(); |
|
103 | 104 |
} |
104 | 105 |
|
105 | 106 |
super.buttonPressed(buttonId); |
Formats disponibles : Unified diff