blob: de45b685506041fc5c014e236f003c32026de478 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
/*******************************************************************************
* Copyright (c) 2013, 2015 Ericsson AB and others.
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License v1.0 which
* accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Description:
*
* This class implements the "Add ..." a new Gerrit
* project locations.
*
* Contributors:
* Jacques Bouthillier - Initial implementation of the handler
*
******************************************************************************/
package org.eclipse.mylyn.gerrit.dashboard.ui.internal.commands.all;
import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.mylyn.gerrit.dashboard.ui.views.GerritTableView;
import org.eclipse.mylyn.internal.gerrit.core.GerritQuery;
/**
* @author Jacques Bouthillier
* @version $Revision: 1.0 $
*/
public class AllOpenReviewsHandler extends AbstractHandler {
/**
* Method execute.
*
* @param aEvent
* ExecutionEvent
* @return Object
* @see org.eclipse.core.commands.IHandler#execute(ExecutionEvent)
*/
public Object execute(final ExecutionEvent aEvent) {
GerritTableView reviewTableView = GerritTableView.getActiveView(true);
// see http://gerrit-documentation.googlecode.com/svn/Documentation/2.5.2/user-search.html
//for All > Open--> status:open (or is:open)
reviewTableView.processCommands(GerritQuery.ALL_OPEN_CHANGES);
return null;
}
}
|