/******************************************************************************* * 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 *******************************************************************************/ package org.eclipse.bpmn2.modeler.ui.property.diagrams; 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 ProcessDiagramDetailComposite extends DefaultDetailComposite { private AbstractPropertiesProvider propertiesProvider; public ProcessDiagramDetailComposite(Composite parent, int style) { super(parent, style); } public ProcessDiagramDetailComposite(AbstractBpmn2PropertySection section) { super(section); } @Override public AbstractPropertiesProvider getPropertiesProvider(EObject object) { if (propertiesProvider == null) { propertiesProvider = new AbstractPropertiesProvider(object) { String[] properties = new String[] { "id", "name", //$NON-NLS-1$ //$NON-NLS-2$ "anyAttribute", //$NON-NLS-1$ "processType", //$NON-NLS-1$ "isExecutable", //$NON-NLS-1$ "isClosed", //$NON-NLS-1$ "correlationSubscriptions" //$NON-NLS-1$ }; @Override public String[] getProperties() { return properties; } }; } return propertiesProvider; } }