Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 275573 - UI enhancements needed before 4.0 release
Summary: UI enhancements needed before 4.0 release
Status: RESOLVED FIXED
Alias: None
Product: PTP
Classification: Tools
Component: Photran.Unknown (show other bugs)
Version: 4.0   Edit
Hardware: PC Linux
: P1 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Timofey Yuvashev CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-10 18:27 EDT by Jeffrey Overbey CLA
Modified: 2011-01-31 07:57 EST (History)
1 user (show)

See Also:


Attachments
Patch fixes bugs 3 and 4 on the list (21.65 KB, patch)
2009-05-28 13:30 EDT, Timofey Yuvashev CLA
no flags Details | Diff
Re-structures some base RefactoringAction and Refactoring classes to provide support for refactoring mutliple files (76.56 KB, patch)
2009-05-28 18:31 EDT, Timofey Yuvashev CLA
no flags Details | Diff
Replaced previous patch. (74.14 KB, patch)
2009-05-29 15:04 EDT, Timofey Yuvashev CLA
g.watson: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jeffrey Overbey CLA 2009-05-10 18:27:25 EDT
1.
The New Fortran project wizard is currently accessible via File > New > Project..., but it should be more easily accessible as
(a) File > New > Fortran Project
(b) Right-click in the Fortran Projects view > New > Fortran Project
(c) It should have an icon in the dropdown menu for the "New" toolbar button

2.
Similarly, if you click File > New > Other..., there is a Fortran Source File wizard and a Fortran Source Folder wizard.  These should be accessible in the same places.  If possible, these can replace the current "New Source File" and "New Source Folder" items in the menu, which create C/C++ source files and folders.  This can be limited to the Fortran perspective, if necessary.
Comment 1 Jeffrey Overbey CLA 2009-05-11 02:32:01 EDT
3.
If you place the cursor immediately after the last character of an identifier (which is followed by a whitespace or other non-alphanumeric character) and then choose Refactor > Rename, the intent is to rename the preceding identifier.  However, currently, the cursor must be placed inside or before the identifier.  This can probably be fixed by adding a second test inside the loop in FortranRefactoring#findEnclosingToken

4.
It should be possible to apply the Introduce Implicit None refactoring to every Fortran file in a project or source folder by right-clicking the project or folder in the Fortran Projects view and clicking on a Refactor > Introduce Implicit None item in the context menu.  (Eventually we should generalize this behavior to other refactorings that don't require any user input.)
Comment 2 Jeffrey Overbey CLA 2009-05-15 18:24:56 EDT
Regarding #1 and #2, if you right-click on the toolbar in Photran, click on "Customize Perspective," switch to the Commands tab, uncheck the C/C++ actions, and check the various Fortran actions, you get the desired results.  So, basically, I think you want to achieve the same thing programmatically.
Comment 3 Jeffrey Overbey CLA 2009-05-27 14:38:45 EDT
It looks like #4 will contain most of what we need to cover #271519 as well

https://bugs.eclipse.org/bugs/show_bug.cgi?id=271519
Comment 4 Timofey Yuvashev CLA 2009-05-28 13:30:19 EDT
Created attachment 137522 [details]
Patch fixes bugs 3 and 4 on the list
Comment 5 Timofey Yuvashev CLA 2009-05-28 18:31:38 EDT
Created attachment 137571 [details]
Re-structures some base RefactoringAction and Refactoring classes to provide support for refactoring mutliple files
Comment 6 Jeffrey Overbey CLA 2009-05-28 22:32:42 EDT
Hi Tim,

I just noticed a couple quick changes to the new patch...

(1) Please replace the AbstractFortranEditor class with the one that's currently in HEAD.  I committed a fix yesterday that takes care of the problem you were having, so AbstractFortranEditor#getIFile should not need to be changed.

(2) The JavaDoc comments for the SingleFileFortranRefactoring and MultipleFileFortranRefactoring classes currently just has "@author tyuvash2" -- please put in a brief description for the class and change the @author tag to include our full names (this is important for the IP process).

Thanks.

Jeff
Comment 7 Timofey Yuvashev CLA 2009-05-29 15:04:41 EDT
Created attachment 137701 [details]
Replaced previous patch.
Comment 8 Jeffrey Overbey CLA 2009-05-29 15:08:15 EDT
Patch looks good; thanks, Tim.  Waiting on reply from Legal...
Comment 9 Jeffrey Overbey CLA 2009-06-16 10:22:35 EDT
Hi Tim,

Can you please confirm that

1. you wrote 100% of the code without incorporating content from elsewhere or
relying on the intellectual property of others,

2. you have the right to contribute the code to Eclipse, and

3. you have included the EPL license header in all source files?

For #1, if you borrowed code from either Photran or CDT, that is fine, as long
as you state that explicitly.

Thanks.
Jeff
Comment 10 Timofey Yuvashev CLA 2009-06-17 15:10:07 EDT
Jeff,
1. Yes
2. Yes
3. Yes
Comment 11 Jeffrey Overbey CLA 2009-07-08 10:28:52 EDT
This is entered as CQ3400 and is waiting on approval.

http://dev.eclipse.org/ipzilla/show_bug.cgi?id=3400
Comment 12 Jeffrey Overbey CLA 2009-08-06 17:55:20 EDT
CQ approved; committed to CVS.