Commit 49144d7 1 parent e4cb00f commit 49144d7 Copy full SHA for 49144d7
File tree 1 file changed +24
-0
lines changed
java-samples/src/main/java/com/jetbrains/editing
1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change 5
5
@ SuppressWarnings ("unused" )
6
6
public class CustomisingColours {
7
7
private static final int FACTOR = 2 ;
8
+ private int privateField = 0 ;
9
+ protected int protectedField = 0 ;
8
10
9
11
private void staticImportedConstantsCanLookDifferentToClassConstants () {
10
12
// see Editor>Colors & Fonts>Java>Class Fields and see two types of constants
11
13
double x = PI * FACTOR ;
12
14
}
13
15
16
+ public void membersCanBeColouredAccordingToVisibility () {
17
+ // change settings in Preferences/Settings | Editor | Color Scheme by unfolding the Visibility node.
18
+ publicMethod ();
19
+ protectedMethod ();
20
+ protectedField ++;
21
+ packagePrivateMethod ();
22
+ privateMethod ();
23
+ privateField ++;
24
+ }
25
+
26
+
27
+ public void publicMethod () {
28
+ }
29
+
30
+ protected void protectedMethod () {
31
+ }
32
+
33
+ void packagePrivateMethod () {
34
+ }
35
+
36
+ private void privateMethod () {
37
+ }
14
38
15
39
}
You can’t perform that action at this time.
0 commit comments