Package it.unibz.instasearch.actions

Source Code of it.unibz.instasearch.actions.CheckUpdatesActionDelegate

/*
* Copyright (c) 2009 Andrejs Jermakovics.
*
* 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
*
* Contributors:
*     Andrejs Jermakovics - initial implementation
*/
package it.unibz.instasearch.actions;

import it.unibz.instasearch.jobs.CheckUpdatesJob;

import org.eclipse.core.runtime.jobs.Job;
import org.eclipse.jface.action.IAction;

/**
*
*/
public class CheckUpdatesActionDelegate extends InstaSearchActionDelegate
{
  /** Action ID */
  public static final String ID = CheckUpdatesActionDelegate.class.getName();
 
  @Override
  public void run(IAction action)
  {
    Job checkUpdatesJob = new CheckUpdatesJob();
    checkUpdatesJob.setSystem(false);
    checkUpdatesJob.schedule();
  }   
}
TOP

Related Classes of it.unibz.instasearch.actions.CheckUpdatesActionDelegate

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.