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:
Giancarlo Panichi 2014-03-04 15:56:16 +00:00 committed by Giancarlo Panichi
parent 9114c5dc18
commit 85b618d45c
7 changed files with 100 additions and 3 deletions

View File

@ -30,6 +30,7 @@
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/tabular-data-share-widget-1.0.0-SNAPSHOT/WEB-INF/classes"/>

View File

@ -1,4 +1,4 @@
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
warSrcDirIsOutput=false

17
ShareWidget.launch Normal file
View File

@ -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 &quot;${gwt_remote_ui_server_port}:${unique_id}&quot; -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>

0
log.txt Normal file
View File

14
pom.xml
View File

@ -107,13 +107,24 @@
<version>3.0.1</version>
</dependency>
<!-- GXT 2 -->
<dependency>
<groupId>com.extjs.gxt</groupId>
<artifactId>gxt</artifactId>
<version>2.2.5</version>
<scope>provided</scope>
</dependency>
<!-- workspace-sharing-widget -->
<dependency>
<groupId>org.gcube.portlets.widgets</groupId>
<artifactId>workspace-sharing-widget</artifactId>
<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>
@ -307,4 +318,5 @@
</dependency>
</dependencies>
</dependencyManagement>
<packaging>war</packaging>
</project>

View File

@ -9,7 +9,7 @@ public class ShareWidgetEntry implements EntryPoint {
public void onModuleLoad() {
Log.info("Hello!");
}
}

View File

@ -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);
}
}
}
});
*/
}
}