Bug 418241 - [Navigator] [CommonNavigator] Resource support has wrong expression on org.eclipse.ui.navigator.resources.GoIntoActions
Summary: [Navigator] [CommonNavigator] Resource support has wrong expression on org.ec...
Status: CLOSED DUPLICATE of bug 410647
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.8.2   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact: Francis Upton IV CLA
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2013-09-28 03:29 EDT by Leonid Ripeynih CLA
Modified: 2013-11-22 14:31 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Leonid Ripeynih CLA 2013-09-28 03:29:58 EDT
<actionProvider
  class="org.eclipse.ui.navigator.resources.GoIntoActionProvider"
  id="org.eclipse.ui.navigator.resources.GoIntoActions">
  <enablement>
   <and>
    <or>
     <and>
      <adapt type="org.eclipse.core.resources.IProject" />
      <test property="org.eclipse.core.resources.open" 
       value="true"/>
     </and>
     <adapt type="org.eclipse.core.resources.IFolder" />  
     <adapt type="org.eclipse.ui.IWorkingSet" />  
    </or>
   </and>
  </enablement>
 </actionProvider>

When an object under test, is not instance of IProject, but adaptable to it (our case), property test fails, because it's not inside adapt expression.

I suggest moving test expression inside adapt, to pass already adapted object.
Comment 1 Victor Rubezhny CLA 2013-11-22 14:29:40 EST
this is a duplicate of bug #410647
Comment 2 Paul Webster CLA 2013-11-22 14:31:19 EST
Thanks.

PW

*** This bug has been marked as a duplicate of bug 410647 ***