Minor Updated
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-share-widget@92630 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
9114c5dc18
commit
85b618d45c
|
@ -30,6 +30,7 @@
|
||||||
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
|
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
|
||||||
<attributes>
|
<attributes>
|
||||||
<attribute name="maven.pomderived" value="true"/>
|
<attribute name="maven.pomderived" value="true"/>
|
||||||
|
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
|
||||||
</attributes>
|
</attributes>
|
||||||
</classpathentry>
|
</classpathentry>
|
||||||
<classpathentry kind="output" path="target/tabular-data-share-widget-1.0.0-SNAPSHOT/WEB-INF/classes"/>
|
<classpathentry kind="output" path="target/tabular-data-share-widget-1.0.0-SNAPSHOT/WEB-INF/classes"/>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
eclipse.preferences.version=1
|
eclipse.preferences.version=1
|
||||||
lastWarOutDir=/home/giancarlo/workspace/tabular-data-share-widget/target/tabular-data-share-widget-2.0.0-SNAPSHOT
|
lastWarOutDir=/home/giancarlo/workspace/tabular-data-share-widget/target/tabular-data-share-widget-1.0.0-SNAPSHOT
|
||||||
warSrcDir=src/main/webapp
|
warSrcDir=src/main/webapp
|
||||||
warSrcDirIsOutput=false
|
warSrcDirIsOutput=false
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
<?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
|
@ -107,13 +107,24 @@
|
||||||
<version>3.0.1</version>
|
<version>3.0.1</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<!-- GXT 2 -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.extjs.gxt</groupId>
|
||||||
|
<artifactId>gxt</artifactId>
|
||||||
|
<version>2.2.5</version>
|
||||||
|
<scope>provided</scope>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
<!-- workspace-sharing-widget -->
|
<!-- workspace-sharing-widget -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.gcube.portlets.widgets</groupId>
|
<groupId>org.gcube.portlets.widgets</groupId>
|
||||||
<artifactId>workspace-sharing-widget</artifactId>
|
<artifactId>workspace-sharing-widget</artifactId>
|
||||||
<version>[1.0.0-SNAPSHOT,2.0.0-SNAPSHOT)</version>
|
<version>[1.0.0-SNAPSHOT,2.0.0-SNAPSHOT)</version>
|
||||||
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- tabular-data-gwt-service -->
|
<!-- tabular-data-gwt-service -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.gcube.portlets.user</groupId>
|
<groupId>org.gcube.portlets.user</groupId>
|
||||||
|
@ -307,4 +318,5 @@
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</dependencyManagement>
|
</dependencyManagement>
|
||||||
|
<packaging>war</packaging>
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -9,7 +9,7 @@ public class ShareWidgetEntry implements EntryPoint {
|
||||||
|
|
||||||
|
|
||||||
public void onModuleLoad() {
|
public void onModuleLoad() {
|
||||||
|
|
||||||
Log.info("Hello!");
|
Log.info("Hello!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,67 @@
|
||||||
|
package org.gcube.portlets.user.td.sharewidget.client;
|
||||||
|
|
||||||
|
|
||||||
|
public class TRShare {
|
||||||
|
public TRShare() {
|
||||||
|
//FileModel file = new FileModel("id", "filename", false);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This controller instance the smart sharing dialog
|
||||||
|
*
|
||||||
|
* @param file
|
||||||
|
* - a fake file to display the field name ("filename") into
|
||||||
|
* dialog
|
||||||
|
* @param listAlreadySharedContact
|
||||||
|
*/
|
||||||
|
/*
|
||||||
|
WorkspaceSmartSharingController controller = new WorkspaceSmartSharingController(
|
||||||
|
file, null);
|
||||||
|
|
||||||
|
final Dialog sharingWindow = controller.getSharingDialog();
|
||||||
|
|
||||||
|
Button openSharingWindow = new Button("Show Sharing Window",
|
||||||
|
new ClickHandler() {
|
||||||
|
public void onClick(ClickEvent event) {
|
||||||
|
sharingWindow.show();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
sharingWindow.getButtonById(Dialog.OK).addListener(Events.Select,
|
||||||
|
new Listener<BaseEvent>() {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void handleEvent(BaseEvent be) {
|
||||||
|
|
||||||
|
if (smartShare.isValidForm(true)) {
|
||||||
|
// THAT'S OK
|
||||||
|
|
||||||
|
sharingWindow.getSharedListUsers(); // @return the
|
||||||
|
// selected
|
||||||
|
// contacts (as
|
||||||
|
// InfoContactModel)
|
||||||
|
|
||||||
|
sharingWindow.getSharedListUsersCredential(); // @return
|
||||||
|
// the
|
||||||
|
// selected
|
||||||
|
// contacts
|
||||||
|
// (as
|
||||||
|
// CredentialModel)
|
||||||
|
|
||||||
|
for (InfoContactModel contact : sharingWindow
|
||||||
|
.getSharedListUsers()) {
|
||||||
|
System.out.println(contact);
|
||||||
|
}
|
||||||
|
|
||||||
|
for (CredentialModel credential : sharingWindow
|
||||||
|
.getSharedListUsersCredential()) {
|
||||||
|
System.out.println(credential);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
*/
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue