org.eclipse.emf.emfstore.internal.client.ui.epackages
Class EPackageRegistryHelper

java.lang.Object
  extended by org.eclipse.emf.emfstore.internal.client.ui.epackages.EPackageRegistryHelper

public final class EPackageRegistryHelper
extends Object

Helper-class to retrieve EPackages from the EPackage-registry.

Author:
Tobias Verhoeven

Method Summary
static Set<org.eclipse.emf.ecore.EPackage> getAvailablePackages(boolean filterKnown)
          Gets all available EPackages from the EPackageRegistry.
static boolean isKnownPackage(String key)
          Checks if the package is a known package which should not be presented to users.
static void registerEPackage(org.eclipse.emf.ecore.EPackage pkg)
          Registers a EPackage in the EPackageRegistry.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAvailablePackages

public static Set<org.eclipse.emf.ecore.EPackage> getAvailablePackages(boolean filterKnown)
Gets all available EPackages from the EPackageRegistry.

Parameters:
filterKnown - weather known packages should be filtered or not.
Returns:
the available packages

isKnownPackage

public static boolean isKnownPackage(String key)
Checks if the package is a known package which should not be presented to users.

Parameters:
key - the key
Returns:
true, if is known package

registerEPackage

public static void registerEPackage(org.eclipse.emf.ecore.EPackage pkg)
Registers a EPackage in the EPackageRegistry.

Parameters:
pkg - the EPackage to be registered


Copyright © 2015. All Rights Reserved.