提交 ed2039ca 编写于 作者: S Serge Rider

SQL status dialog ui fix

上级 d1af4f41
......@@ -27,6 +27,7 @@ import org.eclipse.swt.widgets.*;
import org.eclipse.ui.ISharedImages;
import org.jkiss.code.NotNull;
import org.jkiss.code.Nullable;
import org.jkiss.dbeaver.core.DBeaverUI;
import org.jkiss.dbeaver.model.DBPEvaluationContext;
import org.jkiss.dbeaver.model.DBPImage;
import org.jkiss.dbeaver.model.DBUtils;
......@@ -80,7 +81,6 @@ public abstract class SQLScriptStatusDialog<T extends DBSObject> extends BaseDia
item.setData(object);
item.setText(0, DBUtils.getObjectFullName(object, DBPEvaluationContext.UI));
}
UIUtils.packColumns(objectTree, false, null);
Composite progressPanel = UIUtils.createPlaceholder(composite, 2, 5);
progressPanel.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
......@@ -107,6 +107,13 @@ public abstract class SQLScriptStatusDialog<T extends DBSObject> extends BaseDia
finishLabel.setLayoutData(gd);
finishLabel.setText("Finished");
DBeaverUI.asyncExec(new Runnable() {
@Override
public void run() {
UIUtils.packColumns(objectTree, false, null);
}
});
return composite;
}
......
......@@ -93,13 +93,13 @@ public class PostgreToolVacuum implements IExternalTool
protected void createControls(Composite parent) {
Group optionsGroup = UIUtils.createControlGroup(parent, "Options", 1, 0, 0);
optionsGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
fullCheck = UIUtils.createCheckbox(optionsGroup, "Full", "Selects \"full\" vacuum, which can reclaim more space, but takes much longer and exclusively locks the table. This method also requires extra disk space, since it writes a new copy of the table and doesn't release the old copy until the operation is complete. Usually this should only be used when a significant amount of space needs to be reclaimed from within the table.", false, 0);
fullCheck = UIUtils.createCheckbox(optionsGroup, "Full", "Selects \"full\" vacuum, which can reclaim more space, but takes much longer and exclusively locks the table.\nThis method also requires extra disk space, since it writes a new copy of the table and doesn't release the old copy until the operation is complete.\nUsually this should only be used when a significant amount of space needs to be reclaimed from within the table.", false, 0);
fullCheck.addSelectionListener(SQL_CHANGE_LISTENER);
freezeCheck = UIUtils.createCheckbox(optionsGroup, "Freeze", "Selects aggressive \"freezing\" of tuples. Specifying FREEZE is equivalent to performing VACUUM with the vacuum_freeze_min_age and vacuum_freeze_table_age parameters set to zero. Aggressive freezing is always performed when the table is rewritten, so this option is redundant when FULL is specified.", false, 0);
freezeCheck = UIUtils.createCheckbox(optionsGroup, "Freeze", "Selects aggressive \"freezing\" of tuples. Specifying FREEZE is equivalent to performing VACUUM with the vacuum_freeze_min_age and vacuum_freeze_table_age parameters set to zero.\nAggressive freezing is always performed when the table is rewritten, so this option is redundant when FULL is specified.", false, 0);
freezeCheck.addSelectionListener(SQL_CHANGE_LISTENER);
analyzeCheck = UIUtils.createCheckbox(optionsGroup, "Analyze", "Updates statistics used by the planner to determine the most efficient way to execute a query.", false, 0);
analyzeCheck.addSelectionListener(SQL_CHANGE_LISTENER);
dpsCheck = UIUtils.createCheckbox(optionsGroup, "Disable page skipping", "Normally, VACUUM will skip pages based on the visibility map. Pages where all tuples are known to be frozen can always be skipped, and those where all tuples are known to be visible to all transactions may be skipped except when performing an aggressive vacuum. Furthermore, except when performing an aggressive vacuum, some pages may be skipped in order to avoid waiting for other sessions to finish using them. This option disables all page-skipping behavior, and is intended to be used only the contents of the visibility map are thought to be suspect, which should happen only if there is a hardware or software issue causing database corruption.", false, 0);
dpsCheck = UIUtils.createCheckbox(optionsGroup, "Disable page skipping", "Normally, VACUUM will skip pages based on the visibility map.\nPages where all tuples are known to be frozen can always be skipped, and those where all tuples are known to be visible to all transactions may be skipped except when performing an aggressive vacuum.\nFurthermore, except when performing an aggressive vacuum, some pages may be skipped in order to avoid waiting for other sessions to finish using them.\nThis option disables all page-skipping behavior, and is intended to be used only the contents of the visibility map are thought to be suspect, which should happen only if there is a hardware or software issue causing database corruption.", false, 0);
dpsCheck.addSelectionListener(SQL_CHANGE_LISTENER);
createObjectsSelector(parent);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册