use of org.talend.core.repository.model.repositoryObject.MetadataColumnRepositoryObject in project tdq-studio-se by Talend.
the class CreateSummaryStatisticsAnalysis method init.
@Override
public void init(ICommonActionExtensionSite site) {
if (site.getViewSite() instanceof ICommonViewerWorkbenchSite) {
StructuredSelection selection = (StructuredSelection) site.getStructuredViewer().getSelection();
Object fe = selection.getFirstElement();
if (fe instanceof IRepositoryNode) {
IRepositoryViewObject object = ((IRepositoryNode) fe).getObject();
if (object instanceof MetadataColumnRepositoryObject) {
MetadataColumnRepositoryObject columnObject = (MetadataColumnRepositoryObject) object;
modelElement = columnObject.getTdColumn();
}
}
}
super.init(site);
}
Aggregations