Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Folding in non-java
Folding in non-java [message #869635] Thu, 03 May 2012 18:44 Go to next message
joseph reddington is currently offline joseph reddingtonFriend
Messages: 16
Registered: January 2012
Junior Member
Hi there,

I've been building a plugin that consists of an editor for a domain specific language in eclipse. I'd like to give the editor the ability to fold blocks of code, in the same way that one can for java projects. From looking around I get the impression that Eclipse only allows this for Java. Is this correct?
Re: Folding in non-java [message #869844 is a reply to message #869635] Fri, 04 May 2012 13:35 Go to previous messageGo to next message
HagenFriend
Messages: 90
Registered: April 2010
Member
On 5/3/2012 8:44 PM, joseph reddington wrote:
> I've been building a plugin that consists of an editor for a domain
> specific language in eclipse. I'd like to give the editor the ability
> to fold blocks of code, in the same way that one can for java projects.
> From looking around I get the impression that Eclipse only allows this
> for Java. Is this correct?

No, Eclipse _allows_ this for other languages as well. :-)
But you need to *implement* it for your DSL.

Google "eclipse folding editor" gives this interesting tutorial link:
http://www.eclipse.org/articles/Article-Folding-in-Eclipse-Text-Editors/folding.html

Eclipse and its plugins are mostly open source, so you can e.g. look at
the Java editor to learn how it does its job. :-)
Re: Folding in non-java [message #870323 is a reply to message #869844] Mon, 07 May 2012 16:13 Go to previous message
joseph reddington is currently offline joseph reddingtonFriend
Messages: 16
Registered: January 2012
Junior Member
Fabulous - thank you kindly - no idea what happened to my google-fu there...
Previous Topic:Folding in non-java
Next Topic:get Remove Library Event
Goto Forum:
  


Current Time: Thu Apr 25 11:53:19 GMT 2024

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

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

Back to the top