Minor updated

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-toolbox-widget@86879 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2013-12-12 11:41:13 +00:00 committed by Giancarlo Panichi
parent a3ab9d9f0f
commit d1150338f0
1 changed files with 8 additions and 7 deletions

View File

@ -2,9 +2,9 @@ package org.gcube.portlets.user.td.toolboxwidget.client;
import org.gcube.portlets.user.td.informationwidget.client.TabularResourceProperties;
import org.gcube.portlets.user.td.taskswidget.client.TdTaskController;
import org.gcube.portlets.user.td.taskswidget.client.panel.TdTaskManagerMainPanel;
import com.allen_sauer.gwt.log.client.Log;
import com.google.gwt.user.client.ui.DialogBox;
import com.google.gwt.user.client.ui.Widget;
import com.google.web.bindery.event.shared.EventBus;
import com.sencha.gxt.widget.core.client.FramedPanel;
@ -21,7 +21,7 @@ public class ToolBox extends TabPanel {
protected TabularResourceProperties trProperties;
protected ToolBoxPanel toolBoxPanel;
protected TdTaskController tdTaskController;
protected TdTaskManagerMainPanel tdTaskMainPanel;
protected DialogBox tdTaskMainWindow;
protected FramedPanel taskPanel;
public ToolBox(String name, EventBus eventBus, ToolBoxPanel toolBoxPanel) {
@ -45,7 +45,7 @@ public class ToolBox extends TabPanel {
trProperties=null;
remove(taskPanel);
// remove(tdTaskMainPanel);
tdTaskMainPanel=null;
tdTaskMainWindow=null;
tdTaskController=null;
}
@ -54,12 +54,12 @@ public class ToolBox extends TabPanel {
if (trProperties != null) {
trProperties.update();
}
if (tdTaskMainPanel != null) {
if (tdTaskController != null) {
if(tdTaskController!=null){
if(tdTaskMainWindow!=null){
tdTaskController.updateTasks(true);
}
}
}
public void openTabs() {
@ -100,7 +100,8 @@ public class ToolBox extends TabPanel {
tdTaskController = TdTaskController.getInstance();
TdTaskController.bindCommonBus(eventBus);
tdTaskMainPanel = tdTaskController.getMainPanel(); // This is main panel
tdTaskMainWindow = tdTaskController.getWindowTaskMonitor(); // This is main panel
taskPanel=new FramedPanel();
taskPanel.setHeaderVisible(false);
TextButton buttonTask=new TextButton("Tasks");