/* * (non-Javadoc) * @see org.eclipse.sapphire.ui.SapphireActionHandlerFactory#create() */ @Override public List<SapphireActionHandler> create() { List<SapphireActionHandler> listOfHandlers = new ArrayList<SapphireActionHandler>(); for (int i = 0; i < this.modelProperties.length; i++) { String modelProperty = this.modelProperties[i]; if (modelProperty != null && "Portlets".equalsIgnoreCase(modelProperty) && isPartInLiferayProject()) { SapphireActionHandler handler = new CreateLiferayPortletActionHandler(); handler.init(this.getAction(), null); handler.addImage(IPortlet.TYPE.image()); handler.setLabel(getActionLabel("Portlets")); listOfHandlers.add(handler); } else { listOfHandlers.add(new Handler(modelProperty)); } } // System.out.println( "QuickActionsHandlerFactory.created" + listOfHandlers.size() + " handlers // " ); return listOfHandlers; }