diff --git a/src/main/java/ru/taximaxim/pgsqlblocks/dialogs/SettingsDialog.java b/src/main/java/ru/taximaxim/pgsqlblocks/dialogs/SettingsDialog.java index 6b309d7..5f9832f 100644 --- a/src/main/java/ru/taximaxim/pgsqlblocks/dialogs/SettingsDialog.java +++ b/src/main/java/ru/taximaxim/pgsqlblocks/dialogs/SettingsDialog.java @@ -161,10 +161,11 @@ private void populateBlockJournalPathGroup(Composite container) { journalsPathText.setText(settings.getBlocksJournalPath()); journalsPathText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); - Button btnDefDir = new Button(generalGroup, SWT.PUSH); - btnDefDir.setLayoutData(new GridData(SWT.RIGHT, SWT.TOP, false, true)); - btnDefDir.setImage(ImageUtils.getImage(Images.FOLDER)); - btnDefDir.addSelectionListener(new SelectionAdapter() { + Button btnSetDefaulfDir = new Button(generalGroup, SWT.PUSH); + btnSetDefaulfDir.setLayoutData(new GridData(SWT.RIGHT, SWT.TOP, false, true)); + btnSetDefaulfDir.setImage(ImageUtils.getImage(Images.BACK)); + btnSetDefaulfDir.setToolTipText(resourceBundle.getString("return_default_folder")); + btnSetDefaulfDir.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { @@ -175,6 +176,7 @@ public void widgetSelected(SelectionEvent e) { Button btnDir = new Button(generalGroup, SWT.PUSH); btnDir.setLayoutData(new GridData(SWT.RIGHT, SWT.TOP, false, true)); btnDir.setImage(ImageUtils.getImage(Images.FOLDER)); + btnDir.setToolTipText(resourceBundle.getString("choose_dir")); btnDir.addSelectionListener(new SelectionAdapter() { @Override diff --git a/src/main/java/ru/taximaxim/pgsqlblocks/l10n/PgSqlBlocks_en.java b/src/main/java/ru/taximaxim/pgsqlblocks/l10n/PgSqlBlocks_en.java index c4dab29..75e55cf 100644 --- a/src/main/java/ru/taximaxim/pgsqlblocks/l10n/PgSqlBlocks_en.java +++ b/src/main/java/ru/taximaxim/pgsqlblocks/l10n/PgSqlBlocks_en.java @@ -126,6 +126,7 @@ protected Object[][] getContents() { {"select_ui_language", "UI language (requires restart)"}, {"path", "Path to save block journals"}, {"choose_dir", "Choose directory"}, + {"return_default_folder", "Return default folder"}, // create database dialog {"name", "Connection name*"}, diff --git a/src/main/java/ru/taximaxim/pgsqlblocks/l10n/PgSqlBlocks_ru.java b/src/main/java/ru/taximaxim/pgsqlblocks/l10n/PgSqlBlocks_ru.java index 92223ba..c44fdca 100644 --- a/src/main/java/ru/taximaxim/pgsqlblocks/l10n/PgSqlBlocks_ru.java +++ b/src/main/java/ru/taximaxim/pgsqlblocks/l10n/PgSqlBlocks_ru.java @@ -126,6 +126,7 @@ protected Object[][] getContents() { {"select_ui_language", "Язык интерфейса (требует перезапуска)"}, {"path", "Путь хранения журналов блокировок"}, {"choose_dir", "Выберите директорию"}, + {"return_default_folder", "Вернуть папку по уполчанию"}, // create database dialog {"name", "Имя соединения*"}, diff --git a/src/main/java/ru/taximaxim/pgsqlblocks/utils/Images.java b/src/main/java/ru/taximaxim/pgsqlblocks/utils/Images.java index 4e01bf1..8e5ea2c 100644 --- a/src/main/java/ru/taximaxim/pgsqlblocks/utils/Images.java +++ b/src/main/java/ru/taximaxim/pgsqlblocks/utils/Images.java @@ -46,7 +46,8 @@ public enum Images { HIDE_LOG_PANEL("images/log_hide_16.png"), BLOCKS_JOURNAL_FOLDER("images/blocks_journal_folder_16.png"), FOLDER("images/folder_16.png"), - TABLE("images/table_16.png"); + TABLE("images/table_16.png"), + BACK("images/back-16.png"); private String location; diff --git a/src/main/resources/images/back-16.png b/src/main/resources/images/back-16.png new file mode 100644 index 0000000..a74ff48 Binary files /dev/null and b/src/main/resources/images/back-16.png differ