File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
ui/src/main/java/edu/wpi/grip/ui Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 13
13
import javafx .scene .control .SplitPane ;
14
14
import javafx .scene .layout .Region ;
15
15
import javafx .stage .FileChooser ;
16
+ import javafx .stage .FileChooser .ExtensionFilter ;
16
17
17
18
import javax .inject .Inject ;
18
19
import java .io .File ;
@@ -110,6 +111,9 @@ public void openProject() throws IOException {
110
111
if (showConfirmationDialogAndWait ()) {
111
112
final FileChooser fileChooser = new FileChooser ();
112
113
fileChooser .setTitle ("Open Project" );
114
+ fileChooser .getExtensionFilters ().addAll (
115
+ new ExtensionFilter ("GRIP File" , "*.grip" ),
116
+ new ExtensionFilter ("All Files" , "*.*" ));
113
117
114
118
project .getFile ().ifPresent (file -> fileChooser .setInitialDirectory (file .getParentFile ()));
115
119
@@ -149,6 +153,7 @@ public boolean saveProject() throws IOException {
149
153
public boolean saveProjectAs () throws IOException {
150
154
final FileChooser fileChooser = new FileChooser ();
151
155
fileChooser .setTitle ("Save Project As" );
156
+ fileChooser .getExtensionFilters ().add (new ExtensionFilter ("GRIP File" , "*.grip" ));
152
157
153
158
project .getFile ().ifPresent (file -> fileChooser .setInitialDirectory (file .getParentFile ()));
154
159
@@ -184,4 +189,3 @@ public void deployFRC() {
184
189
185
190
}
186
191
}
187
-
You can’t perform that action at this time.
0 commit comments