diff options
Diffstat (limited to 'build/org.eclipse.cdt.managedbuilder.ui.tests/src/org/eclipse/cdt/managedbuilder/ui/tests/wizardPages/ProjectTypeDWizardPage.java')
-rw-r--r-- | build/org.eclipse.cdt.managedbuilder.ui.tests/src/org/eclipse/cdt/managedbuilder/ui/tests/wizardPages/ProjectTypeDWizardPage.java | 125 |
1 files changed, 125 insertions, 0 deletions
diff --git a/build/org.eclipse.cdt.managedbuilder.ui.tests/src/org/eclipse/cdt/managedbuilder/ui/tests/wizardPages/ProjectTypeDWizardPage.java b/build/org.eclipse.cdt.managedbuilder.ui.tests/src/org/eclipse/cdt/managedbuilder/ui/tests/wizardPages/ProjectTypeDWizardPage.java new file mode 100644 index 00000000000..f1c69b5499e --- /dev/null +++ b/build/org.eclipse.cdt.managedbuilder.ui.tests/src/org/eclipse/cdt/managedbuilder/ui/tests/wizardPages/ProjectTypeDWizardPage.java @@ -0,0 +1,125 @@ +/******************************************************************************* + * Copyright (c) 2005 Texas Instruments Incorporated and others. + * 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: + * Texas Instruments - initial API and implementation + *******************************************************************************/ + +package org.eclipse.cdt.managedbuilder.ui.tests.wizardPages; + +import org.eclipse.cdt.managedbuilder.ui.wizards.MBSCustomPage; +import org.eclipse.jface.resource.ImageDescriptor; +import org.eclipse.swt.graphics.Image; +import org.eclipse.swt.layout.GridData; +import org.eclipse.swt.layout.GridLayout; +import org.eclipse.swt.widgets.Composite; +import org.eclipse.swt.widgets.Control; +import org.eclipse.swt.widgets.Text; +import org.eclipse.swt.SWT; + +public class ProjectTypeDWizardPage extends MBSCustomPage +{ + + private Composite composite; + + public ProjectTypeDWizardPage() + { + pageID = "org.eclipse.cdt.managedbuilder.ui.tests.wizardPages.ProjectTypeDWizardPage"; + } + + public String getName() + { + return new String("Project Type D WizardPage"); + } + + public void createControl(Composite parent) + { + + composite = new Composite(parent, SWT.NULL); + composite.setLayout(new GridLayout()); + composite.setLayoutData(new GridData(GridData.FILL_BOTH)); + + Text pageText = new Text(composite, SWT.CENTER); + pageText.setBounds(composite.getBounds()); + pageText.setText("Project Type D WizardPage"); + pageText.setVisible(true); + + } + + public void dispose() + { + composite.dispose(); + + } + + public Control getControl() + { + return composite; + } + + public String getDescription() + { + return new String("My description"); + } + + public String getErrorMessage() + { + return new String("My error msg"); + } + + public Image getImage() + { + return wizard.getDefaultPageImage(); + } + + public String getMessage() + { + // TODO Auto-generated method stub + return null; + } + + public String getTitle() + { + return new String("My Title"); + } + + public void performHelp() + { + // do nothing + + } + + public void setDescription(String description) + { + // do nothing + + } + + public void setImageDescriptor(ImageDescriptor image) + { + // do nothing + + } + + public void setTitle(String title) + { + // do nothing + + } + + public void setVisible(boolean visible) + { + composite.setVisible(visible); + + } + + protected boolean isCustomPageComplete() + { + return true; + } + +} |