/******************************************************************************* * Copyright (c) 2011, 2012 Red Hat, Inc. * All rights reserved. * This program is made available under the terms of the * Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Red Hat, Inc. - initial API and implementation * * @author Bob Brodt ******************************************************************************/ package org.eclipse.bpmn2.modeler.ui.property.artifact; import org.eclipse.bpmn2.modeler.core.merrimac.clad.AbstractBpmn2PropertySection; import org.eclipse.bpmn2.modeler.core.merrimac.clad.AbstractPropertiesProvider; import org.eclipse.bpmn2.modeler.core.merrimac.clad.DefaultDetailComposite; import org.eclipse.emf.ecore.EObject; import org.eclipse.swt.widgets.Composite; public class CategoryDetailComposite extends DefaultDetailComposite { public CategoryDetailComposite(Composite parent, int style) { super(parent, style); } /** * @param section */ public CategoryDetailComposite(AbstractBpmn2PropertySection section) { super(section); } @Override public AbstractPropertiesProvider getPropertiesProvider(EObject object) { if (propertiesProvider==null) { propertiesProvider = new AbstractPropertiesProvider(object) { String[] properties = new String[] { "anyAttribute", //$NON-NLS-1$ "name", //$NON-NLS-1$ "categoryValue", //$NON-NLS-1$ }; @Override public String[] getProperties() { return properties; } }; } return propertiesProvider; } }