01: /*******************************************************************************
02: * Copyright (c) 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.pde.internal.ui.commands;
11:
12: import org.eclipse.jface.viewers.ISelectionChangedListener;
13: import org.eclipse.jface.viewers.SelectionChangedEvent;
14: import org.eclipse.swt.widgets.Composite;
15: import org.eclipse.ui.forms.widgets.FormToolkit;
16: import org.eclipse.ui.forms.widgets.ScrolledForm;
17: import org.eclipse.ui.part.ViewPart;
18:
19: public class CommandView extends ViewPart implements
20: 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: }
|