This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
there are scenarios when the action in the history do not work properly: - multiselection - some actions should work also if more revisions are selected - e.g. delete from local history - also that the history provider should be able to, depending on the selection, decide if an action is enabled or not - when only 1 file from a multifile node (e.g. form) is selected than the invoked action will be applied for all files from such a node
suggested fix would be to ensure that if a ContextAwareAction is provided via VCSHistoryProvider.HistoryEntry.getActions() it will be initialized with a context containing the nodes from the history tab. Those nodes then would contain the relevant HistoryEntry and files for witch the actions is supposed to be invoked.
Created attachment 117824 [details] changes in versioning spi described suggested behavior in javadoc and tests in versioning and versioning.core spi
please review. thanks.
in case no objection is raised, then will integrate tomorrow
fixed core-main #ebf60d27d589
actually fixed in core-main #1177bad8e9a2
Integrated into 'main-golden', will be available in build *201204140400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/1177bad8e9a2 User: Tomas Stupka <tstupka@netbeans.org> Log: Issue #210691 - Actions in the history tab do not work properly