Home | Eclipse plugins -> AnyEdit
+Andrey | About

Eclipse community awards 2009 finalist

AnyEdit tools plugin for Eclipse

AnyEdit plugin adds several new tools to the context menu of text- based Eclipse editors, to output consoles, to Eclipse main menu and editor toolbar. AnyEdit contributes also Import/Export working sets wizards.

What can AnyEdit do for you?

   -> AnyEdit examples -> AnyEdit preferences -> AnyEdit in action

AnyEdit can perform tabs <-> spaces conversion on multiple files or entire directories.

AnyEdit has both workspace and project settings and allows also file exclusion filter for tabs <-> spaces action.

AnyEdit allows you automatically remove trailing whitespace, perform tabs<->spaces conversion and fix line delimiters (Windows: CRLF<->Linux: LF<->Mac: CR) on the "save" action in all text-based Eclipse editors. Also AnyEdit can automatically create a new line at the end of the file if the last line was not terminated by new line.

AnyEdit adds "Save All" and "Open File" buttons to the global Eclipse toolbar and can remove "Print" button from it on Eclipse 3.x (because it is completely useless on Linux).

AnyEdit adds "Open File", "Open Type" and "Save to file..." actions to supported output consoles and "Save to file..." toolbar button to the Console view.

AnyEdit adds four new context menu actions to "Compare With" and "Replace With" menus in both editors and files.

What? Where? Details
Open File under Cursor Editors, Console views, Bytecode Outline View Useful by many include's in jsp's, C/C++ files, file names in the console output etc. Can jump to the right line!
Works with run/debug and Ant console too, support "jump to line"!
Open Type under Cursor Editors, Console views, Bytecode Outline View Useful for all xml's, tld's, jsp's etc files with referenced Java types.
Works with run/debug and Ant console too!
Save to file... Most of the Console views, Bytecode Outline View Allows to save the console/view content and quickly reopen it in an editor.
Works with most of the existing consoles!
Format Stack Trace Java Stack Trace Console view Formats the ill-formated stack traces (like from some JUnit test reports).

Edit
    Show Witespace

"Edit" menu, main toolbar Allows to show tabs and spaces colored in the text editor. Has to be enabled once for the desired perspective via Window -> Customize Perspective -> Commands -> Whitespace
File Import / Export
    Working Sets
"File" menu Allows you to store working set definitions to the file and apply them to the another workspace by importing them.
File
    Convert Tabs <-> Spaces
"File" menu Enabled only if more then one file/folder is selected in Navigator or Project Explorer

Convert
    Tabs to Spaces
    Spaces to Tabs

Editors Trailing whitespace will be removed and line delimiters will be fixed automatically (if set in preferences)

Convert
    Chars to Html entities
    Html Entities to Chars

Editors Useful if working in bilingual team to convert é's, ô's, ä's etc between html and other sources ;)
Convert
    Camel <-> Underscores
Editors Auto-convert variable names from/to "camel" notation, like
thisIsMyFieldName <-> this_is_my_field_name
Convert
    Capitalize
Editors Only text selection in editor will be changed
Convert
    Invert Case
Editors Only text selection in editor will be changed
Convert
    To Upper Case
    To Lower Case
Editors Only text selection in editor will be changed
Convert
    To Unicode Notation
    From Unicode Notation
Editors Only text selection in editor will be changed
Convert
    To Base64
    From Base64
Editors Only text selection in editor will be changed
Sort
    Case-Sensitive A-z
    Case-Sensitive z-A
    Case-Insensitive A-Z
    Case-Insensitive Z-A
    Numerically 0-9
    Numerically 9-0
    Line Length Short-Long
    Line Length Long-Short
Editors If nothing is selected, entire editor content will be sorted, otherwise only text selection in editor will be changed
Compare / Replace with
    Clipboard
Editors, Navigator, Project Explorer If some text is selected in editor, then only this selection will be compared, otherwise entire editor
Compare / Replace with
    Workspace File...
