Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Compress/Decompress of java code
Compress/Decompress of java code [message #290337] Wed, 24 August 2005 06:33 Go to next message
Eclipse UserFriend
Originally posted by: Nita.Mallya.philips.com

Hi,

I wanted to know how we can implement the functionaity of
Compressing/decompressing(Chunking)the java code physically like how it is
done in Eclipse.

In Eclipse we have a small button to the left and when we click on that,
the code compresses/decompresses.I wanted to implement such a
functionality in my application wherein i am able to do the same for my
files.

Thanks in advance
Nita
Re: Compress/Decompress of java code [message #290357 is a reply to message #290337] Wed, 24 August 2005 13:40 Go to previous message
Eclipse UserFriend
Originally posted by: automatic.javalobby.org

The help describes it as 'collapse/expand' rather than 'compress/decompress' but anyway...

This is handled in Eclipse with something called a ProjectionViewer. Have a butchers at http://help.eclipse.org/help30/topic/org.eclipse.platform.do c.isv/reference/api/org/eclipse/jface/text/source/projection /ProjectionViewer.html

It's a subtype of SourceViewer, which is a subtype of TextViewer, which is what you might be using at the moment. This is currently subtyped by JavaSourceViewer in the org.eclipse.jdt.internal.ui.javaeditor package if you want to see how it is used. (plugin org.eclipse.jdt.ui)
Re: Compress/Decompress of java code [message #290359 is a reply to message #290337] Wed, 24 August 2005 13:19 Go to previous message
Eclipse UserFriend
Originally posted by: sunil_kamath.nohotspammail.com

"Nita" <Nita.Mallya@philips.com> wrote in message
news:b458818434c0091916171c00d1dda7fa$1@www.eclipse.org...
> Hi,
>
> I wanted to know how we can implement the functionaity of
> Compressing/decompressing(Chunking)the java code physically like how it is
> done in Eclipse.
>
> In Eclipse we have a small button to the left and when we click on that,
> the code compresses/decompresses.I wanted to implement such a
> functionality in my application wherein i am able to do the same for my
> files.
>
Do you mean tree functionality? If you do, take a look at the Tree and
TreeViewer classes.
Because I don't think Java code is compressed/decompressed by Eclipse
(physically or any other way).
---
Sunil
Previous Topic:WindowShade 4.x DOES NOT WORK with Eclipse 3.1
Next Topic:Fragments
Goto Forum:
  


Current Time: Wed Apr 24 21:08:53 GMT 2024

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

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

Back to the top