public final boolean isDispatcherValidationNode() { return table != null && table.getName().startsWith(DispatcherTablesBuilder.DEFAULT_DISPATCHER_TABLE_NAME); }
public final boolean isDispatcherValidationNode() { return table != null && table.getName().startsWith(DispatcherTablesBuilder.DEFAULT_DISPATCHER_TABLE_NAME); }
public String getHeader() { StringBuilder header = new StringBuilder(); if (table != null) { header.append(table.getName()); header.append(" : "); String text = FacesUtils.getRequestParameter("text"); if (StringUtils.isNotBlank(text)) { header.append(text); } } return header.toString(); }
private void initTableName() { if (table != null) { String name = table.getName(); if (StringUtils.isEmpty(name)) { // If table contains errors, it will not contain compiled name. Try to parse table header instead. String methodHeader = table.getGridTable().getCell(0, 0).getStringValue(); name = TableSyntaxNodeUtils.str2name(methodHeader, XlsNodeTypes.getEnumByValue(table.getType())); } tableTechnicalName = name; } }
private void initTableName() { if (table != null) { String name = table.getName(); if (StringUtils.isEmpty(name)) { // If table contains errors, it will not contain compiled name. Try to parse table header instead. String methodHeader = table.getGridTable().getCell(0, 0).getStringValue(); name = TableSyntaxNodeUtils.str2name(methodHeader, XlsNodeTypes.getEnumByValue(table.getType())); } tableTechnicalName = name; } }
public RunTestMethodBean() { WebStudio studio = WebStudioUtils.getWebStudio(); tableUri = FacesUtils.getRequestParameter(Constants.REQUEST_PARAM_URI); if (StringUtils.isNotBlank(tableUri)) { studio.setTableUri(tableUri); } else { tableUri = studio.getTableUri(); } TestResultsHelper.initExplanator(); tableName = studio.getModel().getTable(tableUri).getName(); testName = FacesUtils.getRequestParameter(Constants.REQUEST_PARAM_TEST_NAME); if (testName != null) { testName = StringTool.decodeURL(testName); } testId = FacesUtils.getRequestParameter(Constants.REQUEST_PARAM_TEST_ID); testDescription = FacesUtils.getRequestParameter(Constants.REQUEST_PARAM_TEST_DESCRIPTION); runTestMethod(tableUri, testId, testName); }
public TableDetailsBean() { WebStudio studio = WebStudioUtils.getWebStudio(); id = FacesUtils.getRequestParameter(Constants.REQUEST_PARAM_ID); IOpenLTable table; String uri; if (studio.getModel().getTableById(id) == null) { uri = studio.getTableUri(); table = studio.getModel().getTable(uri); } else { table = getTable(); uri = table.getUri(); } //table = getTable(); //uri = table.getId(); if (table != null && table.isCanContainProperties()) { editable = WebStudioUtils.getProjectModel().isCanEditTable(uri) && !table.getName().startsWith( DispatcherTablesBuilder.DEFAULT_DISPATCHER_TABLE_NAME); initPropertyGroups(table, table.getProperties()); } }
public TableDetailsBean() { WebStudio studio = WebStudioUtils.getWebStudio(); id = FacesUtils.getRequestParameter(Constants.REQUEST_PARAM_ID); IOpenLTable table; String uri; if (studio.getModel().getTableById(id) == null) { uri = studio.getTableUri(); table = studio.getModel().getTable(uri); } else { table = getTable(); uri = table.getUri(); } //table = getTable(); //uri = table.getId(); if (table != null && table.isCanContainProperties()) { editable = WebStudioUtils.getProjectModel().isCanEditTable(uri) && !table.getName().startsWith( DispatcherTablesBuilder.DEFAULT_DISPATCHER_TABLE_NAME); initPropertyGroups(table, table.getProperties()); } }