Skip to content

Commit 90be95b

Browse files
Copilotlaeubi
andcommitted
Add cross-references to Eclipse4_Commands.md in FAQ and services documentation
Co-authored-by: laeubi <[email protected]>
1 parent 56d7b3d commit 90be95b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

docs/Eclipse4_RCP_EAS_List_of_All_Provided_Services.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ Eclipse4/RCP/EAS/List of All Provided Services
33

44
This page provides a listing of the services and other data values that can be injected or obtained from a [context](Eclipse4_RCP_Contexts.md).
55

6+
> **For detailed information on using ECommandService and EHandlerService**, see [Eclipse4 Commands](Eclipse4_Commands.md).
7+
68

79
Application Context
810
-------------------

docs/Eclipse4_RCP_FAQ.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,8 @@ This problem usually occurs in testing, where an object is created explictly via
334334
Commands and Handlers
335335
---------------------
336336

337+
> **Need to execute commands programmatically?** See [Eclipse4 Commands](Eclipse4_Commands.md) for detailed instructions on calling commands using ECommandService and EHandlerService in E4 applications.
338+
337339
### Why aren't my handler fields being re-injected?
338340

339341
Handler instances are singleton-ish — that is, only a single instance is created within the Eclipse-4 workbench — and the handler may actually be invoked by different threads in parallel. So the handler instance can’t be re-injected since that may result in field clobbering. Only the method arguments of the @CanExecute and @Execute arguments are injected, since they can't be clobbered with parallel invocations.

0 commit comments

Comments
 (0)