We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e1e745 commit 3a089e5Copy full SHA for 3a089e5
app/src/processing/app/SketchCode.java
@@ -25,6 +25,8 @@
25
package processing.app;
26
27
import java.io.*;
28
+import java.util.List;
29
+import java.util.Arrays;
30
31
import javax.swing.text.Document;
32
@@ -156,8 +158,12 @@ public String getExtension() {
156
158
}
157
159
160
- public boolean isExtension(String what) {
- return extension.equals(what);
161
+ public boolean isExtension(String... extensions) {
162
+ return isExtension(Arrays.asList(extensions));
163
+ }
164
+
165
+ public boolean isExtension(List<String> extensions) {
166
+ return extensions.contains(extension);
167
168
169
0 commit comments