Author: dazarov
Date: 2008-03-07 14:43:55 -0500 (Fri, 07 Mar 2008)
New Revision: 6790
Added:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/ISeamHelpContextIds.java
Modified:
trunk/seam/plugins/org.jboss.tools.seam.doc.user/plugin.xml
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamActionWizard.java
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamConversationWizard.java
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamEntityWizard.java
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamFormWizard.java
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamGenerateEnitiesWizard.java
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamProjectWizard.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1692
Modified: trunk/seam/plugins/org.jboss.tools.seam.doc.user/plugin.xml
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.doc.user/plugin.xml 2008-03-07 19:03:33 UTC
(rev 6789)
+++ trunk/seam/plugins/org.jboss.tools.seam.doc.user/plugin.xml 2008-03-07 19:43:55 UTC
(rev 6790)
@@ -13,7 +13,7 @@
point="org.eclipse.help.contexts">
<contexts
file="SeamContextHelp.xml"
- plugin="org.jboss.tools.seam.doc.user">
+ plugin="org.jboss.tools.seam.ui">
</contexts>
</extension>
Added:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/ISeamHelpContextIds.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/ISeamHelpContextIds.java
(rev 0)
+++
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/ISeamHelpContextIds.java 2008-03-07
19:43:55 UTC (rev 6790)
@@ -0,0 +1,29 @@
+/*******************************************************************************
+ * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is 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:
+ * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.seam.ui;
+
+public interface ISeamHelpContextIds {
+ public static final String PREFIX = SeamGuiPlugin.PLUGIN_ID + '.';
+
+ public static final String NEW_SEAM_PROJECT = PREFIX + "new_seam_project";
+
+ public static final String NEW_SEAM_ACTION = PREFIX + "new_seam_action";
+
+ public static final String NEW_SEAM_FORM = PREFIX + "new_seam_form";
+
+ public static final String NEW_SEAM_ENTITY = PREFIX + "new_seam_entity";
+
+ public static final String NEW_SEAM_CONVERSATION = PREFIX
+ + "new_seam_conversation";
+
+ public static final String GENERATE_SEAM_ENTITIES = PREFIX
+ + "generate_seam_entities";
+}
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamActionWizard.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamActionWizard.java 2008-03-07
19:03:33 UTC (rev 6789)
+++
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamActionWizard.java 2008-03-07
19:43:55 UTC (rev 6790)
@@ -21,6 +21,7 @@
import org.eclipse.ui.INewWizard;
import org.eclipse.ui.PlatformUI;
import org.jboss.tools.seam.internal.core.project.facet.ISeamFacetDataModelProperties;
+import org.jboss.tools.seam.ui.ISeamHelpContextIds;
import org.jboss.tools.seam.ui.SeamUIMessages;
import org.jboss.tools.seam.ui.widget.editor.INamedElement;
@@ -33,7 +34,7 @@
public void createPageControls(Composite pageContainer) {
super.createPageControls(pageContainer);
- PlatformUI.getWorkbench().getHelpSystem().setHelp(pageContainer,
"org.jboss.tools.seam.doc.user.new_seam_action");
+ PlatformUI.getWorkbench().getHelpSystem().setHelp(pageContainer,
ISeamHelpContextIds.NEW_SEAM_ACTION);
}
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamConversationWizard.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamConversationWizard.java 2008-03-07
19:03:33 UTC (rev 6789)
+++
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamConversationWizard.java 2008-03-07
19:43:55 UTC (rev 6790)
@@ -21,6 +21,7 @@
import org.eclipse.ui.INewWizard;
import org.eclipse.ui.PlatformUI;
import org.jboss.tools.seam.internal.core.project.facet.ISeamFacetDataModelProperties;
+import org.jboss.tools.seam.ui.ISeamHelpContextIds;
import org.jboss.tools.seam.ui.SeamUIMessages;
import org.jboss.tools.seam.ui.widget.editor.INamedElement;
@@ -28,7 +29,7 @@
public void createPageControls(Composite pageContainer) {
super.createPageControls(pageContainer);
- PlatformUI.getWorkbench().getHelpSystem().setHelp(pageContainer,
"org.jboss.tools.seam.doc.user.new_seam_conversation");
+ PlatformUI.getWorkbench().getHelpSystem().setHelp(pageContainer,
ISeamHelpContextIds.NEW_SEAM_CONVERSATION);
}
public SeamConversationWizard() {
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamEntityWizard.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamEntityWizard.java 2008-03-07
19:03:33 UTC (rev 6789)
+++
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamEntityWizard.java 2008-03-07
19:43:55 UTC (rev 6790)
@@ -22,6 +22,7 @@
import org.eclipse.ui.PlatformUI;
import org.jboss.tools.seam.core.SeamProjectsSet;
import org.jboss.tools.seam.internal.core.project.facet.ISeamFacetDataModelProperties;
+import org.jboss.tools.seam.ui.ISeamHelpContextIds;
import org.jboss.tools.seam.ui.SeamUIMessages;
import org.jboss.tools.seam.ui.widget.editor.INamedElement;
@@ -33,7 +34,7 @@
public void createPageControls(Composite pageContainer) {
super.createPageControls(pageContainer);
- PlatformUI.getWorkbench().getHelpSystem().setHelp(pageContainer,
"org.jboss.tools.seam.doc.user.new_seam_entity");
+ PlatformUI.getWorkbench().getHelpSystem().setHelp(pageContainer,
ISeamHelpContextIds.NEW_SEAM_ENTITY);
}
/**
*
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamFormWizard.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamFormWizard.java 2008-03-07
19:03:33 UTC (rev 6789)
+++
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamFormWizard.java 2008-03-07
19:43:55 UTC (rev 6790)
@@ -22,6 +22,7 @@
import org.eclipse.ui.INewWizard;
import org.eclipse.ui.PlatformUI;
import org.jboss.tools.seam.internal.core.project.facet.ISeamFacetDataModelProperties;
+import org.jboss.tools.seam.ui.ISeamHelpContextIds;
import org.jboss.tools.seam.ui.SeamUIMessages;
import org.jboss.tools.seam.ui.widget.editor.INamedElement;
@@ -34,7 +35,7 @@
public void createPageControls(Composite pageContainer) {
super.createPageControls(pageContainer);
- PlatformUI.getWorkbench().getHelpSystem().setHelp(pageContainer,
"org.jboss.tools.seam.doc.user.new_seam_form");
+ PlatformUI.getWorkbench().getHelpSystem().setHelp(pageContainer,
ISeamHelpContextIds.NEW_SEAM_FORM);
}
/**
*
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamGenerateEnitiesWizard.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamGenerateEnitiesWizard.java 2008-03-07
19:03:33 UTC (rev 6789)
+++
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamGenerateEnitiesWizard.java 2008-03-07
19:43:55 UTC (rev 6790)
@@ -42,6 +42,7 @@
import org.jboss.tools.seam.core.project.facet.SeamRuntimeManager;
import org.jboss.tools.seam.core.project.facet.SeamVersion;
import org.jboss.tools.seam.internal.core.project.facet.ISeamFacetDataModelProperties;
+import org.jboss.tools.seam.ui.ISeamHelpContextIds;
import org.jboss.tools.seam.ui.SeamUIMessages;
/**
@@ -52,7 +53,7 @@
public void createPageControls(Composite pageContainer) {
super.createPageControls(pageContainer);
- PlatformUI.getWorkbench().getHelpSystem().setHelp(pageContainer,
"org.jboss.tools.seam.doc.user.generate_seam_entities");
+ PlatformUI.getWorkbench().getHelpSystem().setHelp(pageContainer,
ISeamHelpContextIds.GENERATE_SEAM_ENTITIES);
}
public SeamGenerateEnitiesWizard() {
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamProjectWizard.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamProjectWizard.java 2008-03-07
19:03:33 UTC (rev 6789)
+++
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamProjectWizard.java 2008-03-07
19:43:55 UTC (rev 6790)
@@ -41,6 +41,7 @@
import org.jboss.tools.seam.core.project.facet.SeamProjectPreferences;
import org.jboss.tools.seam.internal.core.project.facet.ISeamFacetDataModelProperties;
import
org.jboss.tools.seam.internal.core.project.facet.SeamFacetProjectCreationDataModelProvider;
+import org.jboss.tools.seam.ui.ISeamHelpContextIds;
import org.jboss.tools.seam.ui.SeamUIMessages;
import org.jboss.tools.seam.ui.internal.project.facet.SeamInstallWizardPage;
@@ -81,7 +82,6 @@
@Override
public void createPageControls(Composite container) {
super.createPageControls(container);
- PlatformUI.getWorkbench().getHelpSystem().setHelp(container,
"org.jboss.tools.seam.guide.new_seam_project");
Control control = findGroupByText(getShell(),
SeamUIMessages.SEAM_PROJECT_WIZARD_EAR_MEMBERSHIP);
if (control != null)
control.setVisible(false);
@@ -134,6 +134,10 @@
}
class SeamWebProjectFirstPage extends WebProjectFirstPage {
+ @Override
+ protected String getInfopopID() {
+ return ISeamHelpContextIds.NEW_SEAM_PROJECT;
+ }
public SeamWebProjectFirstPage(IDataModel model, String pageName ) {
super(model, pageName);
@@ -143,7 +147,6 @@
protected Composite createTopLevelComposite(Composite parent) {
Composite top = new Composite(parent, SWT.NONE);
- PlatformUI.getWorkbench().getHelpSystem().setHelp(top,
"org.jboss.tools.seam.guide.new_seam_project");
top.setLayout(new GridLayout());
top.setLayoutData(new GridData(GridData.FILL_BOTH));
createProjectGroup(top);