merged from HEAD: IProjectWizardInitializer
diff --git a/core/plugins/org.eclipse.dltk.ui/plugin.xml b/core/plugins/org.eclipse.dltk.ui/plugin.xml
index 4cb4838..2eee379 100644
--- a/core/plugins/org.eclipse.dltk.ui/plugin.xml
+++ b/core/plugins/org.eclipse.dltk.ui/plugin.xml
@@ -16,6 +16,7 @@
<extension-point id="modelLabelProvider" name="modelLabelProvider" schema="schema/modelLabelProvider.exsd"/>
<extension-point id="modelCompareProvider" name="modelCompareProvider" schema="schema/modelCompareProvider.exsd"/>
<extension-point id="projectTemplate" name="Project Template" schema="schema/projectTemplate.exsd"/>
+ <extension-point id="projectWizardInitializer" name="Project Wizard Initializer" schema="schema/projectWizardInitializer.exsd"/>
<extension-point id="sourceModuleTemplate" name="sourceModuleTemplate" schema="schema/sourceModuleTemplate.exsd"/>
<extension
id="DLTKSearchResultPage"
diff --git a/core/plugins/org.eclipse.dltk.ui/schema/projectTemplate.exsd b/core/plugins/org.eclipse.dltk.ui/schema/projectTemplate.exsd
index 830abca..abc0970 100644
--- a/core/plugins/org.eclipse.dltk.ui/schema/projectTemplate.exsd
+++ b/core/plugins/org.eclipse.dltk.ui/schema/projectTemplate.exsd
@@ -59,6 +59,13 @@
</appInfo>
</annotation>
</attribute>
+ <attribute name="id" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
<attribute name="name" type="string" use="required">
<annotation>
<documentation>
diff --git a/core/plugins/org.eclipse.dltk.ui/schema/projectWizardInitializer.exsd b/core/plugins/org.eclipse.dltk.ui/schema/projectWizardInitializer.exsd
new file mode 100644
index 0000000..2dac2ad
--- /dev/null
+++ b/core/plugins/org.eclipse.dltk.ui/schema/projectWizardInitializer.exsd
@@ -0,0 +1,109 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!-- Schema file written by PDE -->
+<schema targetNamespace="org.eclipse.dltk.ui" xmlns="http://www.w3.org/2001/XMLSchema">
+<annotation>
+ <appInfo>
+ <meta.schema plugin="org.eclipse.dltk.ui" id="projectTemplate" name="projectTemplate"/>
+ </appInfo>
+ <documentation>
+ [Enter description of this extension point.]
+ </documentation>
+ </annotation>
+
+ <element name="extension">
+ <annotation>
+ <appInfo>
+ <meta.element />
+ </appInfo>
+ </annotation>
+ <complexType>
+ <sequence>
+ <element ref="projectWizardInitializer" minOccurs="1" maxOccurs="unbounded"/>
+ </sequence>
+ <attribute name="point" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="id" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="name" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ <appInfo>
+ <meta.attribute translatable="true"/>
+ </appInfo>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <element name="projectWizardInitializer">
+ <complexType>
+ <attribute name="class" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ <appInfo>
+ <meta.attribute kind="java" basedOn=":org.eclipse.dltk.ui.wizards.IProjectWizardInitializer"/>
+ </appInfo>
+ </annotation>
+ </attribute>
+ <attribute name="nature" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="since"/>
+ </appInfo>
+ <documentation>
+ [Enter the first release in which this extension point appears.]
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="examples"/>
+ </appInfo>
+ <documentation>
+ [Enter extension point usage example here.]
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="apiInfo"/>
+ </appInfo>
+ <documentation>
+ [Enter API information here.]
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="implementation"/>
+ </appInfo>
+ <documentation>
+ [Enter information about supplied implementation of this extension point.]
+ </documentation>
+ </annotation>
+
+
+</schema>
diff --git a/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/ui/wizards/IProjectWizardInitializer.java b/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/ui/wizards/IProjectWizardInitializer.java
new file mode 100644
index 0000000..6093632
--- /dev/null
+++ b/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/ui/wizards/IProjectWizardInitializer.java
@@ -0,0 +1,33 @@
+/*******************************************************************************
+ * Copyright (c) 2009 xored software, 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
+ *
+ * Contributors:
+ * xored software, Inc. - initial API and Implementation (Alex Panchenko)
+ *******************************************************************************/
+package org.eclipse.dltk.ui.wizards;
+
+/**
+ * @since 2.0
+ */
+public interface IProjectWizardInitializer {
+
+ public interface IProjectWizardState {
+
+ String MODE_WORKSPACE = "org.eclipse.dltk.ui.projectWizard.workspace"; //$NON-NLS-1$
+
+ String MODE_EXTERNAL = "org.eclipse.dltk.ui.projectWizard.external"; //$NON-NLS-1$
+
+ void setToolTipText(String mode, String tooltip);
+
+ void setMode(String mode);
+
+ }
+
+ void initialize(IProjectWizardState state);
+
+}