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 268344 - Editor does Not support the "edit-fold" feature
Summary: Editor does Not support the "edit-fold" feature
Status: NEW
Alias: None
Product: ide
Classification: Unclassified
Component: UI (show other bugs)
Version: -FFJ-
Hardware: PC All
: P3 normal (vote)
Assignee: issues@ide
URL:
Keywords: REGRESSION, UI, USABILITY
Depends on:
Blocks:
 
Reported: 2016-10-05 00:27 UTC by aplatypus
Modified: 2016-10-05 00:27 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (156.64 KB, text/plain)
2016-10-05 00:27 UTC, aplatypus
Details

Note You need to log in before you can comment on or make changes to this bug.
Description aplatypus 2016-10-05 00:27:30 UTC
When editing Groovy files the Netbeans editor

There are many shortcuts documented on the "Keyboard Shortcuts card", including the:

  "fcom" 

Command that expands into a  "edit-fold"  meta-instruction to the editor.

This should insert the instruction shown in the example, below and then the code between the start and end of this mark-up can be folded in the editor.

 1. "edit-fold"  does Not work in the editor 
 2. the "fcom" macro is not caught by the editor.
 3. This appears to work OK in Java files.

Example:

      //    ----	----    ----    ----    ---	----
      //           Specification Set-up
      //    ----	----    ----    ----    ---	----
      //<editor-fold defaultstate="collapsed" desc="specification set-up">


------------------------------
Product Version = NetBeans IDE 8.1 (Build 201510222201)
Operating System = Windows 10 version 10.0 running on amd64
Java; VM; Vendor = 1.8.0_102
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.102-b14

Reproducibility: Happens every time

STEPS:
  * Open a Groovy file in the editor
  *  type: "fcom[TAB]"
  *  The fcom will not work so you need to paste-in or type the example and the ending tag manually
  *  Click on the  "edit-fold" line --code should fold

ACTUAL:
  nothing happens

 * fcom is ignored
 *  "edit-fold"  is ignored

EXPECTED:
  1. fcom should insert the  "edit-fold"  mark-up
  2.  "edit-fold" should fold and unfold when the mouse is clicke
Comment 1 aplatypus 2016-10-05 00:27:36 UTC
Created attachment 162339 [details]
IDE log