Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

PTP/new and noteworthy/4.0.0

< PTP‎ | new and noteworthy
Revision as of 12:25, 24 May 2010 by Overbey2.illinois.edu (Talk | contribs) (Other New Features)

Please add new features in PTP 4.0 here and we'll build our N&N/help item from this. Images too please!

"New and Noteworthy" is a tradition for Eclipse projects - an interesting way to present our new features. Screenshots and enticing examples are best! But any information at all is welcome - we can get screenshots later.

See also our New and Noteworthy for 3.0

General Category name

  • Bullet item or two briefly describing the new feature. Screenshot image too, please! Please attach as .png images if possible.
  • To upload an image file, see the "Upload file" link on the left side of the page.

Ptp-nn-sample.png

PLDT

UPC features

New code templates

Photran 6

Photran 6 adds two major features (Fortran 2008 support and C preprocessor support) and three new refactorings to Photran 5. It also includes several more minor improvements, including a Fortran Analysis/Refactoring Problems view, documentation in the online help system, the ability for the parser to "skip over" many syntax errors, an improved New Fortran Project dialog, Unicode support, configurable fixed-form line length, per-project source form settings, outlining of declarations in interface blocks, more robust content assist facilities, the ability to jump to external program definitions using Open Declaration, better editor responsiveness when working on large projects, crash recovery in the indexer database... and, of course, some bug fixes.

Fortran 2008 Support

The editor (syntax highlighting) and Outline view in Photran 6 support the new syntactic constructs in the Fortran 2008 ISO standard. These include submodules, separate module subprograms, the BLOCK construct, complex part designators, concurrent loop control, and co-arrays.

Photran-fortran2008.png

C Preprocessor Support

Photran 6 now supports C preprocessor directives in free form code (when configured appropriately), allowing the Outline view, search, open declaration, and content assist to work correctly on preprocessed code. The filename extensions associated with C preprocessed code are configured in the project properties.

Photran-source-form-config.png

New Refactorings

Photran 6 includes three new refactorings, thanks to Gustavo Risetti (Universidade Federal de Santa Maria):

  • Standardize Statements rewrites all variables declarations, so that there is only one variable declaration per line, and every variable declaration contains a double colon (::).
  • Convert DATA to PARAMETER replaces a constant-valued declaration in a DATA statement with a PARAMETER statement.
  • Remove Unused Variables moves declarations of local variables that are never used.
Photran-Remove-Unused-Variables.png

Other New Features

  • The Fortran Analysis/Refactoring Problems view displays errors encountered by Photran's parser that may prevent refactorings, Fortran Search, the Fortran Declaration view, and other advanced features from working correctly. This is distinct from the ordinary Problems view, which displays error messages produced by the user's Fortran compiler.
TODO: Image
  • Online Help. The documentation from the Photran wiki is now included in the online help system, making it accessible to users on machines without Internet access.
TODO: Image
  • Error recovery in the parser. The Fortran parser can now "recover" from many unrecognized statements. This allows the Outline view, content assist, and many other features to work on files that cannot be parsed completely (such as files using vendor-specific language extensions).
Photran-error-recovery.png
  • In Photran 6, the New Fortran Project dialog only displays Fortran project types. In previous versions, it contained both C/C++ and Fortran project types.
TODO: Image
  • Unicode support. Photran's indexer and refactoring engine now permit Unicode characters in comments in Fortran source code.
TODO: Image
  • Configurable fixed-form line length. The default fixed-form line length of 72 characters can now be changed in the workspace preferences.
TODO: Image
  • Declarations in interface blocks are now shown in the Outline view.
  • Content assist is significantly more robust.
  • Source form settings are now configured on each project, not workspace-wide. It is also possible to change the "default" source form-filename extension associations (e.g., .f files can be changed to free form).
  • External program definitions can be located using Open Declaration.
  • The editor is much more responsive when working on large projects with analysis/refactoring enabled. (Much of the computation that was previously blocking the user interface thread has been moved into a background thread.)
  • The indexer can now detect when Eclipse crashed or was shut down uncleanly and will rebuild itself automatically. (This prevents many cryptic "indexer errors" that were discussed on the Photran mailing list.)

Back to the top