thSoft / elysium

LilyPond IDE for Eclipse
http://elysium.thsoft.hu
14 stars 3 forks source link

File refactorings #174

Closed nittka closed 6 years ago

nittka commented 6 years ago

This PR addresses #134.

The current implementation has some small limitations

I guess search paths are usually used for default includes which are more or less static (so refactoring will not really happen). Virtual folders/linked files will probably hardly used. So these limitations are not too problematic.

What do you think of the following enhancements for the refactoring preference page; add preferecence

thSoft commented 6 years ago

Thanks, I ask for your patience, I'm going to review this and your other PRs this Thursday.

nittka commented 6 years ago

I addressed your comments. If possible, I would like to extract the multiple compiled files issue to a separate ticket (as the changes require more than just removing the file extension filtering to midi). Could you also briefly comment on the potential preference page enhancement mentioned in the initial comment? If you think them worth implementing, a separate ticket could be opened.

nittka commented 6 years ago

It seems, I addressed the issues and forgot to push... I am sorry back, that I missed the typo (fixed now) ;-)

thSoft commented 6 years ago

Thanks for performing the requested changes! Regarding your questions:

If possible, I would like to extract the multiple compiled files issue to a separate ticket (as the changes require more than just removing the file extension filtering to midi).

OK.

What do you think of the following enhancements for the refactoring preference page; add preferecence for disabling Refactoring participant completely (default refactoring enabled)

This would be useful.

for disabling automatic include modification (default include modification enabled)

What are the cases where it can corrupt things?

for disabling "delete included file" warning (default warning enabled)

This would be useful (maybe with a "Don't ask this again" in the dialog).

for disabling deleting compiled files when deleting a source (default deleting compiled enabled)

This would also be useful.

nittka commented 6 years ago

I'll open a new ticket for the preference page enhancements. Allowing to disabling the include modifications would be a safety measure. I don't know the problem cases, but if the logic destroys the includes e.g. when moving files, users may not be too happy. The preference allows users to say: "I'll deal with adapting the includes myself."

Multiple compiled files refactoring was dealt with in the last commit of this PR.