Package com.e1c.g5.dt.applications
Interface IApplicationManager
- 
 public interface IApplicationManagerThe application manager is the core service of the application framework. It allows to get and introspect workspace applications based on the registred application contributions.- Restriction:
- This interface is not intended to be extended by clients.
- Restriction:
- This interface is not intended to be implemented by clients.
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddAppllicationListener(IApplicationListener listener)Adds the application listener to listen to application events.booleancheck(IApplication application, ExecutionContext context, org.eclipse.core.runtime.IProgressMonitor monitor)Checks and returns whether the application is ready to launch e.g.Optional<IApplication>getApplication(org.eclipse.core.resources.IProject project, String id)Returns the project application with the provided id.List<IApplicationArtifact>getApplicationArtifacts(Object object)Returns a list of all found application artifacts for the provided application or application artifact.List<IApplication>getApplications(org.eclipse.core.resources.IProject project)Returns a list of all registered project applications.List<IApplicationType>getApplicationTypes()Returns a list of all registered application types.Optional<IApplication>getDefaultApplication(org.eclipse.core.resources.IProject project)Returns the default registered project application.Optional<org.eclipse.core.resources.IProject>getDefaultProject()Returns the default application owner project if there is any.Optional<IUrlAccess>getDefaultUrlAccess(IApplication application)Returns the default URL access instance for the provided application.LifecycleStategetLifecycleState(ILifecycleAware object)Returns the application lifecycle state for the provided application or lifecycle aware artifact.PublishStategetPublishState(IApplication application)Returns the application publish state for the provided application.List<IUrlAccess>getUrlAccesses(IApplication application)Returns a list of all found URL access instances for the provided application.ExecutionContextlaunch(IApplication application, String launchMode, ExecutionContext context, org.eclipse.core.runtime.IProgressMonitor monitor)Publishes the application with the provided publish kind.Optional<Process>open(IApplication application, ExecutionContext context, org.eclipse.core.runtime.IProgressMonitor monitor)Opens the application and launches application client.PublishStatepublish(IApplication application, PublishKind kind, ExecutionContext context, org.eclipse.core.runtime.IProgressMonitor monitor)Publishes the application with the provided publish kind.voidremoveAppllicationListener(IApplicationListener listener)Removes the application listener.voidsetDefaultApplication(org.eclipse.core.resources.IProject project, IApplication application)Sets the default registered project application.voidsetDefaultUrlAccess(IApplication application, IUrlAccess urlAccess)Sets the default URL access instance for the provided application.
 
- 
- 
- 
Method Detail- 
getApplicationOptional<IApplication> getApplication(org.eclipse.core.resources.IProject project, String id) throws ApplicationException Returns the project application with the provided id.- Parameters:
- project- the project to get application for, cannot be- null
- id- the id of the application, cannot be- null
- Returns:
- the optional found application
- Throws:
- ApplicationException- if method call failed with some reason
 
 - 
getApplicationsList<IApplication> getApplications(org.eclipse.core.resources.IProject project) throws ApplicationException Returns a list of all registered project applications.- Parameters:
- project- the project to get applications for, cannot be- null
- Returns:
- a list of all registered project applications, never null
- Throws:
- ApplicationException- if method call failed with some reason
 
 - 
getDefaultProjectOptional<org.eclipse.core.resources.IProject> getDefaultProject() throws ApplicationException Returns the default application owner project if there is any.- Returns:
- the default application owner project if there is any
- Throws:
- ApplicationException- if method call failed with some reason
 
 - 
getDefaultApplicationOptional<IApplication> getDefaultApplication(org.eclipse.core.resources.IProject project) throws ApplicationException Returns the default registered project application.- Parameters:
- project- the project to get default application for, cannot be- null
- Returns:
- the optional default registered project application
- Throws:
- ApplicationException- if method call failed with some reason
 
 - 
getDefaultUrlAccessOptional<IUrlAccess> getDefaultUrlAccess(IApplication application) throws ApplicationException Returns the default URL access instance for the provided application.- Parameters:
- application- the application, cannot be- null
- Returns:
- the optional default URL access instance for the provided application
- Throws:
- ApplicationException- if method call failed with some reason
 
 - 
getPublishStatePublishState getPublishState(IApplication application) throws ApplicationException Returns the application publish state for the provided application. May be unkown.- Parameters:
- application- the application to get state for, cannot be- null
- Returns:
- the application publish state, never null
- Throws:
- ApplicationException- if method call failed with some reason
 
 - 
