Search in sources :

Example 11 with ProjectService

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;
}
Also used : ProjectService(eu.esdihumboldt.hale.ui.service.project.ProjectService)

Example 12 with ProjectService

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;
}
Also used : ProjectService(eu.esdihumboldt.hale.ui.service.project.ProjectService)

Example 13 with ProjectService

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;
}
Also used : ProjectService(eu.esdihumboldt.hale.ui.service.project.ProjectService)

Example 14 with ProjectService

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;
}
Also used : ProjectService(eu.esdihumboldt.hale.ui.service.project.ProjectService)

Example 15 with ProjectService

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;
}
Also used : ProjectService(eu.esdihumboldt.hale.ui.service.project.ProjectService)

Aggregations

ProjectService (eu.esdihumboldt.hale.ui.service.project.ProjectService)49 IOConfiguration (eu.esdihumboldt.hale.common.core.io.project.model.IOConfiguration)5 Resource (eu.esdihumboldt.hale.common.core.io.project.model.Resource)5 URI (java.net.URI)5 ArrayList (java.util.ArrayList)5 SelectionAdapter (org.eclipse.swt.events.SelectionAdapter)5 SelectionEvent (org.eclipse.swt.events.SelectionEvent)5 Button (org.eclipse.swt.widgets.Button)5 Value (eu.esdihumboldt.hale.common.core.io.Value)4 ResolveCache (eu.esdihumboldt.hale.ui.service.align.resolver.internal.ResolveCache)4 InvocationTargetException (java.lang.reflect.InvocationTargetException)4 IProgressMonitor (org.eclipse.core.runtime.IProgressMonitor)4 IRunnableWithProgress (org.eclipse.jface.operation.IRunnableWithProgress)4 Project (eu.esdihumboldt.hale.common.core.io.project.model.Project)3 SchemaService (eu.esdihumboldt.hale.ui.service.schema.SchemaService)3 List (java.util.List)3 Composite (org.eclipse.swt.widgets.Composite)3 EntityDefinition (eu.esdihumboldt.hale.common.align.model.EntityDefinition)2 PropertyEntityDefinition (eu.esdihumboldt.hale.common.align.model.impl.PropertyEntityDefinition)2 TypeEntityDefinition (eu.esdihumboldt.hale.common.align.model.impl.TypeEntityDefinition)2