Where is the Listener of the PropertySection? [message #217018] |
Sat, 31 January 2009 15:02 |
Eclipse User |
|
|
|
Originally posted by: cayla_sha.gmx.net
Hello!
When you enter in the Property-View e.g. a letter in a field where only
ints are allowed a red message apears in the left-bottom corner.
I want to know which code-part is responsible for that.
I wanted to do something simliar in my own property-section (when the
user does something wrong I want to bring up a warning) and I wanted to
see how it`s done by GMF.
Thanks in advance!
Julia
|
|
|
|
Re: Where is the Listener of the PropertySection? [message #218582 is a reply to message #217588] |
Thu, 12 February 2009 18:47 |
Eclipse User |
|
|
|
Originally posted by: cayla_sha.gmx.net
For anyone who`s interested in:
It took me about 3 hours of debugging and searching in google until I
found out, that the small line at the bottom of Eclipse is called
"StatusBar". After that it was much easier to search for information
about that line.
I found the class org.eclipse.gmf.runtime.common.ui.util.StatusLineUtil.
With that class it`s very easy to set an ErrorMessage in the StatusBar.
In the Properties-View there`s only one thing where you should pay
attention: Don`t take the IWorkbenchpart that comes with the method
setInput() when you call StatusLineUtil.outputErrorMessage().
You have to get the part like this:
IWorkbenchPart part =
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActi vePage().getActivePart();
|
|
|
Powered by
FUDForum. Page generated in 0.05312 seconds