Search in sources :

Example 86 with DBPPreferenceStore

use of org.jkiss.dbeaver.model.preferences.DBPPreferenceStore in project dbeaver by dbeaver.

the class DatabaseTasksTree method loadViewConfig.

public void loadViewConfig() {
    DBPPreferenceStore preferenceStore = DBWorkbench.getPlatform().getPreferenceStore();
    groupByProject = preferenceStore.getBoolean("dbeaver.tasks.view.groupByProject");
    groupByCategory = preferenceStore.getBoolean("dbeaver.tasks.view.groupByCategory");
    groupByType = preferenceStore.getBoolean("dbeaver.tasks.view.groupByType");
}
Also used : DBPPreferenceStore(org.jkiss.dbeaver.model.preferences.DBPPreferenceStore)

Example 87 with DBPPreferenceStore

use of org.jkiss.dbeaver.model.preferences.DBPPreferenceStore in project dbeaver by dbeaver.

the class DatabaseTasksTree method saveViewConfig.

public void saveViewConfig() {
    DBPPreferenceStore preferenceStore = DBWorkbench.getPlatform().getPreferenceStore();
    preferenceStore.setValue("dbeaver.tasks.view.groupByProject", groupByProject);
    preferenceStore.setValue("dbeaver.tasks.view.groupByCategory", groupByCategory);
    preferenceStore.setValue("dbeaver.tasks.view.groupByType", groupByType);
    try {
        preferenceStore.save();
    } catch (IOException e) {
        log.debug(e);
    }
}
Also used : IOException(java.io.IOException) DBPPreferenceStore(org.jkiss.dbeaver.model.preferences.DBPPreferenceStore)

Example 88 with DBPPreferenceStore

use of org.jkiss.dbeaver.model.preferences.DBPPreferenceStore in project dbeaver by dbeaver.

the class DiagramToggleGridAction method run.

@Override
public void run() {
    final DBPPreferenceStore store = ERDUIActivator.getDefault().getPreferences();
    final boolean gridEnabled = store.getBoolean(ERDUIConstants.PREF_GRID_ENABLED);
    store.setValue(ERDUIConstants.PREF_GRID_ENABLED, !gridEnabled);
    PrefUtils.savePreferenceStore(store);
}
Also used : DBPPreferenceStore(org.jkiss.dbeaver.model.preferences.DBPPreferenceStore)

Example 89 with DBPPreferenceStore

use of org.jkiss.dbeaver.model.preferences.DBPPreferenceStore in project dbeaver by dbeaver.

the class ResultSetHandlerOpenWith method openResultsWith.

