Summary: | Need method to figure out if an IResource is visible through the Java Model | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Dirk Baeumer <dirk_baeumer> |
Component: | Core | Assignee: | Jerome Lanneluc <jerome_lanneluc> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | n.a.edgar |
Version: | 2.1 | ||
Target Milestone: | 2.1 M5 | ||
Hardware: | PC | ||
OS: | Windows 2000 | ||
Whiteboard: |
Description
Dirk Baeumer
2003-01-27 06:04:46 EST
Should answer false for resources inside an output folder, or .class file inside source folder. Note that it should avoid asking the resource path if possible. When and if this method becomes available, JDT should change their GoToResourceAction to: 1 - Use a subclass of ResourceSelectionListDialog. The subclass should override the method select(IResource). This method will allow further filtering of matched resources. 2 - Use the ResourceSelectionListDialog(shell, IContainer, int) constructor to create the dialog in step 1. See ResourceListSelectionDialog for more information. API should be IJavaModel.contains(IResource). Implementation would return false for resources inside an output folder, or .class files inside source folder, and in case where src=bin for .class files. New API added and regression test JavaModelTests.testContains* added. Verified. |