|
9 | 9 | */
|
10 | 10 | package org.obiba.opal.web.gwt.app.client.magma.importdata;
|
11 | 11 |
|
| 12 | +import com.google.gwt.user.client.ui.*; |
12 | 13 | import org.obiba.opal.web.gwt.app.client.i18n.Translations;
|
13 | 14 | import org.obiba.opal.web.gwt.app.client.i18n.TranslationsUtils;
|
14 | 15 | import org.obiba.opal.web.gwt.app.client.js.JsArrays;
|
|
40 | 41 | import com.google.gwt.event.dom.client.ClickHandler;
|
41 | 42 | import com.google.gwt.uibinder.client.UiBinder;
|
42 | 43 | import com.google.gwt.uibinder.client.UiField;
|
43 |
| -import com.google.gwt.user.client.ui.FlowPanel; |
44 |
| -import com.google.gwt.user.client.ui.IsWidget; |
45 |
| -import com.google.gwt.user.client.ui.Panel; |
46 |
| -import com.google.gwt.user.client.ui.SimplePanel; |
47 |
| -import com.google.gwt.user.client.ui.Widget; |
48 | 44 | import com.google.inject.Inject;
|
49 | 45 | import com.google.web.bindery.event.shared.EventBus;
|
50 | 46 | import com.google.web.bindery.event.shared.HandlerRegistration;
|
@@ -411,9 +407,13 @@ public void updateHelp() {
|
411 | 407 | private void updateHelpPanelsVisibility() {
|
412 | 408 | hideHelpPanels();
|
413 | 409 | PluginPackageDto foundPluginPackage = getPluginPackage(formatChooser.getSelectedValue());
|
| 410 | + helpOpalDatasourcePluginPanel.clear(); |
414 | 411 | if (foundPluginPackage != null) {
|
| 412 | + Label helpLabel = new Label(); |
| 413 | + helpLabel.getElement().setInnerHTML(foundPluginPackage.getDescription()); |
| 414 | + helpLabel.addStyleName("help-block"); |
| 415 | + helpOpalDatasourcePluginPanel.add(helpLabel); |
415 | 416 | helpOpalDatasourcePluginPanel.setVisible(true);
|
416 |
| - helpOpalDatasourcePluginPanel.getElement().getFirstChildElement().setInnerHTML(foundPluginPackage.getDescription()); |
417 | 417 | } else {
|
418 | 418 | switch(ImportFormat.valueOf(getSelectedFormat())) {
|
419 | 419 | case CSV:
|
@@ -453,8 +453,10 @@ private void hideHelpPanels() {
|
453 | 453 | helpJDBC.setVisible(false);
|
454 | 454 | helpOpalRest.setVisible(false);
|
455 | 455 | helpRSASHaven.setVisible(false);
|
| 456 | + helpRXPTHaven.setVisible(false); |
456 | 457 | helpRSPSSHaven.setVisible(false);
|
457 | 458 | helpRStataHaven.setVisible(false);
|
| 459 | + helpRDSHaven.setVisible(false); |
458 | 460 | helpHealthCanada.setVisible(false);
|
459 | 461 | helpGeonamesPostalCodes.setVisible(false);
|
460 | 462 | helpOpalDatasourcePluginPanel.setVisible(false);
|
|
0 commit comments