private static void openResultsWith(IResultSetController resultSet, DataTransferProcessorDescriptor processor) {
    ResultSetDataContainerOptions options = new ResultSetDataContainerOptions();
    IResultSetSelection rsSelection = resultSet.getSelection();
    List<ResultSetRow> rsSelectedRows = rsSelection.getSelectedRows();
    List<DBDAttributeBinding> rsSelectedAttributes = rsSelection.getSelectedAttributes();
    if (rsSelectedRows.size() > 1 || rsSelectedAttributes.size() > 1) {
        List<Long> selectedRows = new ArrayList<>();
        for (ResultSetRow selectedRow : rsSelectedRows) {
            selectedRows.add((long) selectedRow.getRowNumber());
        }
        List<String> selectedAttributes = new ArrayList<>();
        for (DBDAttributeBinding attributeBinding : rsSelectedAttributes) {
            selectedAttributes.add(attributeBinding.getName());
        }
        options.setSelectedRows(selectedRows);
        options.setSelectedColumns(selectedAttributes);
    }
    ResultSetDataContainer dataContainer = new ResultSetDataContainer(resultSet, options);
    if (dataContainer.getDataSource() == null) {
        DBWorkbench.getPlatformUI().showError("Open " + processor.getAppName(), ModelMessages.error_not_connected_to_database);
        return;
    }
    DBPPreferenceStore preferenceStore = DBWorkbench.getPlatform().getPreferenceStore();
    String prevActiveApp = preferenceStore.getString(PARAM_ACTIVE_APP);
    if (!CommonUtils.equalObjects(prevActiveApp, processor.getFullId())) {
    // preferenceStore.setValue(PARAM_ACTIVE_APP, processor.getFullId());
    // resultSet.updateEditControls();
    // resultSet.getControl().layout(true);
    }
    AbstractJob exportJob = new AbstractJob("Open " + processor.getAppName()) {

        {
            setUser(true);
            setSystem(false);
        }

        @Override
        protected IStatus run(DBRProgressMonitor monitor) {
            try {
                File tempDir = DBWorkbench.getPlatform().getTempFolder(monitor, "data-files");
                File tempFile = new File(tempDir, new SimpleDateFormat("yyyyMMdd-HHmmss").format(System.currentTimeMillis()) + "." + processor.getAppFileExtension());
                tempFile.deleteOnExit();
                IDataTransferProcessor processorInstance = processor.getInstance();
                if (!(processorInstance instanceof IStreamDataExporter)) {
                    return Status.CANCEL_STATUS;
                }
                IStreamDataExporter exporter = (IStreamDataExporter) processorInstance;
                StreamTransferConsumer consumer = new StreamTransferConsumer();
                StreamConsumerSettings settings = new StreamConsumerSettings();
                settings.setOutputEncodingBOM(false);
                settings.setOpenFolderOnFinish(false);
                settings.setOutputFolder(tempDir.getAbsolutePath());
                settings.setOutputFilePattern(tempFile.getName());
                Map<String, Object> properties = new HashMap<>();
                // Default values from wizard
                IDialogSettings dtSettings = DataTransferWizard.getWizardDialogSettings();
                IDialogSettings procListSection = dtSettings.getSection("processors");
                IDialogSettings procSettings = null;
                if (procListSection != null) {
                    procSettings = procListSection.getSection("stream_consumer:" + processor.getId());
                }
                for (DBPPropertyDescriptor prop : processor.getProperties()) {
                    Object defValue = procSettings == null ? null : procSettings.get(CommonUtils.toString(prop.getId()));
                    properties.put(prop.getId(), defValue != null ? defValue : prop.getDefaultValue());
                }
                // Remove extension property (we specify file name directly)
                properties.remove(StreamConsumerSettings.PROP_FILE_EXTENSION);
                consumer.initTransfer(dataContainer, settings, new IDataTransferConsumer.TransferParameters(processor.isBinaryFormat(), processor.isHTMLFormat()), exporter, properties);
                DBDDataFilter dataFilter = resultSet.getModel().getDataFilter();
                DatabaseTransferProducer producer = new DatabaseTransferProducer(dataContainer, dataFilter);
                DatabaseProducerSettings producerSettings = new DatabaseProducerSettings();
                producerSettings.setExtractType(DatabaseProducerSettings.ExtractType.SINGLE_QUERY);
                producerSettings.setQueryRowCount(false);
                // disable OpenNewconnection by default (#6432)
                producerSettings.setOpenNewConnections(false);
                producerSettings.setSelectedRowsOnly(!CommonUtils.isEmpty(options.getSelectedRows()));
                producerSettings.setSelectedColumnsOnly(!CommonUtils.isEmpty(options.getSelectedColumns()));
                producer.transferData(monitor, consumer, null, producerSettings, null);
                consumer.finishTransfer(monitor, false);
                UIUtils.asyncExec(() -> {
                    if (!UIUtils.launchProgram(tempFile.getAbsolutePath())) {
                        DBWorkbench.getPlatformUI().showError("Open " + processor.getAppName(), "Can't open " + processor.getAppFileExtension() + " file '" + tempFile.getAbsolutePath() + "'");
                    }
                });
            } catch (Exception e) {
                DBWorkbench.getPlatformUI().showError("Error opening in " + processor.getAppName(), null, e);
            }
            return Status.OK_STATUS;
        }
    };
    exportJob.schedule();
}
Also used : DBDAttributeBinding(org.jkiss.dbeaver.model.data.DBDAttributeBinding) StreamConsumerSettings(org.jkiss.dbeaver.tools.transfer.stream.StreamConsumerSettings) DBDDataFilter(org.jkiss.dbeaver.model.data.DBDDataFilter) StreamTransferConsumer(org.jkiss.dbeaver.tools.transfer.stream.StreamTransferConsumer) IDataTransferConsumer(org.jkiss.dbeaver.tools.transfer.IDataTransferConsumer) DBPPreferenceStore(org.jkiss.dbeaver.model.preferences.DBPPreferenceStore) IDataTransferProcessor(org.jkiss.dbeaver.tools.transfer.IDataTransferProcessor) ExecutionException(org.eclipse.core.commands.ExecutionException) DBPPropertyDescriptor(org.jkiss.dbeaver.model.preferences.DBPPropertyDescriptor) AbstractJob(org.jkiss.dbeaver.model.runtime.AbstractJob) IDialogSettings(org.eclipse.jface.dialogs.IDialogSettings) DatabaseTransferProducer(org.jkiss.dbeaver.tools.transfer.database.DatabaseTransferProducer) DatabaseProducerSettings(org.jkiss.dbeaver.tools.transfer.database.DatabaseProducerSettings) IStreamDataExporter(org.jkiss.dbeaver.tools.transfer.stream.IStreamDataExporter) DBRProgressMonitor(org.jkiss.dbeaver.model.runtime.DBRProgressMonitor) File(java.io.File) SimpleDateFormat(java.text.SimpleDateFormat)

