diff options
| author | Vidura Mudalige | 2015-03-18 15:03:12 +0000 |
|---|---|---|
| committer | vidura | 2015-03-26 05:50:28 +0000 |
| commit | 7ec8c413b278d840f6bd68f59165a97bc93d66ca (patch) | |
| tree | e5604bc71f9a10067371759a0b268e16da10f089 | |
| parent | ac19c51aed399c13a62e3fec68cae94a3d49a817 (diff) | |
| download | org.eclipse.ease.core-7ec8c413b278d840f6bd68f59165a97bc93d66ca.tar.gz org.eclipse.ease.core-7ec8c413b278d840f6bd68f59165a97bc93d66ca.tar.xz org.eclipse.ease.core-7ec8c413b278d840f6bd68f59165a97bc93d66ca.zip | |
[429787] - Add help button to script shell
Added a OpenScriptShell.java file as the handler class of the button. Also
created a new html file as the root of scripting guide help.
Bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=429787
Signed-off-by: Vidura Mudalige <vbmudalige@gmail.com>
| -rw-r--r-- | plugins/org.eclipse.ease.help/help/html/eclipse1024.png | bin | 0 -> 70034 bytes | |||
| -rw-r--r-- | plugins/org.eclipse.ease.help/help/html/scripting_guide.html | 14 | ||||
| -rw-r--r-- | plugins/org.eclipse.ease.help/help/main.xml | 2 | ||||
| -rw-r--r-- | plugins/org.eclipse.ease.ui/.classpath | 2 | ||||
| -rw-r--r-- | plugins/org.eclipse.ease.ui/plugin.xml | 12 | ||||
| -rw-r--r-- | plugins/org.eclipse.ease.ui/src/org/eclipse/ease/ui/handler/OpenScriptHelp.java | 29 |
6 files changed, 57 insertions, 2 deletions
diff --git a/plugins/org.eclipse.ease.help/help/html/eclipse1024.png b/plugins/org.eclipse.ease.help/help/html/eclipse1024.png Binary files differnew file mode 100644 index 00000000..361a31e0 --- /dev/null +++ b/plugins/org.eclipse.ease.help/help/html/eclipse1024.png diff --git a/plugins/org.eclipse.ease.help/help/html/scripting_guide.html b/plugins/org.eclipse.ease.help/help/html/scripting_guide.html new file mode 100644 index 00000000..18d76af9 --- /dev/null +++ b/plugins/org.eclipse.ease.help/help/html/scripting_guide.html @@ -0,0 +1,14 @@ +<!doctype html> +<html lang="en"> +<head> +<meta charset="utf-8"> +<title>Scripting Guide</title> +</head> +<body> + + <h2>Eclipse Scripting Project</h2> + <p>EASE is the eclipse scripting project, allowing to interact with + the IDE using scripts in various languages.</p> + <img src="eclipse1024.png" style="width: 304px; height: 228px"> +</body> +</html>
\ No newline at end of file diff --git a/plugins/org.eclipse.ease.help/help/main.xml b/plugins/org.eclipse.ease.help/help/main.xml index 4a79279d..418f4516 100644 --- a/plugins/org.eclipse.ease.help/help/main.xml +++ b/plugins/org.eclipse.ease.help/help/main.xml @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> <?NLS TYPE="org.eclipse.help.toc"?> -<toc label="Scripting User Guide"> +<toc label="Scripting User Guide" topic="help/html/scripting_guide.html"> <topic label="Getting Started"> <anchor id="gettingstartedX"/> </topic> diff --git a/plugins/org.eclipse.ease.ui/.classpath b/plugins/org.eclipse.ease.ui/.classpath index 0b1bcf94..c72d35a0 100644 --- a/plugins/org.eclipse.ease.ui/.classpath +++ b/plugins/org.eclipse.ease.ui/.classpath @@ -2,6 +2,6 @@ <classpath> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/> <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> - <classpathentry kind="src" path="src/"/> + <classpathentry kind="src" path="src"/> <classpathentry kind="output" path="target/classes"/> </classpath> diff --git a/plugins/org.eclipse.ease.ui/plugin.xml b/plugins/org.eclipse.ease.ui/plugin.xml index 3c204518..a1efec8b 100644 --- a/plugins/org.eclipse.ease.ui/plugin.xml +++ b/plugins/org.eclipse.ease.ui/plugin.xml @@ -86,6 +86,12 @@ id="org.eclipse.ease.commands.script.toggleDropinsSection" name="Toggle Dropins Section"> </command> + <command + categoryId="org.eclipse.ease.commands.category.scriptShell" + defaultHandler="org.eclipse.ease.ui.handler.OpenScriptHelp" + id="org.eclipse.ease.commands.scriptShell.openScriptHelp" + name="Open Script Help"> + </command> </extension> <extension point="org.eclipse.ui.commands"> @@ -164,6 +170,12 @@ name="additions" visible="false"> </separator> + <command + commandId="org.eclipse.ease.commands.scriptShell.openScriptHelp" + icon="icons/eobj16/help.png" + label="Open Script Help" + style="push"> + </command> </menuContribution> <menuContribution allPopups="false" diff --git a/plugins/org.eclipse.ease.ui/src/org/eclipse/ease/ui/handler/OpenScriptHelp.java b/plugins/org.eclipse.ease.ui/src/org/eclipse/ease/ui/handler/OpenScriptHelp.java new file mode 100644 index 00000000..ea61dfd0 --- /dev/null +++ b/plugins/org.eclipse.ease.ui/src/org/eclipse/ease/ui/handler/OpenScriptHelp.java @@ -0,0 +1,29 @@ +/******************************************************************************* + * Copyright (c) 2015 Vidura Mudalige and others. + * 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: + * Vidura Mudalige - initial API and implementation + *******************************************************************************/ +package org.eclipse.ease.ui.handler; + +import org.eclipse.core.commands.AbstractHandler; +import org.eclipse.core.commands.ExecutionEvent; +import org.eclipse.core.commands.ExecutionException; +import org.eclipse.core.commands.IHandler; +import org.eclipse.ui.PlatformUI; + +public class OpenScriptHelp extends AbstractHandler implements IHandler { + + public static final String SCRIPT_GUIDE_URI = "/org.eclipse.ease.help/help/html/scripting_guide.html"; + + @Override + public Object execute(ExecutionEvent event) throws ExecutionException { + PlatformUI.getWorkbench().getHelpSystem().displayHelpResource(SCRIPT_GUIDE_URI); + return null; + } + +} |
