How to implement context sensite help for dialogs in Eclipse RCP? - java

I have already read Lars Vogel's tutorial on creating dynamic help in Eclipse RCP. However, it does not cover one topic - how to create side-pop-up help for dialog's (Like the one in screenshot) and integrate it with the rest of the help mechanism. Surprisingly, I could not find any materials describing this matter.

Derive your dialog from org.eclipse.jface.dialogs.TrayDialog to get the support for the side tray and the help button.
You may need to call the TrayDialog method setHelpAvailable(true)
You can also base your class on TitleAreaDialog (which extends TrayDialog) to get a dialog with a title and message area at the top of the dialog.

Related

Adding an help window to my android application

i need to add an help window to my android application.
But actually i don't know how to do it if there is a best practice, or some prepare objects.
I simply want to add an help option in the application menu, and when it is chooesed the help is showed. What is the best way to do that?
I think about several solution, but i'm not sure they are good.
Add another activity that contains only a text view or a webview and print the contente of the help
Use a Dialog Box? Maybe a custom dialog?
Launch a web activity and retrieve the help page from the web.
They are good ideas? Btw what is the best way to provide a basic help page into an android application?
Thanks.
Is suitable if your amount of help is small and does not need formatting
Is good for formatted text, bigger amounts of text and does not require internet connection or your server to be present when user likes to have help
Is the most flexible, as you can change help information without updating application,
but requires dedicated web page and internet connection.
Now it's your choice. My personal preference is #2.
What you want to do is make a xml layout containing all the help information and just create an activity that displays it, if you need help with code just ask me.

Creating a "netbeans property" style dialog box

I've been trying to create a GUI using netbeans, that includes a dialog similar to Netbean's own "property dialog" that appears when designing. ie. a dialog that contains a table that can be expanded by tree nodes. Something like the dialog on this page, http://platform.netbeans.org/tutorials/nbm-property-editors.html
As far as I can understand, the page I linked to describes a custom editor I can set up for use within netbeans while designing - I'm just looking for a way to doing something similar for my actual application I'm writing. Is there an easy way to do this?
I came across this and have tried it but it doesn't quite work in the same way as the standard Netbeans dialog. weblogs.java.net/blog/timboudreau/archive/2008/06/egads_an_actual.html
Any tips greatly appreciated.
This will sound flip... but I am being serious.
The easiest way to do this is to write your app using the NetBeans RCP platform.
You may want to look at the Swing Application Framework, too.
There are a couple SAF samples integrated into NetBeans... You can read about them here: http://netbeans.org/kb/docs/java/gui-saf.html
I could not find a property editor dialog sample, though.
I found a couple other pointers, using this query: http://www.google.com/search?q=how+to+write+a+property+editor+dialog+in+swing
You could take a look into the l2fprod components
(source: l2fprod.com)

Questions regarding BlackBerry BrowserField2

does anyone know how to specify the height of a net.rim.device.api.browser.field2.BrowserField? I cannot find how to do so in the BlackBerry API.
Also, when I use a browser field within my application, am I able to load one page, and from that page click a link and go to another? I am having issues doing that with the BrowserField2...If not, how can I achieve new page loading?
Thanks!
You could implement your own manager and override sublayout
After that you can create your own browser field and inherit your manager you created earlier.
As for the link stuff, this might help

How to create a sidebar panel in OpenOffice?

I want to create an OpenOffice.org plug-in that adds a sidebar.
I have successfully installed OpenOffice.org, OpenOffice.org SDK and NetBeans OpenOffice plug-in.
I am familiar with Java, AWT and Swing, so no need to explain these concepts to me.
Now, I want to create a sidebar Panel(or JPanel) in OpenOffice.org Writer application.
How can I do this? It would be in the left and fill all available height(while using a fixed width).
Any idea on how to implement this? I have no OpenOffice.org plug-in past experience.
Thank you in advance.
This is currently not possible through the OpenOffice.org API. You can create menus, toolbars and dialogs. You cannot create dockable windows or panels via UNO. See: GUI Chapter in the Dev Guide.
Exposing this capability through the API is under active development and I suggest you join the api-dev#openoffice.org mailing list to stay on top of things.
The specific feature you asked for was already discussed there and it was suggested that it would be made available with a future update to OpenOffice 3.0. See post in the list archive.
I don't know if there's an easy answer for this. OO.o provides their dev guide here. It appears once you create an UNO component to their spec you can use:
Arbitrary objects written in Java or
C++ [and then] can be called from the user
interface, display their own GUI, and
work with the entire application.
That sounds like what you want to do. Hope this helps!
It's possible since version 4.0.
See https://wiki.openoffice.org/wiki/Sidebar

How do you add a button to the email message window toolbar in Lotus Notes 8.5+?

A coworker has been struggling with this problem.
The desired result is an installable plugin for Notes that will add a button emails with attachments that will let users save the attachment to a document management system.
Finding documentation on doing this for Notes has been an uphill battle to say the least.
Writing the actual java to do the work isn't a problem, but figuring out how to extend Notes is.
So, is there a way to add a button/icon to the toolbar, or is it just a matter of adding a new toolbar? If we add a new toolbar then can we make it only visible (or just grey it out otherwise) when no email is open?
Both Lotus Notes 8+ and Lotus Symphony use the IBM Lotus Expeditor Toolkit.
If you get the Lotus Symphony SDK here.
Their are one or two examples dealing with adding button's to the symphony toolbar.
They should translate almost identically to Notes.
Good Luck,
Brian Gianforcaro
I had to do this once in Notes for a plugin I was developing. What I ended up doing was editing the Notes template in the designer, and then writing some LotusScript behind it that called a .NET class via a DLL. So when you clicked the button, it triggered the event in the LotusScript, and then called the DLL, and passed the item information to it.
I should also note that it was a freakin' bear to figure out because Notes documentation is terrible.
Depending on what access you have to the system the task can be fairly easy. Typically you customize your mail template to include a button in the inbox folder and the all documents view (for safety precautions see this entry). You customize ($Inbox) ($All) if you want to have the buttons only on the view level or additionaly the forms (there is a shared header subform you can use.
Give the button a meaningful label and add this code:
#Command([ToolsRunMacro];"(ExportDocumentsTo[yourSystemNameHere])")
The round brackets are actually important. Your code (Java I presume) the goes into an agent. You select "Create Agent" and Java as language. You specify "selected documents" to run against and agent list selection as trigger (this puts the () around your name). You can can get them from the Session class.
If your users are ok using a menu instead of a button you can simply select Action list as trigger and the agent will be listed in the action menu.
From your question I gather you want this for the Eclipse client. Please peruse Mikkel Heisterberg's site LekkimWorld.com
It contains tons of material. Start by reading his presentations and search the site. It has a lot of useful material.

Categories

Resources