private IConnectionProfile selectDataSource()
{
ElementListSelectionDialog dialog = new ElementListSelectionDialog(
getViewSite().getShell(), new LabelProvider() {
@Override
public String getText(Object element)
{
IConnectionProfile connectionProfile = (IConnectionProfile) element;
return connectionProfile.getName();
}
});
dialog.setElements(CommonEclipseUtil.getConnectionProfiles());
dialog.setTitle("DataSource Explorer");
dialog.setMessage("Select a datasource");
dialog.setMultipleSelection(false);
if (dialog.open() != Window.OK) {
// this.hideView();
return null;
}
Object[] result = dialog.getResult();
return result.length > 0 ? (IConnectionProfile) result[0] : null;
}
QueryDesignerView.java 文件源码
java
阅读 24
收藏 0
点赞 0
评论 0
项目:wt-studio
作者:
评论列表
文章目录