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 241692

Summary: can not open FindUsages result and jump from Navigator
Product: cnd Reporter: Vladimir Voskresensky <vv159170>
Component: EditorAssignee: Vladimir Voskresensky <vv159170>
Status: RESOLVED FIXED    
Severity: normal CC: igor_nikiforov, jtulach, kliteyn
Priority: P2    
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 241991    
Bug Blocks:    
Attachments: changes in platform
changes in platform

Description Vladimir Voskresensky 2014-02-11 12:25:31 UTC
we have project with 3 compile phases. last 2 of them are compilation of symlinks. 
There are some problems:
1) When user uses Find Usages => elements from Results window can not open underlying position
2) Go to file lnk/file.cc then go to file src/file.cc then close editor, then opened as src/file.cc => lnk/file.cc is opened instead
Comment 1 Vladimir Voskresensky 2014-02-11 14:28:05 UTC
problem 3) go to src/file.cc, select in project, close file.cc, go to lnk/file.cc, close file, select other file and then back src/file.cc in project view, go to src/file.cc, then dbl click in navigator => file is not scrolled to the position
Comment 2 Quality Engineering 2014-02-12 02:41:50 UTC
Integrated into 'main-silver', will be available in build *201402120001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/31172cc966fc
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixing #241692 - can not open FindUsages result and jump from Navigator
- when closed, forget previous cos to allow new file to be opened with it's abs path
Comment 3 Vladimir Voskresensky 2014-02-12 17:27:03 UTC
Created attachment 145106 [details]
changes in platform

proposed changes in platform
Comment 4 Vladimir Voskresensky 2014-02-12 17:37:49 UTC
Created attachment 145107 [details]
changes in platform
Comment 5 Vladimir Voskresensky 2014-02-12 17:38:17 UTC
Jarda, could you review, please.
https://netbeans.org/bugzilla/attachment.cgi?id=145107
Comment 6 Vladimir Voskresensky 2014-02-12 18:11:26 UTC
All tests in Window System/Text API passes, but the questions are:
- what to do with "env" field (assignment is commented out now)?
- is it valid to assign allEditors from other instance?
- what to do with lineSet field?

and probably it's worth to change lastSelected to be sharable like allEditors, so i.e:
private transient Reference<Pane>[] lastSelected = new Reference[] { null };
Comment 7 Quality Engineering 2014-02-13 02:45:35 UTC
Integrated into 'main-silver', will be available in build *201402130001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/23d61c6aa9a0
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixing #241692 - can not open FindUsages result and jump from Navigator
- log about redirection
Comment 8 Vladimir Voskresensky 2014-02-14 13:15:54 UTC
*** Bug 237129 has been marked as a duplicate of this bug. ***
Comment 9 Jaroslav Tulach 2014-02-15 06:25:27 UTC
Is this an API change? Then follow the process.
Comment 10 Vladimir Voskresensky 2014-02-21 10:34:28 UTC
platform part is fixed as issue #241991.
All fixes in this IZ are in release80 already
Comment 11 Vladimir Voskresensky 2014-03-14 12:16:19 UTC
*** Bug 242851 has been marked as a duplicate of this bug. ***