org.chromium.debug.core/src/org/chromium/debug/core/util/ChromiumDebugPluginUtil.java
equal
deleted
inserted
replaced
5 package org.chromium.debug.core.util; |
5 package org.chromium.debug.core.util; |
6 |
6 |
7 import java.io.ByteArrayInputStream; |
7 import java.io.ByteArrayInputStream; |
8 import java.io.File; |
8 import java.io.File; |
9 import java.net.URI; |
9 import java.net.URI; |
|
10 import java.util.ArrayList; |
|
11 import java.util.Arrays; |
|
12 import java.util.HashSet; |
|
13 import java.util.List; |
|
14 import java.util.Set; |
10 |
15 |
11 import org.chromium.debug.core.ChromiumDebugPlugin; |
16 import org.chromium.debug.core.ChromiumDebugPlugin; |
12 import org.chromium.debug.core.efs.ChromiumScriptFileSystem; |
17 import org.chromium.debug.core.efs.ChromiumScriptFileSystem; |
13 import org.eclipse.core.filesystem.EFS; |
18 import org.eclipse.core.filesystem.EFS; |
14 import org.eclipse.core.filesystem.IFileStore; |
19 import org.eclipse.core.filesystem.IFileStore; |
34 /** |
39 /** |
35 * A utility for interaction with the Eclipse workspace. |
40 * A utility for interaction with the Eclipse workspace. |
36 */ |
41 */ |
37 public class ChromiumDebugPluginUtil { |
42 public class ChromiumDebugPluginUtil { |
38 |
43 |
39 public static final String CHROMIUM_EXTENSION = "chromium"; //$NON-NLS-1$ |
44 private static final String CHROMIUM_EXTENSION = "chromium"; //$NON-NLS-1$ |
|
45 |
|
46 public static final Set<String> SUPPORTED_EXTENSIONS = |
|
47 new HashSet<String>(Arrays.asList(CHROMIUM_EXTENSION, "js", //$NON-NLS-1$ |
|
48 "html", "htm")); //$NON-NLS-1$ //$NON-NLS-2$ |
|
49 |
|
50 public static final List<String> SUPPORTED_EXTENSIONS_SUFFIX_LIST; |
|
51 static { |
|
52 SUPPORTED_EXTENSIONS_SUFFIX_LIST = new ArrayList<String>(SUPPORTED_EXTENSIONS.size()); |
|
53 for (String extension : SUPPORTED_EXTENSIONS) { |
|
54 SUPPORTED_EXTENSIONS_SUFFIX_LIST.add("." + extension); //$NON-NLS-1$ |
|
55 } |
|
56 } |
40 |
57 |
41 public static final String JS_DEBUG_PROJECT_NATURE = "org.chromium.debug.core.jsnature"; //$NON-NLS-1$ |
58 public static final String JS_DEBUG_PROJECT_NATURE = "org.chromium.debug.core.jsnature"; //$NON-NLS-1$ |
42 |
59 |
43 public static final String CHROMIUM_EXTENSION_SUFFIX = "." + CHROMIUM_EXTENSION; //$NON-NLS-1$ |
60 public static final String CHROMIUM_EXTENSION_SUFFIX = "." + CHROMIUM_EXTENSION; //$NON-NLS-1$ |
44 |
61 |