Minor Update

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-toolbox-widget@99057 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-07-29 09:27:53 +00:00 committed by Giancarlo Panichi
parent 5f31e03101
commit e8eace8200
1 changed files with 76 additions and 78 deletions

View File

@ -207,7 +207,7 @@ public class ToolBox extends TabPanel {
setActiveWidget(validationsTasksPanel); setActiveWidget(validationsTasksPanel);
} }
public void openNormalizeTab(TRId trId) { public void openNormalizeTab(TRId trId) {
Log.debug("Open Normalize Tab"); Log.debug("Open Normalize Tab");
if (normalizePanel == null) { if (normalizePanel == null) {
@ -218,7 +218,7 @@ public class ToolBox extends TabPanel {
setActiveWidget(normalizePanel); setActiveWidget(normalizePanel);
} }
public void openDenormalizeTab(TRId trId) { public void openDenormalizeTab(TRId trId) {
Log.debug("Open Denormalize Tab"); Log.debug("Open Denormalize Tab");
if (denormalizePanel == null) { if (denormalizePanel == null) {
@ -229,7 +229,6 @@ public class ToolBox extends TabPanel {
setActiveWidget(denormalizePanel); setActiveWidget(denormalizePanel);
} }
public void openDuplicatesRowsTab(TRId trId) { public void openDuplicatesRowsTab(TRId trId) {
Log.debug("Open Duplicates Rows Tab"); Log.debug("Open Duplicates Rows Tab");
@ -348,7 +347,7 @@ public class ToolBox extends TabPanel {
duplicatesRowsPanel = null; duplicatesRowsPanel = null;
} }
} }
public void closeNormalizePanel() { public void closeNormalizePanel() {
Log.debug("Close NormalizePanel Tab"); Log.debug("Close NormalizePanel Tab");
if (normalizePanel != null) { if (normalizePanel != null) {
@ -356,7 +355,7 @@ public class ToolBox extends TabPanel {
normalizePanel = null; normalizePanel = null;
} }
} }
public void closeDenormalizePanel() { public void closeDenormalizePanel() {
Log.debug("Close DenormalizePanel Tab"); Log.debug("Close DenormalizePanel Tab");
if (denormalizePanel != null) { if (denormalizePanel != null) {
@ -364,84 +363,87 @@ public class ToolBox extends TabPanel {
denormalizePanel = null; denormalizePanel = null;
} }
} }
public void updateTabs() { public void updateTabs() {
Log.debug("Update ToolBox Tabs"); try {
if (trProperties != null) { Log.debug("Update ToolBox Tabs");
trProperties.update(); if (trProperties != null) {
} trProperties.update();
if (historyPanel != null) { }
//historyPanel.update(); if (historyPanel != null) {
remove(historyPanel); // historyPanel.update();
historyPanel = null; remove(historyPanel);
} historyPanel = null;
}
if (validationsTablePanel != null) { if (validationsTablePanel != null) {
validationsTablePanel.update(); validationsTablePanel.update();
validationsTablePanel.onResize(); validationsTablePanel.onResize();
} }
if (validationsTasksPanel != null) { if (validationsTasksPanel != null) {
validationsTasksPanel.update(); validationsTasksPanel.update();
validationsTasksPanel.onResize(); validationsTasksPanel.onResize();
} }
if (changeColumnTypePanel != null) { if (changeColumnTypePanel != null) {
remove(changeColumnTypePanel); remove(changeColumnTypePanel);
changeColumnTypePanel = null; changeColumnTypePanel = null;
} }
if (deleteColumnPanel != null) { if (deleteColumnPanel != null) {
remove(deleteColumnPanel); remove(deleteColumnPanel);
deleteColumnPanel = null; deleteColumnPanel = null;
} }
if (splitColumnPanel != null) { if (splitColumnPanel != null) {
remove(splitColumnPanel); remove(splitColumnPanel);
splitColumnPanel = null; splitColumnPanel = null;
} }
if (mergeColumnPanel != null) { if (mergeColumnPanel != null) {
remove(mergeColumnPanel); remove(mergeColumnPanel);
mergeColumnPanel = null; mergeColumnPanel = null;
} }
if (groupByPanel != null) { if (groupByPanel != null) {
remove(groupByPanel); remove(groupByPanel);
groupByPanel = null; groupByPanel = null;
} }
if (addColumnPanel != null) { if (addColumnPanel != null) {
remove(addColumnPanel); remove(addColumnPanel);
addColumnPanel = null; addColumnPanel = null;
} }
if (labelColumnPanel != null) { if (labelColumnPanel != null) {
remove(labelColumnPanel); remove(labelColumnPanel);
labelColumnPanel = null; labelColumnPanel = null;
} }
if (changeTableTypePanel != null) { if (changeTableTypePanel != null) {
remove(changeTableTypePanel); remove(changeTableTypePanel);
changeTableTypePanel = null; changeTableTypePanel = null;
} }
if (duplicatesRowsPanel != null) { if (duplicatesRowsPanel != null) {
remove(duplicatesRowsPanel); remove(duplicatesRowsPanel);
duplicatesRowsPanel = null; duplicatesRowsPanel = null;
} }
if (normalizePanel != null) {
remove(normalizePanel);
normalizePanel = null;
}
if (denormalizePanel != null) {
remove(denormalizePanel);
denormalizePanel = null;
}
forceLayout();
if (normalizePanel != null) {
remove(normalizePanel);
normalizePanel = null;
}
if (denormalizePanel != null) {
remove(denormalizePanel);
denormalizePanel = null;
}
forceLayout();
} catch (Throwable e) {
Log.error("Error in ToolBox: " + e.getLocalizedMessage());
e.printStackTrace();
}
} }
protected void addHelpPanel() { protected void addHelpPanel() {
@ -724,11 +726,9 @@ public class ToolBox extends TabPanel {
}); });
}; };
protected void addNormalizePanel(TRId trId) { protected void addNormalizePanel(TRId trId) {
TabItemConfig normalizeItemConf = new TabItemConfig("Normalize", TabItemConfig normalizeItemConf = new TabItemConfig("Normalize", true);
true);
normalizePanel = new NormalizePanel(trId, eventBus); normalizePanel = new NormalizePanel(trId, eventBus);
add(normalizePanel, normalizeItemConf); add(normalizePanel, normalizeItemConf);
@ -746,7 +746,7 @@ public class ToolBox extends TabPanel {
}); });
}; };
protected void addDenormalizePanel(TRId trId) { protected void addDenormalizePanel(TRId trId) {
TabItemConfig denormalizeItemConf = new TabItemConfig("Denormalize", TabItemConfig denormalizeItemConf = new TabItemConfig("Denormalize",
true); true);
@ -767,8 +767,6 @@ public class ToolBox extends TabPanel {
}); });
}; };
protected void addTdTaskPanel() { protected void addTdTaskPanel() {
// TODO // TODO