Author: dazarov
Date: 2008-03-12 09:26:35 -0400 (Wed, 12 Mar 2008)
New Revision: 6890
Added:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/IVpeHelpContextIds.java
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.doc.user/plugin.xml
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeEditorPart.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1692
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.doc.user/plugin.xml
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.doc.user/plugin.xml 2008-03-12 12:49:32 UTC (rev
6889)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.doc.user/plugin.xml 2008-03-12 13:26:35 UTC (rev
6890)
@@ -24,5 +24,9 @@
file="TilesContextHelp.xml"
plugin="org.jboss.tools.jst.web.tiles.ui">
</contexts>
+ <contexts
+ file="VPEContextHelp.xml"
+ plugin="org.jboss.tools.vpe">
+ </contexts>
</extension>
</plugin>
Added:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/IVpeHelpContextIds.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/IVpeHelpContextIds.java
(rev 0)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/IVpeHelpContextIds.java 2008-03-12
13:26:35 UTC (rev 6890)
@@ -0,0 +1,19 @@
+/*******************************************************************************
+ * 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.vpe;
+
+public interface IVpeHelpContextIds {
+ public static final String PREFIX = VpePlugin.PLUGIN_ID + '.';
+
+ public static final String VISUAL_PAGE_EDITOR = PREFIX +
"visual_page_editor";
+
+ public static final String REFERENCE_TO_RESOURCES = PREFIX +
"references_to_resources";
+}
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeEditorPart.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeEditorPart.java 2008-03-12
12:49:32 UTC (rev 6889)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeEditorPart.java 2008-03-12
13:26:35 UTC (rev 6890)
@@ -45,6 +45,7 @@
import org.eclipse.ui.IWorkbenchPartConstants;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.PartInitException;
+import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.part.EditorPart;
import org.eclipse.ui.texteditor.IDocumentProvider;
import org.eclipse.ui.texteditor.IStatusField;
@@ -57,6 +58,7 @@
import org.jboss.tools.common.model.ui.util.ModelUtilities;
import org.jboss.tools.jst.jsp.editor.IVisualEditor;
import org.jboss.tools.jst.jsp.preferences.VpePreference;
+import org.jboss.tools.vpe.IVpeHelpContextIds;
import org.jboss.tools.vpe.VpePlugin;
import org.jboss.tools.vpe.editor.mozilla.EditorLoadWindowListener;
import org.jboss.tools.vpe.editor.mozilla.MozillaEditor;
@@ -411,6 +413,8 @@
controlCount++;
if (controlCount > 1)
return;
+
+ PlatformUI.getWorkbench().getHelpSystem().setHelp(parent,
IVpeHelpContextIds.VISUAL_PAGE_EDITOR);
// //////////////////////////////////////////////////////////////
Composite cmpEdTl = new Composite(parent, SWT.NONE);