Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 354241

Summary: [relengtool] 'Fix Copyrights' action doesn't appear on projects using subclipse anymore
Product: [Eclipse Project] Platform Reporter: Nicolas Bros <nicolas.bros>
Component: RelengAssignee: Dani Megert <daniel_megert>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3 CC: daniel_megert, dimitar.georgiev, pwebster, remy.suen
Version: 3.7Flags: dimitar.georgiev: review+
Target Milestone: 3.7.1   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Fix for 3.7.1 none

Description Nicolas Bros CLA 2011-08-09 08:52:31 EDT
Since Indigo, the "Fix Copyrights" action doesn't appear on projects that use the Subclipse SVN connector. It used to work with the Helios version of the releng tool.
Comment 1 Dimitar Georgiev CLA 2011-08-09 10:21:21 EDT
I am also experiencing this using indigo + egit. The action just does not show, and there are no entries in the error log.

Eclipse SDK
Version: 3.7.0
Build id: I20110613-1736

Eclipse EGit
1.0.0.201106090707-r

Eclipse Releng Tools
3.4.100.v20110503-45-7w31221634
Comment 2 Dimitar Georgiev CLA 2011-08-15 12:31:48 EDT
I have raised the importance to major since this affects all Eclipse projects using GIT version control and eclipse 3.7. The "Fix copyrights" action will only work on CVS-located resources.

This is because the object contribution for the action has a wrong filter:

<filter
               name="projectPersistentProperty"
               value="org.eclipse.team.core.repository=org.eclipse.team.cvs.core.cvsnature">
         </filter>

Dani, it looks like this is a regression introduced in

Fixed bug 343954: [relengtool] Fix Copyrights action should be available on working sets

i.e. version 1.18 of the releng.tools plugin.xml.

Can you please take a look?

Regards, Dimitar
Comment 3 Dimitar Georgiev CLA 2011-08-18 06:29:34 EDT
Nicholas, the problem has a workaround. If you place all your projects in a Java working set, and make the package explorer show working sets as top level elements, you will be able to fix copyrights through right-clicking the workin set node.
Comment 4 Dani Megert CLA 2011-08-18 08:39:28 EDT
Created attachment 201713 [details]
Fix for 3.7.1
Comment 5 Dani Megert CLA 2011-08-18 08:43:10 EDT
Fixed in HEAD.
Available in builds >= N20110818-2000.

Let me know if this fixes the issue for you. I'll then put it to 3.7.1.
Comment 6 Dimitar Georgiev CLA 2011-08-18 09:07:49 EDT
Tested, looks good. It fixes the issue. Thanks!
Comment 7 Dani Megert CLA 2011-08-18 09:31:30 EDT
+1 for 3.7.1.

Fixed in R3_7_maintenance.
Available in builds >= M20110824-0800.