8000 add showSuites to the preference model (tree-view yes/no) · utPLSQL/utPLSQL-SQLDeveloper@8ec1e38 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8ec1e38

Browse files
add showSuites to the preference model (tree-view yes/no)
1 parent ccf076c commit 8ec1e38

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

sqldev/src/main/java/org/utplsql/sqldev/model/preference/PreferenceModel.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ public static PreferenceModel getInstance(final PropertyStorage prefs) {
5353
private static final String KEY_SHOW_DISABLED_TESTS = "showDisabledTests";
5454
private static final String KEY_SHOW_TEST_DESCRIPTION = "showTestDescription";
5555
private static final String KEY_SYNC_DETAIL_TAB = "syncDetailTab";
56+
private static final String KEY_SHOW_SUITES = "showSuites";
5657
private static final String KEY_TEST_PACKAGE_PREFIX = "testPackagePrefix";
5758
private static final String KEY_TEST_PACKAGE_SUFFIX = "testPackageSuffix";
5859
private static final String KEY_TEST_UNIT_PREFIX = "testUnitPrefix";
@@ -88,6 +89,7 @@ public String toString() {
8889
.append(KEY_SHOW_DISABLED_TESTS, isShowDisabledTests())
8990
.append(KEY_SHOW_TEST_DESCRIPTION, isShowTestDescription())
9091
.append(KEY_SYNC_DETAIL_TAB, isSyncDetailTab())
92+
.append(KEY_SHOW_SUITES, isShowSuites())
9193
.append(KEY_TEST_PACKAGE_PREFIX, getTestPackagePrefix())
9294
.append(KEY_TEST_PACKAGE_SUFFIX, getTestPackageSuffix())
9395
.append(KEY_TEST_UNIT_PREFIX, getTestUnitPrefix())
@@ -241,6 +243,14 @@ public void setSyncDetailTab(final boolean syncDetailTab) {
241243
getHashStructure().putBoolean(KEY_SYNC_DETAIL_TAB, syncDetailTab);
242244
}
243245

246+
public boolean isShowSuites() {
247+
return getHashStructure().getBoolean(KEY_SHOW_SUITES, true);
248+
}
249+
250+
public void setShowSuites(final boolean showSuites) {
251+
getHashStructure().putBoolean(KEY_SHOW_SUITES, showSuites);
252+
}
253+
244254
public String getTestPackagePrefix() {
245255
return getHashStructure().getString(KEY_TEST_PACKAGE_PREFIX, "test_");
246256
}

0 commit comments

Comments
 (0)
0