File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
ui/src/main/java/edu/wpi/grip/ui/pipeline Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,9 @@ public class StepController implements Controller {
73
73
private ControllerMap <InputSocketController , Node > inputSocketMapManager ;
74
74
private ControllerMap <OutputSocketController , Node > outputSocketMapManager ;
75
75
76
+ private static final Image UP_ARROW = new Image ("/edu/wpi/grip/ui/icons/up.png" );
77
+ private static final Image DOWN_ARROW = new Image ("/edu/wpi/grip/ui/icons/down.png" );
78
+
76
79
@ Inject
77
80
StepController (Pipeline pipeline ,
78
81
InputSocketControllerFactory inputSocketControllerFactory ,
@@ -105,7 +108,7 @@ private void initialize() {
105
108
.equals (SocketHint .View .NONE ))) {
106
109
expand .setManaged (false );
107
110
} else {
108
- expandIcon .setImage (new Image ( "/edu/wpi/grip/ui/icons/up.png" ) );
111
+ expandIcon .setImage (UP_ARROW );
109
112
}
110
113
111
114
// Add a SocketControlView for each input socket and output socket
@@ -183,14 +186,14 @@ private void expand() {
183
186
}
184
187
}
185
188
closeUp ();
186
- expandIcon .setImage (new Image ( "/edu/wpi/grip/ui/icons/down.png" ) );
189
+ expandIcon .setImage (DOWN_ARROW );
187
190
expanded = false ;
188
191
} else {
189
192
for (InputSocketController input : inputSockets ) {
190
193
fadeIn (input );
191
194
}
192
195
reopen ();
193
- expandIcon .setImage (new Image ( "/edu/wpi/grip/ui/icons/up.png" ) );
196
+ expandIcon .setImage (UP_ARROW );
194
197
expanded = true ;
195
198
}
196
199
You can’t perform that action at this time.
0 commit comments