Skip to main content



      Home
Home » Eclipse Projects » JFace » Modifying ProjectionDrawingStrategy(How to completely hide folded content)
Modifying ProjectionDrawingStrategy [message #1052058] Mon, 29 April 2013 11:03 Go to next message
Eclipse UserFriend
I plan to use ProjectionAnnotations for hiding code, pretty similar as used for folding. However, such hidden code shall only be manipulated via dedicated context actions (not by clicking on it's +,- markers). In general, the projection viewer shall hide hidden code's existence completely.

Disabling the paint() method for the annotation marker (left ruler) is simple, but how can I manage to also hide the first line of the hidden ("folded") content, including the rectangle with the two dots at the end of the folded line?

As fas as I'm aware of ProjectionDrawingStrategy is an inner class of ProjectionSupport which is not intended to be overridden.
Re: Modifying ProjectionDrawingStrategy [message #1052515 is a reply to message #1052058] Tue, 30 April 2013 03:25 Go to previous messageGo to next message
Eclipse UserFriend
I just realized that ProjectSupport allows to set my own AnnotationPainterDrawingStrategy. A good point to start with.

Combined with an overridden ProjectionPosition (computeProjectionRegions()), that should do the job, i.e., allow me
- to get rid of the fancy annotation rectangle [..] as well as
- to completely hide the "folded" (hidden) code.

[Updated on: Tue, 30 April 2013 04:07] by Moderator

Re: Modifying ProjectionDrawingStrategy [message #1052542 is a reply to message #1052515] Tue, 30 April 2013 04:08 Go to previous message
Eclipse UserFriend
Feedback on the sketched approach welcome!
Previous Topic:FormEditor.selectReveal() not working
Next Topic:TableViewer evaluation
Goto Forum:
  


Current Time: Wed Jul 23 09:28:34 EDT 2025

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

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

Back to the top