blob: ff9384d6900db171c9de3d7245d89d2e05cb6181 [file] [log] [blame]
/*=============================================================================#
# Copyright (c) 2009, 2017 Stephan Wahlbrink and others.
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License 2.0 which is available at
# https://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0
# which is available at https://www.apache.org/licenses/LICENSE-2.0.
#
# SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
#
# Contributors:
# Stephan Wahlbrink <sw@wahlbrink.eu> - initial API and implementation
#=============================================================================*/
package org.eclipse.statet.r.ui.graphics;
import java.util.Map;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
import org.eclipse.statet.internal.r.ui.RUIPlugin;
import org.eclipse.statet.rj.eclient.core.AbstractRToolCommandHandler;
import org.eclipse.statet.rj.eclient.core.RToolService;
public class RGraphicCommandHandler extends AbstractRToolCommandHandler {
public RGraphicCommandHandler() {
}
@Override
public IStatus execute(final String id, final RToolService r, final Map<String, Object> data, final IProgressMonitor monitor) {
data.put("factory", RUIPlugin.getInstance().getCommonRGraphicFactory()); //$NON-NLS-1$
return Status.OK_STATUS;
}
}