@Override public boolean load(Properties props) { Vector<Vector<String>> processes = psData.processes(Pattern.compile(props.getString(COMMAND_PROP, NO_EXISTING_PROCESS))); if (processes.isEmpty()) { return false; } EngineType et = EngineTypeManager.getEngineTypeByID(props.getString(ENGINE_PROP, "")); //NOI18N if (et == null) { return false; } String hostName = props.getString(HOST_NAME_PROP, ""); //NOI18N hostCombo.setSelectedItem(hostName); if (!hostCombo.getSelectedItem().equals(hostName)) { return false; } String selectedProject = props.getString(SELECTED_PROJECT_PROP, ""); //NOI18N if (!executableProjectPanel.containsProjectWithPath(getHostName(), selectedProject)) { return false; } executableProjectPanel.setSelectedProjectByPath(getHostName(), selectedProject); loadedPID = processes.get(0).get(psData.pidColumnIdx()); executableProjectPanel.setExecutablePath(getHostName(), props.getString(EXECUTABLE_PATH_PROP, "")); //NOI18N engine = new EngineDescriptor(et); return true; }
public Object read (String typeID, Properties properties) { JspLineBreakpoint b = null; if (typeID.equals (JspLineBreakpoint.class.getName ())) { String url = properties.getString(JspLineBreakpoint.PROP_URL, null); // #110349 - ignore loading of breakpoints which do not have URL if (url == null || url.trim().length() == 0) { return null; } b = JspLineBreakpoint.create ( url, properties.getInt(JspLineBreakpoint.PROP_LINE_NUMBER, 1) ); b.setCondition(properties.getString (JspLineBreakpoint.PROP_CONDITION, "")); b.setPrintText(properties.getString (JspLineBreakpoint.PROP_PRINT_TEXT, "")); b.setGroupName(properties.getString (Breakpoint.PROP_GROUP_NAME, "")); b.setSuspend(properties.getInt (JspLineBreakpoint.PROP_SUSPEND, JspLineBreakpoint.SUSPEND_ALL)); if (properties.getBoolean (JspLineBreakpoint.PROP_ENABLED, true)) { b.enable (); } else { b.disable (); } } return b; }
private static Set<Breakpoint> getBreakpointsFromGroup(Properties properties, String base) { String bpGroup = properties.getString(base + BP_CUSTOM_GROUP, null); if (bpGroup != null) { return new BreakpointsFromGroup(bpGroup); bpGroup = properties.getString(base + BP_FILE_GROUP, null); if (bpGroup != null) { try { bpGroup = properties.getString(base + BP_PROJECT_GROUP, null); if (bpGroup != null) { try { bpGroup = properties.getString(base + BP_TYPE_GROUP, null); if (bpGroup != null) { return new BreakpointsFromGroup(new TestGroupProperties(bpGroup));
JSLineBreakpoint b = null; if (className.equals(OLD_JS_LINE_BP)) { String urlStr = properties.getString (JSLineBreakpoint.PROP_URL, null); int lineNumber = properties.getInt (JSLineBreakpoint.PROP_LINE_NUMBER, 1); try { throw new IllegalStateException("Unknown breakpoint type: \""+className+"\""); b.setCondition(properties.getString(JSLineBreakpoint.PROP_CONDITION, null)); properties.getString (Breakpoint.PROP_GROUP_NAME, "") ); int hitCountFilter = properties.getInt(Breakpoint.PROP_HIT_COUNT_FILTER, 0);