use of org.talend.repository.services.ui.ServiceMetadataDialog in project tesb-studio-se by Talend.
the class ServiceMetadataAction method doRun.
@Override
protected void doRun() {
final IRepositoryNode node = getNode();
final ServiceItem serviceItem = (ServiceItem) node.getObject().getProperty().getItem();
final boolean isLocked = isLocked(node.getObject());
new ServiceMetadataDialog(getWorkbenchWindow(), serviceItem, (ServiceConnection) serviceItem.getConnection()).open();
if (!isLocked) {
// restore lock state.
try {
ProxyRepositoryFactory.getInstance().unlock(node.getObject());
} catch (PersistenceException | LoginException e) {
ExceptionHandler.process(e);
}
}
}
Aggregations