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 206090 - Line wrap feature breaks code folding tooltips
Summary: Line wrap feature breaks code folding tooltips
Status: RESOLVED DUPLICATE of bug 205840
Alias: None
Product: editor
Classification: Unclassified
Component: Code folding (show other bugs)
Version: 7.1
Hardware: PC Linux
: P2 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-07 15:16 UTC by Selpi
Modified: 2011-12-09 05:40 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
normal tooltip (133.43 KB, image/png)
2011-12-07 15:17 UTC, Selpi
Details
wrap after word (119.20 KB, image/png)
2011-12-07 15:18 UTC, Selpi
Details
wrap anywhere (120.44 KB, image/png)
2011-12-07 15:18 UTC, Selpi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Selpi 2011-12-07 15:16:21 UTC
Product Version = NetBeans IDE 7.1 (Build 201112051121)
Operating System = Linux version 3.0.0-14-generic-pae running on i386
Java; VM; Vendor = 1.7.0_147-icedtea
Runtime = OpenJDK Client VM 21.0-b17

Doing a php sanity test I created a php file with some hierarchical code, collapsed all, moved cursor onto {...} folding symbols and saw a full content of folded code.

Then in a Tools -> Options -> Editor -> Formatting set a Line wrap to "After words" and got a messed folding tooltip (look at the attached screenshots).

Then I set Line wrap to "Anywhere" ang got another messed tooltip, but in some other way (third screenshot).

Just for example a test file content was:

<?php

class IndexController extends Zend_Controller_Action
{

    public function init()
    {
        /* Initialize action controller here */
    }

    public function indexAction()
    {
        // action body
    }


}
class Foo {
  /**
   * @param string $s
   * @param int $i
   * @param float $f
   *
   */
  function bar($s, $i, $f){}

  function foobar(){
    $string = "";
    $int = 42;
    $float = 3.1456;
    $this;
  }

}
/** class MyClass extends F @ */
Comment 1 Selpi 2011-12-07 15:17:47 UTC
Created attachment 113923 [details]
normal tooltip

normal tooltip
Comment 2 Selpi 2011-12-07 15:18:19 UTC
Created attachment 113925 [details]
wrap after word

wrap after word
Comment 3 Selpi 2011-12-07 15:18:56 UTC
Created attachment 113926 [details]
wrap anywhere

wrap anywhere
Comment 4 Jiri Prox 2011-12-09 05:20:48 UTC
reproducible
Comment 5 Svata Dedic 2011-12-09 05:40:04 UTC

*** This bug has been marked as a duplicate of bug 205840 ***