Example 90 with DBPPreferenceStore

use of org.jkiss.dbeaver.model.preferences.DBPPreferenceStore in project dbeaver by dbeaver.

the class ResultSetViewer method createStatusBar.

private void createStatusBar() {
    Composite statusComposite = UIUtils.createPlaceholder(viewerPanel, 3);
    statusComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    statusBar = new Composite(statusComposite, SWT.NONE);
    statusBar.setBackgroundMode(SWT.INHERIT_FORCE);
    statusBar.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    CSSUtils.setCSSClass(statusBar, DBStyles.COLORED_BY_CONNECTION_TYPE);
    RowLayout toolbarsLayout = new RowLayout(SWT.HORIZONTAL);
    toolbarsLayout.marginTop = 0;
    toolbarsLayout.marginBottom = 0;
    toolbarsLayout.center = true;
    toolbarsLayout.wrap = true;
    toolbarsLayout.pack = true;
    // toolbarsLayout.fill = true;
    statusBar.setLayout(toolbarsLayout);
    {
        ToolBarManager editToolBarManager = new ToolBarManager(SWT.FLAT | SWT.HORIZONTAL | SWT.RIGHT);
        // handle own commands
        editToolBarManager.add(new Separator());
        editToolBarManager.add(ActionUtils.makeCommandContribution(site, ResultSetHandlerMain.CMD_APPLY_CHANGES, "Save", null, null, true));
        editToolBarManager.add(ActionUtils.makeCommandContribution(site, ResultSetHandlerMain.CMD_REJECT_CHANGES, "Cancel", null, null, true));
        editToolBarManager.add(ActionUtils.makeCommandContribution(site, ResultSetHandlerMain.CMD_GENERATE_SCRIPT, "Script", null, null, true));
        editToolBarManager.add(new Separator());
        editToolBarManager.add(ActionUtils.makeCommandContribution(site, ResultSetHandlerMain.CMD_ROW_EDIT));
        editToolBarManager.add(ActionUtils.makeCommandContribution(site, ResultSetHandlerMain.CMD_ROW_ADD));
        editToolBarManager.add(ActionUtils.makeCommandContribution(site, ResultSetHandlerMain.CMD_ROW_COPY));
        editToolBarManager.add(ActionUtils.makeCommandContribution(site, ResultSetHandlerMain.CMD_ROW_DELETE));
        ToolBar editorToolBar = editToolBarManager.createControl(statusBar);
        CSSUtils.setCSSClass(editorToolBar, DBStyles.COLORED_BY_CONNECTION_TYPE);
        toolbarList.add(editToolBarManager);
    }
    {
        ToolBarManager navToolBarManager = new ToolBarManager(SWT.FLAT | SWT.HORIZONTAL | SWT.RIGHT);
        navToolBarManager.add(new ToolbarSeparatorContribution(true));
        navToolBarManager.add(ActionUtils.makeCommandContribution(site, ResultSetHandlerMain.CMD_ROW_FIRST));
        navToolBarManager.add(ActionUtils.makeCommandContribution(site, ResultSetHandlerMain.CMD_ROW_PREVIOUS));
        navToolBarManager.add(ActionUtils.makeCommandContribution(site, ResultSetHandlerMain.CMD_ROW_NEXT));
        navToolBarManager.add(ActionUtils.makeCommandContribution(site, ResultSetHandlerMain.CMD_ROW_LAST));
        navToolBarManager.add(new Separator());
        navToolBarManager.add(ActionUtils.makeCommandContribution(site, ResultSetHandlerMain.CMD_FETCH_PAGE));
        navToolBarManager.add(ActionUtils.makeCommandContribution(site, ResultSetHandlerMain.CMD_FETCH_ALL));
        navToolBarManager.add(new Separator(TOOLBAR_GROUP_NAVIGATION));
        ToolBar navToolBar = navToolBarManager.createControl(statusBar);
        CSSUtils.setCSSClass(navToolBar, DBStyles.COLORED_BY_CONNECTION_TYPE);
        toolbarList.add(navToolBarManager);
    }
    {
        ToolBarManager configToolBarManager = new ToolBarManager(SWT.FLAT | SWT.HORIZONTAL | SWT.RIGHT);
        configToolBarManager.add(new ToolbarSeparatorContribution(true));
        /*
            if (supportsPanels()) {
                CommandContributionItemParameter ciParam = new CommandContributionItemParameter(
                    site,
                    "org.jkiss.dbeaver.core.resultset.panels",
                    ResultSetHandlerMain.CMD_TOGGLE_PANELS,
                    CommandContributionItem.STYLE_PULLDOWN);
                ciParam.label = ResultSetMessages.controls_resultset_config_panels;
                ciParam.mode = CommandContributionItem.MODE_FORCE_TEXT;
                configToolBarManager.add(new CommandContributionItem(ciParam));
            }
            configToolBarManager.add(new ToolbarSeparatorContribution(true));
*/
        ToolBar configToolBar = configToolBarManager.createControl(statusBar);
        CSSUtils.setCSSClass(configToolBar, DBStyles.COLORED_BY_CONNECTION_TYPE);
        toolbarList.add(configToolBarManager);
    }
    {
        ToolBarManager addToolbBarManagerar = new ToolBarManager(SWT.FLAT | SWT.HORIZONTAL | SWT.RIGHT);
        addToolbBarManagerar.add(ActionUtils.makeCommandContribution(site, ResultSetHandlerMain.CMD_EXPORT));
        addToolbBarManagerar.add(new GroupMarker(TOOLBAR_GROUP_PRESENTATIONS));
        addToolbBarManagerar.add(new Separator(TOOLBAR_GROUP_ADDITIONS));
        final IMenuService menuService = getSite().getService(IMenuService.class);
        if (menuService != null) {
            menuService.populateContributionManager(addToolbBarManagerar, TOOLBAR_CONTRIBUTION_ID);
        }
        ToolBar addToolBar = addToolbBarManagerar.createControl(statusBar);
        CSSUtils.setCSSClass(addToolBar, DBStyles.COLORED_BY_CONNECTION_TYPE);
        toolbarList.add(addToolbBarManagerar);
    }
    {
        // Config toolbar
        ToolBarManager configToolBarManager = new ToolBarManager(SWT.FLAT | SWT.HORIZONTAL | SWT.RIGHT);
        configToolBarManager.add(new ToolbarSeparatorContribution(true));
        configToolBarManager.add(new ConfigAction());
        configToolBarManager.update(true);
        ToolBar configToolBar = configToolBarManager.createControl(statusBar);
        CSSUtils.setCSSClass(configToolBar, DBStyles.COLORED_BY_CONNECTION_TYPE);
        toolbarList.add(configToolBarManager);
    }
    {
        final int fontHeight = UIUtils.getFontHeight(statusBar);
        resultSetSize = new Text(statusBar, SWT.BORDER);
        resultSetSize.setLayoutData(new RowData(5 * fontHeight, SWT.DEFAULT));
        resultSetSize.setBackground(UIStyles.getDefaultTextBackground());
        resultSetSize.setToolTipText(DataEditorsMessages.resultset_segment_size);
        resultSetSize.addFocusListener(new FocusAdapter() {

            @Override
            public void focusLost(FocusEvent e) {
                String realValue = String.valueOf(getSegmentMaxRows());
                if (!realValue.equals(resultSetSize.getText())) {
                    resultSetSize.setText(realValue);
                }
            }
        });
        resultSetSize.addModifyListener(e -> {
            DBSDataContainer dataContainer = getDataContainer();
            int fetchSize = CommonUtils.toInt(resultSetSize.getText());
            if (fetchSize > 0 && fetchSize < ResultSetPreferences.MIN_SEGMENT_SIZE) {
                fetchSize = ResultSetPreferences.MIN_SEGMENT_SIZE;
            }
            if (dataContainer != null && dataContainer.getDataSource() != null) {
                DBPPreferenceStore store = dataContainer.getDataSource().getContainer().getPreferenceStore();
                int oldFetchSize = store.getInt(ModelPreferences.RESULT_SET_MAX_ROWS);
                if (oldFetchSize != fetchSize) {
                    store.setValue(ModelPreferences.RESULT_SET_MAX_ROWS, fetchSize);
                    PrefUtils.savePreferenceStore(store);
                }
            }
        });
        UIUtils.addDefaultEditActionsSupport(site, resultSetSize);
        rowCountLabel = new ActiveStatusMessage(statusBar, DBeaverIcons.getImage(UIIcon.RS_REFRESH), ResultSetMessages.controls_resultset_viewer_calculate_row_count, this) {

            @Override
            protected boolean isActionEnabled() {
                return hasData();
            }

            @Override
            protected ILoadService<String> createLoadService() {
                return new DatabaseLoadService<String>("Load row count", getExecutionContext()) {

                    @Override
                    public String evaluate(DBRProgressMonitor monitor) throws InvocationTargetException {
                        try {
                            long rowCount = readRowCount(monitor);
                            return ROW_COUNT_FORMAT.format(rowCount);
                        } catch (DBException e) {
                            log.error(e);
                            throw new InvocationTargetException(e);
                        }
                    }
                };
            }
        };
        // rowCountLabel.setLayoutData();
        CSSUtils.setCSSClass(rowCountLabel, DBStyles.COLORED_BY_CONNECTION_TYPE);
        rowCountLabel.setMessage("Row Count");
        rowCountLabel.setToolTipText("Calculates total row count in the current dataset");
        UIUtils.createToolBarSeparator(statusBar, SWT.VERTICAL);
        selectionStatLabel = new Text(statusBar, SWT.READ_ONLY);
        selectionStatLabel.setToolTipText("Selected rows/columns/cells");
        CSSUtils.setCSSClass(selectionStatLabel, DBStyles.COLORED_BY_CONNECTION_TYPE);
        Label filler = new Label(statusComposite, SWT.NONE);
        filler.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
        statusLabel = new StatusLabel(statusComposite, SWT.NONE, this);
        GridData gd = new GridData(GridData.VERTICAL_ALIGN_BEGINNING | GridData.HORIZONTAL_ALIGN_END);
        gd.widthHint = 30 * fontHeight;
        statusLabel.setLayoutData(gd);
        CSSUtils.setCSSClass(statusLabel, DBStyles.COLORED_BY_CONNECTION_TYPE);
        statusBar.addListener(SWT.Resize, event -> {
        });
    }
}
Also used : DatabaseLoadService(org.jkiss.dbeaver.model.runtime.load.DatabaseLoadService) SQLQueryContainer(org.jkiss.dbeaver.model.sql.SQLQueryContainer) org.eclipse.jface.action(org.eclipse.jface.action) CompoundContributionItem(org.eclipse.ui.actions.CompoundContributionItem) org.jkiss.dbeaver.ui(org.jkiss.dbeaver.ui) IMenuService(org.eclipse.ui.menus.IMenuService) org.jkiss.dbeaver.model.virtual(org.jkiss.dbeaver.model.virtual) CommandContributionItemParameter(org.eclipse.ui.menus.CommandContributionItemParameter) NavigatorCommands(org.jkiss.dbeaver.ui.navigator.NavigatorCommands) IDialogConstants(org.eclipse.jface.dialogs.IDialogConstants) IDialogSettings(org.eclipse.jface.dialogs.IDialogSettings) GC(org.eclipse.swt.graphics.GC) Point(org.eclipse.swt.graphics.Point) DBSQLException(org.jkiss.dbeaver.model.sql.DBSQLException) ToolbarSeparatorContribution(org.jkiss.dbeaver.ui.controls.ToolbarSeparatorContribution) PrefPageResultSetMain(org.jkiss.dbeaver.ui.editors.data.preferences.PrefPageResultSetMain) ModelMessages(org.jkiss.dbeaver.model.messages.ModelMessages) IStatus(org.eclipse.core.runtime.IStatus) org.eclipse.swt.custom(org.eclipse.swt.custom) ITextEditorActionDefinitionIds(org.eclipse.ui.texteditor.ITextEditorActionDefinitionIds) AbstractExecutionSource(org.jkiss.dbeaver.model.impl.AbstractExecutionSource) DBPProject(org.jkiss.dbeaver.model.app.DBPProject) SQLScriptElement(org.jkiss.dbeaver.model.sql.SQLScriptElement) IAdaptable(org.eclipse.core.runtime.IAdaptable) DBPPreferenceListener(org.jkiss.dbeaver.model.preferences.DBPPreferenceListener) ILoadService(org.jkiss.dbeaver.model.runtime.load.ILoadService) GeneralUtils(org.jkiss.dbeaver.utils.GeneralUtils) CommonUtils(org.jkiss.utils.CommonUtils) org.eclipse.swt.layout(org.eclipse.swt.layout) NLS(org.eclipse.osgi.util.NLS) Status(org.eclipse.core.runtime.Status) IFindReplaceTarget(org.eclipse.jface.text.IFindReplaceTarget) IThemeManager(org.eclipse.ui.themes.IThemeManager) org.eclipse.jface.viewers(org.eclipse.jface.viewers) DBStyles(org.jkiss.dbeaver.ui.css.DBStyles) IProgressMonitor(org.eclipse.core.runtime.IProgressMonitor) InvocationTargetException(java.lang.reflect.InvocationTargetException) StatResultSet(org.jkiss.dbeaver.model.impl.local.StatResultSet) List(java.util.List) EmptyPresentation(org.jkiss.dbeaver.ui.controls.resultset.view.EmptyPresentation) RuntimeUtils(org.jkiss.dbeaver.utils.RuntimeUtils) org.jkiss.dbeaver.ui.controls.resultset.virtual(org.jkiss.dbeaver.ui.controls.resultset.virtual) DBException(org.jkiss.dbeaver.DBException) AutoRefreshControl(org.jkiss.dbeaver.ui.controls.autorefresh.AutoRefreshControl) DataEditorsMessages(org.jkiss.dbeaver.ui.editors.data.internal.DataEditorsMessages) SWT(org.eclipse.swt.SWT) ResetRowColorAction(org.jkiss.dbeaver.ui.controls.resultset.colors.ResetRowColorAction) SetRowColorAction(org.jkiss.dbeaver.ui.controls.resultset.colors.SetRowColorAction) SQLUtils(org.jkiss.dbeaver.model.sql.SQLUtils) PrefUtils(org.jkiss.dbeaver.utils.PrefUtils) CommandContributionItem(org.eclipse.ui.menus.CommandContributionItem) VerticalFolder(org.jkiss.dbeaver.ui.controls.VerticalFolder) TabFolderReorder(org.jkiss.dbeaver.ui.controls.TabFolderReorder) VoidProgressMonitor(org.jkiss.dbeaver.model.runtime.VoidProgressMonitor) DBWorkbench(org.jkiss.dbeaver.runtime.DBWorkbench) CustomizeColorsAction(org.jkiss.dbeaver.ui.controls.resultset.colors.CustomizeColorsAction) java.util(java.util) DBPPreferenceStore(org.jkiss.dbeaver.model.preferences.DBPPreferenceStore) StatisticsPresentation(org.jkiss.dbeaver.ui.controls.resultset.view.StatisticsPresentation) org.jkiss.dbeaver.model.data(org.jkiss.dbeaver.model.data) Rectangle(org.eclipse.swt.graphics.Rectangle) AtomicBoolean(java.util.concurrent.atomic.AtomicBoolean) Nullable(org.jkiss.code.Nullable) AbstractJob(org.jkiss.dbeaver.model.runtime.AbstractJob) NotNull(org.jkiss.code.NotNull) ResultSetPanelDescriptor(org.jkiss.dbeaver.ui.controls.resultset.panel.ResultSetPanelDescriptor) DataSourceJob(org.jkiss.dbeaver.runtime.jobs.DataSourceJob) Log(org.jkiss.dbeaver.Log) DBRProgressMonitor(org.jkiss.dbeaver.model.runtime.DBRProgressMonitor) ResultSetMessages(org.jkiss.dbeaver.ui.controls.resultset.internal.ResultSetMessages) ErrorPresentation(org.jkiss.dbeaver.ui.controls.resultset.view.ErrorPresentation) IPropertyChangeListener(org.eclipse.jface.util.IPropertyChangeListener) PrefPageDataFormat(org.jkiss.dbeaver.ui.editors.data.preferences.PrefPageDataFormat) ModelPreferences(org.jkiss.dbeaver.ModelPreferences) org.jkiss.dbeaver.model(org.jkiss.dbeaver.model) IValueController(org.jkiss.dbeaver.ui.data.IValueController) DBeaverNotifications(org.jkiss.dbeaver.runtime.DBeaverNotifications) org.eclipse.swt.events(org.eclipse.swt.events) org.jkiss.dbeaver.model.struct(org.jkiss.dbeaver.model.struct) FilterValueEditPopup(org.jkiss.dbeaver.ui.controls.resultset.valuefilter.FilterValueEditPopup) org.jkiss.dbeaver.model.exec(org.jkiss.dbeaver.model.exec) org.eclipse.swt.widgets(org.eclipse.swt.widgets) DecimalFormat(java.text.DecimalFormat) VerticalButton(org.jkiss.dbeaver.ui.controls.VerticalButton) ArrayUtils(org.jkiss.utils.ArrayUtils) org.eclipse.ui(org.eclipse.ui) CSSUtils(org.jkiss.dbeaver.ui.css.CSSUtils) org.jkiss.dbeaver.ui.controls.resultset.handler(org.jkiss.dbeaver.ui.controls.resultset.handler) Color(org.eclipse.swt.graphics.Color) ITheme(org.eclipse.ui.themes.ITheme) DBEPersistAction(org.jkiss.dbeaver.model.edit.DBEPersistAction) DBRRunnableWithProgress(org.jkiss.dbeaver.model.runtime.DBRRunnableWithProgress) ConfirmationDialog(org.jkiss.dbeaver.ui.dialogs.ConfirmationDialog) DBException(org.jkiss.dbeaver.DBException) DatabaseLoadService(org.jkiss.dbeaver.model.runtime.load.DatabaseLoadService) ToolbarSeparatorContribution(org.jkiss.dbeaver.ui.controls.ToolbarSeparatorContribution) DBPPreferenceStore(org.jkiss.dbeaver.model.preferences.DBPPreferenceStore) InvocationTargetException(java.lang.reflect.InvocationTargetException) IMenuService(org.eclipse.ui.menus.IMenuService) DBRProgressMonitor(org.jkiss.dbeaver.model.runtime.DBRProgressMonitor)

