Ejemplo n.º 1
0
  @Override
  protected IDataModelProvider getDefaultProvider() {
    // for now, no need for own template store and context type
    TemplateStore templateStore = JSFUIPlugin.getDefault().getTemplateStore();

    TemplateContextType contextType =
        JSFUIPlugin.getDefault()
            .getTemplateContextRegistry()
            .getContextType(JSFPortletTemplateContextTypeIds.NEW);

    return new NewJSFPortletClassDataModelProvider(templateStore, contextType, fragment);
  }
Ejemplo n.º 2
0
 @Override
 protected ImageDescriptor getImage() {
   return ImageDescriptor.createFromURL(
       JSFUIPlugin.getDefault().getBundle().getEntry("/icons/wizban/liferay_faces_75x66.png"));
 }