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:
parent
77dd69c623
commit
de5d744881
|
@ -6,26 +6,32 @@ import org.gcube.portlets.user.td.widgetcommonevent.shared.tr.TabResourceType;
|
||||||
|
|
||||||
import com.allen_sauer.gwt.log.client.Log;
|
import com.allen_sauer.gwt.log.client.Log;
|
||||||
import com.google.gwt.core.client.EntryPoint;
|
import com.google.gwt.core.client.EntryPoint;
|
||||||
|
import com.google.gwt.core.shared.GWT;
|
||||||
import com.google.web.bindery.event.shared.SimpleEventBus;
|
import com.google.web.bindery.event.shared.SimpleEventBus;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author giancarlo
|
* @author giancarlo email: <a
|
||||||
* email: <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</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() {
|
public void onModuleLoad() {
|
||||||
TRId trId=new TRId("58",TabResourceType.STANDARD, "1286");
|
TRId trId = new TRId("58", TabResourceType.STANDARD, "1286");
|
||||||
UserInfo userInfo=new UserInfo();
|
UserInfo userInfo = new UserInfo();
|
||||||
userInfo.setUsername("test.user");
|
userInfo.setUsername("test.user");
|
||||||
|
|
||||||
SimpleEventBus eventBus=new SimpleEventBus();
|
SimpleEventBus eventBus = new SimpleEventBus();
|
||||||
ChartsWidgetTD chartCreationWizard= new ChartsWidgetTD(trId, userInfo,"Chart Creation",eventBus);
|
ChartsWidgetTD chartCreationWizard = new ChartsWidgetTD(trId, userInfo,
|
||||||
|
msgs.chartCreation(), eventBus);
|
||||||
Log.info(chartCreationWizard.getId());
|
Log.info(chartCreationWizard.getId());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void initMessage() {
|
||||||
|
msgs = GWT.create(ChartsWidgetTDMessages.class);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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();
|
||||||
|
}
|
|
@ -0,0 +1 @@
|
||||||
|
chartCreation = Chart Creation
|
|
@ -0,0 +1 @@
|
||||||
|
chartCreation = Crea Gráfico
|
|
@ -0,0 +1 @@
|
||||||
|
chartCreation = Crea Grafico
|
|
@ -1,2 +0,0 @@
|
||||||
sendButton = Send
|
|
||||||
nameField = Enter your name
|
|
|
@ -1,2 +0,0 @@
|
||||||
sendButton = Envoyer
|
|
||||||
nameField = Entrez votre nom
|
|
Loading…
Reference in New Issue