Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » How to use Markers in GEF
How to use Markers in GEF [message #157140] Sun, 07 November 2004 22:21 Go to next message
kiril mitov is currently offline kiril mitovFriend
Messages: 128
Registered: July 2009
Senior Member
Hi,

The program I am working on must be able to build the model and if there
are any errors to put a marker in the appropriate places. In this moment
when an error in the model is found I put a marker in the problems view.
After that when I click on the problem in the problems view I selected the
mistaken editPart in my graphicalViewer.

My question is - is there a way I can put a marker somewhere in the
GraphicalViewer?

I would like my graphical editor to look much like the JavaEditor. In the
JavaEditor (CompilationUnitEditor), when you make a mistake in the source
a marker is putted on the right and on the left vertical ruler. After that
I can click on a marker and run the Quick Fix action.

I would like my graphical editor to have such a ruler on which I can put
markers. I thought that I could use the RulerComposite and the
RulerProvider. But, if I am not wrong, this classes can not work with
markers.(or I don`t know how to make them work with markers).

So my question again is - is there a way I can put markers on a graphical
viewer or a way to make the RulerProvider works with markers?

Any help will be greate.

Thanks in advance.

kiril
Re: How to use Markers in GEF [message #157196 is a reply to message #157140] Mon, 08 November 2004 07:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: g.wagenknecht.planet-wagenknecht.de

> Any help will be greate.

There is no generic support for markes in GEF. The only way to do this, is
to implement it yourself. The text editors call their concept "annotations".
We've implemented "annotatable" figures but no "sidebar" yet. When building
your figures just check your model for markers and add additional error or
warning indicators to your figures.

Cu, Gunnar
Re: How to use Markers in GEF [message #157320 is a reply to message #157196] Mon, 08 November 2004 21:54 Go to previous messageGo to next message
kiril mitov is currently offline kiril mitovFriend
Messages: 128
Registered: July 2009
Senior Member
Thank you Gunnar.
I hope(and I am sure) that the next release of GEF will fully support
markers.


Gunnar Wagenknecht wrote:

>> Any help will be greate.

> There is no generic support for markes in GEF. The only way to do this, is
> to implement it yourself. The text editors call their concept "annotations".
> We've implemented "annotatable" figures but no "sidebar" yet. When building
> your figures just check your model for markers and add additional error or
> warning indicators to your figures.

> Cu, Gunnar
Re: How to use Markers in GEF [message #157328 is a reply to message #157320] Mon, 08 November 2004 22:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

What does fully supporting markers mean? A 1-dimensional ruler is not a
very good solution for diagrams which are 2-dimentional. One
recommendation was to display markers in the overview window. Another would
be to just overlay decorations on the diagram itself.

"Kiril Mitov" <kiril_mitov@abv.bg> wrote in message
news:cmoptu$cgb$1@eclipse.org...
> Thank you Gunnar.
> I hope(and I am sure) that the next release of GEF will fully support
> markers.
>
>
> Gunnar Wagenknecht wrote:
>
> >> Any help will be greate.
>
> > There is no generic support for markes in GEF. The only way to do this,
is
> > to implement it yourself. The text editors call their concept
"annotations".
> > We've implemented "annotatable" figures but no "sidebar" yet. When
building
> > your figures just check your model for markers and add additional error
or
> > warning indicators to your figures.
>
> > Cu, Gunnar
>
>
Re: How to use Markers in GEF [message #157381 is a reply to message #157320] Tue, 09 November 2004 10:02 Go to previous message
Eclipse UserFriend
Originally posted by: g.wagenknecht.planet-wagenknecht.de

Kiril Mitov wrote:
> Thank you Gunnar.
> I hope(and I am sure) that the next release of GEF will fully support
> markers.

Nope. Marker support doesn't belong to GEF. It's an IDE specific feature but
GEF is intended to work for RCP apps.

Cu, Gunnar
Previous Topic:Creating connections - help
Next Topic:Migrating 2.x to 3.x ActionBarContributor
Goto Forum:
  


Current Time: Fri Apr 26 00:15:29 GMT 2024

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

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

Back to the top