Updated to JAVA 7
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-portlet@87000 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
43af21aa7b
commit
a0112c5edd
|
@ -1,8 +1,8 @@
|
||||||
eclipse.preferences.version=1
|
eclipse.preferences.version=1
|
||||||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
||||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
|
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
|
||||||
org.eclipse.jdt.core.compiler.compliance=1.5
|
org.eclipse.jdt.core.compiler.compliance=1.7
|
||||||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
||||||
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
|
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
|
||||||
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
|
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
|
||||||
org.eclipse.jdt.core.compiler.source=1.5
|
org.eclipse.jdt.core.compiler.source=1.7
|
||||||
|
|
|
@ -4,10 +4,7 @@
|
||||||
<wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/>
|
<wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/>
|
||||||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
|
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
|
||||||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
|
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
|
||||||
<dependent-module archiveName="tabular-data-widgetx-tdx-source-1.0.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/tabular-data-widgetx-tdx-source/tabular-data-widgetx-tdx-source">
|
<dependent-module archiveName="tabular-data-widget-common-event-1.0.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/tabular-data-widget-common-event/tabular-data-widget-common-event">
|
||||||
<dependency-type>uses</dependency-type>
|
|
||||||
</dependent-module>
|
|
||||||
<dependent-module archiveName="tabular-data-widgetx-1.0.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/tabular-data-widgetx/tabular-data-widgetx">
|
|
||||||
<dependency-type>uses</dependency-type>
|
<dependency-type>uses</dependency-type>
|
||||||
</dependent-module>
|
</dependent-module>
|
||||||
<dependent-module archiveName="tabular-data-csv-import-widget-2.0.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/tabular-data-csv-import-widget/tabular-data-csv-import-widget">
|
<dependent-module archiveName="tabular-data-csv-import-widget-2.0.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/tabular-data-csv-import-widget/tabular-data-csv-import-widget">
|
||||||
|
|
|
@ -3,5 +3,5 @@
|
||||||
<fixed facet="wst.jsdt.web"/>
|
<fixed facet="wst.jsdt.web"/>
|
||||||
<installed facet="jst.web" version="2.3"/>
|
<installed facet="jst.web" version="2.3"/>
|
||||||
<installed facet="wst.jsdt.web" version="1.0"/>
|
<installed facet="wst.jsdt.web" version="1.0"/>
|
||||||
<installed facet="java" version="1.5"/>
|
<installed facet="java" version="1.7"/>
|
||||||
</faceted-project>
|
</faceted-project>
|
||||||
|
|
15
pom.xml
15
pom.xml
|
@ -235,6 +235,13 @@
|
||||||
<version>1.0.0-SNAPSHOT</version>
|
<version>1.0.0-SNAPSHOT</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<!--tabular-data-tasks-widget -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.gcube.portlets.user</groupId>
|
||||||
|
<artifactId>tabular-data-tasks-widget</artifactId>
|
||||||
|
<version>1.0.0-SNAPSHOT</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
<!-- LOGGING -->
|
<!-- LOGGING -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.allen-sauer.gwt.log</groupId>
|
<groupId>com.allen-sauer.gwt.log</groupId>
|
||||||
|
@ -342,7 +349,7 @@
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
|
|
||||||
<!-- Maven -->
|
<!-- Maven
|
||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-resources-plugin</artifactId>
|
<artifactId>maven-resources-plugin</artifactId>
|
||||||
<version>2.6</version>
|
<version>2.6</version>
|
||||||
|
@ -433,7 +440,7 @@
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
<!--
|
-->
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
|
@ -444,7 +451,7 @@
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
SA Plugin
|
<!-- SA Plugin -->
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-assembly-plugin</artifactId>
|
<artifactId>maven-assembly-plugin</artifactId>
|
||||||
|
@ -490,7 +497,7 @@
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
-->
|
|
||||||
|
|
||||||
|
|
||||||
</plugins>
|
</plugins>
|
||||||
|
|
|
@ -9,6 +9,7 @@ import org.gcube.portlets.user.td.gwtservice.client.rpc.TDGWTServiceAsync;
|
||||||
import org.gcube.portlets.user.td.openwidget.client.TDOpen;
|
import org.gcube.portlets.user.td.openwidget.client.TDOpen;
|
||||||
import org.gcube.portlets.user.td.sdmxexportwidget.client.SDMXExportWizardTD;
|
import org.gcube.portlets.user.td.sdmxexportwidget.client.SDMXExportWizardTD;
|
||||||
import org.gcube.portlets.user.td.sdmximportwidget.client.SDMXImportWizardTD;
|
import org.gcube.portlets.user.td.sdmximportwidget.client.SDMXImportWizardTD;
|
||||||
|
import org.gcube.portlets.user.td.taskswidget.client.TdTaskController;
|
||||||
import org.gcube.portlets.user.td.widgetcommonevent.client.event.RibbonEvent;
|
import org.gcube.portlets.user.td.widgetcommonevent.client.event.RibbonEvent;
|
||||||
import org.gcube.portlets.user.td.widgetcommonevent.client.event.UIStateEvent;
|
import org.gcube.portlets.user.td.widgetcommonevent.client.event.UIStateEvent;
|
||||||
import org.gcube.portlets.user.td.widgetcommonevent.client.type.RibbonType;
|
import org.gcube.portlets.user.td.widgetcommonevent.client.type.RibbonType;
|
||||||
|
@ -22,6 +23,7 @@ import com.allen_sauer.gwt.log.client.Log;
|
||||||
import com.google.gwt.core.client.GWT;
|
import com.google.gwt.core.client.GWT;
|
||||||
import com.google.gwt.core.client.RunAsyncCallback;
|
import com.google.gwt.core.client.RunAsyncCallback;
|
||||||
import com.google.gwt.user.client.rpc.AsyncCallback;
|
import com.google.gwt.user.client.rpc.AsyncCallback;
|
||||||
|
import com.google.gwt.user.client.ui.DialogBox;
|
||||||
import com.google.web.bindery.event.shared.EventBus;
|
import com.google.web.bindery.event.shared.EventBus;
|
||||||
import com.google.web.bindery.event.shared.SimpleEventBus;
|
import com.google.web.bindery.event.shared.SimpleEventBus;
|
||||||
import com.sencha.gxt.widget.core.client.ContentPanel;
|
import com.sencha.gxt.widget.core.client.ContentPanel;
|
||||||
|
@ -229,6 +231,9 @@ public class TabularDataController {
|
||||||
break;
|
break;
|
||||||
case EXPORTJSON:
|
case EXPORTJSON:
|
||||||
break;
|
break;
|
||||||
|
case TASKSMANAGER:
|
||||||
|
openTasksManagerWizard();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -434,6 +439,19 @@ public class TabularDataController {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected TdTaskController tdTaskController;
|
||||||
|
protected DialogBox tdTaskMainWindow;
|
||||||
|
|
||||||
|
protected void openTasksManagerWizard() {
|
||||||
|
tdTaskController = TdTaskController.getInstance();
|
||||||
|
TdTaskController.bindCommonBus(eventBus);
|
||||||
|
tdTaskMainWindow = tdTaskController.getWindowTaskMonitor(); // This is main panel
|
||||||
|
tdTaskMainWindow.show();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
protected void asyncCodeLoadingFailed(Throwable reason) {
|
protected void asyncCodeLoadingFailed(Throwable reason) {
|
||||||
Log.error("Async code loading failed", reason);
|
Log.error("Async code loading failed", reason);
|
||||||
Info.display("Async code loading failed",
|
Info.display("Async code loading failed",
|
||||||
|
|
|
@ -50,6 +50,8 @@ public class FileToolBar {
|
||||||
|
|
||||||
protected TextButton templateButton;
|
protected TextButton templateButton;
|
||||||
|
|
||||||
|
protected TextButton taskButton;
|
||||||
|
|
||||||
public FileToolBar(EventBus eventBus) {
|
public FileToolBar(EventBus eventBus) {
|
||||||
this.eventBus = eventBus;
|
this.eventBus = eventBus;
|
||||||
build();
|
build();
|
||||||
|
@ -85,7 +87,6 @@ public class FileToolBar {
|
||||||
|
|
||||||
openButton.addSelectHandler(new SelectHandler() {
|
openButton.addSelectHandler(new SelectHandler() {
|
||||||
|
|
||||||
|
|
||||||
public void onSelect(SelectEvent event) {
|
public void onSelect(SelectEvent event) {
|
||||||
eventBus.fireEvent(new RibbonEvent(RibbonType.OPEN));
|
eventBus.fireEvent(new RibbonEvent(RibbonType.OPEN));
|
||||||
}
|
}
|
||||||
|
@ -245,6 +246,7 @@ public class FileToolBar {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
exportLayout.setWidget(1, 2, exportJSONButton);
|
exportLayout.setWidget(1, 2, exportJSONButton);
|
||||||
|
cleanCells(exportLayout.getElement());
|
||||||
|
|
||||||
// Template
|
// Template
|
||||||
ButtonGroup templateGroup = new ButtonGroup();
|
ButtonGroup templateGroup = new ButtonGroup();
|
||||||
|
@ -274,8 +276,36 @@ public class FileToolBar {
|
||||||
|
|
||||||
templateLayout.setWidget(0, 0, templateButton);
|
templateLayout.setWidget(0, 0, templateButton);
|
||||||
templateLayout.getFlexCellFormatter().setRowSpan(0, 0, 2);
|
templateLayout.getFlexCellFormatter().setRowSpan(0, 0, 2);
|
||||||
|
cleanCells(templateLayout.getElement());
|
||||||
|
|
||||||
cleanCells(exportLayout.getElement());
|
// Task
|
||||||
|
ButtonGroup taskGroup = new ButtonGroup();
|
||||||
|
taskGroup.setId("Template");
|
||||||
|
taskGroup.setStyleName("ribbon");
|
||||||
|
taskGroup.setHeadingText("Task");
|
||||||
|
toolBar.add(taskGroup);
|
||||||
|
|
||||||
|
FlexTable taskLayout = new FlexTable();
|
||||||
|
taskGroup.add(taskLayout);
|
||||||
|
|
||||||
|
taskButton = new TextButton("Task",
|
||||||
|
TabularDataResources.INSTANCE.template32());
|
||||||
|
taskButton.disable();
|
||||||
|
taskButton.setToolTip("Task");
|
||||||
|
taskButton.setScale(ButtonScale.LARGE);
|
||||||
|
taskButton.setIconAlign(IconAlign.TOP);
|
||||||
|
taskButton.setArrowAlign(ButtonArrowAlign.BOTTOM);
|
||||||
|
taskButton.addSelectHandler(new SelectHandler() {
|
||||||
|
|
||||||
|
public void onSelect(SelectEvent event) {
|
||||||
|
eventBus.fireEvent(new RibbonEvent(
|
||||||
|
RibbonType.TASKSMANAGER));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
taskLayout.setWidget(0, 0, taskButton);
|
||||||
|
taskLayout.getFlexCellFormatter().setRowSpan(0, 0, 2);
|
||||||
|
cleanCells(taskLayout.getElement());
|
||||||
|
|
||||||
eventBus.addHandler(UIStateEvent.TYPE,
|
eventBus.addHandler(UIStateEvent.TYPE,
|
||||||
new UIStateEvent.UIStateHandler() {
|
new UIStateEvent.UIStateHandler() {
|
||||||
|
@ -314,6 +344,8 @@ public class FileToolBar {
|
||||||
exportCSVButton.disable();
|
exportCSVButton.disable();
|
||||||
exportJSONButton.disable();
|
exportJSONButton.disable();
|
||||||
exportSDMXButton.disable();
|
exportSDMXButton.disable();
|
||||||
|
templateButton.disable();
|
||||||
|
taskButton.disable();
|
||||||
break;
|
break;
|
||||||
case TR_CLOSE:
|
case TR_CLOSE:
|
||||||
openButton.enable();
|
openButton.enable();
|
||||||
|
@ -326,6 +358,8 @@ public class FileToolBar {
|
||||||
exportCSVButton.disable();
|
exportCSVButton.disable();
|
||||||
exportJSONButton.disable();
|
exportJSONButton.disable();
|
||||||
exportSDMXButton.disable();
|
exportSDMXButton.disable();
|
||||||
|
templateButton.disable();
|
||||||
|
taskButton.disable();
|
||||||
break;
|
break;
|
||||||
case TR_OPEN:
|
case TR_OPEN:
|
||||||
openButton.enable();
|
openButton.enable();
|
||||||
|
@ -343,6 +377,8 @@ public class FileToolBar {
|
||||||
}
|
}
|
||||||
exportCSVButton.enable();
|
exportCSVButton.enable();
|
||||||
exportJSONButton.disable();
|
exportJSONButton.disable();
|
||||||
|
templateButton.disable();
|
||||||
|
taskButton.enable();
|
||||||
break;
|
break;
|
||||||
case WIZARD_OPEN:
|
case WIZARD_OPEN:
|
||||||
openButton.disable();
|
openButton.disable();
|
||||||
|
@ -355,6 +391,8 @@ public class FileToolBar {
|
||||||
exportCSVButton.disable();
|
exportCSVButton.disable();
|
||||||
exportJSONButton.disable();
|
exportJSONButton.disable();
|
||||||
exportSDMXButton.disable();
|
exportSDMXButton.disable();
|
||||||
|
templateButton.disable();
|
||||||
|
taskButton.disable();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<inherits name='com.google.gwt.user.User' />
|
<inherits name='com.google.gwt.user.User' />
|
||||||
|
|
||||||
<!-- Other module inherits -->
|
<!-- Other module inherits -->
|
||||||
<!-- <inherits name='com.extjs.gxt.ui.GXT' /> -->
|
<!-- <inherits name='com.extjs.gxt.ui.GXT' /> -->
|
||||||
<inherits name='com.sencha.gxt.ui.GXT' />
|
<inherits name='com.sencha.gxt.ui.GXT' />
|
||||||
|
|
||||||
<inherits name="com.allen_sauer.gwt.log.gwt-log-TRACE" />
|
<inherits name="com.allen_sauer.gwt.log.gwt-log-TRACE" />
|
||||||
|
@ -18,6 +18,7 @@
|
||||||
<inherits name='org.gcube.portlets.user.td.wizardwidget.Wizard' />
|
<inherits name='org.gcube.portlets.user.td.wizardwidget.Wizard' />
|
||||||
<inherits name='org.gcube.portlets.user.td.widgetcommonevent.WidgetCommonEvent' />
|
<inherits name='org.gcube.portlets.user.td.widgetcommonevent.WidgetCommonEvent' />
|
||||||
|
|
||||||
|
<inherits name='org.gcube.portlets.user.td.taskswidget.TdTasksWidget' />
|
||||||
<inherits name='org.gcube.portlets.user.td.toolboxwidget.ToolBox' />
|
<inherits name='org.gcube.portlets.user.td.toolboxwidget.ToolBox' />
|
||||||
<inherits name='org.gcube.portlets.user.td.openwidget.TDOpen' />
|
<inherits name='org.gcube.portlets.user.td.openwidget.TDOpen' />
|
||||||
<inherits name='org.gcube.portlets.user.td.sdmximportwidget.SDMXImportWizardTD' />
|
<inherits name='org.gcube.portlets.user.td.sdmximportwidget.SDMXImportWizardTD' />
|
||||||
|
|
Loading…
Reference in New Issue