The Artima Developer Community
Sponsored Link

Java Buzz Forum
Eclipse Tip: Ignoring Derived Resources

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Geoffrey Wiseman

Posts: 51
Nickname: diathesis
Registered: Aug, 2003

Geoffrey Wiseman is a software professional.
Eclipse Tip: Ignoring Derived Resources Posted: Feb 7, 2005 3:21 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Geoffrey Wiseman.
Original Post: Eclipse Tip: Ignoring Derived Resources
Feed Title: Furious Purpose
Feed URL: http://www.jroller.com/diathesis/feed/entries/rss
Feed Description: Thoughts and experiences on technology and software.
Latest Java Buzz Posts
Latest Java Buzz Posts by Geoffrey Wiseman
Latest Posts From Furious Purpose

Advertisement

In both Eclipse and IntelliJ IDEA, I've often found that opening files by name is simpler than navigating through the project structure. In Eclipse, I do this with Ctrl-Shift-R, for Open Resource, then type in part or all of the filename, and hit Enter.

This is sometimes complicated by the nature of the build process, which, depending on the project structure and build tool, might make copies of some of the resources in directories that Eclipse can see. When this happens, Eclipse shows you a pretty similar dialog box, but shows multiple source directories for the file in question.

multiple found resources

This can lead to opening the wrong file, especially if you're opening resources all the time, and aren't watching the screen carefully for each one. It's mostly a problem when the incorrect location is first in the sorted list, because then Eclipse will have it selected as the default.

Happily, there's a pretty simple fix for this, even if it's taken me well over a year of using Eclipse to track it down. There's a "derived" flag on project directories in Eclipse which is your way to tell Eclipse that the information contained therein is derived. You can get there by right-clicking on a directory and opening the Properties dialog, or selecting it and pressing Alt-Enter. Once you've told Eclipse that a folder is derived, it will cease to include files from that directory in the 'Open Resource' dialog.

Problem solved -- hope this is useful for some of you.

Read: Eclipse Tip: Ignoring Derived Resources

Topic: How Groovy can get her groove back Previous Topic   Next Topic Topic: jDBI 1.2.3

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use