Show a non intrusive message to the user - eclipse

I'm making a eclipse plugin and I was wondering is there any way I could display a message to the user which they do not need to dismiss?
Something like a message dialog but they do not need to press ok.

In a view you can set a message in the status line at the bottom of the Eclipse window with:
getViewSite().getActionBars().getStatusLineManager().setMessage(msg);
in an editor you can do something similar:
getEditorSite().getActionBars().getStatusLineManager().setMessage(msg);
If you want to show messages when you are displaying a popup dialog use TitleAreaDialog which has an area at the top of the dialog for messages.

Related

How to disable button to avoid multiple clicks in zk java

I am showing the message box on click on of the button. If I double click the message box is showing twice.
I tried by setting autodisable="self", But still the issue persists.
Is there any way I can check whether the Message box is displaying or not.If it is displaying I will not call it again.
Any ideas?

How to prevent GWT dialogbox from closing when clicking outside it

I plan to add a menu that pop ups when a user performs a certain action. This menu will include some fields that the user will fill out and then hit "Submit" which will close the dialog box and update the client based on information inputed.
However, I want the user to be able to close the dialog window by hitting cancel or submit, and not by clicking on the screen outside of the dialog box.
How can i do this? Or maybe I should just use a PopupPanel?
It's as easy as setting the auto-hide behavior to false, either at construction time or later.

cellEditing plugin for ExtJS 4 causes 'event is undefined' error when closing tab panel tab

I have a grid in a tabpanel. I click a row in the grid and a new tabpanel opens with details for the clicked item. The details on the new tab opened can be edited and then sent back to the server through CRUD routines. I am using the cellEditing plugin, and it seems to be working fine to edit the cell, but when I close the window after performing edits I get an error "event is undefined' Why might this be occurring? Is there a way to edit a cell in a grid without using the cellEditing plugin? ...or maybe a way to fix the plugin to get it to work? I am using the plugin in the Ext.apply section of my initComponent for the grid.
I am using ext-all-debug.js and the error looks to be coming from an area where a function call is for 'closeListener', from line 13367 in ext-all-debg.js I do not believe I have any listeners on the page, so why is this error coming up on tab close?

GWT activity mayStop and Hyperlink issue

I have an activity with a mayStop() method. I am having two issues with it that pertain to a hyperlink on the page.
The first issue is that if I hit refresh or the window's X I get a dialog box that wraps my mayStop() text with "Are you sure you want to navigate away from this page?" and "Press OK to continue, or Cancel to stay on the current page." That is fine.
When I hit the hyperlink, I only see my mayStop() text without the wrapping text. Why is that?
The second issue is that if I hit Cancel in response to the hyperlink click, hitting the link again results in not getting the mayStop() challenge at all. It is as if I am not hitting the hyperlink.
Has anyone run into these issues?
Any thoughts?
Thanks,
Doug
The difference in "behavior" is that the first dialog box is the one from the browser when you try to prevent the user from navigating away, while the other is PlaceController calling Window.confirm(). Each browser uses a different dialog box for the first case, so there's no way to mimic it for everyone, and it's probably not a good thing either (navigating away from the app vs. navigating within the app).
As for your second issue, the events are generated by the browser "history" changing; if you prevent navigating away (from the Place), the URL stays the same (there's noway to know what to do to "rollback" the change: History.back(), History.next(), History.newItem() but then you destroy the existing "next" history ?), so when you click again on the link, you don't make the URL change, and no event is fired.
It's expected that you use PlaceController.goTo to navigate when you use places, not Hyperlink or History.

GWT-Google web Toolkit-DialogBox

I have doubt regarding GWT .In Gwt if i click one button than it shows one dialog box at th same time the form outside the dialog box disabled.What component can be used for this task?
Thanks in advance
So, you want to open a popup dialog box, and at the same time disable the rest of the page until the user closes the dialog box?
If so, you can simply use gwt's DialogBox.
Use the constructor with the autohide flag set to false, and the box will not close until the user responds, thus disabling the rest of the page. If you want to make this even more clear, use the glass effect:
yourBox.setGlassEnabled(true);
You can also use the PopupPanel directly and build your own custom dialog box.
Now, if I got it wrong and you want to disable the form so it remains disabled after the popup, just disable it in the onClick handler of the button that opens the box.