blob: 4d92ec0ca67c039e83eb45552b7f3d907a856ee3 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2009, 2014 Xored Software Inc 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
*
* Contributors:
* Xored Software Inc - initial API and implementation and/or initial documentation
*******************************************************************************/
package org.eclipse.rcptt.ctx.parameters.ui;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.rcptt.core.scenario.Context;
import org.eclipse.rcptt.internal.ui.Images;
import org.eclipse.rcptt.ui.editors.IQ7Editor;
import org.eclipse.rcptt.ui.editors.IQ7Viewer;
public class ParametersContextViewer implements IQ7Viewer<Context> {
public IQ7Editor<Context> createEditor() {
return new ParametersContextEditor();
}
public ImageDescriptor getImage(Context context) {
return Images.getImageDescriptor(Images.PARAMETERS);
}
public String getLabel(Context context) {
return "Parameters";
}
public boolean isCaptureSupported() {
return false;
}
public boolean isApplySupported() {
return true;
}
}