jEdit Community - Resources for users of the jEdit Text Editor
Context-help plugin // problems
Submitted by nothere on Tuesday, 27 January, 2004 - 13:32
Hi,

I tried to use the Context-help plugin for php, which opens the windows-helpviewer, to access a ".chm"-php helpfile via following bsh-script:

---------------------------------------------------------
command = new StringBuffer();
command.append("hh.exe ");
command.append("mk:@MSITStore:");
command.append(helpDirectory);
command.append("/php_manual_en.chm");
command.append("::/function.");
command.append(keyWord);
command.append(".html");
runCommandInConsole(view,"System",command.toString());
---------------------------------------------------------

Now I've got 2 problems..:

First, the bsh-script does not exit and if I try to access the help again, before closing the helpviewer, the script waits for the first process to exit..
What command shall I use, to open an external application without waiting for it.


Second, following Exception each time I access Context-help:


---------------------------------------------------------
java.lang.NullPointerException
at contexthelp.ContextHelpPlugin.runScript(Unknown Source) at contexthelp.ContextHelpPlugin.runContextHelp(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at bsh.Reflect.invokeOnMethod(Reflect.java:149) at bsh.Reflect.invokeStaticMethod(Reflect.java:100) at bsh.Name.invokeMethod(Name.java:872) at bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:72) at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102) at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47) at bsh.BSHBlock.evalBlock(BSHBlock.java:130) at bsh.BSHBlock.eval(BSHBlock.java:80) at bsh.BshMethod.invokeImpl(BshMethod.java:349) at bsh.BshMethod.invoke(BshMethod.java:246) at bsh.BshMethod.invoke(BshMethod.java:171) at org.gjt.sp.jedit.BeanShell.runCachedBlock(BeanShell.java:521) at org.gjt.sp.jedit.BeanShellAction.invoke(BeanShellAction.java:76) at org.gjt.sp.jedit.gui.InputHandler.invokeAction(InputHandler.java:229) at org.gjt.sp.jedit.gui.InputHandler.invokeAction(InputHandler.java:195) at org.gjt.sp.jedit.gui.DefaultInputHandler.handleKey(DefaultInputHandler.java
:290) at org.gjt.sp.jedit.View.processKeyEvent(View.java:669) at org.gjt.sp.jedit.textarea.JEditTextArea.processKeyEvent(JEditTextArea.java:
4917) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source) at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source) at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source) at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source) at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source)
---------------------------------------------------------


Any Ideas?

Thanks in advance,
Mario
User login
Browse archives
« April 2024  
MoTuWeThFrSaSu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   82348
Context Free Art (*.cfdg)   0.31   46055
JBuilder scheme   .001   18495
BBEdit scheme   1.0   18116
ColdFusion scheme   1.0   18024
R Edit Mode - extensive version   0.1   17473
Advanced HTML edit mode   1.0   16206
Matlab Edit Mode   1.0   16068
jEdit XP icons   1.0   15229
XP icons for jEdit   1.1   14293