static Map<String, Integer> getRemoteSourceRootsOrder() { Properties sourcesProperties = Properties.getDefault ().getProperties ("debugger").getProperties ("sources"); return (Map<String, Integer>) sourcesProperties.getProperties("source_roots"). getMap("remote_order", Collections.emptyMap()); }
private Set<String> getRemoteDisabledSourceRoots() { Properties sourcesProperties = Properties.getDefault ().getProperties ("debugger").getProperties ("sources"); return (Set<String>) sourcesProperties.getProperties("source_roots"). getCollection("remote_disabled", Collections.emptySet()); }
static Map<String, Integer> getSourceRootsOrder(String root) { Properties sourcesProperties = Properties.getDefault ().getProperties ("debugger").getProperties ("sources"); return (Map<String, Integer>) sourcesProperties.getProperties("source_roots"). getMap("project_order", Collections.emptyMap()). get(root); }
private Set<String> getDisabledSourceRoots(File baseDir) { try { String root = Utilities.toURI(baseDir).toURL().toExternalForm(); Properties sourcesProperties = Properties.getDefault ().getProperties ("debugger").getProperties ("sources"); return (Set<String>) sourcesProperties.getProperties("source_roots"). getMap("project_disabled", Collections.emptyMap()). get(root); } catch (MalformedURLException ex) { Exceptions.printStackTrace(ex); return null; } }
private static void storeSourceRootsOrder(String projectRoot, Map<String, Integer> sourceOrder) { Properties sourcesProperties = Properties.getDefault ().getProperties ("debugger").getProperties ("sources"); if (projectRoot != null) { Map map = sourcesProperties.getProperties("source_roots"). getMap("project_order", new HashMap()); map.put(projectRoot, sourceOrder); sourcesProperties.getProperties("source_roots"). setMap("project_order", map); } else { sourcesProperties.getProperties("source_roots"). setMap("remote_order", sourceOrder); } }
private Set<String> loadDisabledSourceRoots(String projectRoot) { if (projectRoot == null) { return null; } return (Set<String>) sourcesProperties.getProperties("source_roots"). getMap("project_disabled", Collections.emptyMap()). get(projectRoot); }
private synchronized void saveAdditionalSourceRoots () { Map map = sourcesProperties.getProperties("additional_source_roots"). getMap("project", new HashMap()); map.put(projectRoot, additionalSourceRoots); sourcesProperties.getProperties("additional_source_roots"). setMap("project", map); }
private List<String> loadAdditionalSourceRoots(String projectRoot) { if (projectRoot == null) { return null; } return (List<String>) sourcesProperties.getProperties("additional_source_roots"). getMap("project", Collections.emptyMap()). get(projectRoot); }
private Set<String> loadDisabledSourceRoots(String projectRoot) { if (projectRoot == null) { return null; } return (Set<String>) sourcesProperties.getProperties("source_roots"). getMap("project_disabled", Collections.emptyMap()). get(projectRoot); }
private synchronized void saveDisabledSourceRoots () { Map map = sourcesProperties.getProperties("source_roots"). getMap("project_disabled", new HashMap()); map.put(projectRoot, disabledSourceRoots); sourcesProperties.getProperties("source_roots"). setMap("project_disabled", map); }
private synchronized void saveAdditionalSourceRoots () { Map map = sourcesProperties.getProperties("additional_source_roots"). getMap("project", new HashMap()); map.put(projectRoot, additionalSourceRoots); sourcesProperties.getProperties("additional_source_roots"). setMap("project", map); }
private synchronized void saveAdditionalSourceRoots () { sourcesProperties.getProperties("additional_source_roots"). setCollection("src_roots", additionalSourceRoots); }
private List<String> loadAdditionalSourceRoots(String projectRoot) { if (projectRoot == null) { return null; } return (List<String>) sourcesProperties.getProperties("additional_source_roots"). getMap("project", Collections.emptyMap()). get(projectRoot); }
private synchronized void saveDisabledSourceRoots () { Map map = sourcesProperties.getProperties("source_roots"). getMap("project_disabled", new HashMap()); map.put(projectRoot, disabledSourceRoots); sourcesProperties.getProperties("source_roots"). setMap("project_disabled", map); }
private void loadSourceRoots() { disabledSourceRoots = new HashSet<String> ( sourcesProperties.getProperties ("source_roots").getCollection ( "remote_disabled", Collections.EMPTY_SET ) ); additionalSourceRoots = new ArrayList<String>( sourcesProperties.getProperties("additional_source_roots").getCollection( "src_roots", Collections.EMPTY_LIST) ); }
private synchronized void saveDisabledSourceRoots () { sourcesProperties.getProperties("source_roots"). setCollection("remote_disabled", disabledSourceRoots); }
public void propertyChange (PropertyChangeEvent evt) { if (evt.getSource() instanceof Breakpoint) { Properties.getDefault ().getProperties ("debugger"). getProperties (DebuggerManager.PROP_BREAKPOINTS).setArray ( JSP_PROPERTY, getBreakpoints () ); } }
public void breakpointRemoved (Breakpoint breakpoint) { if (breakpoint instanceof JspLineBreakpoint) { Properties p = Properties.getDefault ().getProperties ("debugger"). getProperties (DebuggerManager.PROP_BREAKPOINTS); p.setArray ( JSP_PROPERTY, getBreakpoints () ); breakpoint.removePropertyChangeListener(this); } } public void watchAdded (Watch watch) {
public void breakpointAdded (Breakpoint breakpoint) { if (breakpoint instanceof JspLineBreakpoint) { Properties p = Properties.getDefault ().getProperties ("debugger"). getProperties (DebuggerManager.PROP_BREAKPOINTS); p.setArray ( JSP_PROPERTY, getBreakpoints () ); breakpoint.addPropertyChangeListener(this); } }
private static Object[] getSavedConditions() { return Properties.getDefault().getProperties("debugger.javascript"). getArray("BPConditions", new Object[0]); }