Recipe 2.8 Linking Views to Editors

     

2.8.1 Problem

The items selected in a view are not tied closely to whichever editor is open . Switching editors, or even closing an editor, does not change the selection in a view by default.

2.8.2 Solution

Click the Link with Editor button.

2.8.3 Discussion

Many views, such as the Resource perspective's Navigator view and the Java perspective's Package Explorer, enable you to synchronize with editors. To synchronize, click the Link with Editor button shown in Figure 2-8.

Figure 2-8. The Link with Editor button
figs/ecb_0208.gif

By linking a view with an editor, you tie that view to the editor so that the view will always show the file currently being edited.

2.8.4 See Also

Chapter 1 of Eclipse (O'Reilly).



Eclipse Cookbook
Inside XML (Inside (New Riders))
ISBN: 596007108
EAN: 2147483647
Year: 2006
Pages: 232
Authors: Steve Holzner

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net