use of org.talend.core.ui.services.ISVNUiProviderService in project tdi-studio-se by Talend.
the class JobSettingsView method getSelection.
/*
* (non-Javadoc)
*
* @see org.talend.designer.core.ui.views.properties.IJobSettingsView#getSelection()
*/
@Override
public ISelection getSelection() {
ISVNUiProviderService service = null;
if (PluginChecker.isSVNProviderPluginLoaded()) {
service = (ISVNUiProviderService) GlobalServiceRegister.getDefault().getService(ISVNUiProviderService.class);
}
if (currentSelectedTab == null) {
return null;
}
IDynamicProperty dc = currentSelectedTab.getPropertyComposite();
if (dc instanceof ProcessVersionComposite) {
return ((ProcessVersionComposite) dc).getSelection();
} else if (service != null && service.isSVNHistoryComposite(dc)) {
return service.getSVNHistorySelection(dc);
} else if (CorePlugin.getDefault().getDiagramModelService().isInstanceOfBusinessAssignmentComposite(dc)) {
IRepositoryView repositoryView = RepositoryManagerHelper.findRepositoryView();
if (repositoryView != null) {
return repositoryView.getViewer().getSelection();
}
}
return null;
}
Aggregations