1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-13 19:25:38 +02:00

API change in AbstractHandler.

This commit is contained in:
Mikhail Khodjaiants 2008-05-06 12:44:44 +00:00
parent 1318ab37dd
commit 2cac1ea941

View file

@ -31,7 +31,7 @@ public class OpenDisassemblyHandler extends AbstractHandler {
* @see org.eclipse.core.commands.AbstractHandler#execute(org.eclipse.core.commands.ExecutionEvent) * @see org.eclipse.core.commands.AbstractHandler#execute(org.eclipse.core.commands.ExecutionEvent)
*/ */
public Object execute( ExecutionEvent event ) throws ExecutionException { public Object execute( ExecutionEvent event ) throws ExecutionException {
ISelection s = HandlerUtil.getActiveMenuSelection( event ); ISelection s = HandlerUtil.getCurrentSelection( event );
if ( s instanceof IStructuredSelection ) { if ( s instanceof IStructuredSelection ) {
Object element = ((IStructuredSelection)s).getFirstElement(); Object element = ((IStructuredSelection)s).getFirstElement();
IWorkbenchSite site = HandlerUtil.getActiveSite( event ); IWorkbenchSite site = HandlerUtil.getActiveSite( event );