01: package org.eclipse.ui.internal.provisional.views.markers;
02:
03: /*******************************************************************************
04: * Copyright (c) 2007 IBM Corporation and others.
05: * All rights reserved. This program and the accompanying materials
06: * are made available under the terms of the Eclipse Public License v1.0
07: * which accompanies this distribution, and is available at
08: * http://www.eclipse.org/legal/epl-v10.html
09: *
10: * Contributors:
11: * IBM Corporation - initial API and implementation
12: ******************************************************************************/
13:
14: import org.eclipse.core.commands.ExecutionEvent;
15:
16: /**
17: * MarkerGoToHandler is the handler for the go to action.
18: * @since 3.4
19: *
20: */
21: public class MarkerGoToHandler extends MarkerViewHandler {
22:
23: /* (non-Javadoc)
24: * @see org.eclipse.core.commands.IHandler#execute(org.eclipse.core.commands.ExecutionEvent)
25: */
26: public Object execute(ExecutionEvent event) {
27: ExtendedMarkersView view = getView(event);
28: if (view == null)
29: return this;
30: view.openSelectedMarkers();
31: return this;
32: }
33:
34: }
|