1 /*******************************************************************************2 * Copyright (c) 2006 IBM Corporation and others.3 * All rights reserved. This program and the accompanying materials4 * are made available under the terms of the Eclipse Public License v1.05 * which accompanies this distribution, and is available at6 * http://www.eclipse.org/legal/epl-v10.html7 *8 * Contributors:9 * IBM Corporation - initial API and implementation10 *******************************************************************************/11 package org.eclipse.pde.internal.ui.commands;12 13 import org.eclipse.jface.viewers.ISelectionChangedListener;14 import org.eclipse.jface.viewers.SelectionChangedEvent;15 import org.eclipse.swt.widgets.Composite;16 import org.eclipse.ui.forms.widgets.FormToolkit;17 import org.eclipse.ui.forms.widgets.ScrolledForm;18 import org.eclipse.ui.part.ViewPart;19 20 public class CommandView extends ViewPart implements ISelectionChangedListener {21 22 private CommandComposerPart fCSP;23 24 public void createPartControl(Composite parent) {25 fCSP = new CommandComposerPart();26 }27 28 public FormToolkit getToolkit() {29 return fCSP.getToolkit();30 }31 32 public ScrolledForm getForm() {33 return null;34 // return fCSP.getForm();35 }36 37 public TagManager getTagManager() {38 return fCSP.getTagManager();39 }40 41 public void setFocus() {42 fCSP.setFocus();43 }44 45 public void dispose() {46 fCSP.dispose();47 super.dispose();48 }49 50 public void selectionChanged(SelectionChangedEvent event) {51 fCSP.selectionChanged(event);52 }53 54 }55