Minor Updated
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-share-widget@92646 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
8805f5ca58
commit
0752687b6f
|
@ -1,17 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<launchConfiguration type="com.google.gdt.eclipse.suite.webapp">
|
||||
<stringAttribute key="com.google.gdt.eclipse.suiteMainTypeProcessor.PREVIOUSLY_SET_MAIN_TYPE_NAME" value="com.google.gwt.dev.DevMode"/>
|
||||
<booleanAttribute key="com.google.gdt.eclipse.suiteWarArgumentProcessor.IS_WAR_FROM_PROJECT_PROPERTIES" value="true"/>
|
||||
<stringAttribute key="com.google.gwt.eclipse.core.URL" value="ShareWidget.html"/>
|
||||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
|
||||
<listEntry value="/tabular-data-share-widget"/>
|
||||
</listAttribute>
|
||||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
|
||||
<listEntry value="4"/>
|
||||
</listAttribute>
|
||||
<stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER" value="com.google.gdt.eclipse.maven.mavenClasspathProvider"/>
|
||||
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="com.google.gwt.dev.DevMode"/>
|
||||
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-war /home/giancarlo/workspace/tabular-data-share-widget/target/tabular-data-share-widget-1.0.0-SNAPSHOT -remoteUI "${gwt_remote_ui_server_port}:${unique_id}" -startupUrl ShareWidget.html -logLevel INFO -codeServerPort 9997 -port 8888 org.gcube.portlets.user.td.sharewidget.ShareWidget"/>
|
||||
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="tabular-data-share-widget"/>
|
||||
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Xmx512m -Dgwt.nowarn.legacy.tools"/>
|
||||
</launchConfiguration>
|
14
pom.xml
14
pom.xml
|
@ -114,7 +114,13 @@
|
|||
<version>2.2.5</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
|
||||
|
||||
<!-- usermanagement-core -->
|
||||
<dependency>
|
||||
<groupId>org.gcube.dvos</groupId>
|
||||
<artifactId>usermanagement-core</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- workspace-sharing-widget -->
|
||||
<dependency>
|
||||
<groupId>org.gcube.portlets.widgets</groupId>
|
||||
|
@ -122,9 +128,9 @@
|
|||
<version>[1.0.0-SNAPSHOT,2.0.0-SNAPSHOT)</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- tabular-data-gwt-service -->
|
||||
<dependency>
|
||||
<groupId>org.gcube.portlets.user</groupId>
|
||||
|
|
|
@ -9,7 +9,7 @@ public class ShareWidgetEntry implements EntryPoint {
|
|||
|
||||
|
||||
public void onModuleLoad() {
|
||||
|
||||
TRShare trShare=new TRShare();
|
||||
Log.info("Hello!");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,9 +1,20 @@
|
|||
package org.gcube.portlets.user.td.sharewidget.client;
|
||||
|
||||
import org.gcube.portlets.widgets.workspacesharingwidget.client.WorkspaceSmartSharingController;
|
||||
import org.gcube.portlets.widgets.workspacesharingwidget.client.view.sharing.SmartShare;
|
||||
import org.gcube.portlets.widgets.workspacesharingwidget.shared.CredentialModel;
|
||||
import org.gcube.portlets.widgets.workspacesharingwidget.shared.FileModel;
|
||||
import org.gcube.portlets.widgets.workspacesharingwidget.shared.InfoContactModel;
|
||||
|
||||
import com.extjs.gxt.ui.client.event.BaseEvent;
|
||||
import com.extjs.gxt.ui.client.event.Events;
|
||||
import com.extjs.gxt.ui.client.event.Listener;
|
||||
import com.extjs.gxt.ui.client.widget.Dialog;
|
||||
|
||||
|
||||
public class TRShare {
|
||||
public TRShare() {
|
||||
//FileModel file = new FileModel("id", "filename", false);
|
||||
FileModel file = new FileModel("id", "filename", false);
|
||||
|
||||
/**
|
||||
* This controller instance the smart sharing dialog
|
||||
|
@ -13,18 +24,13 @@ public class TRShare {
|
|||
* dialog
|
||||
* @param listAlreadySharedContact
|
||||
*/
|
||||
/*
|
||||
|
||||
WorkspaceSmartSharingController controller = new WorkspaceSmartSharingController(
|
||||
file, null);
|
||||
|
||||
final Dialog sharingWindow = controller.getSharingDialog();
|
||||
final SmartShare sharingWindow = controller.getSharingDialog();
|
||||
|
||||
Button openSharingWindow = new Button("Show Sharing Window",
|
||||
new ClickHandler() {
|
||||
public void onClick(ClickEvent event) {
|
||||
sharingWindow.show();
|
||||
}
|
||||
});
|
||||
sharingWindow.show();
|
||||
|
||||
sharingWindow.getButtonById(Dialog.OK).addListener(Events.Select,
|
||||
new Listener<BaseEvent>() {
|
||||
|
@ -32,7 +38,7 @@ public class TRShare {
|
|||
@Override
|
||||
public void handleEvent(BaseEvent be) {
|
||||
|
||||
if (smartShare.isValidForm(true)) {
|
||||
if (sharingWindow.isValidForm(true)) {
|
||||
// THAT'S OK
|
||||
|
||||
sharingWindow.getSharedListUsers(); // @return the
|
||||
|
@ -61,7 +67,7 @@ public class TRShare {
|
|||
|
||||
}
|
||||
});
|
||||
*/
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
|
||||
|
||||
<!-- Specify the app entry point class. -->
|
||||
<entry-point class='org.gcube.portlets.user.td.sharewidget.client.ShareWidgetEntry' />
|
||||
<entry-point class='org.gcube.portlets.user.td.sharewidget.client.ShareWidgetEntry' />
|
||||
|
||||
<!-- Specify the paths for translatable code -->
|
||||
<source path='client' />
|
||||
|
|
|
@ -10,4 +10,5 @@
|
|||
|
||||
<!-- Specify the paths for translatable code -->
|
||||
<source path='client' />
|
||||
<source path='shared' />
|
||||
</module>
|
Loading…
Reference in New Issue