use of org.talend.designer.hl7.ui.HL7MultiSchemaUI in project tdi-studio-se by Talend.
the class HL7MetadataEmfToolbarEditor method createMoveDownPushButton.
@Override
protected MoveDownPushButton createMoveDownPushButton() {
return new MoveDownPushButtonForExtendedTable(toolbar, extendedTableViewer) {
@Override
protected void afterCommandExecution(Command executedCommand) {
MetadataEmfTableEditor tableEditorModel = (MetadataEmfTableEditor) getExtendedTableViewer().getExtendedControlModel();
IStructuredSelection selection = (IStructuredSelection) ((HL7MultiSchemaUI) linker.getMainui()).getMetaTableViewer().getSelection();
Object selectedObj = selection.getFirstElement();
if (selectedObj != null) {
String key = ((IModel) selectedObj).getDisplayName();
List<MetadataColumn> metadataColumnList = tableEditorModel.getMetadataColumnList();
Map<String, List<MetadataColumn>> schemaRelationMap = linker.getManager().getSchemaRelationMap();
if (schemaRelationMap != null) {
List<MetadataColumn> schemas = new ArrayList<MetadataColumn>();
schemas.addAll(metadataColumnList);
schemaRelationMap.put(key, schemas);
}
}
linker.getMainui().redrawLinkers();
linker.getBackgroundRefresher().refreshBackground();
}
@Override
public boolean getEnabledState() {
// 13749
return super.getEnabledState() && !isRepository;
}
};
}
use of org.talend.designer.hl7.ui.HL7MultiSchemaUI in project tdi-studio-se by Talend.
the class HL7Main method createUI.
/**
* create UI".
*
* @param parent
* @return
*/
public void createUI(Composite parent) {
if (connector.isHL7Output()) {
generatorUI = new HL7OutputLinkUI(parent, this.hl7Manager);
generatorUI.init();
return;
}
generatorUI = new HL7MultiSchemaUI(parent, hl7Manager);
generatorUI.init();
}
Aggregations