[Release #12006] Removed Send to
git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace@169607 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
53ea250cba
commit
4d9dae808c
6
pom.xml
6
pom.xml
|
@ -254,12 +254,6 @@
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.gcube.portlets.widgets</groupId>
|
|
||||||
<artifactId>wsmail-widget</artifactId>
|
|
||||||
<version>[2.0.0-SNAPSHOT, 2.2.0-SNAPSHOT)</version>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.gcube.portlets.widgets</groupId>
|
<groupId>org.gcube.portlets.widgets</groupId>
|
||||||
<artifactId>image-previewer-widget</artifactId>
|
<artifactId>image-previewer-widget</artifactId>
|
||||||
|
|
|
@ -77,8 +77,6 @@ import org.gcube.portlets.user.workspace.client.event.SearchItemByIdEvent;
|
||||||
import org.gcube.portlets.user.workspace.client.event.SearchItemByIdEventHandler;
|
import org.gcube.portlets.user.workspace.client.event.SearchItemByIdEventHandler;
|
||||||
import org.gcube.portlets.user.workspace.client.event.SearchTextEvent;
|
import org.gcube.portlets.user.workspace.client.event.SearchTextEvent;
|
||||||
import org.gcube.portlets.user.workspace.client.event.SearchTextEventHandler;
|
import org.gcube.portlets.user.workspace.client.event.SearchTextEventHandler;
|
||||||
import org.gcube.portlets.user.workspace.client.event.SendMessageEvent;
|
|
||||||
import org.gcube.portlets.user.workspace.client.event.SendMessageEventHandler;
|
|
||||||
import org.gcube.portlets.user.workspace.client.event.ShowUrlEvent;
|
import org.gcube.portlets.user.workspace.client.event.ShowUrlEvent;
|
||||||
import org.gcube.portlets.user.workspace.client.event.ShowUrlEventHandler;
|
import org.gcube.portlets.user.workspace.client.event.ShowUrlEventHandler;
|
||||||
import org.gcube.portlets.user.workspace.client.event.StoreGridChangedEvent;
|
import org.gcube.portlets.user.workspace.client.event.StoreGridChangedEvent;
|
||||||
|
@ -126,13 +124,11 @@ import org.gcube.portlets.user.workspace.shared.WorkspaceVersioningOperation;
|
||||||
import org.gcube.portlets.widgets.sessionchecker.client.CheckSession;
|
import org.gcube.portlets.widgets.sessionchecker.client.CheckSession;
|
||||||
import org.gcube.portlets.widgets.workspaceuploader.client.WorkspaceUploadNotification.WorskpaceUploadNotificationListener;
|
import org.gcube.portlets.widgets.workspaceuploader.client.WorkspaceUploadNotification.WorskpaceUploadNotificationListener;
|
||||||
import org.gcube.portlets.widgets.workspaceuploader.client.uploader.dragdrop.MultipleDNDUpload;
|
import org.gcube.portlets.widgets.workspaceuploader.client.uploader.dragdrop.MultipleDNDUpload;
|
||||||
import org.gcube.portlets.widgets.wsmail.client.forms.MailForm;
|
|
||||||
|
|
||||||
import com.extjs.gxt.ui.client.widget.LayoutContainer;
|
import com.extjs.gxt.ui.client.widget.LayoutContainer;
|
||||||
import com.extjs.gxt.ui.client.widget.MessageBox;
|
import com.extjs.gxt.ui.client.widget.MessageBox;
|
||||||
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
|
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
|
||||||
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.Scheduler;
|
import com.google.gwt.core.client.Scheduler;
|
||||||
import com.google.gwt.core.client.Scheduler.ScheduledCommand;
|
import com.google.gwt.core.client.Scheduler.ScheduledCommand;
|
||||||
import com.google.gwt.event.dom.client.ClickEvent;
|
import com.google.gwt.event.dom.client.ClickEvent;
|
||||||
|
@ -780,20 +776,6 @@ public class AppController implements SubscriberInterface {
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
eventBus.addHandler(SendMessageEvent.TYPE, new SendMessageEventHandler() {
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onSendMessage(SendMessageEvent sendMessageEvent) {
|
|
||||||
doSendMessage(sendMessageEvent.getListFileModelSelected());
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
private void doSendMessage(List<FileModel> listFileModelSelected) {
|
|
||||||
AppControllerExplorer.getEventBus().fireEvent(new SendMessageEvent(null));
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
eventBus.addHandler(FileUploadEvent.TYPE, new FileUploadEventHandler() {
|
eventBus.addHandler(FileUploadEvent.TYPE, new FileUploadEventHandler() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -1897,26 +1879,6 @@ public class AppController implements SubscriberInterface {
|
||||||
GWT.log("folderTarget is null, refresh skypped");
|
GWT.log("folderTarget is null, refresh skypped");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.gcube.portlets.user.workspace.client.interfaces.SubscriberInterface#createNewMessage(java.util.HashMap)
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public void createNewMessage(final HashMap<String, String> hashAttachs) {
|
|
||||||
GWT.runAsync(MailForm.class, new RunAsyncCallback() {
|
|
||||||
@Override
|
|
||||||
public void onSuccess() {
|
|
||||||
if (hashAttachs.size() == 0) { //no attachments
|
|
||||||
new MailForm();
|
|
||||||
} else {
|
|
||||||
new MailForm(hashAttachs);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
public void onFailure(Throwable reason) {
|
|
||||||
Window.alert("Could not load this component: " + reason.getMessage());
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.gcube.portlets.user.workspace.client.interfaces.SubscriberInterface#fileDownloaded(java.lang.String)
|
* @see org.gcube.portlets.user.workspace.client.interfaces.SubscriberInterface#fileDownloaded(java.lang.String)
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue