Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dbeaver/dbeaver#20602 load controls for extra pages #22616

Open
wants to merge 2 commits into
base: devel
Choose a base branch
from

Conversation

Destrolaric
Copy link
Member

@Destrolaric Destrolaric commented Jan 29, 2024

Now control for extra pages for Oracle and Postgre are loaded during main page initialization which should allow properties to be saved even if no page were loaded previously
Closes #20602

@Destrolaric Destrolaric force-pushed the dbeaver/dbeaver#20602-load-controls-for-extra-pages branch from bf8a6f9 to 782a9e9 Compare January 29, 2024 10:05
@@ -28,4 +28,17 @@ public interface IDialogPageProvider {
@Nullable
IDialogPage[] getDialogPages(boolean extrasOnly, boolean forceCreate);

/**
* Pages what should be saved during creation, even if they were
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Pages what should be saved during creation, even if they were
* Pages that should be saved during creation, even if they were

* null if no additional pages should be created.
*/
@Nullable
default IDialogPage[] getRequiredDialogPages() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Method name is not descriptive enough. I couldn't understand what does it mean, until I read the comment. I'd propose something like getPagesContainingSettings. Maybe you can figure out better name, but don't left just as is, please. It's not clear what does Required means - required for what?

@@ -192,6 +191,31 @@ public void activatePage() {
//getContainer().updateTitleBar();
}

private void createAdditionalRequiredPages() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I doubt about calling this method create... I would rather expact to call it like load.. or smth like that. Yes, you call createControl method, but the control is not visible and so on..

Copy link
Member

@ShadelessFox ShadelessFox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm still concerned with the proposed solution.

@E1izabeth E1izabeth requested review from serge-rider and removed request for LonwoLonwo February 7, 2024 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Postgres: general setting 'show all databases' doesn't work, only the default database is shown
5 participants