Community
Participate
Working Groups
There's an ISources.ACTIVE_EDITOR_INPUT_NAME but no convenience method for retrieving them. You are forced to use getVariable(ExecutionEvent, String) and getVariableChecked(ExecutionEvent, String) instead.
I'm just going to add these two methods if you don't mind, Paul.
Go ahead
Created attachment 182663 [details] HandlerUtil patch v1
(In reply to comment #3) > Created an attachment (id=182663) [details] > HandlerUtil patch v1 APIs added to CVS HEAD.
For the record, I requested this API while reviewing some EGit code that was calling HandlerUtil's getVariable(ExecutionEvent, String) manually. See lines 263-264 and lines 289-290: http://egit.eclipse.org/w/?p=egit.git;a=blob;f=org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/actions/RepositoryActionHandler.java;h=933eb4d50bd3bbf9731a2bf939da12474906cf86;hb=HEAD
Verified by source code inspection with I20101206-1800 on Windows XP.