getLifecycleStateLifecycleState getLifecycleState(ILifecycleAware object) throws ApplicationException Returns the application lifecycle state for the provided application or lifecycle aware artifact. May be unkown.- Parameters:
- object- the object to get state for, cannot be- null
- Returns:
- the application lifecycle state, never null
- Throws:
- ApplicationException- if method call failed with some reason
 
 - 
getApplicationTypesList<IApplicationType> getApplicationTypes() throws ApplicationException Returns a list of all registered application types.- Returns:
- a list of all registered application types, never null
- Throws:
- ApplicationException- if method call failed with some reason
 
 - 
getApplicationArtifactsList<IApplicationArtifact> getApplicationArtifacts(Object object) throws ApplicationException Returns a list of all found application artifacts for the provided application or application artifact.- Parameters:
- object- the object to get application artifacts for, cannot be- null
- Returns:
- a list of all found application artifacts, never null
- Throws:
- ApplicationException- if method call failed with some reason
 
 - 
getUrlAccessesList<IUrlAccess> getUrlAccesses(IApplication application) throws ApplicationException Returns a list of all found URL access instances for the provided application. May return the application itself if it is an instance ofIUrlAccess.- Parameters:
- object- the object to get URL access instances for, cannot be- null
- Returns:
- a list of all found URL access instances, never null
- Throws:
- ApplicationException- if method call failed with some reason
 
 - 
setDefaultApplicationvoid setDefaultApplication(org.eclipse.core.resources.IProject project, IApplication application) throws ApplicationExceptionSets the default registered project application.- Parameters:
- project- the project to get application for, cannot be- null
- the- default project application to register for the project or- nullto reset
- Throws:
- ApplicationException- if method call failed with some reason
 
 - 
setDefaultUrlAccessvoid setDefaultUrlAccess(IApplication application, IUrlAccess urlAccess) throws ApplicationException Sets the default URL access instance for the provided application.- Parameters:
- application- the application, cannot be- null
- the- default URL access instance to register for the provided application or- nullto reset
- Throws:
- ApplicationException- if method call failed with some reason
 
 - 
checkboolean check(IApplication application, ExecutionContext context, org.eclipse.core.runtime.IProgressMonitor monitor) throws ApplicationException Checks and returns whether the application is ready to launch e.g. is not changed outside of the IDE.- Parameters:
- application- the application to check, cannot be- null
- context- the execution context, cannot be- null
- monitor- the progress monitor to report progress to, cannot be- null
- Returns:
- whether the application is ready to launch
- Throws:
- ApplicationException- if method call failed with some reason
 
 - 
publishPublishState publish(IApplication application, PublishKind kind, ExecutionContext context, org.eclipse.core.runtime.IProgressMonitor monitor) throws ApplicationException Publishes the application with the provided publish kind.- Parameters:
- application- the application to publish, cannot be- null
- kind- the publish kind to use, cannot be- null
- context- the execution context, cannot be- null
- monitor- the progress monitor to report progress to or- nullif report is not desired
- Returns:
- the publication state after execution, never null
- Throws:
- ApplicationException- if method call failed with some reason
 
 - 
launchExecutionContext launch(IApplication application, String launchMode, ExecutionContext context, org.eclipse.core.runtime.IProgressMonitor monitor) throws ApplicationException Publishes the application with the provided publish kind.- Parameters:
- application- the application to publish, cannot be- null
- launchMode- the launch mode to use, cannot be- null
- context- the execution context, cannot be- null
- monitor- the progress monitor to report progress to or- nullif report is not desired
- Returns:
- the execution context after execution, never null
- Throws:
- ApplicationException- if method call failed with some reason
 
 - 
openOptional<Process> open(IApplication application, ExecutionContext context, org.eclipse.core.runtime.IProgressMonitor monitor) throws ApplicationException Opens the application and launches application client. Returns the application client system process.- Parameters:
- application- the application to open, cannot be- null
- context- the execution context, cannot be- null
- monitor- the progress monitor to report progress to, cannot be- null
- Returns:
- the optional application open client system process, may be empty if application is web for example
- Throws:
- ApplicationException- if method call failed with some reason
 
 - 
addAppllicationListenervoid addAppllicationListener(IApplicationListener listener) Adds the application listener to listen to application events.- Parameters:
- listener- the application listener, cannot be- null
 
 - 
removeAppllicationListenervoid removeAppllicationListener(IApplicationListener listener) Removes the application listener.- Parameters:
- listener- the application listener, cannot be- null
 
 
- 
 
-