Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » org.eclipse.ltk.core.refactoring.deleteParticipants not honoring enablement
org.eclipse.ltk.core.refactoring.deleteParticipants not honoring enablement [message #255831] Fri, 22 August 2008 15:39 Go to next message
Eclipse UserFriend
In 3.4 only, we're finding that the following
org.eclipse.ltk.core.refactoring.deleteParticipants contribution is acting
upon org.eclipse.core.resources.IProject and despite the enablement's
specific instanceof declarations.

Ideas? Incorrect enablement declaration that previous Eclipse versions
overlook? Bug?

<extension point="org.eclipse.ltk.core.refactoring.deleteParticipants" >
<deleteParticipant
id="com.myapp.ui.refactoring.deleteParticipant"
class="com.myapp.ui.refactoring.ResourceDeleteParticipant"
name="%delete.resource.participant">
<enablement>
<or>
<instanceof value="org.eclipse.core.resources.IFile"/>
<instanceof value="org.eclipse.core.resources.IFolder"/>
</or>
<with variable="affectedNatures">
<iterate operator="or">
<equals value="com.myapp.nature"/>
</iterate>
</with>
</enablement>
</deleteParticipant>
</extension>
Re: org.eclipse.ltk.core.refactoring.deleteParticipants not honoring enablement [message #255833 is a reply to message #255831] Fri, 22 August 2008 15:50 Go to previous message
Eclipse UserFriend
Okay, ignore the stanza above. The following enablement stanza acts upon
IProject in 3.4 but *does not* in 3.3 and 3.2.

<enablement>
<with variable="element">
<instanceof value="org.eclipse.core.resources.IResource"/>
</with>
<with variable="affectedNatures">
<iterate operator="or">
<equals value="com.salesforce.toolkit.nature.default"/>
</iterate>
</with>
</enablement>
Previous Topic:Debug window doesn't activate thread
Next Topic:Re: Obtaining an IResource from a fully qualified class name
Goto Forum:
  


Current Time: Thu Sep 18 02:38:23 EDT 2025

Powered by FUDForum. Page generated in 0.02987 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top