Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.ui.service.project.internal
Class ProjectServiceImpl

java.lang.Object
  extended by eu.esdihumboldt.hale.ui.service.project.internal.AbstractProjectService
      extended by eu.esdihumboldt.hale.ui.service.project.internal.ProjectServiceImpl
All Implemented Interfaces:
ProjectService

public class ProjectServiceImpl
extends AbstractProjectService
implements ProjectService

Default implementation of the ProjectService.

Author:
Thorsten Reitz, Simon Templer

Constructor Summary
ProjectServiceImpl()
          Default constructor
 
Method Summary
 void clean()
          Clean the project, reset all services.
 void executeAndRemember(IOConfiguration conf)
          Execute and remember the given I/O configuration.
 de.fhg.igd.osgi.util.configuration.IConfigurationService getConfigurationService()
          Get a project scoped configuration service
 ProjectInfo getProjectInfo()
          Get general information about the current project
 boolean isChanged()
          Get if the project content is changed
 void load(URI uri)
          Load a project from a given file.
 void open()
          Open a project.
 void rememberIO(String actionId, String providerId, IOProvider provider)
          Remember I/O operations after the execution of the corresponding I/O provider for storing it in the project.
 List<IOConfiguration> removeResources(String actionId)
          Remove all resources of the specified actionId from the project.
 void save()
          Save the project.
 void saveAs()
          Save the project to the given file
 void setChanged()
          Inform the service about a change in the project content.
 
Methods inherited from class eu.esdihumboldt.hale.ui.service.project.internal.AbstractProjectService
addListener, notifyAfterLoad, notifyBeforeSave, notifyClean, removeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface eu.esdihumboldt.hale.ui.service.project.ProjectService
addListener, removeListener
 

Constructor Detail

ProjectServiceImpl

public ProjectServiceImpl()
Default constructor

Method Detail

isChanged

public boolean isChanged()
Description copied from interface: ProjectService
Get if the project content is changed

Specified by:
isChanged in interface ProjectService
Returns:
if the project content is changed
See Also:
ProjectService.isChanged()

setChanged

public void setChanged()
Description copied from interface: ProjectService
Inform the service about a change in the project content.

Specified by:
setChanged in interface ProjectService
See Also:
ProjectService.setChanged()

clean

public void clean()
Description copied from interface: ProjectService
Clean the project, reset all services.

Specified by:
clean in interface ProjectService
See Also:
ProjectService.clean()

load

public void load(URI uri)
Description copied from interface: ProjectService
Load a project from a given file.

Specified by:
load in interface ProjectService
Parameters:
uri - the project file
See Also:
ProjectService.load(URI)

save

public void save()
Description copied from interface: ProjectService
Save the project. Calls ProjectService.saveAs() if needed.

Specified by:
save in interface ProjectService
See Also:
ProjectService.save()

getConfigurationService

public de.fhg.igd.osgi.util.configuration.IConfigurationService getConfigurationService()
Description copied from interface: ProjectService
Get a project scoped configuration service

Specified by:
getConfigurationService in interface ProjectService
Returns:
the configuration service
See Also:
ProjectService.getConfigurationService()

saveAs

public void saveAs()
Description copied from interface: ProjectService
Save the project to the given file

Specified by:
saveAs in interface ProjectService
See Also:
ProjectService.saveAs()

open

public void open()
Description copied from interface: ProjectService
Open a project.

Specified by:
open in interface ProjectService
See Also:
ProjectService.open()

getProjectInfo

public ProjectInfo getProjectInfo()
Description copied from interface: ProjectService
Get general information about the current project

Specified by:
getProjectInfo in interface ProjectService
Returns:
the project info
See Also:
ProjectService.getProjectInfo()

rememberIO

public void rememberIO(String actionId,
                       String providerId,
                       IOProvider provider)
Description copied from interface: ProjectService
Remember I/O operations after the execution of the corresponding I/O provider for storing it in the project.

Specified by:
rememberIO in interface ProjectService
Parameters:
actionId - the I/O action identifier
providerId - the I/O provider identifier
provider - the I/O provider instance used for the I/O operation
See Also:
ProjectService.rememberIO(String, String, IOProvider)

removeResources

public List<IOConfiguration> removeResources(String actionId)
Description copied from interface: ProjectService
Remove all resources of the specified actionId from the project.

Specified by:
removeResources in interface ProjectService
Parameters:
actionId - the I/O action identifier
Returns:
a list of removed io configurations
See Also:
ProjectService.removeResources(java.lang.String)

executeAndRemember

public void executeAndRemember(IOConfiguration conf)
Description copied from interface: ProjectService
Execute and remember the given I/O configuration.

Specified by:
executeAndRemember in interface ProjectService
Parameters:
conf - the I/O configuration
See Also:
ProjectService.executeAndRemember(eu.esdihumboldt.hale.common.core.io.project.model.IOConfiguration)

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d