Community
Participate
Working Groups
I20071002-1342 1. Create new Plugin Project 2. Add extension to org.eclipse.ui.startup 3. Share the plugin project using the pessimistic team provider (from org.eclipse.team.examples.filesystem) 4. Add plugin.xml and check in 5. Refactor>Rename the IStartup implementor Is: Error 'The file xy/plugin.xml' is read-only Should: Ask to check out plugin.xml
FYI: I just added Javadoc to org.eclipse.ltk.core.refactoring.participants. RefactoringParticipant#checkConditions(IProgressMonitor, CheckConditionsContext) that explains how implementors should register their resource operations: (ResourceChangeChecker) context.getChecker(ResourceChangeChecker.class); IResourceChangeDescriptionFactory deltaFactory= checker.getDeltaFactory(); deltaFactory. /*register your changes here*/
FYI, this seems to be a case where the PDE is checking the file's attributes before whatever it is that triggers the org.eclipse.core.resources.fileModificationValidator extension point fires, and thus failing the refactor operation prematurely and erroneously. The fileModificationValidators do get called at some point, because I have implemented one that immediately sets files to writable before spawning a job to do other things. If I do a refactoring in a plugin that affects a plugin.xml file, the file get set to writable (as expected), but any associated refactorings fail because the PDE seems to only check the file's attributes before the modification validator is asked to do its work.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.
This bug has been marked as stalebug a while ago without any further interaction. If this report is still relevant for the current release, please reopen and remove the stalebug whiteboard flag.
This bug was marked as stalebug a while ago. Marking as worksforme. If this report is still relevant for the current release, please reopen and remove the stalebug whiteboard tag.