Class ProfileApplicationManager
- java.lang.Object
-
- org.modelversioning.emfprofile.application.registry.internal.ProfileApplicationManager
-
public class ProfileApplicationManager extends Object
Profile application manager manages profiles' applications of modelled ecore resource.
-
-
Constructor Summary
Constructors Constructor Description ProfileApplicationManager(ResourceSet resourceSet)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createNewProfileApplication(IFile profileApplicationFile, Collection<Profile> profiles)
Creates new profile applicationvoid
dispose()
Collection<ProfileApplicationDecorator>
getProfileApplications()
boolean
hasProfileApplications()
ProfileApplicationDecorator
loadProfileApplication(IFile profileApplicationFile)
Loads an existing profile application.void
removeProfileApplication(ProfileApplicationDecorator profileApplication)
-
-
-
Constructor Detail
-
ProfileApplicationManager
public ProfileApplicationManager(ResourceSet resourceSet)
-
-
Method Detail
-
getProfileApplications
public Collection<ProfileApplicationDecorator> getProfileApplications()
-
hasProfileApplications
public boolean hasProfileApplications()
-
createNewProfileApplication
public void createNewProfileApplication(IFile profileApplicationFile, Collection<Profile> profiles) throws CoreException, IOException
Creates new profile application- Parameters:
profileApplicationFile
-profiles
-- Throws:
CoreException
IOException
-
loadProfileApplication
public ProfileApplicationDecorator loadProfileApplication(IFile profileApplicationFile) throws CoreException, IOException
Loads an existing profile application.- Parameters:
workbenchPart
- to use.profileApplicationFile
- to load.- Returns:
- profile application decorator
- Throws:
CoreException
IOException
-
removeProfileApplication
public void removeProfileApplication(ProfileApplicationDecorator profileApplication)
-
dispose
public void dispose()
-
-