Many thanks. I will try. Kind Regards,
MArk > On 19 Sep 2018, at 17:49, Geertjan Wielenga > <[email protected]> wrote: > > I think this indicates that false is returned if more than 1 node is > selected: > > if (activatedNodes == null || activatedNodes.length != 1) { > return false; > } > > On line 239 here: > > https://github.com/markee174/incubator-netbeans/blob/master/localhistory/src/org/netbeans/modules/localhistory/ui/view/ShowHistoryAction.java > > I suppose you could remove 'activatedNodes.length != 1' since then the > false will not be applicable when more than one node is selected. > > Gj > > > On Wed, Sep 19, 2018 at 5:27 PM, mark stephens < > [email protected]> wrote: > >> I am still hitting a roadblock because I do not understand why my actions >> are not called when I select multiple files. Once I have this working I can >> implement multiple history in NetBeans IDE with rollback. >> >> Any suggestions or pointers to resources which might help me to understand >> why NetBeans is not calling actions in ShowHistoryAction? >> >> Kind Regards, >> >> MArk >> >> On 10 Sep 2018, at 19:11, mark stephens <[email protected] >> <mailto:[email protected]>> wrote: >> >> Thanks for the pointers. >> >> I have raised as https://issues.apache.org/jira/browse/NETBEANS-1230 >> >> I have pushed my initial code which allows opening of a window with >> history from multiple files to my fork at https://github.com/markee174/ >> incubator-netbeans >> >> I am now seeking advice on the code so far (I know it can be done more >> elegantly) and how I get my actions to get called when the menu item is >> executed (ie RevertFileAction, RevertFilesAction). >> >> 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
