Skip to content

Package: ILinkedWithEditorView

ILinkedWithEditorView

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2011-2013 EclipseSource Muenchen GmbH and others.
3: *
4: * All rights reserved. This program and the accompanying materials
5: * are made available under the terms of the Eclipse Public License 2.0
6: * which accompanies this distribution, and is available at
7: * https://www.eclipse.org/legal/epl-2.0/
8: *
9: * SPDX-License-Identifier: EPL-2.0
10: *
11: * Contributors:
12: * Eugen Neufeld - initial API and implementation
13: *
14: *******************************************************************************/
15: package org.eclipse.emf.ecp.ui.linkedView;
16:
17: import org.eclipse.ui.IEditorPart;
18: import org.eclipse.ui.IViewSite;
19:
20: /**
21: * A View, which can be linked to an editor.
22: *
23: * @author jonas
24: *
25: */
26: public interface ILinkedWithEditorView {
27:
28:         /**
29:          * Called to tell the view, that a certain {@link IEditorPart} has been activated.
30:          *
31:          * @param activatedEditor The activated {@link IEditorPart}
32:          */
33:         void editorActivated(IEditorPart activatedEditor);
34:
35:         /**
36:          * @deprecated Use ViewPart#getViewSite instead
37:          * @return the {@link IViewSite} of the linked part
38:          */
39:         @Deprecated
40:         IViewSite getViewSite();
41: }