提交 1056f42e 编写于 作者: S serge-rider

NEw version dialog redesign (release notes field)

上级 b6b2b894
......@@ -102,14 +102,11 @@ public class DBeaverVersionChecker extends AbstractJob {
private void showUpdaterDialog(final VersionDescriptor versionDescriptor)
{
UIUtils.asyncExec(new Runnable() {
@Override
public void run() {
VersionUpdateDialog dialog = new VersionUpdateDialog(
UIUtils.getActiveWorkbenchShell(),
versionDescriptor);
dialog.open();
}
UIUtils.asyncExec(() -> {
VersionUpdateDialog dialog = new VersionUpdateDialog(
UIUtils.getActiveWorkbenchShell(),
versionDescriptor);
dialog.open();
});
}
}
......@@ -22,10 +22,7 @@ import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.*;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.PlatformUI;
import org.jkiss.dbeaver.core.CoreMessages;
......@@ -46,6 +43,11 @@ class VersionUpdateDialog extends Dialog {
this.newVersion = newVersion;
}
@Override
protected boolean isResizable() {
return true;
}
@Override
protected Control createDialogArea(Composite parent)
{
......@@ -81,10 +83,11 @@ class VersionUpdateDialog extends Dialog {
gd.horizontalSpan = 2;
notesLabel.setLayoutData(gd);
final Label notesText = new Label(propGroup, SWT.NONE);
final Text notesText = new Text(propGroup, SWT.READ_ONLY | SWT.WRAP | SWT.V_SCROLL);
notesText.setText(newVersion.getReleaseNotes());
gd = new GridData(GridData.FILL_HORIZONTAL);
gd = new GridData(GridData.FILL_BOTH);
gd.horizontalSpan = 2;
gd.heightHint = notesText.getLineHeight() * 20;
notesText.setLayoutData(gd);
final Label hintLabel = new Label(propGroup, SWT.NONE);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册