| 1 | /********************************************************************** |
| 2 | * Copyright (c) 2005, 2012 IBM Corporation, Ericsson |
| 3 | * All rights reserved. This program and the accompanying materials |
| 4 | * are made available under the terms of the Eclipse Public License v1.0 |
| 5 | * which accompanies this distribution, and is available at |
| 6 | * http://www.eclipse.org/legal/epl-v10.html |
| 7 | * |
| 8 | * Contributors: |
| 9 | * IBM - Initial API and implementation |
| 10 | * Bernd Hufmann - Updated for TMF |
| 11 | **********************************************************************/ |
| 12 | |
| 13 | package org.eclipse.linuxtools.tmf.ui.views.uml2sd.handlers.provider; |
| 14 | |
| 15 | import org.eclipse.linuxtools.tmf.ui.views.uml2sd.core.Lifeline; |
| 16 | |
| 17 | /** |
| 18 | * Interface for providing a collapse provider. |
| 19 | * |
| 20 | * Sequence diagram loaders which want to support Drag and Drop collapsing in the sequence diagram must implement this |
| 21 | * interface and register this implementation using <code>SDView.setCollapsingProvider();</code> |
| 22 | * |
| 23 | * @version 1.0 |
| 24 | * @author sveyrier |
| 25 | */ |
| 26 | public interface ISDCollapseProvider { |
| 27 | |
| 28 | /** |
| 29 | * Called back when the sequence diagram is requesting 2 lifelines collapsing |
| 30 | * |
| 31 | * @param lifeline1 - One of the lifeline to collapse |
| 32 | * @param lifeline2 - The other lifeline to collapse with |
| 33 | */ |
| 34 | public void collapseTwoLifelines(Lifeline lifeline1, Lifeline lifeline2); |
| 35 | |
| 36 | } |