blob: f1f1a5f14a3187c98dd6031219da1d001127fe25 [file] [log] [blame]
/**
* Copyright (c) 2011, 2015 - Lunifera GmbH (Gross Enzersdorf, Austria), Loetz GmbH&Co.KG (69115 Heidelberg, Germany)
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Florian Pirchner - Initial implementation
*/
package org.eclipse.osbp.ecview.core.common.editpart;
// TODO: Auto-generated Javadoc
/**
* An editpart that handles commands.
*/
public interface ICommandEditpart extends IElementEditpart {
/**
* Activates the command. It used to active commands before bindings and
* after element creation.
*/
void activate();
/**
* Returns the view edit part of this embeddable edit part.<br>
* May be <code>null</code> as far as this element and no of its parents are
* attached to a view.
*
* @return editpart The view editpart
*/
IViewEditpart getView();
/**
* Requests disposal of the current editpart. This method will forward the
* request to the parent if available and the parent will handle the steps
* required to dispose the editpart properly.
*/
void requestDispose();
/**
* Executes the command.
*/
void execute();
/**
* Returns the parent that contains this command.
*
* @return the parent
*/
IElementEditpart getParent();
}