/****************************************************************************** * Copyright (c) 2010-2013, Linagora * * 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: * Linagora - initial API and implementation *******************************************************************************/ package com.ebmwebsourcing.petals.services.sa.refactoring; import com.ebmwebsourcing.petals.common.internal.provisional.commands.AbstractProjectRefactorHandler; import com.ebmwebsourcing.petals.common.internal.provisional.refactoring.AbstractRefactoringWizardPage; import com.ebmwebsourcing.petals.common.internal.provisional.refactoring.MavenProjectRefactoringProcessor; /** * A handler to refactor SA projects. * @author Vincent Zurczak - EBM WebSourcing */ public class SaProjectRefactorHandler extends AbstractProjectRefactorHandler { private AbstractRefactoringWizardPage userPage; /* * (non-Javadoc) * @see com.ebmwebsourcing.petals.common.internal.provisional.commands.AbstractProjectRefactorHandler * #getRefactoringProcessor() */ @Override public MavenProjectRefactoringProcessor getRefactoringProcessor() { RefactoringExtensionForSa ext = new RefactoringExtensionForSa(); MavenProjectRefactoringProcessor processor = new MavenProjectRefactoringProcessor( ext ); return processor; } /* * (non-Javadoc) * @see com.ebmwebsourcing.petals.common.internal.provisional.commands.AbstractProjectRefactorHandler * #getUserInputPage() */ @Override public AbstractRefactoringWizardPage getUserInputPage() { if( this.userPage == null ) this.userPage = new SaRefactorUserPage(); return this.userPage; } }