| /** |
| * |
| * Copyright (c) 2011, 2016 - 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 v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * Christophe Loetz (Loetz GmbH&Co.KG) - initial implementation |
| */ |
| package org.eclipse.osbp.wizard.ui.allinonedsl; |
| |
| import org.eclipse.swt.widgets.Event; |
| import org.eclipse.swt.widgets.Listener; |
| |
| import org.eclipse.osbp.wizard.ui.AllInOneDSLsNewProjectWizard; |
| import org.eclipse.osbp.wizard.ui.basic.BasicNewProjectEclipsePage; |
| |
| /** |
| * The Class AllInOneDSLsNewProjectEclipsePage. |
| * <br> |
| * Adds specific listeners to the basic projec eclipse page. |
| */ |
| public class AllInOneDSLsNewProjectEclipsePage extends BasicNewProjectEclipsePage { |
| |
| /** |
| * Instantiates a new all in one DS ls new project eclipse page. |
| * |
| * @param wizard the wizard |
| * @param pageName the page name |
| */ |
| public AllInOneDSLsNewProjectEclipsePage(final AllInOneDSLsNewProjectWizard wizard, String pageName) { |
| super(wizard, pageName); |
| wizard.projectNameChanges.add(new Listener() { |
| public void handleEvent(Event e) { |
| wizard.projectInfo.setTopLevelDomain(wizard.topLevelDomain.getItem(wizard.topLevelDomain.getSelectionIndex()).split(" ")[0]); |
| wizard.projectInfo.setCompanyDomain(wizard.companyDomain.getText()); |
| wizard.projectInfo.setBusinessBundle(wizard.businessBundle.getText()); |
| wizard.projectNameField.setText(wizard.projectInfo.getBasicProjectName()); |
| wizard.bundleName.setText(wizard.projectInfo.getBasicSymbolicName()); |
| wizard.productDesktopUrlPath.setText(wizard.projectInfo.getProductDesktopUrlPath()); |
| wizard.productMobileUrlPath.setText(wizard.projectInfo.getProductMobileUrlPath()); |
| wizard.nameModifyListener.handleEvent(e); |
| } |
| }); |
| } |
| } |