Author: dazarov
Date: 2008-03-12 12:07:38 -0400 (Wed, 12 Mar 2008)
New Revision: 6899
Modified:
trunk/struts/plugins/org.jboss.tools.struts.ui/src/org/jboss/tools/struts/ui/IStrutsHelpContextIds.java
trunk/struts/plugins/org.jboss.tools.struts.ui/src/org/jboss/tools/struts/ui/wizard/project/ImportProjectWizard.java
trunk/struts/plugins/org.jboss.tools.struts.ui/src/org/jboss/tools/struts/ui/wizard/project/NewProjectWizard.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1692
Modified:
trunk/struts/plugins/org.jboss.tools.struts.ui/src/org/jboss/tools/struts/ui/IStrutsHelpContextIds.java
===================================================================
---
trunk/struts/plugins/org.jboss.tools.struts.ui/src/org/jboss/tools/struts/ui/IStrutsHelpContextIds.java 2008-03-12
16:06:17 UTC (rev 6898)
+++
trunk/struts/plugins/org.jboss.tools.struts.ui/src/org/jboss/tools/struts/ui/IStrutsHelpContextIds.java 2008-03-12
16:07:38 UTC (rev 6899)
@@ -17,5 +17,7 @@
public static final String VALIDATION_EDITOR = PREFIX + "validation_editor";
+ public static final String NEW_STRUTS_PROJECT = PREFIX +
"new_struts_project";
+ public static final String IMPORT_STRUTS_PROJECT = PREFIX +
"import_struts_project";
}
Modified:
trunk/struts/plugins/org.jboss.tools.struts.ui/src/org/jboss/tools/struts/ui/wizard/project/ImportProjectWizard.java
===================================================================
---
trunk/struts/plugins/org.jboss.tools.struts.ui/src/org/jboss/tools/struts/ui/wizard/project/ImportProjectWizard.java 2008-03-12
16:06:17 UTC (rev 6898)
+++
trunk/struts/plugins/org.jboss.tools.struts.ui/src/org/jboss/tools/struts/ui/wizard/project/ImportProjectWizard.java 2008-03-12
16:07:38 UTC (rev 6899)
@@ -12,8 +12,11 @@
import org.jboss.tools.common.model.ui.util.ModelUtilities;
import org.eclipse.jface.operation.IRunnableWithProgress;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.PlatformUI;
import org.jboss.tools.common.meta.key.WizardKeys;
import org.jboss.tools.common.model.ui.ModelUIImages;
+import org.jboss.tools.struts.ui.IStrutsHelpContextIds;
import org.jboss.tools.struts.ui.operation.StrutsProjectAdoptOperation;
import org.jboss.tools.jst.web.ui.wizards.project.ImportWebProjectWizard;
import org.jboss.tools.struts.webprj.model.helpers.context.ImportProjectWizardContext;
@@ -30,6 +33,11 @@
this.setDefaultPageImageDescriptor(ModelUIImages.getImageDescriptor(ModelUIImages.WIZARD_IMPORT_PROJECT));
}
+ public void createPageControls(Composite parent) {
+ super.createPageControls(parent);
+ PlatformUI.getWorkbench().getHelpSystem().setHelp(parent,
IStrutsHelpContextIds.IMPORT_STRUTS_PROJECT);
+ }
+
public void addPages() {
context = new
ImportProjectWizardContext(ModelUtilities.getPreferenceModel().getRoot());
context.setInitialName(initialName);
Modified:
trunk/struts/plugins/org.jboss.tools.struts.ui/src/org/jboss/tools/struts/ui/wizard/project/NewProjectWizard.java
===================================================================
---
trunk/struts/plugins/org.jboss.tools.struts.ui/src/org/jboss/tools/struts/ui/wizard/project/NewProjectWizard.java 2008-03-12
16:06:17 UTC (rev 6898)
+++
trunk/struts/plugins/org.jboss.tools.struts.ui/src/org/jboss/tools/struts/ui/wizard/project/NewProjectWizard.java 2008-03-12
16:07:38 UTC (rev 6899)
@@ -12,10 +12,13 @@
import org.eclipse.jface.operation.IRunnableWithProgress;
import org.eclipse.jface.wizard.IWizardPage;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.PlatformUI;
import org.jboss.tools.common.meta.key.WizardKeys;
import org.jboss.tools.common.model.ui.ModelUIImages;
import org.jboss.tools.jst.web.project.helpers.ProjectTemplate;
+import org.jboss.tools.struts.ui.IStrutsHelpContextIds;
import org.jboss.tools.struts.ui.operation.StrutsProjectCreationOperation;
import org.jboss.tools.jst.web.WebPreference;
import org.jboss.tools.jst.web.ui.wizards.appregister.NewProjectRegisterPage;
@@ -36,6 +39,11 @@
this.setDefaultPageImageDescriptor(ModelUIImages.getImageDescriptor(ModelUIImages.WIZARD_NEW_PROJECT));
}
+ public void createPageControls(Composite parent) {
+ super.createPageControls(parent);
+ PlatformUI.getWorkbench().getHelpSystem().setHelp(parent,
IStrutsHelpContextIds.NEW_STRUTS_PROJECT);
+ }
+
public void addPages() {
fMainPage = new NewProjectWizardPage(context);
fMainPage.setTitle(WizardKeys.getString(NEW_STRUTS_PROJECT_WIZARD_CREATE_STRUTS_PROJECT));