01: /*******************************************************************************
02: * Copyright (c) 2005 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.editor.target;
11:
12: import org.eclipse.pde.core.IBaseModel;
13: import org.eclipse.pde.internal.ui.editor.PDEFormEditor;
14: import org.eclipse.pde.internal.ui.editor.context.InputContext;
15: import org.eclipse.pde.internal.ui.editor.context.InputContextManager;
16:
17: public class TargetInputContextManager extends InputContextManager {
18:
19: /**
20: * @param editor
21: */
22: public TargetInputContextManager(PDEFormEditor editor) {
23: super (editor);
24: }
25:
26: /* (non-Javadoc)
27: * @see org.eclipse.pde.internal.ui.editor.context.InputContextManager#getAggregateModel()
28: */
29: public IBaseModel getAggregateModel() {
30: InputContext context = findContext(TargetInputContext.CONTEXT_ID);
31: return (context != null) ? context.getModel() : null;
32: }
33:
34: }
|