Minor Update

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-toolbox-widget@94971 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-04-17 13:07:19 +00:00 committed by Giancarlo Panichi
parent f8b012338a
commit 9b8b2cbd9c
2 changed files with 13 additions and 14 deletions

View File

@ -83,9 +83,7 @@ public class ToolBox extends TabPanel {
Log.debug("Open History Tab");
if (historyPanel == null) {
addHistoryPanel();
} else {
historyPanel.update();
}
}
setActiveWidget(historyPanel);
}
@ -138,12 +136,11 @@ public class ToolBox extends TabPanel {
Log.debug("Open Validations Table Tab: "+trId);
if (validationsTablePanel == null) {
addValidationsTablePanel(trId);
} else {
validationsTablePanel.update(trId);
}
}
setActiveWidget(validationsTablePanel);
}
public void openDuplicatesRowsTab(TRId trId) {
@ -158,7 +155,9 @@ public class ToolBox extends TabPanel {
}
//Close
public void closePropertiesTabs() {
Log.debug("Close Properties Tab");
if (trProperties != null) {
@ -238,6 +237,10 @@ public class ToolBox extends TabPanel {
historyPanel.update();
}
if (validationsTablePanel != null) {
validationsTablePanel.update();
}
if (changeColumnTypePanel != null) {
remove(changeColumnTypePanel);
changeColumnTypePanel = null;
@ -254,10 +257,6 @@ public class ToolBox extends TabPanel {
remove(changeTableTypePanel);
changeTableTypePanel = null;
}
if (validationsTablePanel != null) {
remove(validationsTablePanel);
validationsTablePanel = null;
}
if (duplicatesRowsPanel != null) {
remove(duplicatesRowsPanel);

View File

@ -348,30 +348,30 @@ public class ToolBoxPanel extends ContentPanel {
public void updateForOpenPanel(){
if (state == ToolBoxPanelState.OPENED) {
toolBox.openPropertiesTab();
toolBox.updateTabs();
toolBox.openPropertiesTab();
Log.debug("ToolBoxPanel Updated For Table");
} else {
enable();
expand();
state = ToolBoxPanelState.OPENED;
toolBox.openPropertiesTab();
toolBox.updateTabs();
toolBox.openPropertiesTab();
Log.debug("ToolBoxPanel Updated For Table");
}
}
public void updateForCurationPanel(TRId trId){
if (state == ToolBoxPanelState.OPENED) {
toolBox.openValidationsTableTab(trId);
toolBox.updateTabs();
toolBox.openValidationsTableTab(trId);
Log.debug("ToolBoxPanel Updated For Curation");
} else {
enable();
expand();
state = ToolBoxPanelState.OPENED;
toolBox.openValidationsTableTab(trId);
toolBox.updateTabs();
toolBox.openValidationsTableTab(trId);
Log.debug("ToolBoxPanel Updated For Curation");
}
}