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:
parent
f8b012338a
commit
9b8b2cbd9c
|
@ -83,9 +83,7 @@ public class ToolBox extends TabPanel {
|
||||||
Log.debug("Open History Tab");
|
Log.debug("Open History Tab");
|
||||||
if (historyPanel == null) {
|
if (historyPanel == null) {
|
||||||
addHistoryPanel();
|
addHistoryPanel();
|
||||||
} else {
|
}
|
||||||
historyPanel.update();
|
|
||||||
}
|
|
||||||
setActiveWidget(historyPanel);
|
setActiveWidget(historyPanel);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -138,12 +136,11 @@ public class ToolBox extends TabPanel {
|
||||||
Log.debug("Open Validations Table Tab: "+trId);
|
Log.debug("Open Validations Table Tab: "+trId);
|
||||||
if (validationsTablePanel == null) {
|
if (validationsTablePanel == null) {
|
||||||
addValidationsTablePanel(trId);
|
addValidationsTablePanel(trId);
|
||||||
} else {
|
}
|
||||||
validationsTablePanel.update(trId);
|
|
||||||
}
|
|
||||||
setActiveWidget(validationsTablePanel);
|
setActiveWidget(validationsTablePanel);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public void openDuplicatesRowsTab(TRId trId) {
|
public void openDuplicatesRowsTab(TRId trId) {
|
||||||
|
@ -158,7 +155,9 @@ public class ToolBox extends TabPanel {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
//Close
|
||||||
public void closePropertiesTabs() {
|
public void closePropertiesTabs() {
|
||||||
Log.debug("Close Properties Tab");
|
Log.debug("Close Properties Tab");
|
||||||
if (trProperties != null) {
|
if (trProperties != null) {
|
||||||
|
@ -238,6 +237,10 @@ public class ToolBox extends TabPanel {
|
||||||
historyPanel.update();
|
historyPanel.update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (validationsTablePanel != null) {
|
||||||
|
validationsTablePanel.update();
|
||||||
|
}
|
||||||
|
|
||||||
if (changeColumnTypePanel != null) {
|
if (changeColumnTypePanel != null) {
|
||||||
remove(changeColumnTypePanel);
|
remove(changeColumnTypePanel);
|
||||||
changeColumnTypePanel = null;
|
changeColumnTypePanel = null;
|
||||||
|
@ -254,10 +257,6 @@ public class ToolBox extends TabPanel {
|
||||||
remove(changeTableTypePanel);
|
remove(changeTableTypePanel);
|
||||||
changeTableTypePanel = null;
|
changeTableTypePanel = null;
|
||||||
}
|
}
|
||||||
if (validationsTablePanel != null) {
|
|
||||||
remove(validationsTablePanel);
|
|
||||||
validationsTablePanel = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (duplicatesRowsPanel != null) {
|
if (duplicatesRowsPanel != null) {
|
||||||
remove(duplicatesRowsPanel);
|
remove(duplicatesRowsPanel);
|
||||||
|
|
|
@ -348,30 +348,30 @@ public class ToolBoxPanel extends ContentPanel {
|
||||||
|
|
||||||
public void updateForOpenPanel(){
|
public void updateForOpenPanel(){
|
||||||
if (state == ToolBoxPanelState.OPENED) {
|
if (state == ToolBoxPanelState.OPENED) {
|
||||||
toolBox.openPropertiesTab();
|
|
||||||
toolBox.updateTabs();
|
toolBox.updateTabs();
|
||||||
|
toolBox.openPropertiesTab();
|
||||||
Log.debug("ToolBoxPanel Updated For Table");
|
Log.debug("ToolBoxPanel Updated For Table");
|
||||||
} else {
|
} else {
|
||||||
enable();
|
enable();
|
||||||
expand();
|
expand();
|
||||||
state = ToolBoxPanelState.OPENED;
|
state = ToolBoxPanelState.OPENED;
|
||||||
toolBox.openPropertiesTab();
|
|
||||||
toolBox.updateTabs();
|
toolBox.updateTabs();
|
||||||
|
toolBox.openPropertiesTab();
|
||||||
Log.debug("ToolBoxPanel Updated For Table");
|
Log.debug("ToolBoxPanel Updated For Table");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void updateForCurationPanel(TRId trId){
|
public void updateForCurationPanel(TRId trId){
|
||||||
if (state == ToolBoxPanelState.OPENED) {
|
if (state == ToolBoxPanelState.OPENED) {
|
||||||
toolBox.openValidationsTableTab(trId);
|
|
||||||
toolBox.updateTabs();
|
toolBox.updateTabs();
|
||||||
|
toolBox.openValidationsTableTab(trId);
|
||||||
Log.debug("ToolBoxPanel Updated For Curation");
|
Log.debug("ToolBoxPanel Updated For Curation");
|
||||||
} else {
|
} else {
|
||||||
enable();
|
enable();
|
||||||
expand();
|
expand();
|
||||||
state = ToolBoxPanelState.OPENED;
|
state = ToolBoxPanelState.OPENED;
|
||||||
toolBox.openValidationsTableTab(trId);
|
|
||||||
toolBox.updateTabs();
|
toolBox.updateTabs();
|
||||||
|
toolBox.openValidationsTableTab(trId);
|
||||||
Log.debug("ToolBoxPanel Updated For Curation");
|
Log.debug("ToolBoxPanel Updated For Curation");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue