worksofliam / ILEditor

IBM i development environment (IDE)
https://worksofbarry.com/ileditor/
GNU General Public License v3.0
86 stars 29 forks source link

Before- and After-Hook #106

Open mhjbuit opened 5 years ago

mhjbuit commented 5 years ago

It would be a great enhancement if it's possible to hook up custom software (program call). For instance: Before Opening a member in ILEditor: Allocate member Close member in ILEditor: Deallocate member and if changed restore Sourcechange date based on CMPPFM.

worksofliam commented 5 years ago

Sounds like a cool idea, but you will have to explain what the functionality would really do.

You just want to run commands on the Windows machine or the remote IBM i when something happens?

mhjbuit commented 5 years ago

Hi Liam,

On the IBMi. Plain program call with the same parameters provided in the Compile commands and a extra User-parameter.

Before: Opening source in ILEditor (Lock source if not in use in other change and save old source version)

After: Closing source in ILEditor (Restore Changedate in Source based on CMPPFM with source saved in Before Hook)

Providing a way to integrate ILEditor in home made versioning software the company i work for uses.

And it would be super nice if the opening could be aborted via a returncode.

Keep up the good work,

Martin

worksofliam commented 5 years ago

As a note, the source member is locked when it is opened already (existing functionality).

mhjbuit commented 5 years ago

I know but that’s not good enough.

When a source is modified as part of a change it should remain locked untill the complete change is implemented or canceled.

Van: Liam Barry [mailto:notifications@github.com] Verzonden: maandag 25 februari 2019 15:03 Aan: worksofbarry/ILEditor CC: mhjbuit; Author Onderwerp: Re: [worksofbarry/ILEditor] Before- and After-Hook (#106)

As a note, the source member is locked when it is opened already (existing functionality).

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/worksofbarry/ILEditor/issues/106#issuecomment-467022085 , or mute the thread https://github.com/notifications/unsubscribe-auth/AbzvoteZsANr1eM4nIV07tBuA91hKt5Cks5vQ-0RgaJpZM4a7KaO . https://github.com/notifications/beacon/Abzvop5hmXd6y-Dfhkwq7P2SMvpI0Oj4ks5vQ-0RgaJpZM4a7KaO.gif