use of eu.esdihumboldt.hale.ui.service.project.ProjectService in project hale by halestudio.
the class ToggleInstanceSamplingHandler method execute.
/**
* @see IHandler#execute(ExecutionEvent)
*/
@Override
public Object execute(ExecutionEvent event) throws ExecutionException {
ProjectService ps = PlatformUI.getWorkbench().getService(ProjectService.class);
boolean enabled = ps.getConfigurationService().getBoolean(InstanceViewPreferences.KEY_ENABLED, InstanceViewPreferences.ENABLED_DEFAULT);
ps.getConfigurationService().setBoolean(InstanceViewPreferences.KEY_ENABLED, !enabled);
ps.reloadSourceData();
return null;
}
use of eu.esdihumboldt.hale.ui.service.project.ProjectService in project hale by halestudio.
the class OpenProjectHandler method execute.
/**
* @see IHandler#execute(ExecutionEvent)
*/
@Override
public Object execute(ExecutionEvent event) throws ExecutionException {
ProjectService ps = PlatformUI.getWorkbench().getService(ProjectService.class);
ps.open();
return null;
}
use of eu.esdihumboldt.hale.ui.service.project.ProjectService in project hale by halestudio.
the class SaveAsProjectHandler method execute.
/**
* @see IHandler#execute(ExecutionEvent)
*/
@Override
public Object execute(ExecutionEvent event) throws ExecutionException {
ProjectService ps = PlatformUI.getWorkbench().getService(ProjectService.class);
ps.saveAs();
return null;
}
use of eu.esdihumboldt.hale.ui.service.project.ProjectService in project hale by halestudio.
the class SaveProjectHandler method execute.
/**
* @see IHandler#execute(ExecutionEvent)
*/
@Override
public Object execute(ExecutionEvent event) throws ExecutionException {
ProjectService ps = PlatformUI.getWorkbench().getService(ProjectService.class);
ps.save();
return null;
}
use of eu.esdihumboldt.hale.ui.service.project.ProjectService in project hale by halestudio.
the class UpdateProjectHandler method execute.
/**
* @see IHandler#execute(ExecutionEvent)
*/
@Override
public Object execute(ExecutionEvent event) throws ExecutionException {
ProjectService ps = PlatformUI.getWorkbench().getService(ProjectService.class);
ps.update();
return null;
}
Aggregations