/*******************************************************************************
* Copyright (c) 2011, 2012, 2013 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.examples.customtask;
import org.eclipse.bpmn2.modeler.core.merrimac.clad.AbstractBpmn2PropertySection;
import org.eclipse.bpmn2.modeler.core.merrimac.clad.AbstractDetailComposite;
import org.eclipse.bpmn2.modeler.core.merrimac.clad.DefaultDetailComposite;
import org.eclipse.bpmn2.modeler.core.merrimac.clad.DefaultPropertySection;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.swt.widgets.Composite;
public class MyBoundaryEventPropertySection extends DefaultPropertySection {
public MyBoundaryEventPropertySection() {
super();
}
@Override
protected AbstractDetailComposite createSectionRoot() {
// This constructor is used to create the detail composite for use in the Property Viewer.
return new MyBoundaryEventDetailComposite(this);
}
@Override
public AbstractDetailComposite createSectionRoot(Composite parent, int style) {
// This constructor is used to create the detail composite for use in the popup Property Dialog.
return new MyBoundaryEventDetailComposite(parent, style);
}
public class MyBoundaryEventDetailComposite extends DefaultDetailComposite {
public MyBoundaryEventDetailComposite(AbstractBpmn2PropertySection section) {
super(section);
}
public MyBoundaryEventDetailComposite(Composite parent, int style) {
super(parent, style);
}
@Override
public void createBindings(EObject be) {
bindAttribute(be, "isEnabled");
}
}
}