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: import org.eclipse.core.commands.IHandler;
16:
17: /**
18: * MarkerSelectAllHandler is the handler for the select all action.
19: * @since 3.4
20: *
21: */
22: public class MarkerSelectAllHandler extends MarkerViewHandler implements
23: IHandler {
24:
25: /* (non-Javadoc)
26: * @see org.eclipse.core.commands.IHandler#execute(org.eclipse.core.commands.ExecutionEvent)
27: */
28: public Object execute(ExecutionEvent event) {
29: ExtendedMarkersView view = getView(event);
30: if (view != null)
31: view.selectAll();
32: return this;
33: }
34:
35: }
|