Commit | Line | Data |
---|---|---|
be222f56 | 1 | /******************************************************************************* |
ed902a2b | 2 | * Copyright (c) 2010, 2014 Ericsson |
a0a88f65 | 3 | * |
be222f56 PT |
4 | * All rights reserved. This program and the accompanying materials are |
5 | * made available under the terms of the Eclipse Public License v1.0 which | |
6 | * accompanies this distribution, and is available at | |
7 | * http://www.eclipse.org/legal/epl-v10.html | |
a0a88f65 | 8 | * |
be222f56 PT |
9 | * Contributors: |
10 | * Patrick Tasse - Initial API and implementation | |
11 | *******************************************************************************/ | |
12 | ||
2bdf0193 | 13 | package org.eclipse.tracecompass.internal.tmf.ui.commands; |
be222f56 PT |
14 | |
15 | import org.eclipse.core.commands.AbstractHandler; | |
16 | import org.eclipse.core.commands.ExecutionEvent; | |
17 | import org.eclipse.core.commands.ExecutionException; | |
be222f56 | 18 | import org.eclipse.swt.widgets.Display; |
2bdf0193 | 19 | import org.eclipse.tracecompass.internal.tmf.ui.dialogs.ManageCustomParsersDialog; |
be222f56 | 20 | |
a0a88f65 AM |
21 | /** |
22 | * Command handler for custom text parsers. | |
23 | * | |
24 | * @author Patrick Tassé | |
25 | */ | |
be222f56 PT |
26 | public class ManageCustomParsersCommandHandler extends AbstractHandler { |
27 | ||
28 | @Override | |
d5efe032 | 29 | public Object execute(ExecutionEvent event) throws ExecutionException { |
be222f56 PT |
30 | ManageCustomParsersDialog dialog = new ManageCustomParsersDialog(Display.getDefault().getActiveShell()); |
31 | dialog.open(); | |
32 | return null; | |
33 | } | |
34 | ||
35 | } |