blob: 68e3e79b130a6c54028884db20421a4185cef5b1 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2008, 2015 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.swt.tools.builders;
import org.eclipse.jface.action.*;
import org.eclipse.jface.viewers.*;
import org.eclipse.ui.*;
public class Check64EnableAction implements IObjectActionDelegate {
public Check64EnableAction() {
super();
}
@Override
public void setActivePart(IAction action, IWorkbenchPart targetPart) {
action.setChecked(Check64CompilationParticipant.getEnabled());
}
@Override
public void run(IAction action) {
Check64CompilationParticipant.setEnabled(action.isChecked());
}
@Override
public void selectionChanged(IAction action, ISelection selection) {
}
}