~ubuntu-branches/ubuntu/trusty/eclipse-linuxtools/trusty

« back to all changes in this revision

Viewing changes to oprofile/org.eclipse.linuxtools.oprofile.ui/src/org/eclipse/linuxtools/internal/oprofile/ui/view/OprofileViewRefreshAction.java

  • Committer: Package Import Robot
  • Author(s): Jakub Adam
  • Date: 2012-06-29 12:07:30 UTC
  • Revision ID: package-import@ubuntu.com-20120629120730-bfri1xys1i71dpn6
Tags: upstream-1.0.0
ImportĀ upstreamĀ versionĀ 1.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*******************************************************************************
 
2
 * Copyright (c) 2008 Red Hat, Inc.
 
3
 * All rights reserved. This program and the accompanying materials
 
4
 * are made available under the terms of the Eclipse Public License v1.0
 
5
 * which accompanies this distribution, and is available at
 
6
 * http://www.eclipse.org/legal/epl-v10.html
 
7
 *
 
8
 * Contributors:
 
9
 *    Kent Sebastian <ksebasti@redhat.com> - initial API and implementation 
 
10
 *******************************************************************************/ 
 
11
package org.eclipse.linuxtools.internal.oprofile.ui.view;
 
12
 
 
13
import org.eclipse.jface.action.Action;
 
14
import org.eclipse.linuxtools.internal.oprofile.ui.OprofileUiMessages;
 
15
import org.eclipse.linuxtools.internal.oprofile.ui.OprofileUiPlugin;
 
16
 
 
17
/**
 
18
 * Refresh menu item. 
 
19
 */
 
20
public class OprofileViewRefreshAction extends Action {
 
21
        public OprofileViewRefreshAction() {
 
22
                super(OprofileUiMessages.getString("view.actions.refresh.label")); //$NON-NLS-1$
 
23
        }
 
24
        
 
25
        @Override
 
26
        public void run() {
 
27
                OprofileUiPlugin.getDefault().getOprofileView().refreshView();
 
28
        }
 
29
}