/******************************************************************************* * Copyright (c) 2005, 2012 eBay Inc. * 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 * *******************************************************************************/ package org.eclipse.vjet.eclipse.internal.ui.wizards; import org.eclipse.vjet.eclipse.core.VjoNature; /** * VJET wizard for creating a new vjo mixin type. * */ public class VjoMixinCreationWizard extends VjoClassCreationWizard { private static final String MTYPE = "mtype"; public VjoMixinCreationWizard() { super(); setWindowTitle(VjetWizardMessages.MixinCreationWizard_title); } /* (non-Javadoc) * @see org.eclipse.vjet.eclipse.internal.ui.wizards.VjoClassCreationWizard#createVjoSourceModulePage() */ protected VjoSourceModulePage createVjoSourceModulePage() { return new VjoSourceModulePage() { @Override protected String getPageDescription() { return VjetWizardMessages.MixinCreationWizard_page_description; } @Override protected String getPageTitle() { return VjetWizardMessages.MixinCreationWizard_page_title; } @Override protected String getRequiredNature() { return VjoNature.NATURE_ID; } @Override protected String getPageType() { return MTYPE; } }; } @Override protected String getClassType() { return MTYPE; } @Override protected String getInheritance() { return EMPTY; } @Override protected String getBlockName() { return PROPS; } /** * Initializes data for creating new class. * This method is used only for wizard engine. */ public void initializeData() { VjoClassCreationPage page = (VjoClassCreationPage) super.createVjoSourceModulePage(); page.initializeSuperClassField(); page.setAbstractButton(false); page.setMethodStubGeneration(false); page.setConstructorStubGeneration(false); } }