Author: dazarov
Date: 2008-03-12 12:12:16 -0400 (Wed, 12 Mar 2008)
New Revision: 6900
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.doc.user/JSFContextHelp.xml
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/IJSFHelpContextIds.java
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/wizard/project/ImportProjectWizard.java
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/wizard/project/NewProjectWizard.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1692
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.doc.user/JSFContextHelp.xml
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.doc.user/JSFContextHelp.xml 2008-03-12 16:07:38
UTC (rev 6899)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.doc.user/JSFContextHelp.xml 2008-03-12 16:12:16
UTC (rev 6900)
@@ -21,10 +21,6 @@
<description>New Managed Bean Wizard</description>
<topic href="JSFStrutsTools.html#ManagedBeans96453" label="Managed
Beans"/>
</context>
- <context id="new_managed_bean" title="New Managed Bean">
- <description>New Managed Bean Wizard</description>
- <topic href="JSFStrutsTools.html#ManagedBeans96453" label="Managed
Beans"/>
- </context>
<context id="add_property" title="Add Property">
<description>Add Property Wizard</description>
<topic href="JSFStrutsTools.html#CodeGenerationForManagedBeans421"
label="Code Generation for Managed Beans"/>
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/IJSFHelpContextIds.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/IJSFHelpContextIds.java 2008-03-12
16:07:38 UTC (rev 6899)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/IJSFHelpContextIds.java 2008-03-12
16:12:16 UTC (rev 6900)
@@ -14,6 +14,8 @@
public static final String PREFIX = JsfUiPlugin.PLUGIN_ID + '.';
public static final String FACES_CONFIG_EDITOR = PREFIX +
"faces_config_editor";
+
+ public static final String NEW_JSF_PROJECT = PREFIX + "new_jsf_project";
-
+ public static final String IMPORT_JSF_PROJECT = PREFIX +
"import_jsf_project";
}
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/wizard/project/ImportProjectWizard.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/wizard/project/ImportProjectWizard.java 2008-03-12
16:07:38 UTC (rev 6899)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/wizard/project/ImportProjectWizard.java 2008-03-12
16:12:16 UTC (rev 6900)
@@ -11,8 +11,11 @@
package org.jboss.tools.jsf.ui.wizard.project;
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.XModelFactory;
+import org.jboss.tools.jsf.ui.IJSFHelpContextIds;
import org.jboss.tools.jsf.ui.operation.JSFProjectAdoptOperation;
import org.jboss.tools.jsf.web.helpers.context.*;
import org.jboss.tools.common.model.ui.*;
@@ -27,6 +30,11 @@
this.setDefaultPageImageDescriptor(ModelUIImages.getImageDescriptor(ModelUIImages.WIZARD_IMPORT_PROJECT));
}
+ public void createPageControls(Composite parent) {
+ super.createPageControls(parent);
+ PlatformUI.getWorkbench().getHelpSystem().setHelp(parent,
IJSFHelpContextIds.IMPORT_JSF_PROJECT);
+ }
+
public void addPages() {
context = new
ImportProjectWizardContext(XModelFactory.getDefaultInstance().getRoot());
context.setInitialName(initialName);
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/wizard/project/NewProjectWizard.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/wizard/project/NewProjectWizard.java 2008-03-12
16:07:38 UTC (rev 6899)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/wizard/project/NewProjectWizard.java 2008-03-12
16:12:16 UTC (rev 6900)
@@ -12,13 +12,15 @@
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.jsf.JSFPreference;
-import org.jboss.tools.jst.web.project.helpers.ProjectTemplate;
+import org.jboss.tools.jsf.ui.IJSFHelpContextIds;
import org.jboss.tools.jsf.ui.operation.JSFProjectCreationOperation;
import org.jboss.tools.jsf.web.helpers.context.NewProjectWizardContext;
-import org.jboss.tools.common.model.ui.ModelUIImages;
+import org.jboss.tools.jst.web.project.helpers.ProjectTemplate;
import org.jboss.tools.jst.web.ui.wizards.appregister.NewProjectRegisterPage;
import org.jboss.tools.jst.web.ui.wizards.project.NewWebProjectWizard;
import org.jboss.tools.jst.web.ui.wizards.project.NewWebProjectWizardPreprocessingPage;
@@ -36,6 +38,11 @@
this.setDefaultPageImageDescriptor(ModelUIImages.getImageDescriptor(ModelUIImages.WIZARD_NEW_PROJECT));
}
+ public void createPageControls(Composite parent) {
+ super.createPageControls(parent);
+ PlatformUI.getWorkbench().getHelpSystem().setHelp(parent,
IJSFHelpContextIds.NEW_JSF_PROJECT);
+ }
+
public void addPages() {
fMainPage = new NewProjectWizardPage(context);
fMainPage.setTitle(WizardKeys.getString(NEW_JSF_PROJECT_WIZARD_CREATE_STRUTS_PROJECT));