Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Where is the Listener of the PropertySection?
Where is the Listener of the PropertySection? [message #217018] Sat, 31 January 2009 15:02 Go to next message
Eclipse UserFriend
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 #217588 is a reply to message #217018] Fri, 06 February 2009 16:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cayla_sha.gmx.net

Does nobody know where the warning is created?
Re: Where is the Listener of the PropertySection? [message #218582 is a reply to message #217588] Thu, 12 February 2009 18:47 Go to previous message
Eclipse UserFriend
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();
Previous Topic:Creating a GMF editor ?
Next Topic:Iteratively go through model
Goto Forum:
  


Current Time: Fri Apr 26 00:35:13 GMT 2024

Powered by FUDForum. Page generated in 0.03336 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top