Aggregations

DBPPreferenceStore (org.jkiss.dbeaver.model.preferences.DBPPreferenceStore)201 DBPPreferenceListener (org.jkiss.dbeaver.model.preferences.DBPPreferenceListener)11 IOException (java.io.IOException)10 ArrayList (java.util.ArrayList)10 DBDAttributeBinding (org.jkiss.dbeaver.model.data.DBDAttributeBinding)10 ExecutionException (org.eclipse.core.commands.ExecutionException)8 GridData (org.eclipse.swt.layout.GridData)8 NotNull (org.jkiss.code.NotNull)8 BundlePreferenceStore (org.jkiss.dbeaver.model.impl.preferences.BundlePreferenceStore)8 Color (org.eclipse.swt.graphics.Color)6 FontData (org.eclipse.swt.graphics.FontData)6 DBException (org.jkiss.dbeaver.DBException)6 DBDDisplayFormat (org.jkiss.dbeaver.model.data.DBDDisplayFormat)6 QMObjectType (org.jkiss.dbeaver.model.qm.QMObjectType)6 IProgressMonitor (org.eclipse.core.runtime.IProgressMonitor)4 IDialogSettings (org.eclipse.jface.dialogs.IDialogSettings)4 SelectionAdapter (org.eclipse.swt.events.SelectionAdapter)4 SelectionEvent (org.eclipse.swt.events.SelectionEvent)4 AbstractJob (org.jkiss.dbeaver.model.runtime.AbstractJob)4 DBRProgressMonitor (org.jkiss.dbeaver.model.runtime.DBRProgressMonitor)4