Re: AW: Link editor window with source tree

Jiri Kovalsky <[email protected]>
Newsgroups gmane.comp.java.netbeans.user-interface
Message-ID <[email protected]>
Hello Holger,

   if you prefer buttons, why don't you add that particular action into the toolbar ? Here is how to achieve that:

1. Invoke "Tools | Options" from main menu.
2. Select "IDE Configuration | Look and Feel | Actions | Window | Select Document in | Select Node in Project" action node.
3. Press CTRL+C to copy that action.
4. Select "IDE Configuration | Look and Feel | Toolbars | Memory" node.
5. Press CTRL+V to paste the action into Memory toolbar.
6. Check "Visible" property in the right property sheet and close the Options window.
7. Optionally drag and drop the Memory toolbar to right.

   Whenever you have editor focused and click the newly created toolbar button it will get you to the filenode in Projects view.

Enjoy ! :-)
-Jirka

Holger Stenzhorn wrote:

> Hi Roman and Jiri,
> 
> Thanks for the hint with the shortcut and the menu item. ...and in Netbeans 4.1 this works fine but when trying the same with the latest 4.2 development built both methods do not work: I get the message the "The document node could not be found in the projects tab" even though I can manually navigate through the tree to that file in the Projects window.
> 
> But still - don't you think that this functionality would be easier to access if there was a button? I think that it could be easily added to the left to the "Back" button in the button panel of the editor window...
> 
> Bye,
> Holger
> 
> -----Ursprüngliche Nachricht-----
> Von: Roman Strobl [mailto:[email protected]] 
> Gesendet: Sonntag, 19. Juni 2005 11:03
> An: [email protected]
> Betreff: Re: [nbui] Link editor window with source tree
> 
> 
> Hi,
> 
> there's a similar feature, try to press Ctrl-Shift-1. It opens the 
> current file in Projects View. Similary works Ctrl-2 or Ctrl-3.
> 
> -Roman
> 
> Holger Stenzhorn wrote:
> 
> 
>>Hi,
>> 
>>I would like to have a button in the Netbeans editor that has the same
>>functionality as the button "Link with Editor" in Eclipse: If this 
>>button is activated and a file is opened in the editor then the tree 
>>in which this file can be found the "Projects" window expands to this 
>>file. This is helpful if one is following sources via "Go To -> 
>>Source" from the context menu in the editor and hence not opens a file 
>>directly in the tree.
>>What do you think? ...and should I post a RFE to the Netbeans bug 
>>database for this? (I am not familiar how RFEs are handled here.)
>> 
>>Bye,
>>Holger
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.