Are you sure you want to use the word 'hack' here? I believe you're working on an enhancements. So, start by creating an issue about that (https://issues.apache.org/jira/projects/NETBEANS) describing clearly what it is and why it is that this enhancements should be done.
Then fork https://github.com/apache/incubator-netbeans to your own GitHub repo and start doing your work there and check it in there, i.e., into your fork. When you run into problems or have questions, send an e-mail here, and then point to your fork, to the specific places where you're having a problem, so someone can look at the code. Thanks, Gj On Mon, Sep 10, 2018 at 5:20 PM, mark stephens < [email protected]> wrote: > Hi All, > > I am trying to hack the localHistory to allow it to work with multiple > files. > > The way i have done this so far is to hack the Local History and > Versioning UI modules and trying to avoid rewriting the NetBeans plumbing > (which assumes single file History). > > I have modified ShowHistoryAction so that it allows history selection on > multiple files and then opens a new HistoryTopComponent. For the moment, I > put the Nodes[] into this component so I can access. I keep a copy of the > selected Nodes which I then use to build a combined History list in > HistoryFileView. > > In LocalHistoryProvider, I have my own RevertFile and RevertFiles Actions > but these are never called by the software. My aim is to then add this > functionality, which gives me a much better version of history. > I am not clear how I get the NetBeans system to call my commands and also > appreciate the current solution is a bit hacky. > > I have attached the 2 diffs from the 2 modules. Is there any advice to > help me complete adding this fucntionality into NetBeans? > > Kind Regards, > > MArk > > ==== > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > For further information about the NetBeans mailing lists, visit: > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > > >
