Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Platform - User Assistance (UA) » Usage of IMessageManager
Usage of IMessageManager [message #609959] Thu, 28 February 2008 23:40
Velganesh Subramanian is currently offline Velganesh Subramanian
Messages: 67
Registered: July 2009
Member
Hi,

I have a multipage editor (derived from FormEditor) with one page
(IFormPage). I divided the page into two using TableWrapLayout. The left
side has couple of text and combo controls and the right has a table
viewer with popular Add, Remove buttons. I have a 'Save' button on the
workbench toolbar to save contents of the form.

I am trying to use the MessageManager capability of Forms 3.3 to throw the
messages. To begin with, I added an error message using
page.mananged_form.getMessageManager(). The error message is displayed
properly.

Here is the issue.
Though the table viewer has both scroll bars, after an item is added it
and message is added to MessageManager through my save button, the viewer
gets resized and the scroll bar disappears. This further leads to resize
of the left and right composites. I thought this is because of layout and
layoutData of my controls but all are clear. When there is an entry in
table viewer but message is not added to MessageManager (addMessage call
is commented in Save action), there is no resize.

http://www.eclipse.org/eclipse/platform-ua/proposals/forms/e nhancements-3.3/index.html
article doesn't talk about anything specific to FormEditor vs.
SharedHeaderFormEditor. Is there a particular usage?

I think it is not possible to give a one line solution. Can you tell where
I need to debug? My save action doesn't call resize of any of the
controls. Thanks.
Previous Topic:Missing breadcrumbs
Next Topic:Usage of IMessageManager
Goto Forum:
  


Current Time: Fri Aug 22 08:02:42 EDT 2014

Powered by FUDForum. Page generated in 0.01649 seconds