refs 6548: TDM - Migrate TabMan to new PortalContext

Task-Url: https://support.d4science.org/issues/6548

Updated to new PortalContext

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-charts-widget@142196 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2017-02-03 15:53:13 +00:00
parent 77dd69c623
commit de5d744881
7 changed files with 35 additions and 15 deletions

View File

@ -6,26 +6,32 @@ import org.gcube.portlets.user.td.widgetcommonevent.shared.tr.TabResourceType;
import com.allen_sauer.gwt.log.client.Log;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.shared.GWT;
import com.google.web.bindery.event.shared.SimpleEventBus;
/**
*
* @author giancarlo
* email: <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
* @author giancarlo email: <a
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
*
*/
public class ChartsWidgetTDEntry implements EntryPoint {
public class ChartsWidgetTDEntry implements EntryPoint {
private ChartsWidgetTDMessages msgs;
public void onModuleLoad() {
TRId trId=new TRId("58",TabResourceType.STANDARD, "1286");
UserInfo userInfo=new UserInfo();
TRId trId = new TRId("58", TabResourceType.STANDARD, "1286");
UserInfo userInfo = new UserInfo();
userInfo.setUsername("test.user");
SimpleEventBus eventBus=new SimpleEventBus();
ChartsWidgetTD chartCreationWizard= new ChartsWidgetTD(trId, userInfo,"Chart Creation",eventBus);
SimpleEventBus eventBus = new SimpleEventBus();
ChartsWidgetTD chartCreationWizard = new ChartsWidgetTD(trId, userInfo,
msgs.chartCreation(), eventBus);
Log.info(chartCreationWizard.getId());
}
protected void initMessage() {
msgs = GWT.create(ChartsWidgetTDMessages.class);
}
}

View File

@ -0,0 +1,15 @@
package org.gcube.portlets.user.td.chartswidget.client;
import com.google.gwt.i18n.client.Messages;
/**
*
* @author Giancarlo Panichi
*
*/
public interface ChartsWidgetTDMessages extends Messages {
@DefaultMessage("Chart Creation")
String chartCreation();
}

View File

@ -0,0 +1 @@
chartCreation = Chart Creation

View File

@ -0,0 +1 @@
chartCreation = Crea Gráfico

View File

@ -0,0 +1 @@
chartCreation = Crea Grafico

View File

@ -1,2 +0,0 @@
sendButton = Send
nameField = Enter your name

View File

@ -1,2 +0,0 @@
sendButton = Envoyer
nameField = Entrez votre nom