use of eu.esdihumboldt.hale.ui.service.schema.SchemaService in project hale by halestudio.
the class EditMappableTypesWizard method performFinish.
/**
* @see org.eclipse.jface.wizard.Wizard#performFinish()
*/
@Override
public boolean performFinish() {
SchemaService schemaService = PlatformUI.getWorkbench().getService(SchemaService.class);
schemaService.toggleMappable(spaceID, page.getSelectedTypes());
return true;
}
use of eu.esdihumboldt.hale.ui.service.schema.SchemaService in project hale by halestudio.
the class SchemaServiceSource method getCurrentState.
/**
* @see ISourceProvider#getCurrentState()
*/
@Override
public Map<String, Object> getCurrentState() {
SchemaService ss = PlatformUI.getWorkbench().getService(SchemaService.class);
Map<String, Object> result = new HashMap<String, Object>();
result.put(HAS_MAPPABLE_SOURCE_SCHEMA, hasMappableType(ss, SchemaSpaceID.SOURCE));
result.put(HAS_MAPPABLE_TARGET_SCHEMA, hasMappableType(ss, SchemaSpaceID.TARGET));
result.put(HAS_SOURCE_SCHEMA, hasSchema(ss, SchemaSpaceID.SOURCE));
result.put(HAS_TARGET_SCHEMA, hasSchema(ss, SchemaSpaceID.TARGET));
return result;
}
use of eu.esdihumboldt.hale.ui.service.schema.SchemaService in project hale by halestudio.
the class SchemaServiceSource method dispose.
/**
* @see ISourceProvider#dispose()
*/
@Override
public void dispose() {
SchemaService ss = PlatformUI.getWorkbench().getService(SchemaService.class);
ss.removeSchemaServiceListener(schemaListener);
}
use of eu.esdihumboldt.hale.ui.service.schema.SchemaService in project hale by halestudio.
the class TransformDataWizard method performFinish.
/**
* @see org.eclipse.jface.wizard.Wizard#performFinish()
*/
@Override
public boolean performFinish() {
InstanceCollection rawSources = new MultiInstanceCollection(sourceSelectionPage.getSourceInstances());
// Create a copy of the current alignment to be independent and run
// everything in a job.
AlignmentService alignmentService = PlatformUI.getWorkbench().getService(AlignmentService.class);
Alignment alignment = new DefaultAlignment(alignmentService.getAlignment());
// schema service for getting source schema
SchemaService ss = PlatformUI.getWorkbench().getService(SchemaService.class);
Transformation.transform(rawSources, targetSink, sourceSelectionPage.getExportJob(), sourceSelectionPage.getValidationJob(), alignment, ss.getSchemas(SchemaSpaceID.SOURCE), DefaultReportHandler.getInstance(), HaleUI.getServiceProvider(), null);
return true;
}
Aggregations