| How to reuse Help System window from standalone SWT application [message #433465] |
Thu, 08 April 2004 15:24  |
Eclipse User |
|
|
|
Originally posted by: doublexia.hotmail.com
I'm trying to invoke Eclipse Help system from my standalone SWT application
based on Eclipse 2.1. I'm using following code:
import org.eclipse.help.standalone.Help;
public class MyHelpClass {
Help helpSystem;
public void displayHelp(String object) {
if (helpSystem == null) {
String[] options =
new String[] { "-eclipsehome", myEclipseHomeDirectory };
helpSystem = new Help(options);
try {
helpSystem.start();
} catch (Exception e) {
e.printStackTrace();
}
}
try {
helpSystem.displayHelp(object);
} catch (Exception e) {
}
}
}
Everytime when I call to displayHelp(href) to display a topic, it starts a
help window. How can I reuse one help window?
|
|
|
|
| Re: How to reuse Help System window from standalone SWT application [message #433476 is a reply to message #433473] |
Thu, 08 April 2004 23:56   |
Eclipse User |
|
|
|
Originally posted by: doublexia.hotmail.com
Thank you Konrad, the help system works fine now.
But I have one more question: I didn't see any difference by defining
system_browser in plugin_customization.ini. I put this ini file under
org.eclipse.help_2.1.0. Is this right?
Thanks,
Double
"Konrad Kolosowski" <konradk@ca.ibm.com> wrote in message
news:c54du3$bbb$1@eclipse.org...
> Assuming you are on Windows, if you launch Eclipse Workbench 2.1 you will
> notice there are three browser adapters to chose from in the help
> preferences. (1) SWT Embedded IE, and (2) System browser adapters reuse
> browser. The third one (3) custom browser launches an full IE every time.
> If your standalone does not include org.eclipse.help.ui.win32 fragment
(with
> all its required plugins), help has only (3) available. If
> org.eclipse.help.ui.win32 fragment is working, then you should get (1)
that
> will be reused the window for every call do displayHelp.
> You can set preference a to use (2) or (3) without a UI, by overriding
help
> preferences using plugin_customization.ini. For example, to set browser
to
> (2) use:
> org.eclipse.help/default_browser=org.eclipse.help.ui.systemb rowser. You
can
> also provide your own browser adapter implementation to
> org.eclipse.help.browser extension point.
>
> Konrad
>
> "Double Xia" <doublexia@hotmail.com> wrote in message
> news:c548j7$4m4$1@eclipse.org...
> > I'm trying to invoke Eclipse Help system from my standalone SWT
> application
> > based on Eclipse 2.1. I'm using following code:
> >
> > import org.eclipse.help.standalone.Help;
> >
> > public class MyHelpClass {
> >
> > Help helpSystem;
> >
> > public void displayHelp(String object) {
> >
> > if (helpSystem == null) {
> >
> > String[] options =
> >
> > new String[] { "-eclipsehome", myEclipseHomeDirectory };
> >
> > helpSystem = new Help(options);
> >
> > try {
> >
> > helpSystem.start();
> >
> > } catch (Exception e) {
> >
> > e.printStackTrace();
> >
> > }
> >
> > }
> >
> > try {
> >
> > helpSystem.displayHelp(object);
> >
> > } catch (Exception e) {
> >
> > }
> >
> > }
> >
> > }
> >
> > Everytime when I call to displayHelp(href) to display a topic, it starts
a
> > help window. How can I reuse one help window?
> >
> >
>
>
|
|
|
| Re: How to reuse Help System window from standalone SWT application [message #433628 is a reply to message #433476] |
Sat, 10 April 2004 23:47  |
Eclipse User |
|
|
|
No, default plug-in preferences are specified in preferences.ini file in
plug-in installation directory. A product built without modifiying plug-in
files can override preferences using plugin_customization.ini placed in its
primary feature plug-in. See:
http://help.eclipse.org/help21/topic/org.eclipse.platform.do c.isv/guide/product_config.htm
http://help.eclipse.org/help21/topic/org.eclipse.platform.do c.isv/guide/product_def_primary.htm
Konrad
"Double Xia" <doublexia@hotmail.com> wrote in message
news:c556jd$32o$1@eclipse.org...
> Thank you Konrad, the help system works fine now.
>
> But I have one more question: I didn't see any difference by defining
> system_browser in plugin_customization.ini. I put this ini file under
> org.eclipse.help_2.1.0. Is this right?
>
> Thanks,
> Double
>
> "Konrad Kolosowski" <konradk@ca.ibm.com> wrote in message
> news:c54du3$bbb$1@eclipse.org...
> > Assuming you are on Windows, if you launch Eclipse Workbench 2.1 you
will
> > notice there are three browser adapters to chose from in the help
> > preferences. (1) SWT Embedded IE, and (2) System browser adapters reuse
> > browser. The third one (3) custom browser launches an full IE every
time.
> > If your standalone does not include org.eclipse.help.ui.win32 fragment
> (with
> > all its required plugins), help has only (3) available. If
> > org.eclipse.help.ui.win32 fragment is working, then you should get (1)
> that
> > will be reused the window for every call do displayHelp.
> > You can set preference a to use (2) or (3) without a UI, by overriding
> help
> > preferences using plugin_customization.ini. For example, to set browser
> to
> > (2) use:
> > org.eclipse.help/default_browser=org.eclipse.help.ui.systemb rowser. You
> can
> > also provide your own browser adapter implementation to
> > org.eclipse.help.browser extension point.
> >
> > Konrad
> >
> > "Double Xia" <doublexia@hotmail.com> wrote in message
> > news:c548j7$4m4$1@eclipse.org...
> > > I'm trying to invoke Eclipse Help system from my standalone SWT
> > application
> > > based on Eclipse 2.1. I'm using following code:
> > >
> > > import org.eclipse.help.standalone.Help;
> > >
> > > public class MyHelpClass {
> > >
> > > Help helpSystem;
> > >
> > > public void displayHelp(String object) {
> > >
> > > if (helpSystem == null) {
> > >
> > > String[] options =
> > >
> > > new String[] { "-eclipsehome", myEclipseHomeDirectory };
> > >
> > > helpSystem = new Help(options);
> > >
> > > try {
> > >
> > > helpSystem.start();
> > >
> > > } catch (Exception e) {
> > >
> > > e.printStackTrace();
> > >
> > > }
> > >
> > > }
> > >
> > > try {
> > >
> > > helpSystem.displayHelp(object);
> > >
> > > } catch (Exception e) {
> > >
> > > }
> > >
> > > }
> > >
> > > }
> > >
> > > Everytime when I call to displayHelp(href) to display a topic, it
starts
> a
> > > help window. How can I reuse one help window?
> > >
> > >
> >
> >
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04690 seconds