Editors, Navigator, Project Explorer If some text is selected in editor, then only this selection will be compared, otherwise entire editor
Compare / Replace with
    External File...
Editors, Navigator, Project Explorer If some text is selected in editor, then only this selection will be compared, otherwise entire editor
Compare / Replace with
    Opened Editor...
Editors, Navigator, Project Explorer If some text is selected in editor, then only this selection will be compared, otherwise entire editor

This programm is free, see copyright

Installation

Please use Eclipse update manager to install this plugin.

Eclipse 3.3 - 3.4:

Go to "Help -> Software Updates -> Find and Install... -> Search for new features to install -> Next -> New Remote Site..."

Eclipse 3.5+:

Go to "Help -> Install new Software... -> Work with:"

and use the http://andrei.gmxhome.de/eclipse/ as url.

Please also read the FAQ!

Manual download

Here

Browse source code

Why AnyEdit

"Open file" acton was inspired by refactoring of one big J2EE project that heavily used "included" JSP files. Some times it was necessary to traverse 5 nested includes to find a field declaration, thus 5 times open package explorer and search for the next file, brrr. With "Open file under cursor" this is a single click action. This works from Eclipse debug/Ant console too - moreover, if line information is included, then the right source line will be selected in editor!

"Open type" acton was inspired by working with web.xml/weblogic.xml/*.tld/*.jsp files. You can now simply change from XML to the Java editor if you want to see the declaring Java class, without typing the Java class name in the "Open type" dialog. This works from the Eclipse Ant/debug console too!

"Convert Spaces/Tabs" action set was inspired by Rahul Kuchhal's whitespace plugin and good old UltraEdit. The main difference is that my plugin doesn't change line ends while performing "spaces" operations. E.g. if you edit a Unix text file on Windows PC, Rahul's plugin automatically convert all line ends into DOS format (from "\n" to "\r\n") and vice versa. The same is for Mac/Unix, Mac/DOS text files too. This is angry for version control systems, diff tools etc. The trailing whitespace and/or tabs<->spaces conversion could be performed automatically on "save" action in nearly all text editors, even in editors which are not directly supported by AnyEdit context menu actions.

And the rest is now just history :o)

This program is free, see copyright.

Editor / Console integration

For almost of Eclipse text editors this is done automatically. It works with default Eclipse Java and Text editors, with Web Tools from IBM, MyEclipse, SolarEclipse and Loboz JSP editors, JavaScript editor form Harish Kataria, EclipseColorer, ColorEditor, PHPEClipse, CFEclipse, CDT editors, EPIC (Perl), Zend PHP, PyDev (Python development environment), TRex TTCN3, Adobe Flex, Aptana Studio and I think with almost anyone text editor too.

Console integration for "Save to file:" Ant, Java run / debug / stack trace, External tools, CVS, CDT make etc.

Please do not hesitate to contact me if your editor/view/console is not supported.

Please also read the FAQ!

Usage

For "Convert Tabs<->Spaces" actions on a single file you can right-click anywhere in current editor and then select preferred action to run. Whole editor buffer will be changed, trailing whitespace will be removed automatically.

For "Convert Tabs<->Spaces" on a number of files, just select these files or directories in Navigator view and use "File->Convert Tabs<->Spaces" window menu. All selected text files and all text files in selected directory hierarchy would be checked out and "Tabs<->Spaces" would be executed on each file. This operation could not be undone without version control system, so be careful by using it. You may exclude files per project/global settings from this operation, using AnyEdit preferences.

For "Convert Chars/Html/Case" actions you must select some text, then right-click on current selection and then select preferred action to run. Only the selected text will be changed.

For "Open" actions place cursor into file/java type string and select preferred action to run. You can also select a part of file/type and then click on "Open" action. In both cases AnyEdit will try to determine right file/type, and if it is found, will open file/type in associated Eclipse editor.

"Convert Tabs<->Spaces" actions uses tab width from AnyEdit Preference page to replace tabs with spaces/vice versa (except Java editor, which formatter preferences could be used instead).

Note: As default, trailing whitespace will be removed automatically on save and while "Convert spaces/tabs" actons, but you can turn this behavoir off in AnyEdit preferences.

"Open File" action uses special characters from AnyEdit Preference page to guess file name/path under cursor. It uses the simply string search for a continuous character sequence with allowed/required in path characters. Found character sequence can be the full file path or only one part of them, therefore plugin will search for this character sequence first relative to current document and if nothing found, in entire project/workspace and then on local file system.

Import/Export working sets wizards allows you to store working set definitions to the file and apply them to the another workspace by importing them. This is especially useful when working on big workspaces containing same set of projects (each workspace represents just different product version or branch). Please first import projects into the workspace, and then working sets, otherwise working sets would be imported but empty.

Note: only working set descriptions would be imported/exported, and not the resources included in the working sets.

Please also read the FAQ, examples, preferences and AnyEdit in action!

Feedback

Please send comments and suggestions to loskutov

Open issues / Report new issues

Vote for AnyEdit Tools at Eclipse Marketplace
or add AnyEdit to your stack at Ohloh

Support development of the plugin:

History

New in version 2.4.11 (Eclipse 3.6-4.4 only) [07.09.2014]

  • New feature (see Issue 92): AnyEdit can now fix line delimiters in text files (either automatically on save or explicitly while performing "Tabs<->Spaces" action). As you may know, Windows uses "CRLF", Linux "LF" and Mac "CR" special characters to indicate "new line" in text files. Unfortunatelly one can easily mess up files if editing them on different platforms and doing copy/paste. This is history now, as you can setup AnyEdit to automatically "fix" line delimiters on save.

    Note: this feature is not enabled by default, because if projects are not properly setup, things will be not better as before.

    Fix delimiters "on save" preferences:

     

    Fix delimiters "on convert" preferences:

     

New in version 2.4.10 (Eclipse 3.6-4.4 only) [13.07.2014]

  • Fix for Issue 98: improved feature (see 95) AnyEdit "Open File under Cursor" action understands now any paths starting with "~" (abbreviation for user home directory on Linux).

    For example the path "~/anyedit/is/cool.txt" can be used to open "/home/andrei/anyedit/is/cool.txt" file in Eclipse.

New in version 2.4.9 (Eclipse 3.6-4.4 only) [07.07.2014]

  • My colleague Holger Meyer crafted the "Format Stack Trace" context menu to the Java Stack Trace Console. This action formats the "one line" or other ill-formated stack traces (like from JUnit test reports) to nice looking stack traces, making so crazy formatted stack traces readable by humans.

    Before:  
    Ask AnyEdit for Help:  
    After:  

New in version 2.4.8 (Eclipse 3.6-4.4 only) [24.06.2014]

  • Improved feature (see Issue 95): AnyEdit "Open File under Cursor" action understands now any paths with any number of environment variables inside.

    For example, any of the paths below can be used to open "/home/andrei/anyedit/is/cool.txt" file in Eclipse:
    $HOME/${anyedit}/is/cool.txt or $(HOME)/$ANYEDIT/is/cool.txt or ${HOME}/$(anyedit)/is/cool.txt

    Requires Java 1.6 and Eclipse 3.6 as minimal target environment.

New in version 2.4.7 (Eclipse 3.6-4.4 only) [22.06.2014]

  • Compatibility fix with Eclipse 3.6 (see Issue 94).

    Anyedit requires now Eclipse 3.6 minimum.

    Anyedit requires now Java 6 minimum.

New in version 2.4.6 (Eclipse 3.7-4.4 only) [08.02.2014]

  • New feature (see Issue 89): AnyEdit "Open File under Cursor" action understands now paths with leading environment variables.

    For example, any of the paths below can be used to open "/home/andrei/anyedit/is/cool.txt" file in Eclipse:
    $HOME/anyedit/is/cool.txt or $(HOME)/anyedit/is/cool.txt or ${HOME}/anyedit/is/cool.txt

New in version 2.4.5 (Eclipse 3.5-4.3 only) [22.12.2013]

  • New feature (see Issue 83): Added "Sort Lines by Line Length" menus to the editors (initial contribution by Duncan Drysdale)

New in version 2.4.4 (Eclipse 3.5-4.3 only) [15.06.2013]

  • Bug fix: Ctrl+S/Ctrl+Shift+S is working again on Eclipse 4.3 (4.2 is too buggy, see issue 73).

New in version 2.4.3 (Eclipse 3.5-4.2 only) [02.11.2012]

  • Feature: added an option to disable trailing whitespace removal for empty lines. The patch was contributed by allati.g (see issue 7).

  • Bug fix: do not offer option to change toolbar on Eclipse 4.x (doesn't work either).

New in version 2.4.2 (Eclipse 3.5-3.8 only) [12.05.2011]

  • Fixed issues 69 and 70.

New in version 2.4.1 (Eclipse 3.5-3.8 only) [04.04.2011]

  • Feature: "File->Count (Selected) Resources" uses better resource counting now: ignore team/derived resources per default.

    AnyEdit count resources
  • New feature (see Issue 66): allow merging of working sets on import

  • Fixed issues 55, 65

New in version 2.4.0 (Eclipse 3.5-3.7 only) [29.01.2011]

  • New feature (see Issue 54): Added different "sort" menus to the editors (contributed by Clemens Fuchslocher)

    AnyEdit editor sort actions
  • Fixed incompatibility with Eclipse 3.7 M5

New in version 2.3.4 (Eclipse 3.5-3.6 only) [19.12.2010]

  • Fix for Issue 52: Always consider to use project specific settings for "Auto-convert"

New in version 2.3.3 (Eclipse 3.5-3.6 only) [29.10.2010]

  • Fix for Issue 48: Self assigned key bindings for compare/replace doesn't work in Eclipse 3.6.

New in version 2.3.2 (Eclipse 3.5-3.6 only) [21.10.2010]

  • New feature: "Compare" editors opened by AnyEdit on Java files have now some Java editor features as described here.

  • Fix for Issue 45: Open type under cursor exception for C++ (if no JDT installed).

  • Fix for Issue 47: Comparing a java file with clipboard opens a compare view in "text compare" or "java source compare" mode depending on where it is launched from.

  • Some smaller code cleanup.

New in version 2.3.1 (Eclipse 3.5-3.6 only) [30.05.2010]

  • New feature: added "File->Count (Selected) Resources" action.

  • New feature: allow to create new line (if missing) on "File->Convert tabs/spaces" action

  • Fixed console "save" dialog on Linux.

New in version 2.3.0 (Eclipse 3.3-3.5 only) [04.10.2009]

  • Note: from this version plugin license has been changed from BSD to the EPL v. 1.0.

  • Feature: Added a configurable line separator for "Open file under cursor" to jump to line. (Based on the patch from Martin Stumpf).

  • Fixed two requests (issue 8 and issue 9) to allow better packaging the plugin into the Fedora Linux distribution.

New in version 2.2.0 (Eclipse 3.3-3.5 only) [26.04.2009]

This is a major version change. Please do not hesitate to report any issues you found.

Main driver is the technical change of the way how AnyEdit contributes to the Eclipse context menu. AnyEdit behavior is changed from dedicated contribution to some well known editors/consoles to the global contribution to all text editors/consoles (with some filtering).

  • Most of existing text editors / consoles are now supported by default (I guess 99%).

  • I can't test ALL previously supported editors, so some of them can be not supported anymore. My guess is that this can happen only for some very poor coded plugins, so just don't care in this case ;-)

  • Added preference to hide "Open Type" menu entry (if you do not use JDT, why you should be bothered by this menu entry?)

  • Bugfix: NoClassDefFoundError on "Open Type" action with Eclipse 3.5


Here you can see older versions history

Some project statistics by Ohloh

Last changed at: 07.09.2014 19:16