Where are bracket insertion and code folding? [message #225969] |
Tue, 06 January 2009 13:31  |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.03375 seconds