/******************************************************************************* * Copyright (c) 2006-2013 The RCP Company 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: * The RCP Company - initial API and implementation *******************************************************************************/ package com.rcpcompany.uibindings.internal.spy; import java.util.Map; import org.eclipse.core.commands.ExecutionEvent; import org.eclipse.swt.SWT; import com.rcpcompany.uibindings.IBinding; import com.rcpcompany.uibindings.IBindingSpySection; import com.rcpcompany.uibindings.utils.IFormCreator; /** * Section for the services of the binding. * * @author Tonny Madsen, The RCP Company */ public class BindingArgumentsSection implements IBindingSpySection { @Override public void build(IFormCreator creator, ExecutionEvent event) { final IBinding b = (IBinding) creator.getObject(); if (!b.hasArguments()) return; final IFormCreator subform = creator.addSection("Arguments"); // TODO Show all arguments for (final Map.Entry<String, Object> e : b.getArguments().entrySet()) { subform.addConstantField(e.getKey() + ":", e.getValue(), SWT.NONE); } } }