use of org.eclipse.jst.j2ee.common.ParamValue in project liferay-ide by liferay.
the class NewVaadinPortletClassDataModelProvider method getInitParams.
@Override
protected Object getInitParams() {
List<ParamValue> initParams = new ArrayList<>();
if (getStringProperty(VAADIN_PORTLET_CLASS).equals(QUALIFIED_VAADIN_PORTLET)) {
ParamValue paramValue = CommonFactory.eINSTANCE.createParamValue();
paramValue.setName("application");
String pkg = getDataModel().getStringProperty(JAVA_PACKAGE);
String cls = getDataModel().getStringProperty(CLASS_NAME);
String qualifiedApplicationClass = (pkg == null || StringPool.EMPTY.equals(pkg)) ? cls : pkg + "." + cls;
paramValue.setValue(qualifiedApplicationClass);
initParams.add(paramValue);
}
return initParams;
}
Aggregations