anb0s / EasyShell

EasyShell - This Eclipse plugin allows to open a shell window or file manager from the popup menu in the navigation tree or editor view. Additionally it is possible to run selected file in the shell, copy file or directory path or run user defined external tools. Key shortcuts and multiple selections are also supported!

Home Page:http://anb0s.github.io/EasyShell

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

add better support of editor selection

anb0s opened this issue · comments

In the versions before pre-release v2.3.0-beta.2 the selection in editor was used to create new resource selection that just tried to find files and/or folders from selected text. The text was devided implicitly by line-endings and therefore it was sometimes not the wanted output.

With the new pre-release v2.3.0-beta.2 the text selections are not handled anymore as new resource selection but the text selection is stored in the resource object derived from the editor document resource (IResource or IFile). This was needed to implement #212 and #219 properly.

We need a special handling and options to have the resource selections configurable and explicit to avoid edge cases.

May be related to #166 and other issues that needs selection preprocessing or user dialog for explicit knowledge and decision from user.