blob: 3bc4ae2b5b64079314d1907065c684640447361d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
/**
* Copyright (c) 2011 Mia-Software.
*
* 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:
* Nicolas Guyomar (Mia-Software) - Bug 333652 Extension point offering the possibility to declare an EPackage browser
* Nicolas Bros (Mia-Software) - Bug 335218 - Extension point for registering EObject, EPackage, model editor
*/
package org.eclipse.papyrus.emf.facet.util.emf.core;
import org.eclipse.emf.ecore.EPackage;
/**
* This class is used to register a Browser (typically an Eclipse editor or view), that can be
* opened from a given EPackage. The registration is done through the
* "org.eclipse.papyrus.emf.facet.util.emf.core.modelViewer" extension point.
*/
public interface IEPackageBrowserOpener {
/**
* This method opens the given {@link EPackage} with the browser corresponding to this {@link IEPackageBrowserOpener}.
*
* @param ePackage
* the {@link EPackage} to be opened
*/
public void openEPackage(final EPackage ePackage);
/**
* Return a human readable name for the {@link EPackage} browser.
*
* @return a human readable name for the {@link EPackage} browser
*/
public String getBrowserName();
}
|