2521: Explore the possibility to port the StatMan interface onto Dataminer
https://support.d4science.org/issues/2521 Fixed Data Space visualization git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/data-miner-manager@128195 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
01d0bcc05e
commit
b0bfb85688
|
@ -123,6 +123,10 @@ public class DataMinerManager implements EntryPoint {
|
|||
}
|
||||
|
||||
private void loadMainPanel() {
|
||||
homeMenu = createMenuPanel();
|
||||
dataSpacePanel = new DataSpacePanel();
|
||||
experimentPanel = new ExperimentPanel();
|
||||
|
||||
// AccountingManagerResources.INSTANCE.accountingManagerCSS().ensureInjected();
|
||||
// ScriptInjector.fromString(AccountingManagerResources.INSTANCE.jqueryJs().getText()).setWindow(ScriptInjector.TOP_WINDOW).inject();
|
||||
|
||||
|
@ -150,7 +154,6 @@ public class DataMinerManager implements EntryPoint {
|
|||
switchTo(homeMenu);
|
||||
else if (menuItem == MenuItem.EXPERIMENT)
|
||||
switchTo(experimentPanel);
|
||||
|
||||
else if (menuItem == MenuItem.DATA_SPACE)
|
||||
switchTo(dataSpacePanel);
|
||||
|
||||
|
@ -181,7 +184,8 @@ public class DataMinerManager implements EntryPoint {
|
|||
* westData); filtersPanel.expand(); filtersPanel.enable();
|
||||
*/
|
||||
|
||||
homeMenu = createMenuPanel();
|
||||
|
||||
|
||||
centerPanel.add(homeMenu);
|
||||
previousPanel = homeMenu;
|
||||
|
||||
|
@ -308,9 +312,6 @@ public class DataMinerManager implements EntryPoint {
|
|||
|
||||
@Override
|
||||
public void onMouseDown(MouseDownEvent event) {
|
||||
if (experimentPanel == null) {
|
||||
experimentPanel = new ExperimentPanel();
|
||||
}
|
||||
switchTo(dataSpacePanel);
|
||||
header.setMenuSelected(MenuItem.DATA_SPACE);
|
||||
|
||||
|
@ -325,9 +326,6 @@ public class DataMinerManager implements EntryPoint {
|
|||
|
||||
@Override
|
||||
public void onMouseDown(MouseDownEvent event) {
|
||||
if (experimentPanel == null) {
|
||||
experimentPanel = new ExperimentPanel();
|
||||
}
|
||||
switchTo(experimentPanel);
|
||||
header.setMenuSelected(MenuItem.EXPERIMENT);
|
||||
|
||||
|
@ -428,13 +426,6 @@ public class DataMinerManager implements EntryPoint {
|
|||
return dataMinerService;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return
|
||||
*/
|
||||
/*
|
||||
* public static TabularData getTabularData() { if (tabularData == null)
|
||||
* tabularData = new TabularData(Constants.TD_DATASOURCE_FACTORY_ID); return
|
||||
* tabularData; }
|
||||
*/
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -90,6 +90,7 @@ public class DataMinerManagerController {
|
|||
public void onSuccess(UserInfo result) {
|
||||
userInfo = result;
|
||||
Log.info("Hello: " + userInfo.getUsername());
|
||||
retrieveDataMinerWorkArea();
|
||||
}
|
||||
|
||||
});
|
||||
|
@ -130,15 +131,21 @@ public class DataMinerManagerController {
|
|||
@Override
|
||||
public void onSuccess(DataMinerWorkArea result) {
|
||||
Log.debug("DataMinerWorkArea: " + result);
|
||||
dataMinerWorkArea = result;
|
||||
DataMinerWorkAreaEvent dataMinerWorkAreaEvent = new DataMinerWorkAreaEvent(
|
||||
DataMinerWorkAreaEventType.UPDATE, result);
|
||||
eventBus.fireEvent(dataMinerWorkAreaEvent);
|
||||
fireDataMinerWorkAreaEventRetrieved(result);
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
private void fireDataMinerWorkAreaEventRetrieved(DataMinerWorkArea result){
|
||||
dataMinerWorkArea = result;
|
||||
DataMinerWorkAreaEvent dataMinerWorkAreaEvent = new DataMinerWorkAreaEvent(
|
||||
DataMinerWorkAreaEventType.OPEN, result);
|
||||
eventBus.fireEvent(dataMinerWorkAreaEvent);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -11,17 +11,17 @@ import com.google.gwt.user.client.ui.HorizontalPanel;
|
|||
import com.google.gwt.user.client.ui.Image;
|
||||
|
||||
/**
|
||||
* @author ceras
|
||||
*
|
||||
* @author Giancarlo Panichi email: <a
|
||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
||||
*
|
||||
*/
|
||||
public abstract class Header extends HorizontalPanel {
|
||||
|
||||
public abstract void select(MenuItem menuItem);
|
||||
|
||||
Image menuGoBack, menuExperiment; // menuInputSpace, menuComputations;
|
||||
MenuItem currentSelection = null;
|
||||
Image currentImageSelection = null;
|
||||
//private Image menuDataSpace;
|
||||
private Image menuGoBack, menuExperiment, menuDataSpace; // menuComputations;
|
||||
private MenuItem currentSelection = null;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -44,7 +44,6 @@ public abstract class Header extends HorizontalPanel {
|
|||
}
|
||||
});
|
||||
|
||||
/*
|
||||
menuDataSpace = new Image(
|
||||
DataMinerManager.resources.menuItemInputspace());
|
||||
menuDataSpace.addStyleName("menuItemImage");
|
||||
|
@ -55,7 +54,6 @@ public abstract class Header extends HorizontalPanel {
|
|||
select(MenuItem.DATA_SPACE);
|
||||
}
|
||||
});
|
||||
*/
|
||||
|
||||
menuExperiment = new Image(
|
||||
DataMinerManager.resources.menuItemExperiment());
|
||||
|
@ -79,20 +77,20 @@ public abstract class Header extends HorizontalPanel {
|
|||
* select(MenuItem.COMPUTATIONS); } });
|
||||
*/
|
||||
|
||||
this.add(logo);
|
||||
this.add(menuGoBack);
|
||||
//this.add(menuDataSpace);
|
||||
this.add(menuExperiment);
|
||||
add(logo);
|
||||
add(menuGoBack);
|
||||
add(menuDataSpace);
|
||||
add(menuExperiment);
|
||||
// this.add(menuComputations);
|
||||
|
||||
this.setCellWidth(logo, "100px");
|
||||
this.setCellWidth(menuGoBack, "100px");
|
||||
//this.setCellWidth(menuDataSpace, "80px");
|
||||
this.setCellWidth(menuExperiment, "80px");
|
||||
this.setCellWidth(menuDataSpace, "80px");
|
||||
this.setCellWidth(menuExperiment, "80px"); //
|
||||
// this.setCellWidth(menuComputations, "80px");
|
||||
|
||||
menuGoBack.setVisible(false);
|
||||
//menuDataSpace.setVisible(false);
|
||||
menuDataSpace.setVisible(false);
|
||||
menuExperiment.setVisible(false);
|
||||
// menuComputations.setVisible(false);
|
||||
}
|
||||
|
@ -108,16 +106,15 @@ public abstract class Header extends HorizontalPanel {
|
|||
|
||||
if (menuItem == null) {
|
||||
menuGoBack.setVisible(false);
|
||||
//menuDataSpace.setVisible(false);
|
||||
menuDataSpace.setVisible(false);
|
||||
menuExperiment.setVisible(false);
|
||||
// menuComputations.setVisible(false);
|
||||
|
||||
if (currentSelection == MenuItem.EXPERIMENT)
|
||||
menuExperiment.removeStyleName("menuItemImage-selected");
|
||||
/*
|
||||
else if (currentSelection == MenuItem.DATA_SPACE)
|
||||
menuDataSpace.removeStyleName("menuItemImage-selected");
|
||||
*/
|
||||
|
||||
/*
|
||||
* else if (currentSelection == MenuItem.COMPUTATIONS)
|
||||
* menuComputations.removeStyleName("menuItemImage-selected");
|
||||
|
@ -126,27 +123,28 @@ public abstract class Header extends HorizontalPanel {
|
|||
if (currentSelection == null) {
|
||||
|
||||
menuGoBack.setVisible(true);
|
||||
//menuDataSpace.setVisible(true);
|
||||
menuDataSpace.setVisible(true);
|
||||
menuExperiment.setVisible(true);
|
||||
// menuComputations.setVisible(true);
|
||||
}
|
||||
|
||||
if (currentSelection == MenuItem.EXPERIMENT)
|
||||
menuExperiment.removeStyleName("menuItemImage-selected");
|
||||
/*else if (currentSelection == MenuItem.DATA_SPACE)
|
||||
menuDataSpace.removeStyleName("menuItemImage-selected");*/
|
||||
else if (currentSelection == MenuItem.DATA_SPACE)
|
||||
menuDataSpace.removeStyleName("menuItemImage-selected");
|
||||
|
||||
/*
|
||||
* else if (currentSelection == MenuItem.COMPUTATIONS)
|
||||
* menuComputations.removeStyleName("menuItemImage-selected");
|
||||
*/
|
||||
|
||||
Image imgNew=menuExperiment;
|
||||
|
||||
/*
|
||||
* Image imgNew=menuExperiment;
|
||||
*/
|
||||
|
||||
Image imgNew = (menuItem == MenuItem.DATA_SPACE ? menuDataSpace
|
||||
: menuExperiment);
|
||||
*/
|
||||
|
||||
/*
|
||||
* Image imgNew = (menuItem == MenuItem.DATA_SPACE ? menuDataSpace :
|
||||
* (menuItem == MenuItem.EXPERIMENT ? menuExperiment :
|
||||
|
|
|
@ -6,7 +6,9 @@ package org.gcube.portlets.user.dataminermanager.client.bean.output;
|
|||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author ceras
|
||||
*
|
||||
* @author Giancarlo Panichi
|
||||
* email: <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
||||
*
|
||||
*/
|
||||
public class FileResource extends Resource implements Serializable {
|
||||
|
|
|
@ -6,7 +6,9 @@ package org.gcube.portlets.user.dataminermanager.client.bean.output;
|
|||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author ceras
|
||||
*
|
||||
* @author Giancarlo Panichi
|
||||
* email: <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
||||
*
|
||||
*/
|
||||
public class ImagesResource extends Resource implements Serializable {
|
||||
|
|
|
@ -7,7 +7,9 @@ import java.io.Serializable;
|
|||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author ceras
|
||||
*
|
||||
* @author Giancarlo Panichi
|
||||
* email: <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
||||
*
|
||||
*/
|
||||
public class MapResource extends Resource implements Serializable {
|
||||
|
|
|
@ -6,7 +6,9 @@ package org.gcube.portlets.user.dataminermanager.client.bean.output;
|
|||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author ceras
|
||||
*
|
||||
* @author Giancarlo Panichi
|
||||
* email: <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
||||
*
|
||||
*/
|
||||
public class ObjectResource extends Resource implements Serializable {
|
||||
|
|
|
@ -6,7 +6,9 @@ package org.gcube.portlets.user.dataminermanager.client.bean.output;
|
|||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author ceras
|
||||
*
|
||||
* @author Giancarlo Panichi
|
||||
* email: <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
||||
*
|
||||
*/
|
||||
public class Resource implements Serializable {
|
||||
|
|
|
@ -6,7 +6,9 @@ package org.gcube.portlets.user.dataminermanager.client.bean.output;
|
|||
import com.google.gwt.user.client.rpc.IsSerializable;
|
||||
|
||||
/**
|
||||
* @author ceras
|
||||
*
|
||||
* @author Giancarlo Panichi
|
||||
* email: <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
||||
*
|
||||
*/
|
||||
public class TableResource extends Resource implements IsSerializable {
|
||||
|
|
|
@ -1,19 +0,0 @@
|
|||
package org.gcube.portlets.user.dataminermanager.client.dataspace;
|
||||
|
||||
import com.google.gwt.user.client.ui.HTML;
|
||||
import com.sencha.gxt.widget.core.client.container.SimpleContainer;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Giancarlo Panichi
|
||||
* email: <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
||||
*
|
||||
*/
|
||||
public class ComputedDataPanel extends SimpleContainer{
|
||||
|
||||
public ComputedDataPanel() {
|
||||
HTML html=new HTML("Ciao");
|
||||
add(html);
|
||||
}
|
||||
|
||||
}
|
|
@ -8,7 +8,12 @@ import com.sencha.gxt.widget.core.client.container.SimpleContainer;
|
|||
import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer;
|
||||
import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer.VerticalLayoutData;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Giancarlo Panichi
|
||||
* email: <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
||||
*
|
||||
*/
|
||||
public class DataSpacePanel extends SimpleContainer {
|
||||
|
||||
/**
|
||||
|
@ -17,8 +22,8 @@ public class DataSpacePanel extends SimpleContainer {
|
|||
public DataSpacePanel() {
|
||||
super();
|
||||
VerticalLayoutContainer v=new VerticalLayoutContainer();
|
||||
ImportedDataPanel importedDataPanel=new ImportedDataPanel();
|
||||
ComputedDataPanel computedDataPanel=new ComputedDataPanel();
|
||||
InputDataSetsPanel importedDataPanel=new InputDataSetsPanel();
|
||||
OutputDataSetsPanel computedDataPanel=new OutputDataSetsPanel();
|
||||
v.add(importedDataPanel,new VerticalLayoutData(1, 0.5, new Margins(0)));
|
||||
v.add(computedDataPanel,new VerticalLayoutData(1, 0.5, new Margins(0)));
|
||||
add(v);
|
||||
|
|
|
@ -38,8 +38,8 @@ import com.sencha.gxt.widget.core.client.toolbar.ToolBar;
|
|||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
||||
*
|
||||
*/
|
||||
public class ImportedDataPanel extends ContentPanel {
|
||||
|
||||
public class InputDataSetsPanel extends ContentPanel {
|
||||
|
||||
private Item selectedItem;
|
||||
private MultipleDNDUpload dnd;
|
||||
private WorkspaceResourcesExplorerPanel wsResourcesExplorerPanel;
|
||||
|
@ -48,10 +48,10 @@ public class ImportedDataPanel extends ContentPanel {
|
|||
private TextButton btnReload;
|
||||
private VerticalLayoutContainer v;
|
||||
|
||||
public ImportedDataPanel() {
|
||||
public InputDataSetsPanel() {
|
||||
super();
|
||||
Log.debug("ImportedDataPanel");
|
||||
|
||||
Log.debug("InputDataSetsPanel");
|
||||
|
||||
// msgs = GWT.create(ServiceCategoryMessages.class);
|
||||
init();
|
||||
bindToEvents();
|
||||
|
@ -59,14 +59,14 @@ public class ImportedDataPanel extends ContentPanel {
|
|||
}
|
||||
|
||||
private void init() {
|
||||
setId("ImportedDataPanel");
|
||||
setId("InputDataSetsPanel");
|
||||
forceLayoutOnResize = true;
|
||||
setBodyBorder(true);
|
||||
setBorders(true);
|
||||
setHeaderVisible(true);
|
||||
setResize(true);
|
||||
setAnimCollapse(false);
|
||||
setHeadingText("Imported Data");
|
||||
setHeadingText("Input Data Sets");
|
||||
|
||||
}
|
||||
|
||||
|
@ -96,7 +96,7 @@ public class ImportedDataPanel extends ContentPanel {
|
|||
}
|
||||
|
||||
private void manageStateEvents(UIStateEvent event) {
|
||||
Log.debug("ImportedDataPanel recieved UIStateEvent: "
|
||||
Log.debug("InputDataSetsPanel recieved UIStateEvent: "
|
||||
+ event.toString());
|
||||
switch (event.getUiStateType()) {
|
||||
case START:
|
||||
|
@ -111,9 +111,8 @@ public class ImportedDataPanel extends ContentPanel {
|
|||
}
|
||||
|
||||
private void manageDataMinerWorkAreaEvents(DataMinerWorkAreaEvent event) {
|
||||
|
||||
|
||||
Log.debug("ImportedDataPanel recieved UIStateEvent: "
|
||||
|
||||
Log.debug("InputDataSetsPanel recieved UIStateEvent: "
|
||||
+ event.toString());
|
||||
switch (event.getDataMinerWorkAreaEventType()) {
|
||||
case OPEN:
|
||||
|
@ -123,29 +122,32 @@ public class ImportedDataPanel extends ContentPanel {
|
|||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
private void create(DataMinerWorkAreaEvent event) {
|
||||
try {
|
||||
|
||||
if(event==null|| event.getDataMinerWorkArea()==null||
|
||||
event.getDataMinerWorkArea().getImportedData()==null||
|
||||
event.getDataMinerWorkArea().getImportedData().getFolder()==null||
|
||||
event.getDataMinerWorkArea().getImportedData().getFolder().getId()==null
|
||||
||event.getDataMinerWorkArea().getImportedData().getFolder().getId().isEmpty()){
|
||||
if(v!=null){
|
||||
|
||||
if (event == null
|
||||
|| event.getDataMinerWorkArea() == null
|
||||
|| event.getDataMinerWorkArea().getInputDataSets() == null
|
||||
|| event.getDataMinerWorkArea().getInputDataSets()
|
||||
.getFolder() == null
|
||||
|| event.getDataMinerWorkArea().getInputDataSets()
|
||||
.getFolder().getId() == null
|
||||
|| event.getDataMinerWorkArea().getInputDataSets()
|
||||
.getFolder().getId().isEmpty()) {
|
||||
if (v != null) {
|
||||
remove(v);
|
||||
forceLayout();
|
||||
}
|
||||
return;
|
||||
|
||||
|
||||
}
|
||||
|
||||
wsResourcesExplorerPanel = new WorkspaceResourcesExplorerPanel(
|
||||
event.getDataMinerWorkArea().getImportedData().getFolder().getId(),
|
||||
false);
|
||||
event.getDataMinerWorkArea().getInputDataSets().getFolder()
|
||||
.getId(), false);
|
||||
|
||||
WorskpaceExplorerSelectNotificationListener wsResourceExplorerListener = new WorskpaceExplorerSelectNotificationListener() {
|
||||
@Override
|
||||
|
@ -184,7 +186,8 @@ public class ImportedDataPanel extends ContentPanel {
|
|||
// DND
|
||||
|
||||
dnd = new MultipleDNDUpload();
|
||||
dnd.setParameters(event.getDataMinerWorkArea().getImportedData().getFolder().getId(), UPLOAD_TYPE.File);
|
||||
dnd.setParameters(event.getDataMinerWorkArea().getInputDataSets()
|
||||
.getFolder().getId(), UPLOAD_TYPE.File);
|
||||
dnd.addUniqueContainer(vResourcesExplorerContainer);
|
||||
WorskpaceUploadNotificationListener workspaceUploaderListener = new WorskpaceUploadNotificationListener() {
|
||||
|
||||
|
@ -282,23 +285,29 @@ public class ImportedDataPanel extends ContentPanel {
|
|||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
private void reloadWSResourceExplorerPanel(){
|
||||
|
||||
private void reloadWSResourceExplorerPanel() {
|
||||
if (wsResourcesExplorerPanel != null) {
|
||||
wsResourcesExplorerPanel.refreshRootFolderView();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void reloadWSResourceExplorerPanel(DataMinerWorkAreaEvent event) {
|
||||
if(v!=null){
|
||||
remove(v);
|
||||
create(event);
|
||||
} else {
|
||||
create(event);
|
||||
try {
|
||||
|
||||
if (v != null) {
|
||||
remove(v);
|
||||
create(event);
|
||||
} else {
|
||||
create(event);
|
||||
}
|
||||
|
||||
} catch (Throwable e) {
|
||||
Log.error("Error in ImputDataSetsPanel: " + e.getLocalizedMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void deleteItem(SelectEvent event) {
|
||||
ItemDescription itemDescription = new ItemDescription(
|
||||
selectedItem.getId(), selectedItem.getName(),
|
||||
|
@ -309,8 +318,6 @@ public class ImportedDataPanel extends ContentPanel {
|
|||
Log.debug("Fired: " + deleteItemEvent);
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void openFile() {
|
||||
if (selectedItem != null && !selectedItem.isFolder()) {
|
||||
|
||||
|
@ -325,7 +332,8 @@ public class ImportedDataPanel extends ContentPanel {
|
|||
@Override
|
||||
public void onFailure(Throwable caught) {
|
||||
if (caught instanceof ExpiredSessionServiceException) {
|
||||
EventBusProvider.INSTANCE.fireEvent(new SessionExpiredEvent());
|
||||
EventBusProvider.INSTANCE
|
||||
.fireEvent(new SessionExpiredEvent());
|
||||
} else {
|
||||
Log.error("Error open file: "
|
||||
+ caught.getLocalizedMessage());
|
|
@ -0,0 +1,361 @@
|
|||
package org.gcube.portlets.user.dataminermanager.client.dataspace;
|
||||
|
||||
import org.gcube.portlets.user.dataminermanager.client.common.EventBusProvider;
|
||||
import org.gcube.portlets.user.dataminermanager.client.events.DataMinerWorkAreaEvent;
|
||||
import org.gcube.portlets.user.dataminermanager.client.events.DeleteItemEvent;
|
||||
import org.gcube.portlets.user.dataminermanager.client.events.SessionExpiredEvent;
|
||||
import org.gcube.portlets.user.dataminermanager.client.events.UIStateEvent;
|
||||
import org.gcube.portlets.user.dataminermanager.client.rpc.DataMinerPortletServiceAsync;
|
||||
import org.gcube.portlets.user.dataminermanager.client.util.UtilsGXT3;
|
||||
import org.gcube.portlets.user.dataminermanager.shared.exception.ExpiredSessionServiceException;
|
||||
import org.gcube.portlets.user.dataminermanager.shared.workspace.ItemDescription;
|
||||
import org.gcube.portlets.widgets.workspaceuploader.client.WorkspaceUploadNotification.WorskpaceUploadNotificationListener;
|
||||
import org.gcube.portlets.widgets.workspaceuploader.client.uploader.DialogUpload.UPLOAD_TYPE;
|
||||
import org.gcube.portlets.widgets.workspaceuploader.client.uploader.dragdrop.MultipleDNDUpload;
|
||||
import org.gcube.portlets.widgets.wsexplorer.client.explore.WorkspaceResourcesExplorerPanel;
|
||||
import org.gcube.portlets.widgets.wsexplorer.client.notification.WorkspaceExplorerSelectNotification.WorskpaceExplorerSelectNotificationListener;
|
||||
import org.gcube.portlets.widgets.wsexplorer.shared.Item;
|
||||
|
||||
import com.allen_sauer.gwt.log.client.Log;
|
||||
import com.google.gwt.user.client.Window;
|
||||
import com.google.gwt.user.client.rpc.AsyncCallback;
|
||||
import com.sencha.gxt.cell.core.client.ButtonCell.ButtonScale;
|
||||
import com.sencha.gxt.cell.core.client.ButtonCell.IconAlign;
|
||||
import com.sencha.gxt.core.client.dom.ScrollSupport.ScrollMode;
|
||||
import com.sencha.gxt.core.client.util.Margins;
|
||||
import com.sencha.gxt.widget.core.client.ContentPanel;
|
||||
import com.sencha.gxt.widget.core.client.button.TextButton;
|
||||
import com.sencha.gxt.widget.core.client.container.BoxLayoutContainer.BoxLayoutData;
|
||||
import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer;
|
||||
import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer.VerticalLayoutData;
|
||||
import com.sencha.gxt.widget.core.client.event.SelectEvent;
|
||||
import com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler;
|
||||
import com.sencha.gxt.widget.core.client.toolbar.ToolBar;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Giancarlo Panichi email: <a
|
||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
||||
*
|
||||
*/
|
||||
public class OutputDataSetsPanel extends ContentPanel {
|
||||
|
||||
private Item selectedItem;
|
||||
private MultipleDNDUpload dnd;
|
||||
private WorkspaceResourcesExplorerPanel wsResourcesExplorerPanel;
|
||||
private TextButton btnOpen;
|
||||
private TextButton btnDelete;
|
||||
private TextButton btnReload;
|
||||
private VerticalLayoutContainer v;
|
||||
|
||||
public OutputDataSetsPanel() {
|
||||
super();
|
||||
Log.debug("OutputDataSetsPanel");
|
||||
|
||||
// msgs = GWT.create(ServiceCategoryMessages.class);
|
||||
init();
|
||||
bindToEvents();
|
||||
|
||||
}
|
||||
|
||||
private void init() {
|
||||
setId("OutputDataSetsPanel");
|
||||
forceLayoutOnResize = true;
|
||||
setBodyBorder(true);
|
||||
setBorders(true);
|
||||
setHeaderVisible(true);
|
||||
setResize(true);
|
||||
setAnimCollapse(false);
|
||||
setHeadingText("Output Data Sets");
|
||||
|
||||
}
|
||||
|
||||
private void bindToEvents() {
|
||||
|
||||
EventBusProvider.INSTANCE.addHandler(UIStateEvent.TYPE,
|
||||
new UIStateEvent.UIStateEventHandler() {
|
||||
|
||||
@Override
|
||||
public void onChange(UIStateEvent event) {
|
||||
manageStateEvents(event);
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
EventBusProvider.INSTANCE.addHandler(DataMinerWorkAreaEvent.TYPE,
|
||||
new DataMinerWorkAreaEvent.DataMinerWorkAreaEventHandler() {
|
||||
|
||||
@Override
|
||||
public void onChange(DataMinerWorkAreaEvent event) {
|
||||
manageDataMinerWorkAreaEvents(event);
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
private void manageStateEvents(UIStateEvent event) {
|
||||
Log.debug("OutputDataSetsPanel recieved UIStateEvent: "
|
||||
+ event.toString());
|
||||
switch (event.getUiStateType()) {
|
||||
case START:
|
||||
break;
|
||||
case WAITING:
|
||||
break;
|
||||
case UPDATE:
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
private void manageDataMinerWorkAreaEvents(DataMinerWorkAreaEvent event) {
|
||||
|
||||
Log.debug("OutputDataSetsPanel recieved UIStateEvent: "
|
||||
+ event.toString());
|
||||
switch (event.getDataMinerWorkAreaEventType()) {
|
||||
case OPEN:
|
||||
case UPDATE:
|
||||
reloadWSResourceExplorerPanel(event);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void create(DataMinerWorkAreaEvent event) {
|
||||
try {
|
||||
|
||||
if (event == null
|
||||
|| event.getDataMinerWorkArea() == null
|
||||
|| event.getDataMinerWorkArea().getOutputDataSets() == null
|
||||
|| event.getDataMinerWorkArea().getOutputDataSets()
|
||||
.getFolder() == null
|
||||
|| event.getDataMinerWorkArea().getOutputDataSets()
|
||||
.getFolder().getId() == null
|
||||
|| event.getDataMinerWorkArea().getOutputDataSets()
|
||||
.getFolder().getId().isEmpty()) {
|
||||
if (v != null) {
|
||||
remove(v);
|
||||
forceLayout();
|
||||
}
|
||||
return;
|
||||
|
||||
}
|
||||
|
||||
wsResourcesExplorerPanel = new WorkspaceResourcesExplorerPanel(
|
||||
event.getDataMinerWorkArea().getOutputDataSets()
|
||||
.getFolder().getId(), false);
|
||||
|
||||
WorskpaceExplorerSelectNotificationListener wsResourceExplorerListener = new WorskpaceExplorerSelectNotificationListener() {
|
||||
@Override
|
||||
public void onSelectedItem(Item item) {
|
||||
Log.debug("Listener Selected Item " + item);
|
||||
selectedItem = item;
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onFailed(Throwable throwable) {
|
||||
Log.error(throwable.getLocalizedMessage());
|
||||
throwable.printStackTrace();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onAborted() {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onNotValidSelection() {
|
||||
selectedItem = null;
|
||||
}
|
||||
};
|
||||
|
||||
wsResourcesExplorerPanel
|
||||
.addWorkspaceExplorerSelectNotificationListener(wsResourceExplorerListener);
|
||||
wsResourcesExplorerPanel.ensureDebugId("wsResourceExplorerPanel");
|
||||
|
||||
VerticalLayoutContainer vResourcesExplorerContainer = new VerticalLayoutContainer();
|
||||
vResourcesExplorerContainer.setScrollMode(ScrollMode.AUTO);
|
||||
vResourcesExplorerContainer.add(wsResourcesExplorerPanel,
|
||||
new VerticalLayoutData(1, -1, new Margins(0)));
|
||||
|
||||
// DND
|
||||
|
||||
dnd = new MultipleDNDUpload();
|
||||
dnd.setParameters(event.getDataMinerWorkArea().getOutputDataSets()
|
||||
.getFolder().getId(), UPLOAD_TYPE.File);
|
||||
dnd.addUniqueContainer(vResourcesExplorerContainer);
|
||||
WorskpaceUploadNotificationListener workspaceUploaderListener = new WorskpaceUploadNotificationListener() {
|
||||
|
||||
@Override
|
||||
public void onUploadCompleted(String parentId, String itemId) {
|
||||
Log.debug("Upload completed: [parentID: " + parentId
|
||||
+ ", itemId: " + itemId + "]");
|
||||
wsResourcesExplorerPanel.refreshRootFolderView();
|
||||
forceLayout();
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onUploadAborted(String parentId, String itemId) {
|
||||
Log.debug("Upload Aborted: [parentID: " + parentId
|
||||
+ ", itemId: " + itemId + "]");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(String parentId, String itemId,
|
||||
Throwable throwable) {
|
||||
Log.debug("Upload Error: [parentID: " + parentId
|
||||
+ ", itemId: " + itemId + "]");
|
||||
throwable.printStackTrace();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onOverwriteCompleted(String parentId, String itemId) {
|
||||
Log.debug("Upload Override Completed: [parentID: "
|
||||
+ parentId + ", itemId: " + itemId + "]");
|
||||
wsResourcesExplorerPanel.refreshRootFolderView();
|
||||
forceLayout();
|
||||
}
|
||||
};
|
||||
|
||||
dnd.addWorkspaceUploadNotificationListener(workspaceUploaderListener);
|
||||
|
||||
// ToolBar
|
||||
btnOpen = new TextButton("Open");
|
||||
// btnOpen.setIcon(StatAlgoImporterResources.INSTANCE.download16());
|
||||
btnOpen.setScale(ButtonScale.SMALL);
|
||||
btnOpen.setIconAlign(IconAlign.LEFT);
|
||||
btnOpen.setToolTip("Open");
|
||||
btnOpen.addSelectHandler(new SelectHandler() {
|
||||
|
||||
@Override
|
||||
public void onSelect(SelectEvent event) {
|
||||
openFile();
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
btnDelete = new TextButton("Delete");
|
||||
// btnDelete.setIcon(StatAlgoImporterResources.INSTANCE.delete16());
|
||||
btnDelete.setScale(ButtonScale.SMALL);
|
||||
btnDelete.setIconAlign(IconAlign.LEFT);
|
||||
btnDelete.setToolTip("Delete");
|
||||
btnDelete.addSelectHandler(new SelectHandler() {
|
||||
|
||||
@Override
|
||||
public void onSelect(SelectEvent event) {
|
||||
deleteItem(event);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
btnReload = new TextButton("Reload");
|
||||
// btnReload.setIcon(StatAlgoImporterResources.INSTANCE.reload16());
|
||||
btnReload.setScale(ButtonScale.SMALL);
|
||||
btnReload.setIconAlign(IconAlign.LEFT);
|
||||
btnReload.setToolTip("Reload");
|
||||
btnReload.addSelectHandler(new SelectHandler() {
|
||||
|
||||
@Override
|
||||
public void onSelect(SelectEvent event) {
|
||||
reloadWSResourceExplorerPanel();
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
ToolBar toolBar = new ToolBar();
|
||||
toolBar.add(btnOpen, new BoxLayoutData(new Margins(0)));
|
||||
toolBar.add(btnDelete, new BoxLayoutData(new Margins(0)));
|
||||
toolBar.add(btnReload, new BoxLayoutData(new Margins(0)));
|
||||
|
||||
v = new VerticalLayoutContainer();
|
||||
|
||||
v.add(toolBar, new VerticalLayoutData(1, -1, new Margins(0)));
|
||||
v.add(dnd, new VerticalLayoutData(1, 1, new Margins(0)));
|
||||
add(v);
|
||||
forceLayout();
|
||||
|
||||
} catch (Exception e) {
|
||||
Log.error("Error opening wsResourceExplorerPanel");
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
private void reloadWSResourceExplorerPanel() {
|
||||
if (wsResourcesExplorerPanel != null) {
|
||||
wsResourcesExplorerPanel.refreshRootFolderView();
|
||||
}
|
||||
}
|
||||
|
||||
private void reloadWSResourceExplorerPanel(DataMinerWorkAreaEvent event) {
|
||||
try {
|
||||
|
||||
if (v != null) {
|
||||
remove(v);
|
||||
create(event);
|
||||
} else {
|
||||
create(event);
|
||||
}
|
||||
|
||||
} catch (Throwable e) {
|
||||
Log.error("Error in OutputDataSetsPanel: " + e.getLocalizedMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
private void deleteItem(SelectEvent event) {
|
||||
ItemDescription itemDescription = new ItemDescription(
|
||||
selectedItem.getId(), selectedItem.getName(),
|
||||
selectedItem.getOwner(), selectedItem.getPath(), selectedItem
|
||||
.getType().name());
|
||||
DeleteItemEvent deleteItemEvent = new DeleteItemEvent(itemDescription);
|
||||
EventBusProvider.INSTANCE.fireEvent(deleteItemEvent);
|
||||
Log.debug("Fired: " + deleteItemEvent);
|
||||
}
|
||||
|
||||
private void openFile() {
|
||||
if (selectedItem != null && !selectedItem.isFolder()) {
|
||||
|
||||
final ItemDescription itemDescription = new ItemDescription(
|
||||
selectedItem.getId(), selectedItem.getName(),
|
||||
selectedItem.getOwner(), selectedItem.getPath(),
|
||||
selectedItem.getType().name());
|
||||
|
||||
DataMinerPortletServiceAsync.INSTANCE.getPublicLink(
|
||||
itemDescription, new AsyncCallback<String>() {
|
||||
|
||||
@Override
|
||||
public void onFailure(Throwable caught) {
|
||||
if (caught instanceof ExpiredSessionServiceException) {
|
||||
EventBusProvider.INSTANCE
|
||||
.fireEvent(new SessionExpiredEvent());
|
||||
} else {
|
||||
Log.error("Error open file: "
|
||||
+ caught.getLocalizedMessage());
|
||||
UtilsGXT3.alert("Error",
|
||||
caught.getLocalizedMessage());
|
||||
}
|
||||
caught.printStackTrace();
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onSuccess(String link) {
|
||||
Log.debug("Retrieved link: " + link);
|
||||
Window.open(link, itemDescription.getName(), "");
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
} else {
|
||||
UtilsGXT3.info("Attention", "Select a file!");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -81,8 +81,7 @@ public class ComputationExecutionPanel extends FramedPanel {
|
|||
operator);
|
||||
computationStatusPanels.add(statusPanel);
|
||||
Log.debug("Added status bar");
|
||||
v.insert(statusPanel, 0, new VerticalLayoutData(1, -1,
|
||||
new Margins(20)));
|
||||
v.insert(statusPanel, 0, new VerticalLayoutData(1, -1, new Margins(20)));
|
||||
removeAllButton.setEnabled(true);
|
||||
|
||||
DataMinerManager.getService().startComputation(operator,
|
||||
|
@ -134,8 +133,11 @@ public class ComputationExecutionPanel extends FramedPanel {
|
|||
final ComputationStatusPanel statusPanel = new ComputationStatusPanel(
|
||||
computationItem.getOperator());
|
||||
computationStatusPanels.add(statusPanel);
|
||||
v.insert(statusPanel, 0, new VerticalLayoutData(1, -1,
|
||||
new Margins(20)));
|
||||
if(v.getWidgetCount()==0){
|
||||
v.add(statusPanel, new VerticalLayoutData(1, -1, new Margins(20)));
|
||||
} else {
|
||||
v.insert(statusPanel, 0, new VerticalLayoutData(1, -1, new Margins(20)));
|
||||
}
|
||||
removeAllButton.setEnabled(true);
|
||||
|
||||
DataMinerManager.getService().resubmit(
|
||||
|
@ -179,16 +181,13 @@ public class ComputationExecutionPanel extends FramedPanel {
|
|||
statusPanel.stopTimer();
|
||||
|
||||
removeAllButton.setEnabled(false);
|
||||
|
||||
computationStatusPanels.clear();
|
||||
|
||||
v.clear();
|
||||
computationStatusPanels.clear();
|
||||
forceLayout();
|
||||
}
|
||||
|
||||
private void setToolBar() {
|
||||
toolBar = new ToolBar();
|
||||
|
||||
|
||||
removeAllButton = new TextButton("Remove All");
|
||||
|
||||
|
@ -204,7 +203,7 @@ public class ComputationExecutionPanel extends FramedPanel {
|
|||
removeAllButton.setIcon(DataMinerManager.resources.removeAll());
|
||||
|
||||
removeAllButton.setToolTip(DELETE_ALL_BUTTON_TOOLTIP);
|
||||
//removeAllButton.setScale(ButtonScale.MEDIUM);
|
||||
// removeAllButton.setScale(ButtonScale.MEDIUM);
|
||||
removeAllButton.setEnabled(false);
|
||||
|
||||
toolBar.add(new LabelToolItem("Tools:"));
|
||||
|
|
|
@ -94,25 +94,26 @@ public class ComputationOutputPanel extends SimpleContainer {
|
|||
|
||||
case FILE:
|
||||
FileResource fileResource = (FileResource) resource;
|
||||
v.add(getHtmlTitle("The algorithm produced a", "File"), new VerticalLayoutData(1, -1,
|
||||
new Margins(0)));
|
||||
v.add(getFileResourceOutput(fileResource), new VerticalLayoutData(1, -1,
|
||||
new Margins(0)));
|
||||
v.add(getHtmlTitle("The algorithm produced a", "File"),
|
||||
new VerticalLayoutData(1, -1, new Margins(0)));
|
||||
v.add(getFileResourceOutput(fileResource),
|
||||
new VerticalLayoutData(1, -1, new Margins(0)));
|
||||
break;
|
||||
|
||||
case TABULAR:
|
||||
TableResource tabResource = (TableResource) resource;
|
||||
v.add(getHtmlTitle("The algorithm produced a", "Table"), new VerticalLayoutData(1, -1,
|
||||
new Margins(0)));
|
||||
// v.add(getTabResourceOutput(tabResource));
|
||||
v.add(getHtmlTitle("The algorithm produced a", "Table"),
|
||||
new VerticalLayoutData(1, -1, new Margins(0)));
|
||||
// v.add(getTabResourceOutput(tabResource),
|
||||
//new VerticalLayoutData(1, -1, new Margins(0)));
|
||||
break;
|
||||
|
||||
case IMAGES:
|
||||
v.add(getHtmlTitle("The algorithm produced an", "Set of Images"), new VerticalLayoutData(1, -1,
|
||||
new Margins(0)));
|
||||
v.add(getHtmlTitle("The algorithm produced an", "Set of Images"),
|
||||
new VerticalLayoutData(1, -1, new Margins(0)));
|
||||
final ImagesResource imagesResource = (ImagesResource) resource;
|
||||
v.add(getImagesResourceOutput(imagesResource), new VerticalLayoutData(1, -1,
|
||||
new Margins(0)));
|
||||
v.add(getImagesResourceOutput(imagesResource),
|
||||
new VerticalLayoutData(1, -1, new Margins(0)));
|
||||
break;
|
||||
|
||||
case MAP:
|
||||
|
@ -164,9 +165,7 @@ public class ComputationOutputPanel extends SimpleContainer {
|
|||
*/
|
||||
private SimpleContainer getImagesResourceOutput(
|
||||
ImagesResource imagesResource) {
|
||||
SimpleContainer container = new SimpleContainer();
|
||||
container.add(new ImagesViewer(computationId, imagesResource));
|
||||
return container;
|
||||
return new ImagesViewer(computationId, imagesResource);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -245,11 +244,11 @@ public class ComputationOutputPanel extends SimpleContainer {
|
|||
vp.add(html, new VerticalLayoutData(-1, -1, new Margins(0)));
|
||||
|
||||
vp.add((new ResourceViewer(mapValues)).getHtml(),
|
||||
new VerticalLayoutData(-1, -1, new Margins(0)));
|
||||
new VerticalLayoutData(1, -1, new Margins(0)));
|
||||
|
||||
html = new HtmlLayoutContainer(
|
||||
"<div class='computation-output-separator'></div>");
|
||||
vp.add(html);
|
||||
vp.add(html, new VerticalLayoutData(-1, -1, new Margins(0)));
|
||||
}
|
||||
|
||||
if (mapFiles.size() > 0) {
|
||||
|
@ -260,7 +259,7 @@ public class ComputationOutputPanel extends SimpleContainer {
|
|||
for (String fileKey : mapFiles.keySet()) {
|
||||
// vp.add(new Html("<i>"+fileKey+"</i>"));
|
||||
vp.add(getFileResourceOutput(mapFiles.get(fileKey)),
|
||||
new VerticalLayoutData(-1, -1, new Margins(0)));
|
||||
new VerticalLayoutData(1, -1, new Margins(0)));
|
||||
}
|
||||
|
||||
html = new HtmlLayoutContainer(
|
||||
|
@ -271,29 +270,31 @@ public class ComputationOutputPanel extends SimpleContainer {
|
|||
if (mapTabs.size() > 0) {
|
||||
HtmlLayoutContainer html = new HtmlLayoutContainer("Tables");
|
||||
html.setStyleName("computation-output-groupTitle");
|
||||
vp.add(html,new VerticalLayoutData(-1, -1, new Margins(0)));
|
||||
vp.add(html, new VerticalLayoutData(-1, -1, new Margins(0)));
|
||||
|
||||
for (String tabKey : mapTabs.keySet()) {
|
||||
// vp.add(new Html("<i>"+tabKey+"</i>"));
|
||||
// vp.add(getTabResourceOutput(mapTabs.get(tabKey)));
|
||||
}
|
||||
|
||||
html = new HtmlLayoutContainer("<div class='computation-output-separator'></div>");
|
||||
vp.add(html,new VerticalLayoutData(-1, -1, new Margins(0)));
|
||||
html = new HtmlLayoutContainer(
|
||||
"<div class='computation-output-separator'></div>");
|
||||
vp.add(html, new VerticalLayoutData(-1, -1, new Margins(0)));
|
||||
}
|
||||
|
||||
if (mapImages.size() > 0) {
|
||||
HtmlLayoutContainer html = new HtmlLayoutContainer("Images");
|
||||
html.setStyleName("computation-output-groupTitle");
|
||||
vp.add(html,new VerticalLayoutData(-1, -1, new Margins(0)));
|
||||
vp.add(html, new VerticalLayoutData(-1, -1, new Margins(0)));
|
||||
|
||||
for (String imagesKey : mapImages.keySet()) {
|
||||
// vp.add(new Html("<i>"+imagesKey+"</i>"));
|
||||
vp.add(getImagesResourceOutput(mapImages.get(imagesKey)));
|
||||
vp.add(getImagesResourceOutput(mapImages.get(imagesKey)),
|
||||
new VerticalLayoutData(1, -1, new Margins(0)));
|
||||
}
|
||||
|
||||
html = new HtmlLayoutContainer("<div class='computation-output-separator'></div>");
|
||||
vp.add(html,new VerticalLayoutData(-1, -1, new Margins(0)));
|
||||
html = new HtmlLayoutContainer(
|
||||
"<div class='computation-output-separator'></div>");
|
||||
vp.add(html, new VerticalLayoutData(-1, -1, new Margins(0)));
|
||||
}
|
||||
|
||||
container.add(vp);
|
||||
|
|
|
@ -12,8 +12,9 @@ import com.sencha.gxt.widget.core.client.container.BoxLayoutContainer.BoxLayoutD
|
|||
import com.sencha.gxt.widget.core.client.container.BoxLayoutContainer.BoxLayoutPack;
|
||||
import com.sencha.gxt.widget.core.client.container.HBoxLayoutContainer;
|
||||
import com.sencha.gxt.widget.core.client.container.HtmlLayoutContainer;
|
||||
import com.sencha.gxt.widget.core.client.container.MarginData;
|
||||
import com.sencha.gxt.widget.core.client.container.SimpleContainer;
|
||||
import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer;
|
||||
import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer.VerticalLayoutData;
|
||||
import com.sencha.gxt.widget.core.client.form.TextField;
|
||||
|
||||
/**
|
||||
|
@ -53,16 +54,27 @@ public class StringFld extends AbstractFld {
|
|||
descr.addStyleName("workflow-fieldDescription");
|
||||
}
|
||||
|
||||
fieldContainer=new SimpleContainer();
|
||||
SimpleContainer vContainer=new SimpleContainer();
|
||||
VerticalLayoutContainer vField = new VerticalLayoutContainer();
|
||||
HtmlLayoutContainer typeDescription = new HtmlLayoutContainer(
|
||||
"String Value");
|
||||
typeDescription.setStylePrimaryName("workflow-parameters-description");
|
||||
vField.add(textField, new VerticalLayoutData(1,-1,new Margins(0)));
|
||||
vField.add(typeDescription, new VerticalLayoutData(-1,-1,new Margins(0)));
|
||||
vContainer.add(vField);
|
||||
|
||||
fieldContainer = new SimpleContainer();
|
||||
HBoxLayoutContainer horiz = new HBoxLayoutContainer();
|
||||
horiz.setPack(BoxLayoutPack.START);
|
||||
horiz.setEnableOverflow(false);
|
||||
|
||||
|
||||
horiz.add(vContainer, new BoxLayoutData(new Margins()));
|
||||
horiz.add(descr, new BoxLayoutData(new Margins()));
|
||||
|
||||
horiz.add(textField,new BoxLayoutData(new Margins()));
|
||||
horiz.add(descr,new BoxLayoutData(new Margins()));
|
||||
fieldContainer.add(horiz,new MarginData(new Margins()));
|
||||
|
||||
fieldContainer.add(horiz);
|
||||
fieldContainer.forceLayout();
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,7 +6,7 @@ package org.gcube.portlets.user.dataminermanager.client.widgets;
|
|||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
|
||||
import com.google.gwt.user.client.ui.HTML;
|
||||
import com.sencha.gxt.widget.core.client.container.HtmlLayoutContainer;
|
||||
import com.sencha.gxt.widget.core.client.container.SimpleContainer;
|
||||
|
||||
|
||||
|
@ -53,7 +53,8 @@ public class HashMapViewer extends SimpleContainer {
|
|||
|
||||
html += " </tbody>" +
|
||||
"</table>";
|
||||
add(new HTML(html));
|
||||
HtmlLayoutContainer htmlContainer=new HtmlLayoutContainer(html);
|
||||
add(htmlContainer);
|
||||
forceLayout();
|
||||
}
|
||||
|
||||
|
|
|
@ -2,12 +2,8 @@ package org.gcube.portlets.user.dataminermanager.client.widgets;
|
|||
|
||||
import org.gcube.portlets.user.dataminermanager.client.DataMinerManager;
|
||||
import org.gcube.portlets.user.dataminermanager.client.bean.output.ImagesResource;
|
||||
import org.gcube.portlets.user.dataminermanager.client.common.EventBusProvider;
|
||||
import org.gcube.portlets.user.dataminermanager.client.events.MaskEvent;
|
||||
import org.gcube.portlets.user.dataminermanager.client.util.UtilsGXT3;
|
||||
import org.gcube.portlets.user.dataminermanager.shared.data.ComputationId;
|
||||
|
||||
import com.google.gwt.user.client.rpc.AsyncCallback;
|
||||
import com.google.gwt.user.client.ui.Image;
|
||||
import com.sencha.gxt.core.client.util.Margins;
|
||||
import com.sencha.gxt.widget.core.client.button.TextButton;
|
||||
|
@ -30,7 +26,7 @@ public class ImagesViewer extends SimpleContainer {
|
|||
protected static final String SAVE_FAIL_TITLE = "Error";
|
||||
protected static final String SAVE_FAIL_MESSAGE = "Error in saving images.";
|
||||
private ImagesResource imagesResource;
|
||||
private ComputationId computationId;
|
||||
//private ComputationId computationId;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -40,7 +36,7 @@ public class ImagesViewer extends SimpleContainer {
|
|||
ImagesResource imagesResource) {
|
||||
super();
|
||||
this.imagesResource = imagesResource;
|
||||
this.computationId = computationId;
|
||||
//this.computationId = computationId;
|
||||
init();
|
||||
}
|
||||
|
||||
|
@ -54,27 +50,27 @@ public class ImagesViewer extends SimpleContainer {
|
|||
else {
|
||||
v.add(new HtmlLayoutContainer(imagesResource.getName()),new VerticalLayoutData(-1, -1, new Margins(0)));
|
||||
TextButton saveImageBtn = new TextButton(
|
||||
"Save image on the Workspace");
|
||||
"Download Image");
|
||||
saveImageBtn.setIcon(DataMinerManager.resources.save());
|
||||
saveImageBtn.addSelectHandler(new SelectEvent.SelectHandler() {
|
||||
|
||||
@Override
|
||||
public void onSelect(SelectEvent event) {
|
||||
saveImages();
|
||||
com.google.gwt.user.client.Window.open(imagesResource.getLink(), imagesResource.getName(), "");
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
v.add(saveImageBtn,new VerticalLayoutData(-1, -1, new Margins(0)));
|
||||
final Image img = new Image(imagesResource.getLink());
|
||||
v.add(img,new VerticalLayoutData(-1, -1, new Margins(0)));
|
||||
v.add(img,new VerticalLayoutData(1, -1, new Margins(0)));
|
||||
}
|
||||
|
||||
forceLayout();
|
||||
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
private void saveImages() {
|
||||
EventBusProvider.INSTANCE.fireEvent(new MaskEvent(
|
||||
"Saving on the workspace..."));
|
||||
|
@ -100,4 +96,5 @@ public class ImagesViewer extends SimpleContainer {
|
|||
}
|
||||
});
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
|
|
@ -9,10 +9,12 @@ import java.util.Map.Entry;
|
|||
import org.gcube.portlets.user.dataminermanager.client.bean.output.ObjectResource;
|
||||
import org.gcube.portlets.user.dataminermanager.client.bean.output.Resource;
|
||||
|
||||
import com.google.gwt.user.client.ui.HTML;
|
||||
import com.sencha.gxt.widget.core.client.container.HtmlLayoutContainer;
|
||||
|
||||
/**
|
||||
* @author ceras
|
||||
*
|
||||
* @author Giancarlo Panichi
|
||||
* email: <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
||||
*
|
||||
*/
|
||||
public class ResourceViewer {
|
||||
|
@ -31,7 +33,7 @@ public class ResourceViewer {
|
|||
* @param map
|
||||
* @return
|
||||
*/
|
||||
public HTML getHtml() {
|
||||
public HtmlLayoutContainer getHtml() {
|
||||
String html = "";
|
||||
html += "<table class='jobViewer-table'>" + " <colgroup>"
|
||||
+ " <col>" + " <col>"
|
||||
|
@ -50,7 +52,7 @@ public class ResourceViewer {
|
|||
}
|
||||
|
||||
html += " </tbody>" + "</table>";
|
||||
return new HTML(html);
|
||||
return new HtmlLayoutContainer(html);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,129 +0,0 @@
|
|||
/**
|
||||
*
|
||||
*/
|
||||
package org.gcube.portlets.user.dataminermanager.client.widgets;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import org.gcube.portlets.user.dataminermanager.client.DataMinerManager;
|
||||
import org.gcube.portlets.user.dataminermanager.client.bean.ResourceItem;
|
||||
import org.gcube.portlets.user.dataminermanager.client.util.UtilsGXT3;
|
||||
import org.gcube.portlets.widgets.wsexplorer.client.notification.WorkspaceExplorerSaveNotification.WorskpaceExplorerSaveNotificationListener;
|
||||
import org.gcube.portlets.widgets.wsexplorer.client.save.WorkspaceExplorerSaveDialog;
|
||||
import org.gcube.portlets.widgets.wsexplorer.shared.Item;
|
||||
import org.gcube.portlets.widgets.wsexplorer.shared.ItemType;
|
||||
|
||||
import com.google.gwt.user.client.Timer;
|
||||
import com.google.gwt.user.client.rpc.AsyncCallback;
|
||||
import com.sencha.gxt.core.client.dom.XDOM;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Giancarlo Panichi
|
||||
* email: <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
||||
*
|
||||
*/
|
||||
public class ResourcesExporter {
|
||||
|
||||
|
||||
public static void exportResource(final ResourceItem resourceItem) {
|
||||
final String fName = resourceItem.getName()
|
||||
+ (resourceItem.isTable() ? ".csv" : "");
|
||||
//
|
||||
List<ItemType> selectableTypes = new ArrayList<ItemType>();
|
||||
selectableTypes.add(ItemType.FOLDER);
|
||||
List<ItemType> showableTypes = new ArrayList<ItemType>();
|
||||
showableTypes.addAll(Arrays.asList(ItemType.values()));
|
||||
|
||||
final WorkspaceExplorerSaveDialog wsaveDialog = new WorkspaceExplorerSaveDialog(
|
||||
"Select the location to save the resource", fName,
|
||||
showableTypes);
|
||||
|
||||
WorskpaceExplorerSaveNotificationListener handler = new WorskpaceExplorerSaveNotificationListener() {
|
||||
|
||||
@Override
|
||||
public void onSaving(Item destinationFolder, String fileName) {
|
||||
Timer timer = new Timer() {
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
if (wsaveDialog != null) {
|
||||
wsaveDialog.hide();
|
||||
}
|
||||
|
||||
}
|
||||
};
|
||||
timer.schedule(500);
|
||||
|
||||
DataMinerManager.getService().exportResource(
|
||||
destinationFolder.getId(), fileName, resourceItem,
|
||||
new AsyncCallback<String>() {
|
||||
@Override
|
||||
public void onSuccess(String result) {
|
||||
// EventBusProvider.getInstance().fireEvent(
|
||||
// new MaskEvent(null));
|
||||
UtilsGXT3
|
||||
.info("File saved",
|
||||
"The file \""
|
||||
+ result
|
||||
+ "\" has been exported in the workspace.");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onFailure(Throwable caught) {
|
||||
|
||||
// EventBusProvider.getInstance().fireEvent(
|
||||
// new MaskEvent(null));
|
||||
UtilsGXT3.alert(
|
||||
"Error",
|
||||
"Impossible to export the file into the Workspace<br/>Cause: "
|
||||
+ caught.getCause()
|
||||
+ "<br/>Message: "
|
||||
+ caught.getMessage());
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onFailed(Throwable throwable) {
|
||||
throwable.printStackTrace();
|
||||
Timer timer = new Timer() {
|
||||
@Override
|
||||
public void run() {
|
||||
if (wsaveDialog != null) {
|
||||
wsaveDialog.hide();
|
||||
}
|
||||
}
|
||||
};
|
||||
timer.schedule(500);
|
||||
UtilsGXT3.alert("Error",
|
||||
"Impossible select destination into the Workspace<br/>Cause: "
|
||||
+ throwable.getCause() + "<br/>Message: "
|
||||
+ throwable.getMessage());
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onAborted() {
|
||||
Timer timer = new Timer() {
|
||||
@Override
|
||||
public void run() {
|
||||
if (wsaveDialog != null) {
|
||||
wsaveDialog.hide();
|
||||
}
|
||||
}
|
||||
};
|
||||
timer.schedule(500);
|
||||
}
|
||||
};
|
||||
|
||||
wsaveDialog.addWorkspaceExplorerSaveNotificationListener(handler);
|
||||
wsaveDialog.setZIndex(XDOM.getTopZIndex());
|
||||
wsaveDialog.show();
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -1,78 +0,0 @@
|
|||
/**
|
||||
*
|
||||
*/
|
||||
package org.gcube.portlets.user.dataminermanager.client.widgets;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import com.google.gwt.resources.client.ImageResource;
|
||||
import com.google.gwt.user.client.ui.HTML;
|
||||
import com.google.gwt.user.client.ui.Image;
|
||||
import com.google.gwt.user.client.ui.Widget;
|
||||
import com.sencha.gxt.widget.core.client.container.HorizontalLayoutContainer;
|
||||
import com.sencha.gxt.widget.core.client.container.SimpleContainer;
|
||||
import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Giancarlo Panichi
|
||||
* email: <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
||||
*
|
||||
*/
|
||||
public class Section extends SimpleContainer {
|
||||
|
||||
private VerticalLayoutContainer v;
|
||||
|
||||
|
||||
public Section(String title, ImageResource img) {
|
||||
super();
|
||||
v = new VerticalLayoutContainer();
|
||||
v.addStyleName("jobViewer-section");
|
||||
createHeader(title, img);
|
||||
add(v);
|
||||
}
|
||||
|
||||
public Section(String title, ImageResource img, Map<String, String> map) {
|
||||
super();
|
||||
v = new VerticalLayoutContainer();
|
||||
v.addStyleName("jobViewer-section");
|
||||
createHeader(title, img);
|
||||
addMap(map);
|
||||
|
||||
add(v);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private void createHeader(String title, ImageResource img) {
|
||||
HorizontalLayoutContainer hp = new HorizontalLayoutContainer();
|
||||
hp.addStyleName("jobViewer-section-header");
|
||||
|
||||
if (img!=null) {
|
||||
Image image = new Image(img);
|
||||
image.addStyleName("jobViewer-section-header-image");
|
||||
hp.add(image);
|
||||
}
|
||||
|
||||
if (title!=null) {
|
||||
HTML htmlTitle = new HTML(title);
|
||||
htmlTitle.addStyleName("jobViewer-section-header-title");
|
||||
hp.add(htmlTitle);
|
||||
}
|
||||
|
||||
v.add(hp);
|
||||
}
|
||||
|
||||
|
||||
public void add(Widget widget) {
|
||||
v.add(widget);
|
||||
}
|
||||
|
||||
public void addMap(Map<String, String> map) {
|
||||
v.add(new HashMapViewer(map));
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -47,19 +47,19 @@
|
|||
<entry-point
|
||||
class='org.gcube.portlets.user.dataminermanager.client.DataMinerManager' />
|
||||
|
||||
|
||||
<!--
|
||||
<set-property name="log_ConsoleLogger" value="ENABLED" /> <set-property
|
||||
name="log_DivLogger" value="ENABLED" /> <set-property name="log_GWTLogger"
|
||||
value="ENABLED" /> <set-property name="log_SystemLogger" value="ENABLED"
|
||||
/>
|
||||
/> -->
|
||||
<!-- Not in GWT 2.6 <set-property name="log_FirebugLogger" value="ENABLED"
|
||||
/> -->
|
||||
|
||||
<!--
|
||||
|
||||
<set-property name="log_ConsoleLogger" value="DISABLED" />
|
||||
<set-property name="log_DivLogger" value="DISABLED" />
|
||||
<set-property name="log_GWTLogger" value="DISABLED" />
|
||||
<set-property name="log_SystemLogger" value="DISABLED" /> -->
|
||||
<set-property name="log_SystemLogger" value="DISABLED" />
|
||||
<!-- Not in GWT 2.6 <set-property name="log_FirebugLogger" value="DISABLED"
|
||||
/> -->
|
||||
|
||||
|
|
|
@ -4,9 +4,9 @@ import org.gcube.application.framework.core.session.ASLSession;
|
|||
import org.gcube.common.homelibrary.home.workspace.WorkspaceItem;
|
||||
import org.gcube.portlets.user.dataminermanager.shared.exception.ServiceException;
|
||||
import org.gcube.portlets.user.dataminermanager.shared.workspace.Computations;
|
||||
import org.gcube.portlets.user.dataminermanager.shared.workspace.ComputedData;
|
||||
import org.gcube.portlets.user.dataminermanager.shared.workspace.OutputDataSets;
|
||||
import org.gcube.portlets.user.dataminermanager.shared.workspace.DataMinerWorkArea;
|
||||
import org.gcube.portlets.user.dataminermanager.shared.workspace.ImportedData;
|
||||
import org.gcube.portlets.user.dataminermanager.shared.workspace.InputDataSets;
|
||||
import org.gcube.portlets.user.dataminermanager.shared.workspace.ItemDescription;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
@ -19,8 +19,8 @@ import org.slf4j.LoggerFactory;
|
|||
*/
|
||||
public class DataMinerWorkAreaManager {
|
||||
private static final String DATA_MINER_FOLDER = "DataMiner";
|
||||
private static final String IMPORTED_DATA_FOLDER = "Imported Data";
|
||||
private static final String COMPUTED_DATA_FOLDER = "Computed Data";
|
||||
private static final String IMPORTED_DATA_FOLDER = "Input Data Sets";
|
||||
private static final String COMPUTED_DATA_FOLDER = "Output Data Sets";
|
||||
private static final String COMPUTATIONS_FOLDER = "Computations";
|
||||
|
||||
public static final Logger logger = LoggerFactory
|
||||
|
@ -62,7 +62,7 @@ public class DataMinerWorkAreaManager {
|
|||
return dataMinerWorkArea;
|
||||
}
|
||||
|
||||
ImportedData importedData = null;
|
||||
InputDataSets inputDataSets = null;
|
||||
try {
|
||||
WorkspaceItem wiImportedDataFolder = StorageUtil
|
||||
.getItemInFolderOnWorkspace(aslSession.getUsername(),
|
||||
|
@ -77,14 +77,14 @@ public class DataMinerWorkAreaManager {
|
|||
wiImportedDataFolder.getPath(), wiImportedDataFolder
|
||||
.getType().name());
|
||||
|
||||
importedData = new ImportedData(importedDataFolder);
|
||||
inputDataSets = new InputDataSets(importedDataFolder);
|
||||
|
||||
} catch (Throwable e) {
|
||||
logger.debug("ImportedData Folder is set to null");
|
||||
}
|
||||
dataMinerWorkArea.setImportedData(importedData);
|
||||
dataMinerWorkArea.setInputDataSets(inputDataSets);
|
||||
|
||||
ComputedData computedData = null;
|
||||
OutputDataSets outputDataSets = null;
|
||||
try {
|
||||
WorkspaceItem wiComputedDataFolder = StorageUtil
|
||||
.getItemInFolderOnWorkspace(aslSession.getUsername(),
|
||||
|
@ -98,12 +98,12 @@ public class DataMinerWorkAreaManager {
|
|||
.getOwner().getPortalLogin(),
|
||||
wiComputedDataFolder.getPath(), wiComputedDataFolder
|
||||
.getType().name());
|
||||
computedData = new ComputedData(computedDataFolder);
|
||||
outputDataSets = new OutputDataSets(computedDataFolder);
|
||||
|
||||
} catch (Throwable e) {
|
||||
logger.debug("ComputedData Folder is set to null");
|
||||
}
|
||||
dataMinerWorkArea.setComputedData(computedData);
|
||||
dataMinerWorkArea.setOutputDataSets(outputDataSets);
|
||||
|
||||
Computations computations = null;
|
||||
try {
|
||||
|
|
|
@ -12,8 +12,8 @@ public class DataMinerWorkArea implements Serializable {
|
|||
|
||||
private static final long serialVersionUID = -7906477664944910362L;
|
||||
private ItemDescription dataMinerWorkAreaFolder;
|
||||
private ImportedData importedData;
|
||||
private ComputedData computedData;
|
||||
private InputDataSets inputDataSets;
|
||||
private OutputDataSets outputDataSets;
|
||||
private Computations computations;
|
||||
|
||||
public DataMinerWorkArea() {
|
||||
|
@ -33,17 +33,17 @@ public class DataMinerWorkArea implements Serializable {
|
|||
/**
|
||||
*
|
||||
* @param dataMinerWorkAreaFolder
|
||||
* @param importedData
|
||||
* @param computedData
|
||||
* @param inputDataSets
|
||||
* @param outputDataSets
|
||||
* @param computations
|
||||
*/
|
||||
public DataMinerWorkArea(ItemDescription dataMinerWorkAreaFolder,
|
||||
ImportedData importedData, ComputedData computedData,
|
||||
InputDataSets inputDataSets, OutputDataSets outputDataSets,
|
||||
Computations computations) {
|
||||
super();
|
||||
this.dataMinerWorkAreaFolder = dataMinerWorkAreaFolder;
|
||||
this.importedData = importedData;
|
||||
this.computedData = computedData;
|
||||
this.inputDataSets = inputDataSets;
|
||||
this.outputDataSets = outputDataSets;
|
||||
this.computations = computations;
|
||||
}
|
||||
|
||||
|
@ -51,25 +51,24 @@ public class DataMinerWorkArea implements Serializable {
|
|||
return dataMinerWorkAreaFolder;
|
||||
}
|
||||
|
||||
public void setDataMinerWorkAreaFolder(
|
||||
ItemDescription dataMinerWorkAreaFolder) {
|
||||
public void setDataMinerWorkAreaFolder(ItemDescription dataMinerWorkAreaFolder) {
|
||||
this.dataMinerWorkAreaFolder = dataMinerWorkAreaFolder;
|
||||
}
|
||||
|
||||
public ImportedData getImportedData() {
|
||||
return importedData;
|
||||
public InputDataSets getInputDataSets() {
|
||||
return inputDataSets;
|
||||
}
|
||||
|
||||
public void setImportedData(ImportedData importedData) {
|
||||
this.importedData = importedData;
|
||||
public void setInputDataSets(InputDataSets inputDataSets) {
|
||||
this.inputDataSets = inputDataSets;
|
||||
}
|
||||
|
||||
public ComputedData getComputedData() {
|
||||
return computedData;
|
||||
public OutputDataSets getOutputDataSets() {
|
||||
return outputDataSets;
|
||||
}
|
||||
|
||||
public void setComputedData(ComputedData computedData) {
|
||||
this.computedData = computedData;
|
||||
public void setOutputDataSets(OutputDataSets outputDataSets) {
|
||||
this.outputDataSets = outputDataSets;
|
||||
}
|
||||
|
||||
public Computations getComputations() {
|
||||
|
@ -83,9 +82,12 @@ public class DataMinerWorkArea implements Serializable {
|
|||
@Override
|
||||
public String toString() {
|
||||
return "DataMinerWorkArea [dataMinerWorkAreaFolder="
|
||||
+ dataMinerWorkAreaFolder + ", importedData=" + importedData
|
||||
+ ", computedData=" + computedData + ", computations="
|
||||
+ dataMinerWorkAreaFolder + ", inputDataSets=" + inputDataSets
|
||||
+ ", outputDataSets=" + outputDataSets + ", computations="
|
||||
+ computations + "]";
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -8,16 +8,16 @@ import java.io.Serializable;
|
|||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
||||
*
|
||||
*/
|
||||
public class ImportedData implements Serializable {
|
||||
public class InputDataSets implements Serializable {
|
||||
private static final long serialVersionUID = -4408116083736005844L;
|
||||
|
||||
private ItemDescription folder;
|
||||
|
||||
public ImportedData() {
|
||||
public InputDataSets() {
|
||||
super();
|
||||
}
|
||||
|
||||
public ImportedData(ItemDescription folder) {
|
||||
public InputDataSets(ItemDescription folder) {
|
||||
super();
|
||||
this.folder = folder;
|
||||
}
|
|
@ -8,16 +8,16 @@ import java.io.Serializable;
|
|||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
||||
*
|
||||
*/
|
||||
public class ComputedData implements Serializable {
|
||||
public class OutputDataSets implements Serializable {
|
||||
private static final long serialVersionUID = -8235652292513149983L;
|
||||
|
||||
private ItemDescription folder;
|
||||
|
||||
public ComputedData() {
|
||||
public OutputDataSets() {
|
||||
super();
|
||||
}
|
||||
|
||||
public ComputedData(ItemDescription folder) {
|
||||
public OutputDataSets(ItemDescription folder) {
|
||||
super();
|
||||
this.folder = folder;
|
||||
}
|
|
@ -51,19 +51,19 @@
|
|||
<entry-point
|
||||
class='org.gcube.portlets.user.dataminermanager.client.DataMinerManager' />
|
||||
|
||||
|
||||
<!--
|
||||
<set-property name="log_ConsoleLogger" value="ENABLED" /> <set-property
|
||||
name="log_DivLogger" value="ENABLED" /> <set-property name="log_GWTLogger"
|
||||
value="ENABLED" /> <set-property name="log_SystemLogger" value="ENABLED"
|
||||
/>
|
||||
/> -->
|
||||
<!-- Not in GWT 2.6 <set-property name="log_FirebugLogger" value="ENABLED"
|
||||
/> -->
|
||||
|
||||
<!--
|
||||
|
||||
<set-property name="log_ConsoleLogger" value="DISABLED" />
|
||||
<set-property name="log_DivLogger" value="DISABLED" />
|
||||
<set-property name="log_GWTLogger" value="DISABLED" />
|
||||
<set-property name="log_SystemLogger" value="DISABLED" /> -->
|
||||
<set-property name="log_SystemLogger" value="DISABLED" />
|
||||
<!-- Not in GWT 2.6 <set-property name="log_FirebugLogger" value="DISABLED"
|
||||
/> -->
|
||||
|
||||
|
|
764542
test.log.1
764542
test.log.1
File diff suppressed because one or more lines are too long
470026
test.log.2
470026
test.log.2
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue