This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 132789 - CodeTemplate: fi
Summary: CodeTemplate: fi
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: Victor Vasilyev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-14 16:28 UTC by Lark Fitzgerald
Modified: 2008-04-17 18:35 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lark Fitzgerald 2008-04-14 16:28:52 UTC
Product Version: NetBeans IDE Dev (Build 200804091204)
Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b11
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
Plugin: CB#385 (2008-04-14_13-59-24.zip)

1. go to editor and type:
fi
2. press the tab key and you get:
finally {
    }
<cursor>

Expected the <cursor> to be between the { }
Comment 1 Rastislav Komara 2008-04-15 10:05:54 UTC
I think this issues belongs to you. Indentation issues will be fixed with
finishing issue #130588
Comment 2 Victor Vasilyev 2008-04-15 13:54:29 UTC
OK
The <codetemplate abbreviation="fi"> element will be changed in the
javafx.editor\src\org\netbeans\modules\javafx\dataloader\DefaultAbbrevs.xml
to provide described behavior of the template.

Additionally, the template will be converted to the selection template, i.e. the "Surround with..." action will be
applicable for it. The action is accessible via the lamp icon on the left side bar of the editor after selection of a
code block in the editor. 
Comment 3 Victor Vasilyev 2008-04-17 14:20:28 UTC
Fixed.
By default we will see the following inserted text:
finally {
    
 <cursor>   
}

Note, redundant empty line after "finally {" due to formatting Issue 132787
Finally (after fixing formatting issue) we will see:
finally {    
 <cursor>   
}  
Comment 4 Lark Fitzgerald 2008-04-17 18:35:37 UTC
Verified using:
Product Version: NetBeans IDE 6.1 RC2 (Build 200804170002)
Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b05
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
plugin: CB 74 2008-04-17_15-05-42.zip