aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJacek Pospychala2012-11-02 12:07:14 (EDT)
committerJacek Pospychala2012-11-02 12:07:14 (EDT)
commit8cf906e911bd911c97e2e7c1f52b6c79c5125e3f (patch)
tree58f64bb7079d9dd193212583affa282b4dbbc93e
parent3b9580cafc32ecb632459fea2c16f6c8f15aa20b (diff)
downloadorg.eclipse.pdt-8cf906e911bd911c97e2e7c1f52b6c79c5125e3f.zip
org.eclipse.pdt-8cf906e911bd911c97e2e7c1f52b6c79c5125e3f.tar.gz
org.eclipse.pdt-8cf906e911bd911c97e2e7c1f52b6c79c5125e3f.tar.bz2
Bug 389037 - New project wizard should have an option to select
templates from available PHP facets
-rw-r--r--plugins/org.eclipse.php.ui/src/org/eclipse/php/ui/wizards/INewProjectWizardFragementFactory.java29
-rw-r--r--plugins/org.eclipse.php.ui/src/org/eclipse/php/ui/wizards/INewProjectWizardOperation.java59
2 files changed, 88 insertions, 0 deletions
diff --git a/plugins/org.eclipse.php.ui/src/org/eclipse/php/ui/wizards/INewProjectWizardFragementFactory.java b/plugins/org.eclipse.php.ui/src/org/eclipse/php/ui/wizards/INewProjectWizardFragementFactory.java
new file mode 100644
index 0000000..bac0444
--- /dev/null
+++ b/plugins/org.eclipse.php.ui/src/org/eclipse/php/ui/wizards/INewProjectWizardFragementFactory.java
@@ -0,0 +1,29 @@
+/*******************************************************************************
+ * Copyright (c) 2012 IBM Corporation 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:
+ * IBM Corporation - initial API and implementation
+ * Martin Eisengardt <martin.eisengardt@fiducia.de>
+ *******************************************************************************/
+package org.eclipse.php.ui.wizards;
+
+import org.eclipse.php.internal.ui.wizards.WizardFragment;
+
+/**
+ * Factory for creating fragments for the new project wizard.
+ *
+ */
+public interface INewProjectWizardFragementFactory {
+
+ /**
+ * Creates a WizardFragment used for the new project wizard.
+ *
+ * @return the wizard fragment
+ */
+ public WizardFragment createWizardFragment();
+
+}
diff --git a/plugins/org.eclipse.php.ui/src/org/eclipse/php/ui/wizards/INewProjectWizardOperation.java b/plugins/org.eclipse.php.ui/src/org/eclipse/php/ui/wizards/INewProjectWizardOperation.java
new file mode 100644
index 0000000..863e5cc
--- /dev/null
+++ b/plugins/org.eclipse.php.ui/src/org/eclipse/php/ui/wizards/INewProjectWizardOperation.java
@@ -0,0 +1,59 @@
+/*******************************************************************************
+ * Copyright (c) 2012 IBM Corporation 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:
+ * IBM Corporation - initial API and implementation
+ * Martin Eisengardt <martin.eisengardt@fiducia.de>
+ *******************************************************************************/
+package org.eclipse.php.ui.wizards;
+
+import org.eclipse.core.resources.IProject;
+import org.eclipse.php.internal.ui.wizards.WizardModel;
+
+/**
+ * A single operation for the new project wizard
+ *
+ */
+public interface INewProjectWizardOperation {
+
+ /**
+ * Invoked before switching from facets page to the php include page. Can be
+ * used to preset/manipulate the include path. The given project is already
+ * prepared/ the default.
+ *
+ * @param projectHandle
+ * The project handle
+ * @param model
+ * the wizard data model
+ * @param keep
+ * true to keep the sources (overwrite existing project) or false
+ * to create a new project
+ */
+ public void onPreparePhpProject(IProject projectHandle, WizardModel model,
+ boolean keep);
+
+ /**
+ * Invoked after the user clicks on finish
+ *
+ * @param projectHandle
+ * the final php project
+ * @param model
+ * the wizard data model
+ */
+ public void onFinish(IProject projectHandle, WizardModel model);
+
+ /**
+ * Invoked after the user clicks on cancel. should be used for cleanup.
+ *
+ * @param projectHandle
+ * the temporary php project
+ * @param model
+ * the wizard data model
+ */
+ public void onCancel(IProject projectHandle, WizardModel model);
+
+} \ No newline at end of file