Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 264131 - Fortran Search functionality
Summary: Fortran Search functionality
Status: RESOLVED FIXED
Alias: None
Product: PTP
Classification: Tools
Component: Photran.Unknown (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Jeffrey Overbey CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-09 01:16 EST by Andrew Deason CLA
Modified: 2011-01-31 07:56 EST (History)
5 users (show)

See Also:


Attachments
Implementation of photran fortran search functionality (55.07 KB, patch)
2009-02-09 01:16 EST, Andrew Deason CLA
no flags Details | Diff
fortran search logo (353 bytes, image/gif)
2009-02-13 15:17 EST, Andrew Deason CLA
no flags Details
New version of previous patch (55.27 KB, patch)
2009-06-21 22:21 EDT, Andrew Deason CLA
g.watson: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Deason CLA 2009-02-09 01:16:05 EST
Created attachment 125097 [details]
Implementation of photran fortran search functionality

The attached patch implements searching for particular Fortran identifiers in Photran, a la the Java and CDT search functionality.

The was completed as part of CS427 (Software Engineering I), Fall, 2008,
under the guidance of Yun Young Lee and Prof. Ralph Johnson, as the final project for team Quillback, consisting of:

Jeff Dammeyer <jdammey2@uiuc.edu>
Andrew Deason <adeason2@uiuc.edu>
Nick Sexmith <sexmith2@uiuc.edu>
Joe Digiovanna <jdigiov2@uiuc.edu>

The patch is against a non-current CVS HEAD. It wasn't a particular version, but it looks like it was checked out on 31 Oct 2008, 3:32 AM, at least on my local machine.
Comment 1 Jeffrey Overbey CLA 2009-02-13 14:31:05 EST
Could you please make fsearch_obj.gif a separate attachment on this bug?  Thanks.
Comment 2 Andrew Deason CLA 2009-02-13 15:17:11 EST
Created attachment 125682 [details]
fortran search logo

Yeah, I was wondering if that would work at all as just part of a patch. Attached now; it's just the little icon for the search page.
Comment 3 Jeffrey Overbey CLA 2009-02-17 14:23:20 EST
Andrew,

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, I believe you borrowed some content from CDT, so you will want to note that.

For the purposes of our legal review, I should note that, according to the University's policy, you and your co-authors are the exclusive copyright holders because this was a class project.

Thanks.
Jeff
Comment 4 Jeffrey Overbey CLA 2009-02-17 14:55:40 EST
Submitted CQ 3103

https://dev.eclipse.org/ipzilla/show_bug.cgi?id=3103
Comment 5 Andrew Deason CLA 2009-02-18 00:41:05 EST
> 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,

There is the exception of CDT that you mentioned, which is noted in the comments of VPGSearchPage.java (the affected file). Sans that, to the best of my knowledge I can confirm, yes.

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

Yes.

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

Yes, with the exception of test files. Other preexisting tests also lack it.
Comment 6 sexmith2 CLA 2009-03-10 10:54:27 EDT
(In reply to comment #3)
> Andrew,
> 
> 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,
> 
Aside of CDT, yes.

> 2. you have the right to contribute the code to Eclipse, and
> 
Yes.
> 3. you have included the EPL license header in all source files?
> 
Yes.
> For #1, I believe you borrowed some content from CDT, so you will want to note
> that.
> 
> For the purposes of our legal review, I should note that, according to the
> University's policy, you and your co-authors are the exclusive copyright
> holders because this was a class project.
> 
> Thanks.
> Jeff
> 

Comment 7 Jeff Dammeyer CLA 2009-03-14 00:15:08 EDT
(In reply to comment #3)
> Andrew,
> 
> 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,
Excetping CDT, yes.
> 2. you have the right to contribute the code to Eclipse, and
Yes.
> 3. you have included the EPL license header in all source files?
Yes.
> For #1, I believe you borrowed some content from CDT, so you will want to note
> that.
> 
> For the purposes of our legal review, I should note that, according to the
> University's policy, you and your co-authors are the exclusive copyright
> holders because this was a class project.
> 
> Thanks.
> Jeff
> 

Comment 8 Joseph DiGiovanna CLA 2009-03-14 02:40:09 EDT
> Andrew,
> 
> 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,
> 
With the exception of CDT, yes.

> 2. you have the right to contribute the code to Eclipse, and
> 
Yes.
> 3. you have included the EPL license header in all source files?
> 
Yes.
> For #1, I believe you borrowed some content from CDT, so you will want to note
> that.
> 
> For the purposes of our legal review, I should note that, according to the
> University's policy, you and your co-authors are the exclusive copyright
> holders because this was a class project.
> 
> Thanks.
> Jeff
> 
Comment 9 Jeffrey Overbey CLA 2009-06-21 19:34:44 EDT
A couple notes to myself...

After I apply the patch,

1. The documentation (and parameter name) for Definition#matches should be update to reflect the API change (it now matches against a regex)

2. testFour fails because it does not find the declaration of an implicit variable, which is also a reference

3. Will about.html need to change?
Comment 10 Andrew Deason CLA 2009-06-21 22:21:40 EDT
Created attachment 139718 [details]
New version of previous patch

New version of the photran search functionality patch. Includes hopefully more clear / palatable licenses and copyright notices.
Comment 11 Jeffrey Overbey CLA 2009-06-21 22:33:17 EDT
Thanks a lot, Andrew.  --Jeff
Comment 12 Jeffrey Overbey CLA 2009-07-01 00:13:50 EDT
This passed the IP review.  I'm committing it to CVS; it will be in the next build.  Thanks again.
Comment 13 Jeffrey Overbey CLA 2009-07-07 01:24:37 EDT
For the record, these are my notes from this group's final presentation in 427...

Quillback - Fortran Search (17 Dec 2008)

- Patterns are remembered but not other dialog settings

- VPGSearchMatch eliminates duplicates due to equals()

- Line 165 in VPGSearchQuery - resource visitor tries to parse all files, will succeed on any Fortran file it can parse since acquireTransient does not check content type

- Compare VPGSearchPage to PDOM equivalent

- Change to matches due to manuallyResolve call chain using it

- Why does manuallyResolve return tokens with offset/length < 0?

- VPGSearchQuery lines 2xx -- some helper methods did not exist

- PDOMSearchPage 527 selects type/flags in dialog based on selection
Comment 14 Jeffrey Overbey CLA 2009-07-20 12:40:04 EDT
This was in the latest integration build, no problems.  Closing it out.  Thanks again.