Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Where are bracket insertion and code folding?
Where are bracket insertion and code folding? [message #225969] Tue, 06 January 2009 13:31 Go to next message
Bret Schuhmacher is currently offline Bret SchuhmacherFriend
Messages: 26
Registered: July 2009
Junior Member
Hi all,

Where are bracket insertion (i.e. you press "(" and JSDT inserts ")",
places your cursor in between the parens, allows you to edit, waiting for
you to press ")" or tab, then places the cursor outside the ")") and code
folding in the JSDT source code? I cannot find them.

Thanks!

Bret
Re: Where are bracket insertion and code folding? [message #225977 is a reply to message #225969] Tue, 06 January 2009 15:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dcarver.starstandard.org

Check your Preferences. Windows->Preferences->JavaScript->Editor->Folding

Will get you the code folding options. The other options are probably
under Editor->Content Assist in the preference page.

Dave

Bret Schuhmacher wrote:
> Hi all,
>
> Where are bracket insertion (i.e. you press "(" and JSDT inserts ")",
> places your cursor in between the parens, allows you to edit, waiting
> for you to press ")" or tab, then places the cursor outside the ")") and
> code folding in the JSDT source code? I cannot find them.
> Thanks!
>
> Bret
>
Re: Where are bracket insertion and code folding? [message #225983 is a reply to message #225977] Tue, 06 January 2009 15:52 Go to previous messageGo to next message
Bret Schuhmacher is currently offline Bret SchuhmacherFriend
Messages: 26
Registered: July 2009
Junior Member
Rats - I wasn't explicit enough. Sorry, I'm not talking about *using* the
JSDT, I'm talking about from the Java coding and extending side of things.
Which *.java source module encapsulates those two features? I need to
see how it's done so I can use/duplicate those functionalities in plugin
I'm developing.

Thanks!

Bret
Re: Where are bracket insertion and code folding? [message #225990 is a reply to message #225969] Tue, 06 January 2009 16:02 Go to previous messageGo to next message
Nick Sandonato is currently offline Nick SandonatoFriend
Messages: 126
Registered: July 2009
Senior Member
Bret Schuhmacher wrote:
> Hi all,
>
> Where are bracket insertion (i.e. you press "(" and JSDT inserts ")",
> places your cursor in between the parens, allows you to edit, waiting
> for you to press ")" or tab, then places the cursor outside the ")") and
> code folding in the JSDT source code? I cannot find them.
> Thanks!
>
> Bret
>
Bret,

As far as bracket insertion, check out the inner class BracketInserter
that's part of the CompilationUnitEditor in org.eclipse.wst.jsdt.ui.

I think the folding code you're looking for is in
DefaultJavaFoldingStructureProvider#computeFoldingStructure in plugin
org.eclipse.wst.jsdt.ui.

Nick
Re: Where are bracket insertion and code folding? [message #226146 is a reply to message #225990] Wed, 07 January 2009 15:49 Go to previous message
Bret Schuhmacher is currently offline Bret SchuhmacherFriend
Messages: 26
Registered: July 2009
Junior Member
Thanks, Nick. Yep, that would explain why I couldn't find it - I seem to
have an incomplete source code dist for some reason. I'm missing the "ui"
directory you mentioned.

Thanks!

Bret
Previous Topic:WYSIWYG editor for html
Next Topic:Eclipse and Glassfish
Goto Forum:
  


Current Time: Fri Apr 26 18:57:42 GMT 2024

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

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

Back to the top