/*****************************************************************************
* Copyright (c) 2010 CEA LIST.
*
* 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:
* Remi Schnekenburger (CEA LIST) remi.schnekenburger@cea.fr - Initial API and implementation
*****************************************************************************/
package org.eclipse.papyrus.uml.diagram.paletteconfiguration.descriptor;
import org.eclipse.gmf.runtime.common.core.command.ICommand;
import org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelperAdvice;
import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest;
/**
* Edit helper Advice for extended element types.
*/
public class ExtendedEditHelperAdvice extends AbstractEditHelperAdvice {
/**
* {@inheritDoc}
*/
@Override
public boolean approveRequest(IEditCommandRequest request) {
// launch queries here
return super.approveRequest(request);
}
/**
* {@inheritDoc}
*/
@Override
protected ICommand getBeforeCreateCommand(CreateElementRequest request) {
// pre-action. Here, this is null.
return super.getBeforeCreateCommand(request);
}
/**
* {@inheritDoc}
*/
@Override
protected ICommand getAfterCreateCommand(CreateElementRequest request) {
// post-action. Here, this is null.
return super.getAfterCreateCommand(request);
}
}