| /******************************************************************************* |
| * Copyright (c) 2006 Borland Software Corporation and others. |
| * All rights reserved. This program and the accompanying materials |
| * are 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: |
| * Borland Software Corporation - initial API and implementation |
| *******************************************************************************/ |
| package org.eclipse.gmf.examples.mindmap.diagram.edit.parts; |
| |
| import org.eclipse.emf.common.notify.Notification; |
| import org.eclipse.gmf.examples.mindmap.diagram.edit.policies.Thread_ThreadItemCompartmentCanonicalEditPolicy; |
| import org.eclipse.gmf.examples.mindmap.diagram.edit.policies.Thread_ThreadItemCompartmentItemSemanticEditPolicy; |
| import org.eclipse.gmf.runtime.diagram.ui.editparts.ListCompartmentEditPart; |
| import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy; |
| import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy; |
| import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles; |
| import org.eclipse.gmf.runtime.notation.View; |
| |
| /** |
| * @generated |
| */ |
| public class Thread_ThreadItemCompartmentEditPart extends ListCompartmentEditPart { |
| |
| /** |
| * @generated |
| */ |
| public static final int VISUAL_ID = 5002; |
| |
| /** |
| * @generated |
| */ |
| public Thread_ThreadItemCompartmentEditPart(View view) { |
| super(view); |
| } |
| |
| /** |
| * @generated |
| */ |
| protected boolean hasModelChildrenChanged(Notification evt) { |
| return false; |
| } |
| |
| /** |
| * @generated |
| */ |
| protected String getTitleName() { |
| return "ThreadItemCompartment"; |
| } |
| |
| /** |
| * @generated |
| */ |
| protected void createDefaultEditPolicies() { |
| super.createDefaultEditPolicies(); |
| installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new Thread_ThreadItemCompartmentItemSemanticEditPolicy()); |
| installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy()); |
| installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy()); |
| installEditPolicy(EditPolicyRoles.CANONICAL_ROLE, new Thread_ThreadItemCompartmentCanonicalEditPolicy()); |
| } |
| } |