File tree Expand file tree Collapse file tree 6 files changed +20
-8
lines changed
protege-editor-owl/src/main/java/org/protege/editor/owl Expand file tree Collapse file tree 6 files changed +20
-8
lines changed Original file line number Diff line number Diff line change 19
19
uses : actions/setup-java@v4
20
20
with :
21
21
java-version : ' 11'
22
- distribution : ' adopt '
22
+ distribution : ' temurin '
23
23
- name : Run test suite
24
24
run : mvn --batch-mode --activate-profiles ${{ matrix.profile }} --define release.signing.disabled=true clean verify
Original file line number Diff line number Diff line change 14
14
uses : actions/setup-java@v4
15
15
with :
16
16
java-version : ' 11'
17
- distribution : ' adopt '
17
+ distribution : ' temurin '
18
18
server-id : ossrh
19
19
server-username : OSSRH_USERNAME
20
20
server-password : OSSRH_TOKEN
Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ public class ClassHierarchyPreferences {
16
16
17
17
private static final String DISPLAY_RELATIONSHIPS_KEY = "DISPLAY_RELATIONSHIPS" ;
18
18
19
+ private static final String DISPLAY_DEPRECATED_ENTITIES_KEY = "DISPLAY_DEPRECATED_ENTITIES" ;
20
+
19
21
private static Preferences getPreferences () {
20
22
return PreferencesManager .getInstance ().getApplicationPreferences (CLASS_HIERARCHY_PREFERENCES );
21
23
}
@@ -31,4 +33,12 @@ public boolean isDisplayRelationships() {
31
33
public void setDisplayRelationships (boolean displayRelationships ) {
32
34
getPreferences ().putBoolean (DISPLAY_RELATIONSHIPS_KEY , displayRelationships );
33
35
}
36
+
37
+ public boolean isDisplayDeprecatedEntities () {
38
+ return getPreferences ().getBoolean (DISPLAY_DEPRECATED_ENTITIES_KEY , false );
39
+ }
40
+
41
+ public void setDisplayDeprecatedEntities (boolean displayDeprecatedEntities ) {
42
+ getPreferences ().putBoolean (DISPLAY_DEPRECATED_ENTITIES_KEY , displayDeprecatedEntities );
43
+ }
34
44
}
Original file line number Diff line number Diff line change @@ -140,8 +140,6 @@ public List<IdoNamespace> getCollections() {
140
140
141
141
@ Nonnull
142
142
private static HttpClient createClient () {
143
- return HttpClientBuilder .create ().build ();
144
-
145
-
143
+ return HttpClientBuilder .create ().useSystemProperties ().build ();
146
144
}
147
145
}
Original file line number Diff line number Diff line change 1
1
package org .protege .editor .owl .ui .action ;
2
2
3
+ import org .protege .editor .owl .model .hierarchy .ClassHierarchyPreferences ;
3
4
import org .protege .editor .owl .ui .view .HasDisplayDeprecatedEntities ;
4
5
5
6
import java .awt .event .ActionEvent ;
@@ -13,13 +14,14 @@ public class DisplayDeprecatedEntitiesAction extends ComponentHierarchyAction<Ha
13
14
14
15
@ Override
15
16
protected Class <HasDisplayDeprecatedEntities > initialiseAction () {
16
- putValue (SELECTED_KEY , false );
17
+ putValue (SELECTED_KEY , ClassHierarchyPreferences . get (). isDisplayDeprecatedEntities () );
17
18
return HasDisplayDeprecatedEntities .class ;
18
19
}
19
20
20
21
@ Override
21
22
protected void actionPerformedOnTarget (ActionEvent e , HasDisplayDeprecatedEntities target ) {
22
23
boolean value = (boolean ) getValue (SELECTED_KEY );
23
24
target .setShowDeprecatedEntities (value );
25
+ ClassHierarchyPreferences .get ().setDisplayDeprecatedEntities (value );
24
26
}
25
27
}
Original file line number Diff line number Diff line change 6
6
import org .protege .editor .core .ui .view .ViewMode ;
7
7
import org .protege .editor .core .util .HandlerRegistration ;
8
8
import org .protege .editor .owl .model .OWLModelManager ;
9
+ import org .protege .editor .owl .model .hierarchy .ClassHierarchyPreferences ;
9
10
import org .protege .editor .owl .model .hierarchy .OWLObjectHierarchyProvider ;
10
11
import org .protege .editor .owl .ui .OWLObjectComparatorAdapter ;
11
12
import org .protege .editor .owl .ui .action .AbstractOWLTreeAction ;
@@ -170,8 +171,9 @@ public void mouseReleased(MouseEvent e) {
170
171
171
172
breadCrumbTrailProviderRegistration = getOWLWorkspace ().registerBreadcrumbTrailProvider (this );
172
173
173
- // Don't show deprecated entities by default
174
- getHierarchyProvider ().setFilter (this ::isNotDeprecated );
174
+ if (!ClassHierarchyPreferences .get ().isDisplayDeprecatedEntities ()) {
175
+ getHierarchyProvider ().setFilter (this ::isNotDeprecated );
176
+ }
175
177
}
176
178
177
179
private void scrollSelectedPathToVisibleRect () {
You can’t perform that action at this time.
0 commit comments