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 6559 - [Explorer View] It will be nice to have some way to synchronize selected node in Explorer with just edited code.
Summary: [Explorer View] It will be nice to have some way to synchronize selected node...
Status: VERIFIED DUPLICATE of bug 18856
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: All All
: P2 enhancement with 3 votes (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on: 7551
Blocks: 6464 21192
  Show dependency tree
 
Reported: 2000-05-05 22:31 UTC by Jan Becicka
Modified: 2007-09-26 09:14 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
ShowInExplorer module (6.38 KB, application/octet-stream)
2002-03-29 13:29 UTC, David Konecny
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Becicka 2000-05-05 22:31:02 UTC
If I`m editing some code in Editor, I want to see JavaHierarchy of just edited code. But I must find it myself in Explorer. It shoud by nice to have some short-cut or something to quickly select app
ropriate node.
Comment 1 Petr Slegr 2000-07-18 19:36:59 UTC
Moreover there could be button in toolbar for this action. Proper toolbar could
be Data toolbar, which now includes Find, Explore from here, Properties,...
Comment 2 Svata Dedic 2000-09-08 07:54:59 UTC
It is not feasible to lookup a node for a Java Hierarchy element with the
current API. Since any module may participate in producing nodes underneath Java
source possibly completely restructuring the tree, we need some additional API
to provide navigation through the resulting structure.
Comment 3 Petr Slegr 2000-11-27 11:43:59 UTC
*** Bug 8307 has been marked as a duplicate of this bug. ***
Comment 4 Jan Becicka 2001-04-09 16:24:15 UTC
I think this could be nice enhancement.
Comment 5 Jan Chalupa 2001-05-05 23:21:16 UTC
Target milestone -> 3.3
Comment 6 Svata Dedic 2001-07-09 15:51:09 UTC
Reassinging to netbeans.org mailing address.
Comment 7 Jan Chalupa 2001-11-27 12:50:18 UTC
Target milestone -> 3.3.1.
Comment 8 Jesse Glick 2002-01-15 15:31:40 UTC
This probably needs to be dealt with more generally at an API level.
Some sort of "node synchronizer" interface needs to be available which
can take a DataObject (e.g.) and select it. Not trivial, esp. when
everything in sight will be a LookNode!
Comment 9 Jesse Glick 2002-01-19 15:04:41 UTC
Found API enhancement request.
Comment 10 David Konecny 2002-03-29 13:29:48 UTC
Created attachment 5239 [details]
ShowInExplorer module
Comment 11 David Konecny 2002-03-29 14:16:53 UTC
Thank you Svata for allowing me to "host" this very primitive "module" 
in this issue. :-)

More info about it can be found at:
<http://www.netbeans.org/servlets/ReadMsg?msgId=293141&listName=nbuser
s>
Comment 12 Svata Dedic 2002-05-21 17:48:19 UTC
Cleaning up before 4.0 planning
Comment 13 Marek Grummich 2002-07-19 16:18:43 UTC
Target milestone was changed from not determined to TBD
Comment 14 David Konecny 2002-08-06 23:56:48 UTC
From what Jesse wrote I would say that this is not Java specific
feature. Shouldn't this issue be moved to OpenIDE.Explorer?

In new projects we have similar problem, see issue 26326.
Comment 15 David Konecny 2002-08-07 00:01:39 UTC
Sorry, I overlooked dependency on issue 7551. Ignore my previous comment.
Comment 16 Svata Dedic 2003-06-16 19:38:33 UTC
Marking as NB4DEV issue; I might be able to solve it given the limited
scope of project explorer views. David, I hope you will forgive me if
I reuse the code from your module.
Comment 17 David Konecny 2003-06-17 08:36:48 UTC
Feel free to reuse it as it fits you. I found this feature very
useful. I'm using it everyday. 
Comment 18 Jan Becicka 2003-06-17 08:40:00 UTC
Reassigning to hie.
Comment 19 Chris Ledantec 2003-07-07 10:08:17 UTC
i'm changing this to a defect and adding 4.0 as the target.

defect justification: the lack of selection tracking between the
editor and the explorer confuses users feedback substantially; the
degree that the ide uses context sensitive actions compounds the
usability imact of this problem.

it should be something we fix when we introduce projects.
Comment 20 Svata Dedic 2003-07-07 10:10:37 UTC
C.f. IntelliJ -- an Editor has an action "Show in" and a list of
(project explorer) views appears. The chosen view is brought to top
and the file is selected in it.
Comment 21 Jan Becicka 2003-07-09 13:46:21 UTC
Chris,  please propose some ui for it. Probably 
some menu item, or short-cut and then reassign 
it to proper developer. Thanks
Comment 22 Chris Ledantec 2003-07-09 14:12:22 UTC
a sufficient solution is to simply have node selection in the explorer
follow on a file/dataobject level the selection in the editor.

this is a one way street though -the editor doesn't follow the
explorer on simple selection -only on double clicking as is now.
Comment 23 Petr Nejedly 2003-07-09 14:35:20 UTC
"a sufficient solution is to simply have node selection in the
explorer follow on a file/dataobject level the selection in the
editor."

You are joking, right?
You should not mess with user's carefully expanded and scrolled
explorer unless the user express he wishes it.

Comment 24 Jan Becicka 2003-07-09 14:41:52 UTC
IMO it will be useful for user to be able to turn on/off this
editor->explorer automatic synchrozniation, or not to do
autosynchronization at all and rather create a short-cut for this action.
Comment 25 Chris Ledantec 2003-07-09 15:40:18 UTC
hmm. well, i don't think it's as drastic as what Petr is trying to
insinuate. the state of the explorer stays the same (node expansions
and all the rest) the only difference is that the selection moves to
the node that belongs to the file being edited. eclipse has an option
for this (actually, i didn't know it was an option until just now and
had assumed that's just the way things were). 

at any rate, i don't think this as an additional option a la eclipse
is a bad thing.
Comment 26 Petr Nejedly 2003-07-09 16:34:10 UTC
> node expansions and all the rest
How can you select a node in an unexpanded package?

OK, to be constructive:
Why do I need to select edited file in explorer?
Every time I need this function, it is to do some operation on the
file:
*) Edit file properties
*) Invoke "Override method" (bad example, bad accessibility of this
   function should be solved elsewhere)
*) Rename

Now, If I have explorer *and*  structure view (preferably
autosynchronized this time ;-), but at least tracking focus changes)
the file node may be the root node of the structure view so I can
access the functionality there.
Comment 27 David Konecny 2003-07-09 16:43:44 UTC
"Why do I need to select edited file in explorer?" - my daily usecase
is following:

FastOpen a java file; do some edits; ...; I need to get to to the
package to open a different file from that package or to browse other
files in that package or subpackage.

Because I'm using FastOpen frequently I do not want the explorer to
expand folders and focus edited file's node automatically.
Comment 28 Chris Ledantec 2003-07-10 09:52:43 UTC
so going over the feedback here we should, and Jan B suggested, have
this as an option (synch between editor and explorer) and leave the
default not to synch between the two.

does that work?
Comment 29 Petr Nejedly 2003-07-10 10:19:03 UTC
My opinion (take it or leave it):
You're building on wrong premise:
"the lack of selection tracking ... confuses users feedback"
That is not the problem here. Users are not confused, they just need
from time to time (not *that* often) to find the thing they're just
editing in the explorer.
"from time to time" is like "3 times an hour" or "one burst a day",
but certainly not constantly after each jump from editor to editor.
This is why explicit action was proposed, not autotracking.
Comment 30 Jan Becicka 2003-07-10 12:58:34 UTC
I vote for explicit action too.
Comment 31 aldobrucale 2003-07-10 16:13:53 UTC
I've been using the "ShowInExplorer" module for a while, 
and I think it does what most users need. It is enough for 
me, at least.
Comment 32 Jan Becicka 2003-11-04 13:24:42 UTC
See issue 35652
Comment 33 Dusan Balek 2003-11-27 10:45:41 UTC

*** This issue has been marked as a duplicate of 18856 ***
Comment 34 Lukas Hasik 2003-12-04 15:18:41 UTC
verifying duplicity.... really cool feature ;)
Comment 35 Quality Engineering 2007-09-20 09:58:16 UTC
Reorganization of java component