bugged
stringlengths 6
599k
| fixed
stringlengths 10
599k
| __index_level_0__
int64 0
1.13M
|
|---|---|---|
public double[] acf(int maxlag) { if (autocorrelation.length < maxlag+1) { double[] tmp = new double[maxlag+1]; System.arraycopy(autocorrelation, 0, tmp, 0, autocorrelation.length); double normalizer = binarySumDevSqr(0, getLength(), mean()); for (int i=autocorrelation.length; i< maxlag+1; i++) { tmp[i] = binarySumDevLag(0, getLength(), mean(), i) / normalizer; } autocorrelation = tmp; } return autocorrelation; }
|
public double[] acf(int maxlag) { if (autocorrelation.length < maxlag+1) { double[] tmp = new double[maxlag+1]; System.arraycopy(autocorrelation, 0, tmp, 0, autocorrelation.length); double normalizer = binarySumDevSqr(0, getLength(), mean()); for (int i=autocorrelation.length; i< maxlag+1; i++) { tmp[i] = binarySumDevLag(0, getLength(), mean(), i) / normalizer; } return autocorrelation; } return autocorrelation; }
| 1,117,547
|
public double[] acf(int maxlag) { if (autocorrelation.length < maxlag+1) { double[] tmp = new double[maxlag+1]; System.arraycopy(autocorrelation, 0, tmp, 0, autocorrelation.length); double normalizer = binarySumDevSqr(0, getLength(), mean()); for (int i=autocorrelation.length; i< maxlag+1; i++) { tmp[i] = binarySumDevLag(0, getLength(), mean(), i) / normalizer; } autocorrelation = tmp; } return autocorrelation; }
|
public double[] acf(int maxlag) { if (autocorrelation.length < maxlag+1) { double[] tmp = new double[maxlag+1]; System.arraycopy(autocorrelation, 0, tmp, 0, autocorrelation.length); double normalizer = binarySumDevSqr(0, getLength(), mean()); for (int i=autocorrelation.length; i< maxlag+1; i++) { tmp[i] = binarySumDevLag(0, getLength(), mean(), i) / normalizer; } autocorrelation = tmp; } return autocorrelation; }
| 1,117,548
|
public double[] pacf(int maxlag) { if (partialautocorr.length < maxlag) { double[] tmp = new double[maxlag]; System.arraycopy(partialautocorr, 0, tmp, 0, partialautocorr.length); double[] myacf = acf(maxlag); double[][] pacfMatrix = new double[maxlag+1][maxlag+1]; pacfMatrix[1][1] = myacf[1]; for (int k=2; k<=maxlag; k++) { double topSum = 0; double botSum = 0; for (int j=1; j<k; j++) { topSum += pacfMatrix[k-1][j] * myacf[k-j]; botSum += pacfMatrix[k-1][j] * myacf[j]; } pacfMatrix[k][k] = ( myacf[k] - topSum ) / ( 1 - botSum ); for (int j=1; j< k; j++) { pacfMatrix[k][j] = pacfMatrix[k-1][j] - pacfMatrix[k][k] * pacfMatrix[k-1][k-j]; } } partialautocorr = new double[maxlag+1]; partialautocorr[0] = 1; for (int k=1; k<=maxlag; k++) { partialautocorr[k] = pacfMatrix[k][k]; } } return partialautocorr; }
|
public double[] pacf(int maxlag) { if (partialautocorr.length < maxlag) { double[] tmp = new double[maxlag]; System.arraycopy(partialautocorr, 0, tmp, 0, partialautocorr.length); double[] myacf = acf(maxlag); double[][] pacfMatrix = new double[maxlag+1][maxlag+1]; pacfMatrix[1][1] = myacf[1]; for (int k=2; k<=maxlag; k++) { double topSum = 0; double botSum = 0; for (int j=1; j<k; j++) { topSum += pacfMatrix[k-1][j] * myacf[k-j]; botSum += pacfMatrix[k-1][j] * myacf[j]; } pacfMatrix[k][k] = ( myacf[k] - topSum ) / ( 1 - botSum ); for (int j=1; j< k; j++) { pacfMatrix[k][j] = pacfMatrix[k-1][j] - pacfMatrix[k][k] * pacfMatrix[k-1][k-j]; } } partialautocorr = new double[maxlag+1]; partialautocorr[0] = 1; for (int k=1; k<=maxlag; k++) { partialautocorr[k] = pacfMatrix[k][k]; } } return partialautocorr; }
| 1,117,549
|
public double[] pacf(int maxlag) { if (partialautocorr.length < maxlag) { double[] tmp = new double[maxlag]; System.arraycopy(partialautocorr, 0, tmp, 0, partialautocorr.length); double[] myacf = acf(maxlag); double[][] pacfMatrix = new double[maxlag+1][maxlag+1]; pacfMatrix[1][1] = myacf[1]; for (int k=2; k<=maxlag; k++) { double topSum = 0; double botSum = 0; for (int j=1; j<k; j++) { topSum += pacfMatrix[k-1][j] * myacf[k-j]; botSum += pacfMatrix[k-1][j] * myacf[j]; } pacfMatrix[k][k] = ( myacf[k] - topSum ) / ( 1 - botSum ); for (int j=1; j< k; j++) { pacfMatrix[k][j] = pacfMatrix[k-1][j] - pacfMatrix[k][k] * pacfMatrix[k-1][k-j]; } } partialautocorr = new double[maxlag+1]; partialautocorr[0] = 1; for (int k=1; k<=maxlag; k++) { partialautocorr[k] = pacfMatrix[k][k]; } } return partialautocorr; }
|
public double[] pacf(int maxlag) { if (partialautocorr.length < maxlag) { double[] tmp = new double[maxlag]; System.arraycopy(partialautocorr, 0, tmp, 0, partialautocorr.length); double[] myacf = acf(maxlag); double[][] pacfMatrix = new double[maxlag+1][maxlag+1]; pacfMatrix[1][1] = myacf[1]; for (int k=2; k<=maxlag; k++) { double topSum = 0; double botSum = 0; for (int j=1; j<k; j++) { topSum += pacfMatrix[k-1][j] * myacf[k-j]; botSum += pacfMatrix[k-1][j] * myacf[j]; } pacfMatrix[k][k] = ( myacf[k] - topSum ) / ( 1 - botSum ); for (int j=1; j< k; j++) { pacfMatrix[k][j] = pacfMatrix[k-1][j] - pacfMatrix[k][k] * pacfMatrix[k-1][k-j]; } } partialautocorr = new double[maxlag+1]; partialautocorr[0] = 1; for (int k=1; k<=maxlag; k++) { partialautocorr[k] = pacfMatrix[k][k]; } } return partialautocorr; }
| 1,117,550
|
public double[] pacf(int maxlag) { if (partialautocorr.length < maxlag) { double[] tmp = new double[maxlag]; System.arraycopy(partialautocorr, 0, tmp, 0, partialautocorr.length); double[] myacf = acf(maxlag); double[][] pacfMatrix = new double[maxlag+1][maxlag+1]; pacfMatrix[1][1] = myacf[1]; for (int k=2; k<=maxlag; k++) { double topSum = 0; double botSum = 0; for (int j=1; j<k; j++) { topSum += pacfMatrix[k-1][j] * myacf[k-j]; botSum += pacfMatrix[k-1][j] * myacf[j]; } pacfMatrix[k][k] = ( myacf[k] - topSum ) / ( 1 - botSum ); for (int j=1; j< k; j++) { pacfMatrix[k][j] = pacfMatrix[k-1][j] - pacfMatrix[k][k] * pacfMatrix[k-1][k-j]; } } partialautocorr = new double[maxlag+1]; partialautocorr[0] = 1; for (int k=1; k<=maxlag; k++) { partialautocorr[k] = pacfMatrix[k][k]; } } return partialautocorr; }
|
public double[] pacf(int maxlag) { if (partialautocorr.length < maxlag) { double[] tmp = new double[maxlag]; System.arraycopy(partialautocorr, 0, tmp, 0, partialautocorr.length); double[] myacf = acf(maxlag); double[][] pacfMatrix = new double[maxlag+1][maxlag+1]; pacfMatrix[1][1] = myacf[1]; for (int k=2; k<=maxlag; k++) { double topSum = 0; double botSum = 0; for (int j=1; j<k; j++) { topSum += pacfMatrix[k-1][j] * myacf[k-j]; botSum += pacfMatrix[k-1][j] * myacf[j]; } pacfMatrix[k][k] = ( myacf[k] - topSum ) / ( 1 - botSum ); for (int j=1; j< k; j++) { pacfMatrix[k][j] = pacfMatrix[k-1][j] - pacfMatrix[k][k] * pacfMatrix[k-1][k-j]; } } partialautocorr = new double[maxlag+1]; partialautocorr[0] = 1; for (int k=1; k<=maxlag; k++) { partialautocorr[k] = pacfMatrix[k][k]; } } return partialautocorr; }
| 1,117,551
|
public int getLength() { if (iSeries != null) { return iSeries.length; } if (sSeries != null) { return sSeries.length; } if (fSeries != null) { return fSeries.length; } if (dSeries != null) { return dSeries.length; } return 0; }
|
public int getLength() { if (iSeries != null) { return iSeries.length; } if (sSeries != null) { return sSeries.length; } if (fSeries != null) { return fSeries.length; } if (dSeries != null) { return dSeries.length; } return 0; }
| 1,117,552
|
public int getLength() { if (iSeries != null) { return iSeries.length; } if (sSeries != null) { return sSeries.length; } if (fSeries != null) { return fSeries.length; } if (dSeries != null) { return dSeries.length; } return 0; }
|
public int getLength() { if (iSeries != null) { return iSeries.length; } if (sSeries != null) { return sSeries.length; } if (fSeries != null) { return fSeries.length; } if (dSeries != null) { return dSeries.length; } return 0; }
| 1,117,553
|
public double binaryIndexSum(int start, int finish) { if (iSeries != null) { return iBinaryIndexSum(start, finish); } // end of if (iSeries != null) if (sSeries != null) { return sBinaryIndexSum(start, finish); } // end of if (sSeries != null) if (fSeries != null) { return fBinaryIndexSum(start, finish); } // end of if (fSeries != null) if (dSeries != null) { return dBinaryIndexSum(start, finish); } // end of if (dSeries != null) return 0; }
|
public double binaryIndexSum(int start, int finish) { if (iSeries != null) { return iBinaryIndexSum(start, finish); } // end of if (iSeries != null) if (sSeries != null) { return sBinaryIndexSum(start, finish); } // end of if (sSeries != null) if (fSeries != null) { return fBinaryIndexSum(start, finish); } // end of if (fSeries != null) if (dSeries != null) { return dBinaryIndexSum(start, finish); } // end of if (dSeries != null) return 0; }
| 1,117,554
|
private String executeQueries(SQLQuery sqlQuery, int numberOfRows, QueryToSQLBridge sqlBridge, List executedSQLStatements, IWResourceBundle resourceBundle, IWContext iwc) throws RemoteException { QueryResult queryResult = sqlBridge.executeQueries(sqlQuery, numberOfRows, executedSQLStatements); // check if everything is fine if (queryResult == null || queryResult.isEmpty()) { // nothing to do return resourceBundle.getLocalizedString("ro_result_of_query_is_empty", "Result of query is empty"); } resultNumberOfRows = queryResult.getNumberOfRows(); // that means: if the user has set number of rows to 12 000 and the result contains 11 000 rows // nothing happens even if MAX_NUMBER_OF_ROWS_IN_RESULT is only set to 500 if (resultNumberOfRows > numberOfRows && resultNumberOfRows > QueryConstants.MAX_NUMBER_OF_ROWS_IN_RESULT) { String error = resourceBundle.getLocalizedString("ro_number_of_rows_in result _might_be_too_large", "Number of rows might be too large"); String rows = resourceBundle.getLocalizedString("ro_rows","rows"); StringBuffer buffer = new StringBuffer(error); buffer.append(": ").append(resultNumberOfRows).append(" ").append(rows); return buffer.toString(); } resultNumberOfRows = -1; // get design JasperReportBusiness reportBusiness = getReportBusiness(); DesignBox designBox = getDesignBox(sqlQuery, reportBusiness, resourceBundle, iwc); // synchronize design and result Map designParameters = new HashMap(); designParameters.put(REPORT_HEADLINE_KEY, sqlQuery.getName()); JasperPrint print = reportBusiness.printSynchronizedReport(queryResult, designParameters, designBox); if (print == null) { return resourceBundle.getLocalizedString("ro_could_not_use_layout", "Layout can't be used"); } // create html report String uri; if (PDF_KEY.equals(outputFormat)) { uri = reportBusiness.getPdfReport(print, "report"); } else if (EXCEL_KEY.equals(outputFormat)) { uri = reportBusiness.getExcelReport(print, "report"); } else { uri = reportBusiness.getHtmlReport(print, "report"); } Page parentPage = getParentPage(); if("true".equals(getBundle(iwc).getProperty(ADD_QUERY_SQL_FOR_DEBUG,"false"))){ addExecutedSQLQueries(executedSQLStatements); add(new Text("ADD_QUERY_SQL_FOR_DEBUG is true, result is shown in pop up window!")); parentPage.setOnLoad(" openwindow('" + uri + "','IdegaWeb Generated Report','0','0','0','0','0','1','1','1','800','600') "); } else { parentPage.setToRedirect(uri); } // open an extra window with scrollbars //getParentPage().setOnLoad("window.open('" + uri + "' , 'newWin', 'width=600,height=400,scrollbars=yes')"); //openwindow(Address,Name,ToolBar,Location,Directories,Status,Menubar,Titlebar,Scrollbars,Resizable,Width,Height) //getParentPage().setOnLoad(" openwindow('" + uri + "','IdegaWeb Generated Report','0','0','0','0','0','1','1','1','800','600') "); return null; }
|
private String executeQueries(SQLQuery sqlQuery, int numberOfRows, QueryToSQLBridge sqlBridge, List executedSQLStatements, IWResourceBundle resourceBundle, IWContext iwc) throws RemoteException { QueryResult queryResult = sqlBridge.executeQueries(sqlQuery, numberOfRows, executedSQLStatements); // check if everything is fine if (queryResult == null) { return resourceBundle.getLocalizedString("ro_execution_of_query_failed", "Execution of query failed."); } if (queryResult.isEmpty()) { // nothing to do return resourceBundle.getLocalizedString("ro_result_of_query_is_empty", "Result of query is empty"); } resultNumberOfRows = queryResult.getNumberOfRows(); // that means: if the user has set number of rows to 12 000 and the result contains 11 000 rows // nothing happens even if MAX_NUMBER_OF_ROWS_IN_RESULT is only set to 500 if (resultNumberOfRows > numberOfRows && resultNumberOfRows > QueryConstants.MAX_NUMBER_OF_ROWS_IN_RESULT) { String error = resourceBundle.getLocalizedString("ro_number_of_rows_in result _might_be_too_large", "Number of rows might be too large"); String rows = resourceBundle.getLocalizedString("ro_rows","rows"); StringBuffer buffer = new StringBuffer(error); buffer.append(": ").append(resultNumberOfRows).append(" ").append(rows); return buffer.toString(); } resultNumberOfRows = -1; // get design JasperReportBusiness reportBusiness = getReportBusiness(); DesignBox designBox = getDesignBox(sqlQuery, reportBusiness, resourceBundle, iwc); // synchronize design and result Map designParameters = new HashMap(); designParameters.put(REPORT_HEADLINE_KEY, sqlQuery.getName()); JasperPrint print = reportBusiness.printSynchronizedReport(queryResult, designParameters, designBox); if (print == null) { return resourceBundle.getLocalizedString("ro_could_not_use_layout", "Layout can't be used"); } // create html report String uri; if (PDF_KEY.equals(outputFormat)) { uri = reportBusiness.getPdfReport(print, "report"); } else if (EXCEL_KEY.equals(outputFormat)) { uri = reportBusiness.getExcelReport(print, "report"); } else { uri = reportBusiness.getHtmlReport(print, "report"); } Page parentPage = getParentPage(); if("true".equals(getBundle(iwc).getProperty(ADD_QUERY_SQL_FOR_DEBUG,"false"))){ addExecutedSQLQueries(executedSQLStatements); add(new Text("ADD_QUERY_SQL_FOR_DEBUG is true, result is shown in pop up window!")); parentPage.setOnLoad(" openwindow('" + uri + "','IdegaWeb Generated Report','0','0','0','0','0','1','1','1','800','600') "); } else { parentPage.setToRedirect(uri); } // open an extra window with scrollbars //getParentPage().setOnLoad("window.open('" + uri + "' , 'newWin', 'width=600,height=400,scrollbars=yes')"); //openwindow(Address,Name,ToolBar,Location,Directories,Status,Menubar,Titlebar,Scrollbars,Resizable,Width,Height) //getParentPage().setOnLoad(" openwindow('" + uri + "','IdegaWeb Generated Report','0','0','0','0','0','1','1','1','800','600') "); return null; }
| 1,117,555
|
public DataCenter getSeismogramDC(String dns, String objectname) throws org.omg.CosNaming.NamingContextPackage.NotFound, org.omg.CosNaming.NamingContextPackage.CannotProceed, org.omg.CosNaming.NamingContextPackage.InvalidName { DataCenter datacenter = DataCenterHelper.narrow(getSeismogramDCObject(dns, objectname)); return datacenter; }
|
public DataCenter getSeismogramDC(String dns, String objectname) throws org.omg.CosNaming.NamingContextPackage.NotFound, org.omg.CosNaming.NamingContextPackage.CannotProceed, org.omg.CosNaming.NamingContextPackage.InvalidName { logger.debug("before get SeismogramDC Object"); org.omg.CORBA.Object obj = getSeismogramDCObject(dns, objectname); logger.debug("before narrow"); DataCenter datacenter = DataCenterHelper.narrow(obj); logger.debug("after narrow"); return datacenter; }
| 1,117,557
|
protected void setUp() throws Exception { // JUnitDoclet begin method testcase.setUp super.setUp(); stat = createInstance(); // JUnitDoclet end method testcase.setUp }
|
protected void setUp() throws Exception { // JUnitDoclet begin method testcase.setUp super.setUp(); stat = createInstanceArray(); // JUnitDoclet end method testcase.setUp }
| 1,117,558
|
protected Context getTrainingContext() throws Exception { if (trainingContext == null) { try { ApplicationService caCoreService = getCaCoreAPIService(); Context context = new Context(); UMLBrowserParams params = UMLBrowserParams.getInstance(); context.setName(params.getTestContext()); List<Context> contexts = caCoreService.search(Context.class,context); if (contexts.size()>0) { trainingContext = contexts.get(0); } } catch (Exception e) { log.error("Error getting test context.",e); throw e; } } return trainingContext; }
|
protected Context getTrainingContext() throws Exception { if (trainingContext == null) { try { ApplicationService caCoreService = getCaCoreAPIService(); Context context = new Context(); UMLBrowserParams params = UMLBrowserParams.getInstance(); context.setName(params.getTrainingContext()); List<Context> contexts = caCoreService.search(Context.class,context); if (contexts.size()>0) { trainingContext = contexts.get(0); } } catch (Exception e) { log.error("Error getting test context.",e); throw e; } } return trainingContext; }
| 1,117,559
|
public String getFileIds(ChannelId channel_id, MicroSecondDate beginDate, MicroSecondDate endDate) throws SQLException { rfGetFileIdStmt.setString(1, ChannelIdUtil.toString(channel_id)); rfGetFileIdStmt.setTimestamp(2, beginDate.getTimestamp()); rfGetFileIdStmt.setTimestamp(3, endDate.getTimestamp()); rfGetFileIdStmt.setTimestamp(4, beginDate.getTimestamp()); rfGetFileIdStmt.setTimestamp(5, endDate.getTimestamp()); ResultSet rs = rfGetFileIdStmt.executeQuery(); if(rs.next()) { Integer rtn = new Integer(rs.getInt("id")); return rtn.toString(); } return null; }
|
public String getFileIds(ChannelId channel_id, MicroSecondDate beginDate, MicroSecondDate endDate) throws SQLException { rfGetFileIdStmt.setString(1, ChannelIdUtil.toString(channel_id)); rfGetFileIdStmt.setTimestamp(2, beginDate.getTimestamp()); rfGetFileIdStmt.setTimestamp(3, endDate.getTimestamp()); rfGetFileIdStmt.setTimestamp(4, beginDate.getTimestamp()); rfGetFileIdStmt.setTimestamp(5, endDate.getTimestamp()); ResultSet rs = rfGetFileIdStmt.executeQuery(); if(rs.next()) { Integer rtn = new Integer(rs.getInt("id")); return rtn.toString(); } return null; }
| 1,117,560
|
public String getFileIds(ChannelId channel_id, MicroSecondDate beginDate, MicroSecondDate endDate) throws SQLException { rfGetFileIdStmt.setString(1, ChannelIdUtil.toString(channel_id)); rfGetFileIdStmt.setTimestamp(2, beginDate.getTimestamp()); rfGetFileIdStmt.setTimestamp(3, endDate.getTimestamp()); rfGetFileIdStmt.setTimestamp(4, beginDate.getTimestamp()); rfGetFileIdStmt.setTimestamp(5, endDate.getTimestamp()); ResultSet rs = rfGetFileIdStmt.executeQuery(); if(rs.next()) { Integer rtn = new Integer(rs.getInt("id")); return rtn.toString(); } return null; }
|
public String getFileIds(ChannelId channel_id, MicroSecondDate beginDate, MicroSecondDate endDate) throws SQLException { rfGetFileIdStmt.setString(1, ChannelIdUtil.toString(channel_id)); rfGetFileIdStmt.setTimestamp(2, beginDate.getTimestamp()); rfGetFileIdStmt.setTimestamp(3, endDate.getTimestamp()); rfGetFileIdStmt.setTimestamp(4, beginDate.getTimestamp()); rfGetFileIdStmt.setTimestamp(5, endDate.getTimestamp()); ResultSet rs = rfGetFileIdStmt.executeQuery(); if(rs.next()) { Integer rtn = new Integer(rs.getInt("id")); return rtn.toString(); } return null; }
| 1,117,561
|
public String getFileIds(ChannelId channel_id, MicroSecondDate beginDate, MicroSecondDate endDate) throws SQLException { rfGetFileIdStmt.setString(1, ChannelIdUtil.toString(channel_id)); rfGetFileIdStmt.setTimestamp(2, beginDate.getTimestamp()); rfGetFileIdStmt.setTimestamp(3, endDate.getTimestamp()); rfGetFileIdStmt.setTimestamp(4, beginDate.getTimestamp()); rfGetFileIdStmt.setTimestamp(5, endDate.getTimestamp()); ResultSet rs = rfGetFileIdStmt.executeQuery(); if(rs.next()) { Integer rtn = new Integer(rs.getInt("id")); return rtn.toString(); } return null; }
|
public String getFileIds(ChannelId channel_id, MicroSecondDate beginDate, MicroSecondDate endDate) throws SQLException { rfGetFileIdStmt.setString(1, ChannelIdUtil.toString(channel_id)); rfGetFileIdStmt.setTimestamp(2, beginDate.getTimestamp()); rfGetFileIdStmt.setTimestamp(3, endDate.getTimestamp()); rfGetFileIdStmt.setTimestamp(4, beginDate.getTimestamp()); rfGetFileIdStmt.setTimestamp(5, endDate.getTimestamp()); ResultSet rs = rfGetFileIdStmt.executeQuery(); if(rs.next()) { Integer rtn = new Integer(rs.getInt("id")); return rtn.toString(); } Integer[] rtnValues = new Integer[arrayList.size()]; rtnValues = (Integer[]) arrayList.toArray(rtnValues); int[] intValues = new int[rtnValues.length]; for(int counter = 0; counter < rtnValues.length; counter++) { intValues[counter] = rtnValues[counter].intValue(); } return intValues; }
| 1,117,562
|
public void addItem(com.idega.block.basket.data.BasketItem p0) throws java.rmi.RemoteException;
|
public void addItem(com.idega.block.basket.data.BasketItem p0,int p1) throws java.rmi.RemoteException;
| 1,117,564
|
public static Map<String, List<String>> parseParameters(HttpServletRequest request, String query) throws UnsupportedEncodingException { // get the request encoding String encoding = request.getCharacterEncoding(); // not found, fallback to UTF-8 if (encoding == null) encoding = "UTF-8"; Map<String, List<String>> data = new HashMap<String, List<String>>(); // query not specified if (query == null) return data; StringTokenizer st = new StringTokenizer(query, "?&=", true); String prev = null; while (st.hasMoreTokens()) { String tk = st.nextToken(); if ("?".equals(tk)) continue; if ("&".equals(tk)) continue; if ("=".equals(tk)) { if (prev == null) continue; // no previous entry... if (!st.hasMoreTokens()) continue; // no more data String key = URLDecoder.decode(prev, encoding); String value = URLDecoder.decode(st.nextToken(), encoding); List<String> params = data.get(key); if (params == null) { params = new ArrayList<String>(); data.put(key, params); } params.add(value); prev = null; } else { // this is a key prev = tk; } } return data; }
|
public static Map<String, List<String>> parseParameters(HttpServletRequest request, String query) throws UnsupportedEncodingException { // get the request encoding String encoding = request.getCharacterEncoding(); // not found, fallback to UTF-8 if (encoding == null) encoding = "UTF-8"; Map<String, List<String>> data = new HashMap<String, List<String>>(); // query not specified if (query == null) return data; StringTokenizer st = new StringTokenizer(query, "?&=", true); String prev = null; while (st.hasMoreTokens()) { String tk = st.nextToken(); if ("?".equals(tk)) continue; if ("&".equals(tk)) continue; if ("=".equals(tk)) { if (prev == null) continue; // no previous entry... if (!st.hasMoreTokens()) continue; // no more data String key = URLDecoder.decode(prev, encoding); String value = URLDecoder.decode(st.nextToken(), encoding); List<String> params = data.get(key); if (params == null) { params = new ArrayList<String>(); data.put(key, params); } params.add(value); prev = null; } else { // this is a key prev = tk; } } return data; }
| 1,117,565
|
public static Map<String, List<String>> parseParameters(HttpServletRequest request, String query) throws UnsupportedEncodingException { // get the request encoding String encoding = request.getCharacterEncoding(); // not found, fallback to UTF-8 if (encoding == null) encoding = "UTF-8"; Map<String, List<String>> data = new HashMap<String, List<String>>(); // query not specified if (query == null) return data; StringTokenizer st = new StringTokenizer(query, "?&=", true); String prev = null; while (st.hasMoreTokens()) { String tk = st.nextToken(); if ("?".equals(tk)) continue; if ("&".equals(tk)) continue; if ("=".equals(tk)) { if (prev == null) continue; // no previous entry... if (!st.hasMoreTokens()) continue; // no more data String key = URLDecoder.decode(prev, encoding); String value = URLDecoder.decode(st.nextToken(), encoding); List<String> params = data.get(key); if (params == null) { params = new ArrayList<String>(); data.put(key, params); } params.add(value); prev = null; } else { // this is a key prev = tk; } } return data; }
|
public static Map<String, List<String>> parseParameters(HttpServletRequest request, String query) throws UnsupportedEncodingException { // get the request encoding String encoding = request.getCharacterEncoding(); // not found, fallback to UTF-8 if (encoding == null) encoding = "UTF-8"; Map<String, List<String>> data = new HashMap<String, List<String>>(); // query not specified if (query == null) return data; StringTokenizer st = new StringTokenizer(query, "?&=", true); String prev = null; while (st.hasMoreTokens()) { String tk = st.nextToken(); if ("?".equals(tk)) continue; if ("&".equals(tk)) continue; if ("=".equals(tk)) { if (prev == null) continue; // no previous entry... if (!st.hasMoreTokens()) continue; // no more data String key = URLDecoder.decode(prev, encoding); List<String> params = data.get(key); if (params == null) { params = new ArrayList<String>(); data.put(key, params); } params.add(value); prev = null; } else { // this is a key prev = tk; } } return data; }
| 1,117,566
|
public Map getUserAttributes(final Map seed) { // Checks to make sure the argument & state is valid if (seed == null) throw new IllegalArgumentException("The query seed Map cannot be null."); if (this.ldapContext == null) throw new IllegalStateException("LDAP context is null"); if (this.query == null) throw new IllegalStateException("query is null"); // Ensure the data needed to run the query is avalable if (!((queryAttributes != null && seed.keySet().containsAll(queryAttributes)) || (queryAttributes == null && seed.containsKey(this.getDefaultAttributeName())))) { return null; } try { if (this.ldapContext == null) { throw new IllegalStateException("No LdapContext specified."); } // Search for the userid in the usercontext subtree of the directory // Use the uidquery substituting username for {0}, {1}, ... final SearchControls sc = new SearchControls(); sc.setSearchScope(SearchControls.SUBTREE_SCOPE); sc.setTimeLimit(this.timeLimit); // Can't just to a toArray here since the order of the keys in the Map // may not match the order of the keys in the List and it is important to // the query. final Object[] args = new Object[this.queryAttributes.size()]; for (int index = 0; index < args.length; index++) { final String attrName = (String) this.queryAttributes.get(index); args[index] = seed.get(attrName); } // Search the LDAP final NamingEnumeration userlist = this.ldapContext.search(this.baseDN, this.query, args, sc); try { if (userlist.hasMoreElements()) { final Map rowResults = new HashMap(); final SearchResult result = (SearchResult) userlist.next(); // Only allow one result for the query, do the check here to // save on attribute processing time. if (userlist.hasMoreElements()) { throw new IncorrectResultSizeDataAccessException("More than one result for ldap person attribute search.", 1, -1); } final Attributes ldapAttributes = result.getAttributes(); // Iterate through the attributes for (final Iterator ldapAttrIter = this.ldapAttributesToPortalAttributes.keySet().iterator(); ldapAttrIter.hasNext();) { final String ldapAttributeName = (String) ldapAttrIter.next(); final Attribute attribute = ldapAttributes.get(ldapAttributeName); // The attribute exists if (attribute != null) { for (final NamingEnumeration attrValueEnum = attribute.getAll(); attrValueEnum.hasMore();) { Object attributeValue = attrValueEnum.next(); // Convert everything except byte[] to String // TODO should we be doing this conversion? if (!(attributeValue instanceof byte[])) { attributeValue = attributeValue.toString(); } // See if the ldap attribute is mapped Set attributeNames = (Set) ldapAttributesToPortalAttributes.get(ldapAttributeName); // No mapping was found, just use the ldap attribute name if (attributeNames == null) attributeNames = Collections.singleton(ldapAttributeName); // Run through the mapped attribute names for (final Iterator attrNameItr = attributeNames .iterator(); attrNameItr.hasNext();) { final String attributeName = (String) attrNameItr .next(); MultivaluedPersonAttributeUtils.addResult(rowResults, attributeName, attributeValue); } } } } return rowResults; } else { return null; } } finally { try { userlist.close(); } catch (final NamingException ne) { log.warn("Error closing ldap person attribute search results.", ne); } } } catch (final Throwable t) { throw new DataAccessResourceFailureException("LDAP person attribute lookup failure.", t); } }
|
public Map getUserAttributes(final Map seed) { // Checks to make sure the argument & state is valid if (seed == null) throw new IllegalArgumentException("The query seed Map cannot be null."); if (this.ldapContext == null) throw new IllegalStateException("LDAP context is null"); if (this.query == null) throw new IllegalStateException("query is null"); // Ensure the data needed to run the query is avalable if (!((queryAttributes != null && seed.keySet().containsAll(queryAttributes)) || (queryAttributes == null && seed.containsKey(this.getDefaultAttributeName())))) { return null; } try { if (this.ldapContext == null) { throw new IllegalStateException("No LdapContext specified."); } // Search for the userid in the usercontext subtree of the directory // Use the uidquery substituting username for {0}, {1}, ... final SearchControls sc = new SearchControls(); sc.setSearchScope(SearchControls.SUBTREE_SCOPE); sc.setTimeLimit(this.timeLimit); // Can't just to a toArray here since the order of the keys in the Map // may not match the order of the keys in the List and it is important to // the query. final Object[] args = new Object[this.queryAttributes.size()]; for (int index = 0; index < args.length; index++) { final String attrName = (String) this.queryAttributes.get(index); args[index] = seed.get(attrName); } // Search the LDAP final NamingEnumeration userlist = this.ldapContext.search(this.baseDN, this.query, args, sc); try { if (userlist.hasMoreElements()) { final Map rowResults = new HashMap(); final SearchResult result = (SearchResult) userlist.next(); // Only allow one result for the query, do the check here to // save on attribute processing time. if (userlist.hasMoreElements()) { throw new IncorrectResultSizeDataAccessException("More than one result for ldap person attribute search.", 1, -1); } final Attributes ldapAttributes = result.getAttributes(); // Iterate through the attributes for (final Iterator ldapAttrIter = this.ldapAttributesToPortalAttributes.keySet().iterator(); ldapAttrIter.hasNext();) { final String ldapAttributeName = (String) ldapAttrIter.next(); final Attribute attribute = ldapAttributes.get(ldapAttributeName); // The attribute exists if (attribute != null) { for (final NamingEnumeration attrValueEnum = attribute.getAll(); attrValueEnum.hasMore();) { Object attributeValue = attrValueEnum.next(); // Convert everything except byte[] to String // TODO should we be doing this conversion? if (!(attributeValue instanceof byte[])) { attributeValue = attributeValue.toString(); } // See if the ldap attribute is mapped Set attributeNames = (Set) ldapAttributesToPortalAttributes.get(ldapAttributeName); // No mapping was found, just use the ldap attribute name if (attributeNames == null) attributeNames = Collections.singleton(ldapAttributeName); // Run through the mapped attribute names for (final Iterator attrNameItr = attributeNames .iterator(); attrNameItr.hasNext();) { final String attributeName = (String) attrNameItr .next(); MultivaluedPersonAttributeUtils.addResult(rowResults, attributeName, attributeValue); } } } } return rowResults; } else { return null; } } finally { try { userlist.close(); } catch (final NamingException ne) { log.warn("Error closing ldap person attribute search results.", ne); } } } catch (final Throwable t) { throw new DataAccessResourceFailureException("LDAP person attribute lookup failure.", t); } }
| 1,117,567
|
static void addResult(final Map results, final Object key, final Object value) { if (results == null) { throw new IllegalArgumentException("Cannot add a result to a null map."); } if (key == null) { throw new IllegalArgumentException("Cannot add a result with a null key."); } if (value == null) { return; /* don't put null values into the Map. */ } final Object currentValue = results.get(key); //Key doesn't have a value yet, add the value if (currentValue == null) { results.put(key, value); } //Set of values else if (value instanceof List) { final List newValues = (List)value; //Key exists with List, add to it if (currentValue instanceof List) { final List values = (List)currentValue; values.addAll(newValues); results.put(key, values); } //Key exists with a single value, create a List else { final List values = new ArrayList(newValues.size() + 1); values.add(currentValue); values.addAll(newValues); results.put(key, values); } } //Standard value else { //Key exists with List, add to it if (currentValue instanceof List) { final List values = (List)currentValue; values.add(value); results.put(key, values); } //Key exists with a single value, create a List else { final List values = new ArrayList(2); values.add(currentValue); values.add(value); results.put(key, values); } } }
|
public static void addResult(final Map results, final Object key, final Object value) { if (results == null) { throw new IllegalArgumentException("Cannot add a result to a null map."); } if (key == null) { throw new IllegalArgumentException("Cannot add a result with a null key."); } if (value == null) { return; /* don't put null values into the Map. */ } final Object currentValue = results.get(key); //Key doesn't have a value yet, add the value if (currentValue == null) { results.put(key, value); } //Set of values else if (value instanceof List) { final List newValues = (List)value; //Key exists with List, add to it if (currentValue instanceof List) { final List values = (List)currentValue; values.addAll(newValues); results.put(key, values); } //Key exists with a single value, create a List else { final List values = new ArrayList(newValues.size() + 1); values.add(currentValue); values.addAll(newValues); results.put(key, values); } } //Standard value else { //Key exists with List, add to it if (currentValue instanceof List) { final List values = (List)currentValue; values.add(value); results.put(key, values); } //Key exists with a single value, create a List else { final List values = new ArrayList(2); values.add(currentValue); values.add(value); results.put(key, values); } } }
| 1,117,568
|
static Map parseAttributeToAttributeMapping(final Map mapping) { //null is assumed to be an empty map if (mapping == null) { return Collections.EMPTY_MAP; } //do a defenisve copy of the map final Map mappedAttributesBuilder = new HashMap(); for (final Iterator sourceAttrNameItr = mapping.keySet().iterator(); sourceAttrNameItr.hasNext(); ) { final Object key = sourceAttrNameItr.next(); //The key must exist if (key == null) { throw new IllegalArgumentException("The map from attribute names to attributes must not have any null keys."); } // the key must be of type String if (! (key instanceof String)) { throw new IllegalArgumentException("The map from attribute names to attributes must only have String keys. Encountered a key of class [" + key.getClass().getName() + "]"); } final String sourceAttrName = (String) key; final Object mappedAttribute = mapping.get(sourceAttrName); //Create a mapping to null if (mappedAttribute == null) { mappedAttributesBuilder.put(sourceAttrName, null); } //Create a single item set for the string mapping else if (mappedAttribute instanceof String) { final Set mappedSet = Collections.singleton(mappedAttribute); mappedAttributesBuilder.put(sourceAttrName, mappedSet); } //Create a defenisve copy of the mapped set & verify its contents are strings else if (mappedAttribute instanceof Set) { final Set sourceSet = (Set)mappedAttribute; final Set mappedSet = new HashSet(); for (final Iterator sourceSetItr = sourceSet.iterator(); sourceSetItr.hasNext(); ) { final Object mappedAttributeName = sourceSetItr.next(); if (mappedAttributeName instanceof String) { mappedSet.add(mappedAttributeName); } else { throw new IllegalArgumentException("Invalid mapped type. key='" + sourceAttrName + "', value type='" + mappedAttribute.getClass().getName() + "', sub value type='" + mappedAttributeName.getClass().getName() + "'"); } } mappedAttributesBuilder.put(sourceAttrName, Collections.unmodifiableSet(mappedSet)); } //Not a valid type for the mapping else { throw new IllegalArgumentException("Invalid mapped type. key='" + sourceAttrName + "', value type='" + mappedAttribute.getClass().getName() + "'"); } } return Collections.unmodifiableMap(mappedAttributesBuilder); }
|
public static Map parseAttributeToAttributeMapping(final Map mapping) { //null is assumed to be an empty map if (mapping == null) { return Collections.EMPTY_MAP; } //do a defenisve copy of the map final Map mappedAttributesBuilder = new HashMap(); for (final Iterator sourceAttrNameItr = mapping.keySet().iterator(); sourceAttrNameItr.hasNext(); ) { final Object key = sourceAttrNameItr.next(); //The key must exist if (key == null) { throw new IllegalArgumentException("The map from attribute names to attributes must not have any null keys."); } // the key must be of type String if (! (key instanceof String)) { throw new IllegalArgumentException("The map from attribute names to attributes must only have String keys. Encountered a key of class [" + key.getClass().getName() + "]"); } final String sourceAttrName = (String) key; final Object mappedAttribute = mapping.get(sourceAttrName); //Create a mapping to null if (mappedAttribute == null) { mappedAttributesBuilder.put(sourceAttrName, null); } //Create a single item set for the string mapping else if (mappedAttribute instanceof String) { final Set mappedSet = Collections.singleton(mappedAttribute); mappedAttributesBuilder.put(sourceAttrName, mappedSet); } //Create a defenisve copy of the mapped set & verify its contents are strings else if (mappedAttribute instanceof Set) { final Set sourceSet = (Set)mappedAttribute; final Set mappedSet = new HashSet(); for (final Iterator sourceSetItr = sourceSet.iterator(); sourceSetItr.hasNext(); ) { final Object mappedAttributeName = sourceSetItr.next(); if (mappedAttributeName instanceof String) { mappedSet.add(mappedAttributeName); } else { throw new IllegalArgumentException("Invalid mapped type. key='" + sourceAttrName + "', value type='" + mappedAttribute.getClass().getName() + "', sub value type='" + mappedAttributeName.getClass().getName() + "'"); } } mappedAttributesBuilder.put(sourceAttrName, Collections.unmodifiableSet(mappedSet)); } //Not a valid type for the mapping else { throw new IllegalArgumentException("Invalid mapped type. key='" + sourceAttrName + "', value type='" + mappedAttribute.getClass().getName() + "'"); } } return Collections.unmodifiableMap(mappedAttributesBuilder); }
| 1,117,569
|
static Collection flattenCollection(final Collection source) { if (source == null) { throw new IllegalArgumentException("Cannot flatten a null collection."); } final Collection result = new LinkedList(); for (final Iterator setItr = source.iterator(); setItr.hasNext();) { final Object value = setItr.next(); if (value instanceof Collection) { final Collection flatCollection = flattenCollection((Collection)value); result.addAll(flatCollection); } else { result.add(value); } } return result; }
|
public static Collection flattenCollection(final Collection source) { if (source == null) { throw new IllegalArgumentException("Cannot flatten a null collection."); } final Collection result = new LinkedList(); for (final Iterator setItr = source.iterator(); setItr.hasNext();) { final Object value = setItr.next(); if (value instanceof Collection) { final Collection flatCollection = flattenCollection((Collection)value); result.addAll(flatCollection); } else { result.add(value); } } return result; }
| 1,117,570
|
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { currentModel.viewAll(); } else if( command == MenuBar.FILTER_ADMINISTRATIVE_MESSAGES ) { currentModel.viewAdministrative(); } else if( command == MenuBar.FILTER_APPLICATION_MESSAGES ) { currentModel.viewApplication(); } else if( command == MenuBar.FILTER_INDICATION_CATEGORY ) { currentModel.viewCategory( Category.Indication ); } else if( command == MenuBar.FILTER_EVENT_COMMUNICATION_CATEGORY ) { currentModel.viewCategory( Category.EventCommunication ); } else if( command == MenuBar.FILTER_QUOTATION_NEGOTIATION_CATEGORY ) { currentModel.viewCategory( Category.QuoteNegotiation ); } else if( command == MenuBar.FILTER_MARKET_DATA_CATEGORY ) { currentModel.viewCategory( Category.MarketData ); } else if( command == MenuBar.FILTER_SECURITY_AND_TRADING_SESSION_CATEGORY ) { currentModel.viewCategory( Category.SecurityAndTradingSessionDefinitionStatus ); } else if( command == MenuBar.FILTER_SINGLE_GENERAL_ORDER_HANDLING_CATEGORY ) { currentModel.viewCategory( Category.SingleGeneralOrderHandling ); } else if( command == MenuBar.FILTER_CROSS_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.CrossOrder ); } else if( command == MenuBar.FILTER_MULTILEG_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.MultiLegOrders ); } else if( command == MenuBar.FILTER_LIST_PROGRAM_BASKET_TRADING_CATEGORY ) { currentModel.viewCategory( Category.ListProgramBasketTrading ); } else if( command == MenuBar.FILTER_ALLOCATION_CATEGORY ) { currentModel.viewCategory( Category.Allocation ); } else if( command == MenuBar.FILTER_CONFIRMATION_CATEGORY ) { currentModel.viewCategory( Category.Confirmation ); } else if( command == MenuBar.FILTER_SETTLEMENT_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.SettlementInstructions ); } else if( command == MenuBar.FILTER_TRADE_CAPTURE_REPORTING_CATEGORY ) { currentModel.viewCategory( Category.TradeCaptureReporting ); } else if( command == MenuBar.FILTER_REGISTRATION_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.RegistrationInstructions ); } else if( command == MenuBar.FILTER_POSITIONS_MAINTENANCE_CATEGORY ) { currentModel.viewCategory( Category.PositionsManagement ); } else if( command == MenuBar.FILTER_COLLATERAL_MANAGEMENT_CATEGORY ) { currentModel.viewCategory( Category.CollateralManagement ); } else if( command == MenuBar.FILTER_CUSTOM_FILTER ) { applyFilter( null ); } else if( command == MenuBar.HELP_ABOUT ) { showAbout(); } else { setEnabled( false ); menuBar.setEnabled( false ); new ActionThread( e ) { public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); } }.start(); } }
|
public void actionPerformed(final ActionEvent e) { Object source = e.getSource(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { currentModel.viewAll(); } else if( command == MenuBar.FILTER_ADMINISTRATIVE_MESSAGES ) { currentModel.viewAdministrative(); } else if( command == MenuBar.FILTER_APPLICATION_MESSAGES ) { currentModel.viewApplication(); } else if( command == MenuBar.FILTER_INDICATION_CATEGORY ) { currentModel.viewCategory( Category.Indication ); } else if( command == MenuBar.FILTER_EVENT_COMMUNICATION_CATEGORY ) { currentModel.viewCategory( Category.EventCommunication ); } else if( command == MenuBar.FILTER_QUOTATION_NEGOTIATION_CATEGORY ) { currentModel.viewCategory( Category.QuoteNegotiation ); } else if( command == MenuBar.FILTER_MARKET_DATA_CATEGORY ) { currentModel.viewCategory( Category.MarketData ); } else if( command == MenuBar.FILTER_SECURITY_AND_TRADING_SESSION_CATEGORY ) { currentModel.viewCategory( Category.SecurityAndTradingSessionDefinitionStatus ); } else if( command == MenuBar.FILTER_SINGLE_GENERAL_ORDER_HANDLING_CATEGORY ) { currentModel.viewCategory( Category.SingleGeneralOrderHandling ); } else if( command == MenuBar.FILTER_CROSS_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.CrossOrder ); } else if( command == MenuBar.FILTER_MULTILEG_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.MultiLegOrders ); } else if( command == MenuBar.FILTER_LIST_PROGRAM_BASKET_TRADING_CATEGORY ) { currentModel.viewCategory( Category.ListProgramBasketTrading ); } else if( command == MenuBar.FILTER_ALLOCATION_CATEGORY ) { currentModel.viewCategory( Category.Allocation ); } else if( command == MenuBar.FILTER_CONFIRMATION_CATEGORY ) { currentModel.viewCategory( Category.Confirmation ); } else if( command == MenuBar.FILTER_SETTLEMENT_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.SettlementInstructions ); } else if( command == MenuBar.FILTER_TRADE_CAPTURE_REPORTING_CATEGORY ) { currentModel.viewCategory( Category.TradeCaptureReporting ); } else if( command == MenuBar.FILTER_REGISTRATION_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.RegistrationInstructions ); } else if( command == MenuBar.FILTER_POSITIONS_MAINTENANCE_CATEGORY ) { currentModel.viewCategory( Category.PositionsManagement ); } else if( command == MenuBar.FILTER_COLLATERAL_MANAGEMENT_CATEGORY ) { currentModel.viewCategory( Category.CollateralManagement ); } else if( command == MenuBar.FILTER_CUSTOM_FILTER ) { applyFilter( null ); } else if( command == MenuBar.HELP_ABOUT ) { showAbout(); } else { setEnabled( false ); menuBar.setEnabled( false ); new ActionThread( e ) { public void run() { Object source = e.getSource(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); } }.start(); } }
| 1,117,571
|
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { currentModel.viewAll(); } else if( command == MenuBar.FILTER_ADMINISTRATIVE_MESSAGES ) { currentModel.viewAdministrative(); } else if( command == MenuBar.FILTER_APPLICATION_MESSAGES ) { currentModel.viewApplication(); } else if( command == MenuBar.FILTER_INDICATION_CATEGORY ) { currentModel.viewCategory( Category.Indication ); } else if( command == MenuBar.FILTER_EVENT_COMMUNICATION_CATEGORY ) { currentModel.viewCategory( Category.EventCommunication ); } else if( command == MenuBar.FILTER_QUOTATION_NEGOTIATION_CATEGORY ) { currentModel.viewCategory( Category.QuoteNegotiation ); } else if( command == MenuBar.FILTER_MARKET_DATA_CATEGORY ) { currentModel.viewCategory( Category.MarketData ); } else if( command == MenuBar.FILTER_SECURITY_AND_TRADING_SESSION_CATEGORY ) { currentModel.viewCategory( Category.SecurityAndTradingSessionDefinitionStatus ); } else if( command == MenuBar.FILTER_SINGLE_GENERAL_ORDER_HANDLING_CATEGORY ) { currentModel.viewCategory( Category.SingleGeneralOrderHandling ); } else if( command == MenuBar.FILTER_CROSS_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.CrossOrder ); } else if( command == MenuBar.FILTER_MULTILEG_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.MultiLegOrders ); } else if( command == MenuBar.FILTER_LIST_PROGRAM_BASKET_TRADING_CATEGORY ) { currentModel.viewCategory( Category.ListProgramBasketTrading ); } else if( command == MenuBar.FILTER_ALLOCATION_CATEGORY ) { currentModel.viewCategory( Category.Allocation ); } else if( command == MenuBar.FILTER_CONFIRMATION_CATEGORY ) { currentModel.viewCategory( Category.Confirmation ); } else if( command == MenuBar.FILTER_SETTLEMENT_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.SettlementInstructions ); } else if( command == MenuBar.FILTER_TRADE_CAPTURE_REPORTING_CATEGORY ) { currentModel.viewCategory( Category.TradeCaptureReporting ); } else if( command == MenuBar.FILTER_REGISTRATION_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.RegistrationInstructions ); } else if( command == MenuBar.FILTER_POSITIONS_MAINTENANCE_CATEGORY ) { currentModel.viewCategory( Category.PositionsManagement ); } else if( command == MenuBar.FILTER_COLLATERAL_MANAGEMENT_CATEGORY ) { currentModel.viewCategory( Category.CollateralManagement ); } else if( command == MenuBar.FILTER_CUSTOM_FILTER ) { applyFilter( null ); } else if( command == MenuBar.HELP_ABOUT ) { showAbout(); } else { setEnabled( false ); menuBar.setEnabled( false ); new ActionThread( e ) { public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); } }.start(); } }
|
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( source == MenuBar.fileClose ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { currentModel.viewAll(); } else if( command == MenuBar.FILTER_ADMINISTRATIVE_MESSAGES ) { currentModel.viewAdministrative(); } else if( command == MenuBar.FILTER_APPLICATION_MESSAGES ) { currentModel.viewApplication(); } else if( command == MenuBar.FILTER_INDICATION_CATEGORY ) { currentModel.viewCategory( Category.Indication ); } else if( command == MenuBar.FILTER_EVENT_COMMUNICATION_CATEGORY ) { currentModel.viewCategory( Category.EventCommunication ); } else if( command == MenuBar.FILTER_QUOTATION_NEGOTIATION_CATEGORY ) { currentModel.viewCategory( Category.QuoteNegotiation ); } else if( command == MenuBar.FILTER_MARKET_DATA_CATEGORY ) { currentModel.viewCategory( Category.MarketData ); } else if( command == MenuBar.FILTER_SECURITY_AND_TRADING_SESSION_CATEGORY ) { currentModel.viewCategory( Category.SecurityAndTradingSessionDefinitionStatus ); } else if( command == MenuBar.FILTER_SINGLE_GENERAL_ORDER_HANDLING_CATEGORY ) { currentModel.viewCategory( Category.SingleGeneralOrderHandling ); } else if( command == MenuBar.FILTER_CROSS_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.CrossOrder ); } else if( command == MenuBar.FILTER_MULTILEG_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.MultiLegOrders ); } else if( command == MenuBar.FILTER_LIST_PROGRAM_BASKET_TRADING_CATEGORY ) { currentModel.viewCategory( Category.ListProgramBasketTrading ); } else if( command == MenuBar.FILTER_ALLOCATION_CATEGORY ) { currentModel.viewCategory( Category.Allocation ); } else if( command == MenuBar.FILTER_CONFIRMATION_CATEGORY ) { currentModel.viewCategory( Category.Confirmation ); } else if( command == MenuBar.FILTER_SETTLEMENT_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.SettlementInstructions ); } else if( command == MenuBar.FILTER_TRADE_CAPTURE_REPORTING_CATEGORY ) { currentModel.viewCategory( Category.TradeCaptureReporting ); } else if( command == MenuBar.FILTER_REGISTRATION_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.RegistrationInstructions ); } else if( command == MenuBar.FILTER_POSITIONS_MAINTENANCE_CATEGORY ) { currentModel.viewCategory( Category.PositionsManagement ); } else if( command == MenuBar.FILTER_COLLATERAL_MANAGEMENT_CATEGORY ) { currentModel.viewCategory( Category.CollateralManagement ); } else if( command == MenuBar.FILTER_CUSTOM_FILTER ) { applyFilter( null ); } else if( command == MenuBar.HELP_ABOUT ) { showAbout(); } else { setEnabled( false ); menuBar.setEnabled( false ); new ActionThread( e ) { public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); } }.start(); } }
| 1,117,572
|
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { currentModel.viewAll(); } else if( command == MenuBar.FILTER_ADMINISTRATIVE_MESSAGES ) { currentModel.viewAdministrative(); } else if( command == MenuBar.FILTER_APPLICATION_MESSAGES ) { currentModel.viewApplication(); } else if( command == MenuBar.FILTER_INDICATION_CATEGORY ) { currentModel.viewCategory( Category.Indication ); } else if( command == MenuBar.FILTER_EVENT_COMMUNICATION_CATEGORY ) { currentModel.viewCategory( Category.EventCommunication ); } else if( command == MenuBar.FILTER_QUOTATION_NEGOTIATION_CATEGORY ) { currentModel.viewCategory( Category.QuoteNegotiation ); } else if( command == MenuBar.FILTER_MARKET_DATA_CATEGORY ) { currentModel.viewCategory( Category.MarketData ); } else if( command == MenuBar.FILTER_SECURITY_AND_TRADING_SESSION_CATEGORY ) { currentModel.viewCategory( Category.SecurityAndTradingSessionDefinitionStatus ); } else if( command == MenuBar.FILTER_SINGLE_GENERAL_ORDER_HANDLING_CATEGORY ) { currentModel.viewCategory( Category.SingleGeneralOrderHandling ); } else if( command == MenuBar.FILTER_CROSS_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.CrossOrder ); } else if( command == MenuBar.FILTER_MULTILEG_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.MultiLegOrders ); } else if( command == MenuBar.FILTER_LIST_PROGRAM_BASKET_TRADING_CATEGORY ) { currentModel.viewCategory( Category.ListProgramBasketTrading ); } else if( command == MenuBar.FILTER_ALLOCATION_CATEGORY ) { currentModel.viewCategory( Category.Allocation ); } else if( command == MenuBar.FILTER_CONFIRMATION_CATEGORY ) { currentModel.viewCategory( Category.Confirmation ); } else if( command == MenuBar.FILTER_SETTLEMENT_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.SettlementInstructions ); } else if( command == MenuBar.FILTER_TRADE_CAPTURE_REPORTING_CATEGORY ) { currentModel.viewCategory( Category.TradeCaptureReporting ); } else if( command == MenuBar.FILTER_REGISTRATION_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.RegistrationInstructions ); } else if( command == MenuBar.FILTER_POSITIONS_MAINTENANCE_CATEGORY ) { currentModel.viewCategory( Category.PositionsManagement ); } else if( command == MenuBar.FILTER_COLLATERAL_MANAGEMENT_CATEGORY ) { currentModel.viewCategory( Category.CollateralManagement ); } else if( command == MenuBar.FILTER_CUSTOM_FILTER ) { applyFilter( null ); } else if( command == MenuBar.HELP_ABOUT ) { showAbout(); } else { setEnabled( false ); menuBar.setEnabled( false ); new ActionThread( e ) { public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); } }.start(); } }
|
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( source == MenuBar.fileTrace ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { currentModel.viewAll(); } else if( command == MenuBar.FILTER_ADMINISTRATIVE_MESSAGES ) { currentModel.viewAdministrative(); } else if( command == MenuBar.FILTER_APPLICATION_MESSAGES ) { currentModel.viewApplication(); } else if( command == MenuBar.FILTER_INDICATION_CATEGORY ) { currentModel.viewCategory( Category.Indication ); } else if( command == MenuBar.FILTER_EVENT_COMMUNICATION_CATEGORY ) { currentModel.viewCategory( Category.EventCommunication ); } else if( command == MenuBar.FILTER_QUOTATION_NEGOTIATION_CATEGORY ) { currentModel.viewCategory( Category.QuoteNegotiation ); } else if( command == MenuBar.FILTER_MARKET_DATA_CATEGORY ) { currentModel.viewCategory( Category.MarketData ); } else if( command == MenuBar.FILTER_SECURITY_AND_TRADING_SESSION_CATEGORY ) { currentModel.viewCategory( Category.SecurityAndTradingSessionDefinitionStatus ); } else if( command == MenuBar.FILTER_SINGLE_GENERAL_ORDER_HANDLING_CATEGORY ) { currentModel.viewCategory( Category.SingleGeneralOrderHandling ); } else if( command == MenuBar.FILTER_CROSS_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.CrossOrder ); } else if( command == MenuBar.FILTER_MULTILEG_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.MultiLegOrders ); } else if( command == MenuBar.FILTER_LIST_PROGRAM_BASKET_TRADING_CATEGORY ) { currentModel.viewCategory( Category.ListProgramBasketTrading ); } else if( command == MenuBar.FILTER_ALLOCATION_CATEGORY ) { currentModel.viewCategory( Category.Allocation ); } else if( command == MenuBar.FILTER_CONFIRMATION_CATEGORY ) { currentModel.viewCategory( Category.Confirmation ); } else if( command == MenuBar.FILTER_SETTLEMENT_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.SettlementInstructions ); } else if( command == MenuBar.FILTER_TRADE_CAPTURE_REPORTING_CATEGORY ) { currentModel.viewCategory( Category.TradeCaptureReporting ); } else if( command == MenuBar.FILTER_REGISTRATION_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.RegistrationInstructions ); } else if( command == MenuBar.FILTER_POSITIONS_MAINTENANCE_CATEGORY ) { currentModel.viewCategory( Category.PositionsManagement ); } else if( command == MenuBar.FILTER_COLLATERAL_MANAGEMENT_CATEGORY ) { currentModel.viewCategory( Category.CollateralManagement ); } else if( command == MenuBar.FILTER_CUSTOM_FILTER ) { applyFilter( null ); } else if( command == MenuBar.HELP_ABOUT ) { showAbout(); } else { setEnabled( false ); menuBar.setEnabled( false ); new ActionThread( e ) { public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); } }.start(); } }
| 1,117,573
|
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { currentModel.viewAll(); } else if( command == MenuBar.FILTER_ADMINISTRATIVE_MESSAGES ) { currentModel.viewAdministrative(); } else if( command == MenuBar.FILTER_APPLICATION_MESSAGES ) { currentModel.viewApplication(); } else if( command == MenuBar.FILTER_INDICATION_CATEGORY ) { currentModel.viewCategory( Category.Indication ); } else if( command == MenuBar.FILTER_EVENT_COMMUNICATION_CATEGORY ) { currentModel.viewCategory( Category.EventCommunication ); } else if( command == MenuBar.FILTER_QUOTATION_NEGOTIATION_CATEGORY ) { currentModel.viewCategory( Category.QuoteNegotiation ); } else if( command == MenuBar.FILTER_MARKET_DATA_CATEGORY ) { currentModel.viewCategory( Category.MarketData ); } else if( command == MenuBar.FILTER_SECURITY_AND_TRADING_SESSION_CATEGORY ) { currentModel.viewCategory( Category.SecurityAndTradingSessionDefinitionStatus ); } else if( command == MenuBar.FILTER_SINGLE_GENERAL_ORDER_HANDLING_CATEGORY ) { currentModel.viewCategory( Category.SingleGeneralOrderHandling ); } else if( command == MenuBar.FILTER_CROSS_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.CrossOrder ); } else if( command == MenuBar.FILTER_MULTILEG_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.MultiLegOrders ); } else if( command == MenuBar.FILTER_LIST_PROGRAM_BASKET_TRADING_CATEGORY ) { currentModel.viewCategory( Category.ListProgramBasketTrading ); } else if( command == MenuBar.FILTER_ALLOCATION_CATEGORY ) { currentModel.viewCategory( Category.Allocation ); } else if( command == MenuBar.FILTER_CONFIRMATION_CATEGORY ) { currentModel.viewCategory( Category.Confirmation ); } else if( command == MenuBar.FILTER_SETTLEMENT_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.SettlementInstructions ); } else if( command == MenuBar.FILTER_TRADE_CAPTURE_REPORTING_CATEGORY ) { currentModel.viewCategory( Category.TradeCaptureReporting ); } else if( command == MenuBar.FILTER_REGISTRATION_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.RegistrationInstructions ); } else if( command == MenuBar.FILTER_POSITIONS_MAINTENANCE_CATEGORY ) { currentModel.viewCategory( Category.PositionsManagement ); } else if( command == MenuBar.FILTER_COLLATERAL_MANAGEMENT_CATEGORY ) { currentModel.viewCategory( Category.CollateralManagement ); } else if( command == MenuBar.FILTER_CUSTOM_FILTER ) { applyFilter( null ); } else if( command == MenuBar.HELP_ABOUT ) { showAbout(); } else { setEnabled( false ); menuBar.setEnabled( false ); new ActionThread( e ) { public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); } }.start(); } }
|
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( source == MenuBar.filterAllMessages ) { currentModel.viewAll(); } else if( command == MenuBar.FILTER_ADMINISTRATIVE_MESSAGES ) { currentModel.viewAdministrative(); } else if( command == MenuBar.FILTER_APPLICATION_MESSAGES ) { currentModel.viewApplication(); } else if( command == MenuBar.FILTER_INDICATION_CATEGORY ) { currentModel.viewCategory( Category.Indication ); } else if( command == MenuBar.FILTER_EVENT_COMMUNICATION_CATEGORY ) { currentModel.viewCategory( Category.EventCommunication ); } else if( command == MenuBar.FILTER_QUOTATION_NEGOTIATION_CATEGORY ) { currentModel.viewCategory( Category.QuoteNegotiation ); } else if( command == MenuBar.FILTER_MARKET_DATA_CATEGORY ) { currentModel.viewCategory( Category.MarketData ); } else if( command == MenuBar.FILTER_SECURITY_AND_TRADING_SESSION_CATEGORY ) { currentModel.viewCategory( Category.SecurityAndTradingSessionDefinitionStatus ); } else if( command == MenuBar.FILTER_SINGLE_GENERAL_ORDER_HANDLING_CATEGORY ) { currentModel.viewCategory( Category.SingleGeneralOrderHandling ); } else if( command == MenuBar.FILTER_CROSS_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.CrossOrder ); } else if( command == MenuBar.FILTER_MULTILEG_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.MultiLegOrders ); } else if( command == MenuBar.FILTER_LIST_PROGRAM_BASKET_TRADING_CATEGORY ) { currentModel.viewCategory( Category.ListProgramBasketTrading ); } else if( command == MenuBar.FILTER_ALLOCATION_CATEGORY ) { currentModel.viewCategory( Category.Allocation ); } else if( command == MenuBar.FILTER_CONFIRMATION_CATEGORY ) { currentModel.viewCategory( Category.Confirmation ); } else if( command == MenuBar.FILTER_SETTLEMENT_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.SettlementInstructions ); } else if( command == MenuBar.FILTER_TRADE_CAPTURE_REPORTING_CATEGORY ) { currentModel.viewCategory( Category.TradeCaptureReporting ); } else if( command == MenuBar.FILTER_REGISTRATION_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.RegistrationInstructions ); } else if( command == MenuBar.FILTER_POSITIONS_MAINTENANCE_CATEGORY ) { currentModel.viewCategory( Category.PositionsManagement ); } else if( command == MenuBar.FILTER_COLLATERAL_MANAGEMENT_CATEGORY ) { currentModel.viewCategory( Category.CollateralManagement ); } else if( command == MenuBar.FILTER_CUSTOM_FILTER ) { applyFilter( null ); } else if( command == MenuBar.HELP_ABOUT ) { showAbout(); } else { setEnabled( false ); menuBar.setEnabled( false ); new ActionThread( e ) { public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); } }.start(); } }
| 1,117,574
|
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { currentModel.viewAll(); } else if( command == MenuBar.FILTER_ADMINISTRATIVE_MESSAGES ) { currentModel.viewAdministrative(); } else if( command == MenuBar.FILTER_APPLICATION_MESSAGES ) { currentModel.viewApplication(); } else if( command == MenuBar.FILTER_INDICATION_CATEGORY ) { currentModel.viewCategory( Category.Indication ); } else if( command == MenuBar.FILTER_EVENT_COMMUNICATION_CATEGORY ) { currentModel.viewCategory( Category.EventCommunication ); } else if( command == MenuBar.FILTER_QUOTATION_NEGOTIATION_CATEGORY ) { currentModel.viewCategory( Category.QuoteNegotiation ); } else if( command == MenuBar.FILTER_MARKET_DATA_CATEGORY ) { currentModel.viewCategory( Category.MarketData ); } else if( command == MenuBar.FILTER_SECURITY_AND_TRADING_SESSION_CATEGORY ) { currentModel.viewCategory( Category.SecurityAndTradingSessionDefinitionStatus ); } else if( command == MenuBar.FILTER_SINGLE_GENERAL_ORDER_HANDLING_CATEGORY ) { currentModel.viewCategory( Category.SingleGeneralOrderHandling ); } else if( command == MenuBar.FILTER_CROSS_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.CrossOrder ); } else if( command == MenuBar.FILTER_MULTILEG_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.MultiLegOrders ); } else if( command == MenuBar.FILTER_LIST_PROGRAM_BASKET_TRADING_CATEGORY ) { currentModel.viewCategory( Category.ListProgramBasketTrading ); } else if( command == MenuBar.FILTER_ALLOCATION_CATEGORY ) { currentModel.viewCategory( Category.Allocation ); } else if( command == MenuBar.FILTER_CONFIRMATION_CATEGORY ) { currentModel.viewCategory( Category.Confirmation ); } else if( command == MenuBar.FILTER_SETTLEMENT_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.SettlementInstructions ); } else if( command == MenuBar.FILTER_TRADE_CAPTURE_REPORTING_CATEGORY ) { currentModel.viewCategory( Category.TradeCaptureReporting ); } else if( command == MenuBar.FILTER_REGISTRATION_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.RegistrationInstructions ); } else if( command == MenuBar.FILTER_POSITIONS_MAINTENANCE_CATEGORY ) { currentModel.viewCategory( Category.PositionsManagement ); } else if( command == MenuBar.FILTER_COLLATERAL_MANAGEMENT_CATEGORY ) { currentModel.viewCategory( Category.CollateralManagement ); } else if( command == MenuBar.FILTER_CUSTOM_FILTER ) { applyFilter( null ); } else if( command == MenuBar.HELP_ABOUT ) { showAbout(); } else { setEnabled( false ); menuBar.setEnabled( false ); new ActionThread( e ) { public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); } }.start(); } }
|
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { currentModel.viewAll(); } else if( source == MenuBar.filterAdministrativeMessages ) { currentModel.viewAdministrative(); } else if( command == MenuBar.FILTER_APPLICATION_MESSAGES ) { currentModel.viewApplication(); } else if( command == MenuBar.FILTER_INDICATION_CATEGORY ) { currentModel.viewCategory( Category.Indication ); } else if( command == MenuBar.FILTER_EVENT_COMMUNICATION_CATEGORY ) { currentModel.viewCategory( Category.EventCommunication ); } else if( command == MenuBar.FILTER_QUOTATION_NEGOTIATION_CATEGORY ) { currentModel.viewCategory( Category.QuoteNegotiation ); } else if( command == MenuBar.FILTER_MARKET_DATA_CATEGORY ) { currentModel.viewCategory( Category.MarketData ); } else if( command == MenuBar.FILTER_SECURITY_AND_TRADING_SESSION_CATEGORY ) { currentModel.viewCategory( Category.SecurityAndTradingSessionDefinitionStatus ); } else if( command == MenuBar.FILTER_SINGLE_GENERAL_ORDER_HANDLING_CATEGORY ) { currentModel.viewCategory( Category.SingleGeneralOrderHandling ); } else if( command == MenuBar.FILTER_CROSS_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.CrossOrder ); } else if( command == MenuBar.FILTER_MULTILEG_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.MultiLegOrders ); } else if( command == MenuBar.FILTER_LIST_PROGRAM_BASKET_TRADING_CATEGORY ) { currentModel.viewCategory( Category.ListProgramBasketTrading ); } else if( command == MenuBar.FILTER_ALLOCATION_CATEGORY ) { currentModel.viewCategory( Category.Allocation ); } else if( command == MenuBar.FILTER_CONFIRMATION_CATEGORY ) { currentModel.viewCategory( Category.Confirmation ); } else if( command == MenuBar.FILTER_SETTLEMENT_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.SettlementInstructions ); } else if( command == MenuBar.FILTER_TRADE_CAPTURE_REPORTING_CATEGORY ) { currentModel.viewCategory( Category.TradeCaptureReporting ); } else if( command == MenuBar.FILTER_REGISTRATION_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.RegistrationInstructions ); } else if( command == MenuBar.FILTER_POSITIONS_MAINTENANCE_CATEGORY ) { currentModel.viewCategory( Category.PositionsManagement ); } else if( command == MenuBar.FILTER_COLLATERAL_MANAGEMENT_CATEGORY ) { currentModel.viewCategory( Category.CollateralManagement ); } else if( command == MenuBar.FILTER_CUSTOM_FILTER ) { applyFilter( null ); } else if( command == MenuBar.HELP_ABOUT ) { showAbout(); } else { setEnabled( false ); menuBar.setEnabled( false ); new ActionThread( e ) { public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); } }.start(); } }
| 1,117,575
|
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { currentModel.viewAll(); } else if( command == MenuBar.FILTER_ADMINISTRATIVE_MESSAGES ) { currentModel.viewAdministrative(); } else if( command == MenuBar.FILTER_APPLICATION_MESSAGES ) { currentModel.viewApplication(); } else if( command == MenuBar.FILTER_INDICATION_CATEGORY ) { currentModel.viewCategory( Category.Indication ); } else if( command == MenuBar.FILTER_EVENT_COMMUNICATION_CATEGORY ) { currentModel.viewCategory( Category.EventCommunication ); } else if( command == MenuBar.FILTER_QUOTATION_NEGOTIATION_CATEGORY ) { currentModel.viewCategory( Category.QuoteNegotiation ); } else if( command == MenuBar.FILTER_MARKET_DATA_CATEGORY ) { currentModel.viewCategory( Category.MarketData ); } else if( command == MenuBar.FILTER_SECURITY_AND_TRADING_SESSION_CATEGORY ) { currentModel.viewCategory( Category.SecurityAndTradingSessionDefinitionStatus ); } else if( command == MenuBar.FILTER_SINGLE_GENERAL_ORDER_HANDLING_CATEGORY ) { currentModel.viewCategory( Category.SingleGeneralOrderHandling ); } else if( command == MenuBar.FILTER_CROSS_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.CrossOrder ); } else if( command == MenuBar.FILTER_MULTILEG_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.MultiLegOrders ); } else if( command == MenuBar.FILTER_LIST_PROGRAM_BASKET_TRADING_CATEGORY ) { currentModel.viewCategory( Category.ListProgramBasketTrading ); } else if( command == MenuBar.FILTER_ALLOCATION_CATEGORY ) { currentModel.viewCategory( Category.Allocation ); } else if( command == MenuBar.FILTER_CONFIRMATION_CATEGORY ) { currentModel.viewCategory( Category.Confirmation ); } else if( command == MenuBar.FILTER_SETTLEMENT_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.SettlementInstructions ); } else if( command == MenuBar.FILTER_TRADE_CAPTURE_REPORTING_CATEGORY ) { currentModel.viewCategory( Category.TradeCaptureReporting ); } else if( command == MenuBar.FILTER_REGISTRATION_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.RegistrationInstructions ); } else if( command == MenuBar.FILTER_POSITIONS_MAINTENANCE_CATEGORY ) { currentModel.viewCategory( Category.PositionsManagement ); } else if( command == MenuBar.FILTER_COLLATERAL_MANAGEMENT_CATEGORY ) { currentModel.viewCategory( Category.CollateralManagement ); } else if( command == MenuBar.FILTER_CUSTOM_FILTER ) { applyFilter( null ); } else if( command == MenuBar.HELP_ABOUT ) { showAbout(); } else { setEnabled( false ); menuBar.setEnabled( false ); new ActionThread( e ) { public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); } }.start(); } }
|
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { currentModel.viewAll(); } else if( command == MenuBar.FILTER_ADMINISTRATIVE_MESSAGES ) { currentModel.viewAdministrative(); } else if( source == MenuBar.filterApplicationMessages ) { currentModel.viewApplication(); } else if( command == MenuBar.FILTER_INDICATION_CATEGORY ) { currentModel.viewCategory( Category.Indication ); } else if( command == MenuBar.FILTER_EVENT_COMMUNICATION_CATEGORY ) { currentModel.viewCategory( Category.EventCommunication ); } else if( command == MenuBar.FILTER_QUOTATION_NEGOTIATION_CATEGORY ) { currentModel.viewCategory( Category.QuoteNegotiation ); } else if( command == MenuBar.FILTER_MARKET_DATA_CATEGORY ) { currentModel.viewCategory( Category.MarketData ); } else if( command == MenuBar.FILTER_SECURITY_AND_TRADING_SESSION_CATEGORY ) { currentModel.viewCategory( Category.SecurityAndTradingSessionDefinitionStatus ); } else if( command == MenuBar.FILTER_SINGLE_GENERAL_ORDER_HANDLING_CATEGORY ) { currentModel.viewCategory( Category.SingleGeneralOrderHandling ); } else if( command == MenuBar.FILTER_CROSS_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.CrossOrder ); } else if( command == MenuBar.FILTER_MULTILEG_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.MultiLegOrders ); } else if( command == MenuBar.FILTER_LIST_PROGRAM_BASKET_TRADING_CATEGORY ) { currentModel.viewCategory( Category.ListProgramBasketTrading ); } else if( command == MenuBar.FILTER_ALLOCATION_CATEGORY ) { currentModel.viewCategory( Category.Allocation ); } else if( command == MenuBar.FILTER_CONFIRMATION_CATEGORY ) { currentModel.viewCategory( Category.Confirmation ); } else if( command == MenuBar.FILTER_SETTLEMENT_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.SettlementInstructions ); } else if( command == MenuBar.FILTER_TRADE_CAPTURE_REPORTING_CATEGORY ) { currentModel.viewCategory( Category.TradeCaptureReporting ); } else if( command == MenuBar.FILTER_REGISTRATION_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.RegistrationInstructions ); } else if( command == MenuBar.FILTER_POSITIONS_MAINTENANCE_CATEGORY ) { currentModel.viewCategory( Category.PositionsManagement ); } else if( command == MenuBar.FILTER_COLLATERAL_MANAGEMENT_CATEGORY ) { currentModel.viewCategory( Category.CollateralManagement ); } else if( command == MenuBar.FILTER_CUSTOM_FILTER ) { applyFilter( null ); } else if( command == MenuBar.HELP_ABOUT ) { showAbout(); } else { setEnabled( false ); menuBar.setEnabled( false ); new ActionThread( e ) { public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); } }.start(); } }
| 1,117,576
|
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { currentModel.viewAll(); } else if( command == MenuBar.FILTER_ADMINISTRATIVE_MESSAGES ) { currentModel.viewAdministrative(); } else if( command == MenuBar.FILTER_APPLICATION_MESSAGES ) { currentModel.viewApplication(); } else if( command == MenuBar.FILTER_INDICATION_CATEGORY ) { currentModel.viewCategory( Category.Indication ); } else if( command == MenuBar.FILTER_EVENT_COMMUNICATION_CATEGORY ) { currentModel.viewCategory( Category.EventCommunication ); } else if( command == MenuBar.FILTER_QUOTATION_NEGOTIATION_CATEGORY ) { currentModel.viewCategory( Category.QuoteNegotiation ); } else if( command == MenuBar.FILTER_MARKET_DATA_CATEGORY ) { currentModel.viewCategory( Category.MarketData ); } else if( command == MenuBar.FILTER_SECURITY_AND_TRADING_SESSION_CATEGORY ) { currentModel.viewCategory( Category.SecurityAndTradingSessionDefinitionStatus ); } else if( command == MenuBar.FILTER_SINGLE_GENERAL_ORDER_HANDLING_CATEGORY ) { currentModel.viewCategory( Category.SingleGeneralOrderHandling ); } else if( command == MenuBar.FILTER_CROSS_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.CrossOrder ); } else if( command == MenuBar.FILTER_MULTILEG_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.MultiLegOrders ); } else if( command == MenuBar.FILTER_LIST_PROGRAM_BASKET_TRADING_CATEGORY ) { currentModel.viewCategory( Category.ListProgramBasketTrading ); } else if( command == MenuBar.FILTER_ALLOCATION_CATEGORY ) { currentModel.viewCategory( Category.Allocation ); } else if( command == MenuBar.FILTER_CONFIRMATION_CATEGORY ) { currentModel.viewCategory( Category.Confirmation ); } else if( command == MenuBar.FILTER_SETTLEMENT_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.SettlementInstructions ); } else if( command == MenuBar.FILTER_TRADE_CAPTURE_REPORTING_CATEGORY ) { currentModel.viewCategory( Category.TradeCaptureReporting ); } else if( command == MenuBar.FILTER_REGISTRATION_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.RegistrationInstructions ); } else if( command == MenuBar.FILTER_POSITIONS_MAINTENANCE_CATEGORY ) { currentModel.viewCategory( Category.PositionsManagement ); } else if( command == MenuBar.FILTER_COLLATERAL_MANAGEMENT_CATEGORY ) { currentModel.viewCategory( Category.CollateralManagement ); } else if( command == MenuBar.FILTER_CUSTOM_FILTER ) { applyFilter( null ); } else if( command == MenuBar.HELP_ABOUT ) { showAbout(); } else { setEnabled( false ); menuBar.setEnabled( false ); new ActionThread( e ) { public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); } }.start(); } }
|
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { currentModel.viewAll(); } else if( command == MenuBar.FILTER_ADMINISTRATIVE_MESSAGES ) { currentModel.viewAdministrative(); } else if( command == MenuBar.FILTER_APPLICATION_MESSAGES ) { currentModel.viewApplication(); } else if( source == MenuBar.filterIndicationCategory ) { currentModel.viewCategory( Category.Indication ); } else if( command == MenuBar.FILTER_EVENT_COMMUNICATION_CATEGORY ) { currentModel.viewCategory( Category.EventCommunication ); } else if( command == MenuBar.FILTER_QUOTATION_NEGOTIATION_CATEGORY ) { currentModel.viewCategory( Category.QuoteNegotiation ); } else if( command == MenuBar.FILTER_MARKET_DATA_CATEGORY ) { currentModel.viewCategory( Category.MarketData ); } else if( command == MenuBar.FILTER_SECURITY_AND_TRADING_SESSION_CATEGORY ) { currentModel.viewCategory( Category.SecurityAndTradingSessionDefinitionStatus ); } else if( command == MenuBar.FILTER_SINGLE_GENERAL_ORDER_HANDLING_CATEGORY ) { currentModel.viewCategory( Category.SingleGeneralOrderHandling ); } else if( command == MenuBar.FILTER_CROSS_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.CrossOrder ); } else if( command == MenuBar.FILTER_MULTILEG_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.MultiLegOrders ); } else if( command == MenuBar.FILTER_LIST_PROGRAM_BASKET_TRADING_CATEGORY ) { currentModel.viewCategory( Category.ListProgramBasketTrading ); } else if( command == MenuBar.FILTER_ALLOCATION_CATEGORY ) { currentModel.viewCategory( Category.Allocation ); } else if( command == MenuBar.FILTER_CONFIRMATION_CATEGORY ) { currentModel.viewCategory( Category.Confirmation ); } else if( command == MenuBar.FILTER_SETTLEMENT_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.SettlementInstructions ); } else if( command == MenuBar.FILTER_TRADE_CAPTURE_REPORTING_CATEGORY ) { currentModel.viewCategory( Category.TradeCaptureReporting ); } else if( command == MenuBar.FILTER_REGISTRATION_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.RegistrationInstructions ); } else if( command == MenuBar.FILTER_POSITIONS_MAINTENANCE_CATEGORY ) { currentModel.viewCategory( Category.PositionsManagement ); } else if( command == MenuBar.FILTER_COLLATERAL_MANAGEMENT_CATEGORY ) { currentModel.viewCategory( Category.CollateralManagement ); } else if( command == MenuBar.FILTER_CUSTOM_FILTER ) { applyFilter( null ); } else if( command == MenuBar.HELP_ABOUT ) { showAbout(); } else { setEnabled( false ); menuBar.setEnabled( false ); new ActionThread( e ) { public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); } }.start(); } }
| 1,117,577
|
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { currentModel.viewAll(); } else if( command == MenuBar.FILTER_ADMINISTRATIVE_MESSAGES ) { currentModel.viewAdministrative(); } else if( command == MenuBar.FILTER_APPLICATION_MESSAGES ) { currentModel.viewApplication(); } else if( command == MenuBar.FILTER_INDICATION_CATEGORY ) { currentModel.viewCategory( Category.Indication ); } else if( command == MenuBar.FILTER_EVENT_COMMUNICATION_CATEGORY ) { currentModel.viewCategory( Category.EventCommunication ); } else if( command == MenuBar.FILTER_QUOTATION_NEGOTIATION_CATEGORY ) { currentModel.viewCategory( Category.QuoteNegotiation ); } else if( command == MenuBar.FILTER_MARKET_DATA_CATEGORY ) { currentModel.viewCategory( Category.MarketData ); } else if( command == MenuBar.FILTER_SECURITY_AND_TRADING_SESSION_CATEGORY ) { currentModel.viewCategory( Category.SecurityAndTradingSessionDefinitionStatus ); } else if( command == MenuBar.FILTER_SINGLE_GENERAL_ORDER_HANDLING_CATEGORY ) { currentModel.viewCategory( Category.SingleGeneralOrderHandling ); } else if( command == MenuBar.FILTER_CROSS_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.CrossOrder ); } else if( command == MenuBar.FILTER_MULTILEG_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.MultiLegOrders ); } else if( command == MenuBar.FILTER_LIST_PROGRAM_BASKET_TRADING_CATEGORY ) { currentModel.viewCategory( Category.ListProgramBasketTrading ); } else if( command == MenuBar.FILTER_ALLOCATION_CATEGORY ) { currentModel.viewCategory( Category.Allocation ); } else if( command == MenuBar.FILTER_CONFIRMATION_CATEGORY ) { currentModel.viewCategory( Category.Confirmation ); } else if( command == MenuBar.FILTER_SETTLEMENT_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.SettlementInstructions ); } else if( command == MenuBar.FILTER_TRADE_CAPTURE_REPORTING_CATEGORY ) { currentModel.viewCategory( Category.TradeCaptureReporting ); } else if( command == MenuBar.FILTER_REGISTRATION_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.RegistrationInstructions ); } else if( command == MenuBar.FILTER_POSITIONS_MAINTENANCE_CATEGORY ) { currentModel.viewCategory( Category.PositionsManagement ); } else if( command == MenuBar.FILTER_COLLATERAL_MANAGEMENT_CATEGORY ) { currentModel.viewCategory( Category.CollateralManagement ); } else if( command == MenuBar.FILTER_CUSTOM_FILTER ) { applyFilter( null ); } else if( command == MenuBar.HELP_ABOUT ) { showAbout(); } else { setEnabled( false ); menuBar.setEnabled( false ); new ActionThread( e ) { public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); } }.start(); } }
|
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { currentModel.viewAll(); } else if( command == MenuBar.FILTER_ADMINISTRATIVE_MESSAGES ) { currentModel.viewAdministrative(); } else if( command == MenuBar.FILTER_APPLICATION_MESSAGES ) { currentModel.viewApplication(); } else if( command == MenuBar.FILTER_INDICATION_CATEGORY ) { currentModel.viewCategory( Category.Indication ); } else if( source == MenuBar.filterEventCommunicationCategory ) { currentModel.viewCategory( Category.EventCommunication ); } else if( command == MenuBar.FILTER_QUOTATION_NEGOTIATION_CATEGORY ) { currentModel.viewCategory( Category.QuoteNegotiation ); } else if( command == MenuBar.FILTER_MARKET_DATA_CATEGORY ) { currentModel.viewCategory( Category.MarketData ); } else if( command == MenuBar.FILTER_SECURITY_AND_TRADING_SESSION_CATEGORY ) { currentModel.viewCategory( Category.SecurityAndTradingSessionDefinitionStatus ); } else if( command == MenuBar.FILTER_SINGLE_GENERAL_ORDER_HANDLING_CATEGORY ) { currentModel.viewCategory( Category.SingleGeneralOrderHandling ); } else if( command == MenuBar.FILTER_CROSS_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.CrossOrder ); } else if( command == MenuBar.FILTER_MULTILEG_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.MultiLegOrders ); } else if( command == MenuBar.FILTER_LIST_PROGRAM_BASKET_TRADING_CATEGORY ) { currentModel.viewCategory( Category.ListProgramBasketTrading ); } else if( command == MenuBar.FILTER_ALLOCATION_CATEGORY ) { currentModel.viewCategory( Category.Allocation ); } else if( command == MenuBar.FILTER_CONFIRMATION_CATEGORY ) { currentModel.viewCategory( Category.Confirmation ); } else if( command == MenuBar.FILTER_SETTLEMENT_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.SettlementInstructions ); } else if( command == MenuBar.FILTER_TRADE_CAPTURE_REPORTING_CATEGORY ) { currentModel.viewCategory( Category.TradeCaptureReporting ); } else if( command == MenuBar.FILTER_REGISTRATION_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.RegistrationInstructions ); } else if( command == MenuBar.FILTER_POSITIONS_MAINTENANCE_CATEGORY ) { currentModel.viewCategory( Category.PositionsManagement ); } else if( command == MenuBar.FILTER_COLLATERAL_MANAGEMENT_CATEGORY ) { currentModel.viewCategory( Category.CollateralManagement ); } else if( command == MenuBar.FILTER_CUSTOM_FILTER ) { applyFilter( null ); } else if( command == MenuBar.HELP_ABOUT ) { showAbout(); } else { setEnabled( false ); menuBar.setEnabled( false ); new ActionThread( e ) { public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); } }.start(); } }
| 1,117,578
|
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { currentModel.viewAll(); } else if( command == MenuBar.FILTER_ADMINISTRATIVE_MESSAGES ) { currentModel.viewAdministrative(); } else if( command == MenuBar.FILTER_APPLICATION_MESSAGES ) { currentModel.viewApplication(); } else if( command == MenuBar.FILTER_INDICATION_CATEGORY ) { currentModel.viewCategory( Category.Indication ); } else if( command == MenuBar.FILTER_EVENT_COMMUNICATION_CATEGORY ) { currentModel.viewCategory( Category.EventCommunication ); } else if( command == MenuBar.FILTER_QUOTATION_NEGOTIATION_CATEGORY ) { currentModel.viewCategory( Category.QuoteNegotiation ); } else if( command == MenuBar.FILTER_MARKET_DATA_CATEGORY ) { currentModel.viewCategory( Category.MarketData ); } else if( command == MenuBar.FILTER_SECURITY_AND_TRADING_SESSION_CATEGORY ) { currentModel.viewCategory( Category.SecurityAndTradingSessionDefinitionStatus ); } else if( command == MenuBar.FILTER_SINGLE_GENERAL_ORDER_HANDLING_CATEGORY ) { currentModel.viewCategory( Category.SingleGeneralOrderHandling ); } else if( command == MenuBar.FILTER_CROSS_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.CrossOrder ); } else if( command == MenuBar.FILTER_MULTILEG_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.MultiLegOrders ); } else if( command == MenuBar.FILTER_LIST_PROGRAM_BASKET_TRADING_CATEGORY ) { currentModel.viewCategory( Category.ListProgramBasketTrading ); } else if( command == MenuBar.FILTER_ALLOCATION_CATEGORY ) { currentModel.viewCategory( Category.Allocation ); } else if( command == MenuBar.FILTER_CONFIRMATION_CATEGORY ) { currentModel.viewCategory( Category.Confirmation ); } else if( command == MenuBar.FILTER_SETTLEMENT_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.SettlementInstructions ); } else if( command == MenuBar.FILTER_TRADE_CAPTURE_REPORTING_CATEGORY ) { currentModel.viewCategory( Category.TradeCaptureReporting ); } else if( command == MenuBar.FILTER_REGISTRATION_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.RegistrationInstructions ); } else if( command == MenuBar.FILTER_POSITIONS_MAINTENANCE_CATEGORY ) { currentModel.viewCategory( Category.PositionsManagement ); } else if( command == MenuBar.FILTER_COLLATERAL_MANAGEMENT_CATEGORY ) { currentModel.viewCategory( Category.CollateralManagement ); } else if( command == MenuBar.FILTER_CUSTOM_FILTER ) { applyFilter( null ); } else if( command == MenuBar.HELP_ABOUT ) { showAbout(); } else { setEnabled( false ); menuBar.setEnabled( false ); new ActionThread( e ) { public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); } }.start(); } }
|
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { currentModel.viewAll(); } else if( command == MenuBar.FILTER_ADMINISTRATIVE_MESSAGES ) { currentModel.viewAdministrative(); } else if( command == MenuBar.FILTER_APPLICATION_MESSAGES ) { currentModel.viewApplication(); } else if( command == MenuBar.FILTER_INDICATION_CATEGORY ) { currentModel.viewCategory( Category.Indication ); } else if( command == MenuBar.FILTER_EVENT_COMMUNICATION_CATEGORY ) { currentModel.viewCategory( Category.EventCommunication ); } else if( source == MenuBar.filterQuotationNegotiationCategory ) { currentModel.viewCategory( Category.QuoteNegotiation ); } else if( command == MenuBar.FILTER_MARKET_DATA_CATEGORY ) { currentModel.viewCategory( Category.MarketData ); } else if( command == MenuBar.FILTER_SECURITY_AND_TRADING_SESSION_CATEGORY ) { currentModel.viewCategory( Category.SecurityAndTradingSessionDefinitionStatus ); } else if( command == MenuBar.FILTER_SINGLE_GENERAL_ORDER_HANDLING_CATEGORY ) { currentModel.viewCategory( Category.SingleGeneralOrderHandling ); } else if( command == MenuBar.FILTER_CROSS_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.CrossOrder ); } else if( command == MenuBar.FILTER_MULTILEG_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.MultiLegOrders ); } else if( command == MenuBar.FILTER_LIST_PROGRAM_BASKET_TRADING_CATEGORY ) { currentModel.viewCategory( Category.ListProgramBasketTrading ); } else if( command == MenuBar.FILTER_ALLOCATION_CATEGORY ) { currentModel.viewCategory( Category.Allocation ); } else if( command == MenuBar.FILTER_CONFIRMATION_CATEGORY ) { currentModel.viewCategory( Category.Confirmation ); } else if( command == MenuBar.FILTER_SETTLEMENT_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.SettlementInstructions ); } else if( command == MenuBar.FILTER_TRADE_CAPTURE_REPORTING_CATEGORY ) { currentModel.viewCategory( Category.TradeCaptureReporting ); } else if( command == MenuBar.FILTER_REGISTRATION_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.RegistrationInstructions ); } else if( command == MenuBar.FILTER_POSITIONS_MAINTENANCE_CATEGORY ) { currentModel.viewCategory( Category.PositionsManagement ); } else if( command == MenuBar.FILTER_COLLATERAL_MANAGEMENT_CATEGORY ) { currentModel.viewCategory( Category.CollateralManagement ); } else if( command == MenuBar.FILTER_CUSTOM_FILTER ) { applyFilter( null ); } else if( command == MenuBar.HELP_ABOUT ) { showAbout(); } else { setEnabled( false ); menuBar.setEnabled( false ); new ActionThread( e ) { public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); } }.start(); } }
| 1,117,579
|
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { currentModel.viewAll(); } else if( command == MenuBar.FILTER_ADMINISTRATIVE_MESSAGES ) { currentModel.viewAdministrative(); } else if( command == MenuBar.FILTER_APPLICATION_MESSAGES ) { currentModel.viewApplication(); } else if( command == MenuBar.FILTER_INDICATION_CATEGORY ) { currentModel.viewCategory( Category.Indication ); } else if( command == MenuBar.FILTER_EVENT_COMMUNICATION_CATEGORY ) { currentModel.viewCategory( Category.EventCommunication ); } else if( command == MenuBar.FILTER_QUOTATION_NEGOTIATION_CATEGORY ) { currentModel.viewCategory( Category.QuoteNegotiation ); } else if( command == MenuBar.FILTER_MARKET_DATA_CATEGORY ) { currentModel.viewCategory( Category.MarketData ); } else if( command == MenuBar.FILTER_SECURITY_AND_TRADING_SESSION_CATEGORY ) { currentModel.viewCategory( Category.SecurityAndTradingSessionDefinitionStatus ); } else if( command == MenuBar.FILTER_SINGLE_GENERAL_ORDER_HANDLING_CATEGORY ) { currentModel.viewCategory( Category.SingleGeneralOrderHandling ); } else if( command == MenuBar.FILTER_CROSS_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.CrossOrder ); } else if( command == MenuBar.FILTER_MULTILEG_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.MultiLegOrders ); } else if( command == MenuBar.FILTER_LIST_PROGRAM_BASKET_TRADING_CATEGORY ) { currentModel.viewCategory( Category.ListProgramBasketTrading ); } else if( command == MenuBar.FILTER_ALLOCATION_CATEGORY ) { currentModel.viewCategory( Category.Allocation ); } else if( command == MenuBar.FILTER_CONFIRMATION_CATEGORY ) { currentModel.viewCategory( Category.Confirmation ); } else if( command == MenuBar.FILTER_SETTLEMENT_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.SettlementInstructions ); } else if( command == MenuBar.FILTER_TRADE_CAPTURE_REPORTING_CATEGORY ) { currentModel.viewCategory( Category.TradeCaptureReporting ); } else if( command == MenuBar.FILTER_REGISTRATION_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.RegistrationInstructions ); } else if( command == MenuBar.FILTER_POSITIONS_MAINTENANCE_CATEGORY ) { currentModel.viewCategory( Category.PositionsManagement ); } else if( command == MenuBar.FILTER_COLLATERAL_MANAGEMENT_CATEGORY ) { currentModel.viewCategory( Category.CollateralManagement ); } else if( command == MenuBar.FILTER_CUSTOM_FILTER ) { applyFilter( null ); } else if( command == MenuBar.HELP_ABOUT ) { showAbout(); } else { setEnabled( false ); menuBar.setEnabled( false ); new ActionThread( e ) { public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); } }.start(); } }
|
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { currentModel.viewAll(); } else if( command == MenuBar.FILTER_ADMINISTRATIVE_MESSAGES ) { currentModel.viewAdministrative(); } else if( command == MenuBar.FILTER_APPLICATION_MESSAGES ) { currentModel.viewApplication(); } else if( command == MenuBar.FILTER_INDICATION_CATEGORY ) { currentModel.viewCategory( Category.Indication ); } else if( command == MenuBar.FILTER_EVENT_COMMUNICATION_CATEGORY ) { currentModel.viewCategory( Category.EventCommunication ); } else if( command == MenuBar.FILTER_QUOTATION_NEGOTIATION_CATEGORY ) { currentModel.viewCategory( Category.QuoteNegotiation ); } else if( source == MenuBar.filterMarketDataCategory ) { currentModel.viewCategory( Category.MarketData ); } else if( command == MenuBar.FILTER_SECURITY_AND_TRADING_SESSION_CATEGORY ) { currentModel.viewCategory( Category.SecurityAndTradingSessionDefinitionStatus ); } else if( command == MenuBar.FILTER_SINGLE_GENERAL_ORDER_HANDLING_CATEGORY ) { currentModel.viewCategory( Category.SingleGeneralOrderHandling ); } else if( command == MenuBar.FILTER_CROSS_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.CrossOrder ); } else if( command == MenuBar.FILTER_MULTILEG_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.MultiLegOrders ); } else if( command == MenuBar.FILTER_LIST_PROGRAM_BASKET_TRADING_CATEGORY ) { currentModel.viewCategory( Category.ListProgramBasketTrading ); } else if( command == MenuBar.FILTER_ALLOCATION_CATEGORY ) { currentModel.viewCategory( Category.Allocation ); } else if( command == MenuBar.FILTER_CONFIRMATION_CATEGORY ) { currentModel.viewCategory( Category.Confirmation ); } else if( command == MenuBar.FILTER_SETTLEMENT_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.SettlementInstructions ); } else if( command == MenuBar.FILTER_TRADE_CAPTURE_REPORTING_CATEGORY ) { currentModel.viewCategory( Category.TradeCaptureReporting ); } else if( command == MenuBar.FILTER_REGISTRATION_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.RegistrationInstructions ); } else if( command == MenuBar.FILTER_POSITIONS_MAINTENANCE_CATEGORY ) { currentModel.viewCategory( Category.PositionsManagement ); } else if( command == MenuBar.FILTER_COLLATERAL_MANAGEMENT_CATEGORY ) { currentModel.viewCategory( Category.CollateralManagement ); } else if( command == MenuBar.FILTER_CUSTOM_FILTER ) { applyFilter( null ); } else if( command == MenuBar.HELP_ABOUT ) { showAbout(); } else { setEnabled( false ); menuBar.setEnabled( false ); new ActionThread( e ) { public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); } }.start(); } }
| 1,117,580
|
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { currentModel.viewAll(); } else if( command == MenuBar.FILTER_ADMINISTRATIVE_MESSAGES ) { currentModel.viewAdministrative(); } else if( command == MenuBar.FILTER_APPLICATION_MESSAGES ) { currentModel.viewApplication(); } else if( command == MenuBar.FILTER_INDICATION_CATEGORY ) { currentModel.viewCategory( Category.Indication ); } else if( command == MenuBar.FILTER_EVENT_COMMUNICATION_CATEGORY ) { currentModel.viewCategory( Category.EventCommunication ); } else if( command == MenuBar.FILTER_QUOTATION_NEGOTIATION_CATEGORY ) { currentModel.viewCategory( Category.QuoteNegotiation ); } else if( command == MenuBar.FILTER_MARKET_DATA_CATEGORY ) { currentModel.viewCategory( Category.MarketData ); } else if( command == MenuBar.FILTER_SECURITY_AND_TRADING_SESSION_CATEGORY ) { currentModel.viewCategory( Category.SecurityAndTradingSessionDefinitionStatus ); } else if( command == MenuBar.FILTER_SINGLE_GENERAL_ORDER_HANDLING_CATEGORY ) { currentModel.viewCategory( Category.SingleGeneralOrderHandling ); } else if( command == MenuBar.FILTER_CROSS_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.CrossOrder ); } else if( command == MenuBar.FILTER_MULTILEG_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.MultiLegOrders ); } else if( command == MenuBar.FILTER_LIST_PROGRAM_BASKET_TRADING_CATEGORY ) { currentModel.viewCategory( Category.ListProgramBasketTrading ); } else if( command == MenuBar.FILTER_ALLOCATION_CATEGORY ) { currentModel.viewCategory( Category.Allocation ); } else if( command == MenuBar.FILTER_CONFIRMATION_CATEGORY ) { currentModel.viewCategory( Category.Confirmation ); } else if( command == MenuBar.FILTER_SETTLEMENT_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.SettlementInstructions ); } else if( command == MenuBar.FILTER_TRADE_CAPTURE_REPORTING_CATEGORY ) { currentModel.viewCategory( Category.TradeCaptureReporting ); } else if( command == MenuBar.FILTER_REGISTRATION_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.RegistrationInstructions ); } else if( command == MenuBar.FILTER_POSITIONS_MAINTENANCE_CATEGORY ) { currentModel.viewCategory( Category.PositionsManagement ); } else if( command == MenuBar.FILTER_COLLATERAL_MANAGEMENT_CATEGORY ) { currentModel.viewCategory( Category.CollateralManagement ); } else if( command == MenuBar.FILTER_CUSTOM_FILTER ) { applyFilter( null ); } else if( command == MenuBar.HELP_ABOUT ) { showAbout(); } else { setEnabled( false ); menuBar.setEnabled( false ); new ActionThread( e ) { public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); } }.start(); } }
|
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { currentModel.viewAll(); } else if( command == MenuBar.FILTER_ADMINISTRATIVE_MESSAGES ) { currentModel.viewAdministrative(); } else if( command == MenuBar.FILTER_APPLICATION_MESSAGES ) { currentModel.viewApplication(); } else if( command == MenuBar.FILTER_INDICATION_CATEGORY ) { currentModel.viewCategory( Category.Indication ); } else if( command == MenuBar.FILTER_EVENT_COMMUNICATION_CATEGORY ) { currentModel.viewCategory( Category.EventCommunication ); } else if( command == MenuBar.FILTER_QUOTATION_NEGOTIATION_CATEGORY ) { currentModel.viewCategory( Category.QuoteNegotiation ); } else if( command == MenuBar.FILTER_MARKET_DATA_CATEGORY ) { currentModel.viewCategory( Category.MarketData ); } else if( source == MenuBar.filterSecurityAndTradingSessionCategory ) { currentModel.viewCategory( Category.SecurityAndTradingSessionDefinitionStatus ); } else if( command == MenuBar.FILTER_SINGLE_GENERAL_ORDER_HANDLING_CATEGORY ) { currentModel.viewCategory( Category.SingleGeneralOrderHandling ); } else if( command == MenuBar.FILTER_CROSS_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.CrossOrder ); } else if( command == MenuBar.FILTER_MULTILEG_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.MultiLegOrders ); } else if( command == MenuBar.FILTER_LIST_PROGRAM_BASKET_TRADING_CATEGORY ) { currentModel.viewCategory( Category.ListProgramBasketTrading ); } else if( command == MenuBar.FILTER_ALLOCATION_CATEGORY ) { currentModel.viewCategory( Category.Allocation ); } else if( command == MenuBar.FILTER_CONFIRMATION_CATEGORY ) { currentModel.viewCategory( Category.Confirmation ); } else if( command == MenuBar.FILTER_SETTLEMENT_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.SettlementInstructions ); } else if( command == MenuBar.FILTER_TRADE_CAPTURE_REPORTING_CATEGORY ) { currentModel.viewCategory( Category.TradeCaptureReporting ); } else if( command == MenuBar.FILTER_REGISTRATION_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.RegistrationInstructions ); } else if( command == MenuBar.FILTER_POSITIONS_MAINTENANCE_CATEGORY ) { currentModel.viewCategory( Category.PositionsManagement ); } else if( command == MenuBar.FILTER_COLLATERAL_MANAGEMENT_CATEGORY ) { currentModel.viewCategory( Category.CollateralManagement ); } else if( command == MenuBar.FILTER_CUSTOM_FILTER ) { applyFilter( null ); } else if( command == MenuBar.HELP_ABOUT ) { showAbout(); } else { setEnabled( false ); menuBar.setEnabled( false ); new ActionThread( e ) { public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); } }.start(); } }
| 1,117,581
|
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { currentModel.viewAll(); } else if( command == MenuBar.FILTER_ADMINISTRATIVE_MESSAGES ) { currentModel.viewAdministrative(); } else if( command == MenuBar.FILTER_APPLICATION_MESSAGES ) { currentModel.viewApplication(); } else if( command == MenuBar.FILTER_INDICATION_CATEGORY ) { currentModel.viewCategory( Category.Indication ); } else if( command == MenuBar.FILTER_EVENT_COMMUNICATION_CATEGORY ) { currentModel.viewCategory( Category.EventCommunication ); } else if( command == MenuBar.FILTER_QUOTATION_NEGOTIATION_CATEGORY ) { currentModel.viewCategory( Category.QuoteNegotiation ); } else if( command == MenuBar.FILTER_MARKET_DATA_CATEGORY ) { currentModel.viewCategory( Category.MarketData ); } else if( command == MenuBar.FILTER_SECURITY_AND_TRADING_SESSION_CATEGORY ) { currentModel.viewCategory( Category.SecurityAndTradingSessionDefinitionStatus ); } else if( command == MenuBar.FILTER_SINGLE_GENERAL_ORDER_HANDLING_CATEGORY ) { currentModel.viewCategory( Category.SingleGeneralOrderHandling ); } else if( command == MenuBar.FILTER_CROSS_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.CrossOrder ); } else if( command == MenuBar.FILTER_MULTILEG_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.MultiLegOrders ); } else if( command == MenuBar.FILTER_LIST_PROGRAM_BASKET_TRADING_CATEGORY ) { currentModel.viewCategory( Category.ListProgramBasketTrading ); } else if( command == MenuBar.FILTER_ALLOCATION_CATEGORY ) { currentModel.viewCategory( Category.Allocation ); } else if( command == MenuBar.FILTER_CONFIRMATION_CATEGORY ) { currentModel.viewCategory( Category.Confirmation ); } else if( command == MenuBar.FILTER_SETTLEMENT_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.SettlementInstructions ); } else if( command == MenuBar.FILTER_TRADE_CAPTURE_REPORTING_CATEGORY ) { currentModel.viewCategory( Category.TradeCaptureReporting ); } else if( command == MenuBar.FILTER_REGISTRATION_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.RegistrationInstructions ); } else if( command == MenuBar.FILTER_POSITIONS_MAINTENANCE_CATEGORY ) { currentModel.viewCategory( Category.PositionsManagement ); } else if( command == MenuBar.FILTER_COLLATERAL_MANAGEMENT_CATEGORY ) { currentModel.viewCategory( Category.CollateralManagement ); } else if( command == MenuBar.FILTER_CUSTOM_FILTER ) { applyFilter( null ); } else if( command == MenuBar.HELP_ABOUT ) { showAbout(); } else { setEnabled( false ); menuBar.setEnabled( false ); new ActionThread( e ) { public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); } }.start(); } }
|
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { currentModel.viewAll(); } else if( command == MenuBar.FILTER_ADMINISTRATIVE_MESSAGES ) { currentModel.viewAdministrative(); } else if( command == MenuBar.FILTER_APPLICATION_MESSAGES ) { currentModel.viewApplication(); } else if( command == MenuBar.FILTER_INDICATION_CATEGORY ) { currentModel.viewCategory( Category.Indication ); } else if( command == MenuBar.FILTER_EVENT_COMMUNICATION_CATEGORY ) { currentModel.viewCategory( Category.EventCommunication ); } else if( command == MenuBar.FILTER_QUOTATION_NEGOTIATION_CATEGORY ) { currentModel.viewCategory( Category.QuoteNegotiation ); } else if( command == MenuBar.FILTER_MARKET_DATA_CATEGORY ) { currentModel.viewCategory( Category.MarketData ); } else if( command == MenuBar.FILTER_SECURITY_AND_TRADING_SESSION_CATEGORY ) { currentModel.viewCategory( Category.SecurityAndTradingSessionDefinitionStatus ); } else if( source == MenuBar.filterSingleGeneralOrderHandlingCategory ) { currentModel.viewCategory( Category.SingleGeneralOrderHandling ); } else if( command == MenuBar.FILTER_CROSS_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.CrossOrder ); } else if( command == MenuBar.FILTER_MULTILEG_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.MultiLegOrders ); } else if( command == MenuBar.FILTER_LIST_PROGRAM_BASKET_TRADING_CATEGORY ) { currentModel.viewCategory( Category.ListProgramBasketTrading ); } else if( command == MenuBar.FILTER_ALLOCATION_CATEGORY ) { currentModel.viewCategory( Category.Allocation ); } else if( command == MenuBar.FILTER_CONFIRMATION_CATEGORY ) { currentModel.viewCategory( Category.Confirmation ); } else if( command == MenuBar.FILTER_SETTLEMENT_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.SettlementInstructions ); } else if( command == MenuBar.FILTER_TRADE_CAPTURE_REPORTING_CATEGORY ) { currentModel.viewCategory( Category.TradeCaptureReporting ); } else if( command == MenuBar.FILTER_REGISTRATION_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.RegistrationInstructions ); } else if( command == MenuBar.FILTER_POSITIONS_MAINTENANCE_CATEGORY ) { currentModel.viewCategory( Category.PositionsManagement ); } else if( command == MenuBar.FILTER_COLLATERAL_MANAGEMENT_CATEGORY ) { currentModel.viewCategory( Category.CollateralManagement ); } else if( command == MenuBar.FILTER_CUSTOM_FILTER ) { applyFilter( null ); } else if( command == MenuBar.HELP_ABOUT ) { showAbout(); } else { setEnabled( false ); menuBar.setEnabled( false ); new ActionThread( e ) { public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); } }.start(); } }
| 1,117,582
|
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { currentModel.viewAll(); } else if( command == MenuBar.FILTER_ADMINISTRATIVE_MESSAGES ) { currentModel.viewAdministrative(); } else if( command == MenuBar.FILTER_APPLICATION_MESSAGES ) { currentModel.viewApplication(); } else if( command == MenuBar.FILTER_INDICATION_CATEGORY ) { currentModel.viewCategory( Category.Indication ); } else if( command == MenuBar.FILTER_EVENT_COMMUNICATION_CATEGORY ) { currentModel.viewCategory( Category.EventCommunication ); } else if( command == MenuBar.FILTER_QUOTATION_NEGOTIATION_CATEGORY ) { currentModel.viewCategory( Category.QuoteNegotiation ); } else if( command == MenuBar.FILTER_MARKET_DATA_CATEGORY ) { currentModel.viewCategory( Category.MarketData ); } else if( command == MenuBar.FILTER_SECURITY_AND_TRADING_SESSION_CATEGORY ) { currentModel.viewCategory( Category.SecurityAndTradingSessionDefinitionStatus ); } else if( command == MenuBar.FILTER_SINGLE_GENERAL_ORDER_HANDLING_CATEGORY ) { currentModel.viewCategory( Category.SingleGeneralOrderHandling ); } else if( command == MenuBar.FILTER_CROSS_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.CrossOrder ); } else if( command == MenuBar.FILTER_MULTILEG_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.MultiLegOrders ); } else if( command == MenuBar.FILTER_LIST_PROGRAM_BASKET_TRADING_CATEGORY ) { currentModel.viewCategory( Category.ListProgramBasketTrading ); } else if( command == MenuBar.FILTER_ALLOCATION_CATEGORY ) { currentModel.viewCategory( Category.Allocation ); } else if( command == MenuBar.FILTER_CONFIRMATION_CATEGORY ) { currentModel.viewCategory( Category.Confirmation ); } else if( command == MenuBar.FILTER_SETTLEMENT_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.SettlementInstructions ); } else if( command == MenuBar.FILTER_TRADE_CAPTURE_REPORTING_CATEGORY ) { currentModel.viewCategory( Category.TradeCaptureReporting ); } else if( command == MenuBar.FILTER_REGISTRATION_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.RegistrationInstructions ); } else if( command == MenuBar.FILTER_POSITIONS_MAINTENANCE_CATEGORY ) { currentModel.viewCategory( Category.PositionsManagement ); } else if( command == MenuBar.FILTER_COLLATERAL_MANAGEMENT_CATEGORY ) { currentModel.viewCategory( Category.CollateralManagement ); } else if( command == MenuBar.FILTER_CUSTOM_FILTER ) { applyFilter( null ); } else if( command == MenuBar.HELP_ABOUT ) { showAbout(); } else { setEnabled( false ); menuBar.setEnabled( false ); new ActionThread( e ) { public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); } }.start(); } }
|
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { currentModel.viewAll(); } else if( command == MenuBar.FILTER_ADMINISTRATIVE_MESSAGES ) { currentModel.viewAdministrative(); } else if( command == MenuBar.FILTER_APPLICATION_MESSAGES ) { currentModel.viewApplication(); } else if( command == MenuBar.FILTER_INDICATION_CATEGORY ) { currentModel.viewCategory( Category.Indication ); } else if( command == MenuBar.FILTER_EVENT_COMMUNICATION_CATEGORY ) { currentModel.viewCategory( Category.EventCommunication ); } else if( command == MenuBar.FILTER_QUOTATION_NEGOTIATION_CATEGORY ) { currentModel.viewCategory( Category.QuoteNegotiation ); } else if( command == MenuBar.FILTER_MARKET_DATA_CATEGORY ) { currentModel.viewCategory( Category.MarketData ); } else if( command == MenuBar.FILTER_SECURITY_AND_TRADING_SESSION_CATEGORY ) { currentModel.viewCategory( Category.SecurityAndTradingSessionDefinitionStatus ); } else if( command == MenuBar.FILTER_SINGLE_GENERAL_ORDER_HANDLING_CATEGORY ) { currentModel.viewCategory( Category.SingleGeneralOrderHandling ); } else if( source == MenuBar.filterCrossOrdersCategory ) { currentModel.viewCategory( Category.CrossOrder ); } else if( command == MenuBar.FILTER_MULTILEG_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.MultiLegOrders ); } else if( command == MenuBar.FILTER_LIST_PROGRAM_BASKET_TRADING_CATEGORY ) { currentModel.viewCategory( Category.ListProgramBasketTrading ); } else if( command == MenuBar.FILTER_ALLOCATION_CATEGORY ) { currentModel.viewCategory( Category.Allocation ); } else if( command == MenuBar.FILTER_CONFIRMATION_CATEGORY ) { currentModel.viewCategory( Category.Confirmation ); } else if( command == MenuBar.FILTER_SETTLEMENT_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.SettlementInstructions ); } else if( command == MenuBar.FILTER_TRADE_CAPTURE_REPORTING_CATEGORY ) { currentModel.viewCategory( Category.TradeCaptureReporting ); } else if( command == MenuBar.FILTER_REGISTRATION_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.RegistrationInstructions ); } else if( command == MenuBar.FILTER_POSITIONS_MAINTENANCE_CATEGORY ) { currentModel.viewCategory( Category.PositionsManagement ); } else if( command == MenuBar.FILTER_COLLATERAL_MANAGEMENT_CATEGORY ) { currentModel.viewCategory( Category.CollateralManagement ); } else if( command == MenuBar.FILTER_CUSTOM_FILTER ) { applyFilter( null ); } else if( command == MenuBar.HELP_ABOUT ) { showAbout(); } else { setEnabled( false ); menuBar.setEnabled( false ); new ActionThread( e ) { public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); } }.start(); } }
| 1,117,583
|
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { currentModel.viewAll(); } else if( command == MenuBar.FILTER_ADMINISTRATIVE_MESSAGES ) { currentModel.viewAdministrative(); } else if( command == MenuBar.FILTER_APPLICATION_MESSAGES ) { currentModel.viewApplication(); } else if( command == MenuBar.FILTER_INDICATION_CATEGORY ) { currentModel.viewCategory( Category.Indication ); } else if( command == MenuBar.FILTER_EVENT_COMMUNICATION_CATEGORY ) { currentModel.viewCategory( Category.EventCommunication ); } else if( command == MenuBar.FILTER_QUOTATION_NEGOTIATION_CATEGORY ) { currentModel.viewCategory( Category.QuoteNegotiation ); } else if( command == MenuBar.FILTER_MARKET_DATA_CATEGORY ) { currentModel.viewCategory( Category.MarketData ); } else if( command == MenuBar.FILTER_SECURITY_AND_TRADING_SESSION_CATEGORY ) { currentModel.viewCategory( Category.SecurityAndTradingSessionDefinitionStatus ); } else if( command == MenuBar.FILTER_SINGLE_GENERAL_ORDER_HANDLING_CATEGORY ) { currentModel.viewCategory( Category.SingleGeneralOrderHandling ); } else if( command == MenuBar.FILTER_CROSS_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.CrossOrder ); } else if( command == MenuBar.FILTER_MULTILEG_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.MultiLegOrders ); } else if( command == MenuBar.FILTER_LIST_PROGRAM_BASKET_TRADING_CATEGORY ) { currentModel.viewCategory( Category.ListProgramBasketTrading ); } else if( command == MenuBar.FILTER_ALLOCATION_CATEGORY ) { currentModel.viewCategory( Category.Allocation ); } else if( command == MenuBar.FILTER_CONFIRMATION_CATEGORY ) { currentModel.viewCategory( Category.Confirmation ); } else if( command == MenuBar.FILTER_SETTLEMENT_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.SettlementInstructions ); } else if( command == MenuBar.FILTER_TRADE_CAPTURE_REPORTING_CATEGORY ) { currentModel.viewCategory( Category.TradeCaptureReporting ); } else if( command == MenuBar.FILTER_REGISTRATION_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.RegistrationInstructions ); } else if( command == MenuBar.FILTER_POSITIONS_MAINTENANCE_CATEGORY ) { currentModel.viewCategory( Category.PositionsManagement ); } else if( command == MenuBar.FILTER_COLLATERAL_MANAGEMENT_CATEGORY ) { currentModel.viewCategory( Category.CollateralManagement ); } else if( command == MenuBar.FILTER_CUSTOM_FILTER ) { applyFilter( null ); } else if( command == MenuBar.HELP_ABOUT ) { showAbout(); } else { setEnabled( false ); menuBar.setEnabled( false ); new ActionThread( e ) { public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); } }.start(); } }
|
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { currentModel.viewAll(); } else if( command == MenuBar.FILTER_ADMINISTRATIVE_MESSAGES ) { currentModel.viewAdministrative(); } else if( command == MenuBar.FILTER_APPLICATION_MESSAGES ) { currentModel.viewApplication(); } else if( command == MenuBar.FILTER_INDICATION_CATEGORY ) { currentModel.viewCategory( Category.Indication ); } else if( command == MenuBar.FILTER_EVENT_COMMUNICATION_CATEGORY ) { currentModel.viewCategory( Category.EventCommunication ); } else if( command == MenuBar.FILTER_QUOTATION_NEGOTIATION_CATEGORY ) { currentModel.viewCategory( Category.QuoteNegotiation ); } else if( command == MenuBar.FILTER_MARKET_DATA_CATEGORY ) { currentModel.viewCategory( Category.MarketData ); } else if( command == MenuBar.FILTER_SECURITY_AND_TRADING_SESSION_CATEGORY ) { currentModel.viewCategory( Category.SecurityAndTradingSessionDefinitionStatus ); } else if( command == MenuBar.FILTER_SINGLE_GENERAL_ORDER_HANDLING_CATEGORY ) { currentModel.viewCategory( Category.SingleGeneralOrderHandling ); } else if( command == MenuBar.FILTER_CROSS_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.CrossOrder ); } else if( source == MenuBar.filterMultilegOrdersCategory ) { currentModel.viewCategory( Category.MultiLegOrders ); } else if( command == MenuBar.FILTER_LIST_PROGRAM_BASKET_TRADING_CATEGORY ) { currentModel.viewCategory( Category.ListProgramBasketTrading ); } else if( command == MenuBar.FILTER_ALLOCATION_CATEGORY ) { currentModel.viewCategory( Category.Allocation ); } else if( command == MenuBar.FILTER_CONFIRMATION_CATEGORY ) { currentModel.viewCategory( Category.Confirmation ); } else if( command == MenuBar.FILTER_SETTLEMENT_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.SettlementInstructions ); } else if( command == MenuBar.FILTER_TRADE_CAPTURE_REPORTING_CATEGORY ) { currentModel.viewCategory( Category.TradeCaptureReporting ); } else if( command == MenuBar.FILTER_REGISTRATION_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.RegistrationInstructions ); } else if( command == MenuBar.FILTER_POSITIONS_MAINTENANCE_CATEGORY ) { currentModel.viewCategory( Category.PositionsManagement ); } else if( command == MenuBar.FILTER_COLLATERAL_MANAGEMENT_CATEGORY ) { currentModel.viewCategory( Category.CollateralManagement ); } else if( command == MenuBar.FILTER_CUSTOM_FILTER ) { applyFilter( null ); } else if( command == MenuBar.HELP_ABOUT ) { showAbout(); } else { setEnabled( false ); menuBar.setEnabled( false ); new ActionThread( e ) { public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); } }.start(); } }
| 1,117,584
|
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { currentModel.viewAll(); } else if( command == MenuBar.FILTER_ADMINISTRATIVE_MESSAGES ) { currentModel.viewAdministrative(); } else if( command == MenuBar.FILTER_APPLICATION_MESSAGES ) { currentModel.viewApplication(); } else if( command == MenuBar.FILTER_INDICATION_CATEGORY ) { currentModel.viewCategory( Category.Indication ); } else if( command == MenuBar.FILTER_EVENT_COMMUNICATION_CATEGORY ) { currentModel.viewCategory( Category.EventCommunication ); } else if( command == MenuBar.FILTER_QUOTATION_NEGOTIATION_CATEGORY ) { currentModel.viewCategory( Category.QuoteNegotiation ); } else if( command == MenuBar.FILTER_MARKET_DATA_CATEGORY ) { currentModel.viewCategory( Category.MarketData ); } else if( command == MenuBar.FILTER_SECURITY_AND_TRADING_SESSION_CATEGORY ) { currentModel.viewCategory( Category.SecurityAndTradingSessionDefinitionStatus ); } else if( command == MenuBar.FILTER_SINGLE_GENERAL_ORDER_HANDLING_CATEGORY ) { currentModel.viewCategory( Category.SingleGeneralOrderHandling ); } else if( command == MenuBar.FILTER_CROSS_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.CrossOrder ); } else if( command == MenuBar.FILTER_MULTILEG_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.MultiLegOrders ); } else if( command == MenuBar.FILTER_LIST_PROGRAM_BASKET_TRADING_CATEGORY ) { currentModel.viewCategory( Category.ListProgramBasketTrading ); } else if( command == MenuBar.FILTER_ALLOCATION_CATEGORY ) { currentModel.viewCategory( Category.Allocation ); } else if( command == MenuBar.FILTER_CONFIRMATION_CATEGORY ) { currentModel.viewCategory( Category.Confirmation ); } else if( command == MenuBar.FILTER_SETTLEMENT_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.SettlementInstructions ); } else if( command == MenuBar.FILTER_TRADE_CAPTURE_REPORTING_CATEGORY ) { currentModel.viewCategory( Category.TradeCaptureReporting ); } else if( command == MenuBar.FILTER_REGISTRATION_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.RegistrationInstructions ); } else if( command == MenuBar.FILTER_POSITIONS_MAINTENANCE_CATEGORY ) { currentModel.viewCategory( Category.PositionsManagement ); } else if( command == MenuBar.FILTER_COLLATERAL_MANAGEMENT_CATEGORY ) { currentModel.viewCategory( Category.CollateralManagement ); } else if( command == MenuBar.FILTER_CUSTOM_FILTER ) { applyFilter( null ); } else if( command == MenuBar.HELP_ABOUT ) { showAbout(); } else { setEnabled( false ); menuBar.setEnabled( false ); new ActionThread( e ) { public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); } }.start(); } }
|
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { currentModel.viewAll(); } else if( command == MenuBar.FILTER_ADMINISTRATIVE_MESSAGES ) { currentModel.viewAdministrative(); } else if( command == MenuBar.FILTER_APPLICATION_MESSAGES ) { currentModel.viewApplication(); } else if( command == MenuBar.FILTER_INDICATION_CATEGORY ) { currentModel.viewCategory( Category.Indication ); } else if( command == MenuBar.FILTER_EVENT_COMMUNICATION_CATEGORY ) { currentModel.viewCategory( Category.EventCommunication ); } else if( command == MenuBar.FILTER_QUOTATION_NEGOTIATION_CATEGORY ) { currentModel.viewCategory( Category.QuoteNegotiation ); } else if( command == MenuBar.FILTER_MARKET_DATA_CATEGORY ) { currentModel.viewCategory( Category.MarketData ); } else if( command == MenuBar.FILTER_SECURITY_AND_TRADING_SESSION_CATEGORY ) { currentModel.viewCategory( Category.SecurityAndTradingSessionDefinitionStatus ); } else if( command == MenuBar.FILTER_SINGLE_GENERAL_ORDER_HANDLING_CATEGORY ) { currentModel.viewCategory( Category.SingleGeneralOrderHandling ); } else if( command == MenuBar.FILTER_CROSS_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.CrossOrder ); } else if( command == MenuBar.FILTER_MULTILEG_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.MultiLegOrders ); } else if( source == MenuBar.filterListProgramBasketTradingCategory ) { currentModel.viewCategory( Category.ListProgramBasketTrading ); } else if( command == MenuBar.FILTER_ALLOCATION_CATEGORY ) { currentModel.viewCategory( Category.Allocation ); } else if( command == MenuBar.FILTER_CONFIRMATION_CATEGORY ) { currentModel.viewCategory( Category.Confirmation ); } else if( command == MenuBar.FILTER_SETTLEMENT_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.SettlementInstructions ); } else if( command == MenuBar.FILTER_TRADE_CAPTURE_REPORTING_CATEGORY ) { currentModel.viewCategory( Category.TradeCaptureReporting ); } else if( command == MenuBar.FILTER_REGISTRATION_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.RegistrationInstructions ); } else if( command == MenuBar.FILTER_POSITIONS_MAINTENANCE_CATEGORY ) { currentModel.viewCategory( Category.PositionsManagement ); } else if( command == MenuBar.FILTER_COLLATERAL_MANAGEMENT_CATEGORY ) { currentModel.viewCategory( Category.CollateralManagement ); } else if( command == MenuBar.FILTER_CUSTOM_FILTER ) { applyFilter( null ); } else if( command == MenuBar.HELP_ABOUT ) { showAbout(); } else { setEnabled( false ); menuBar.setEnabled( false ); new ActionThread( e ) { public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); } }.start(); } }
| 1,117,585
|
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { currentModel.viewAll(); } else if( command == MenuBar.FILTER_ADMINISTRATIVE_MESSAGES ) { currentModel.viewAdministrative(); } else if( command == MenuBar.FILTER_APPLICATION_MESSAGES ) { currentModel.viewApplication(); } else if( command == MenuBar.FILTER_INDICATION_CATEGORY ) { currentModel.viewCategory( Category.Indication ); } else if( command == MenuBar.FILTER_EVENT_COMMUNICATION_CATEGORY ) { currentModel.viewCategory( Category.EventCommunication ); } else if( command == MenuBar.FILTER_QUOTATION_NEGOTIATION_CATEGORY ) { currentModel.viewCategory( Category.QuoteNegotiation ); } else if( command == MenuBar.FILTER_MARKET_DATA_CATEGORY ) { currentModel.viewCategory( Category.MarketData ); } else if( command == MenuBar.FILTER_SECURITY_AND_TRADING_SESSION_CATEGORY ) { currentModel.viewCategory( Category.SecurityAndTradingSessionDefinitionStatus ); } else if( command == MenuBar.FILTER_SINGLE_GENERAL_ORDER_HANDLING_CATEGORY ) { currentModel.viewCategory( Category.SingleGeneralOrderHandling ); } else if( command == MenuBar.FILTER_CROSS_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.CrossOrder ); } else if( command == MenuBar.FILTER_MULTILEG_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.MultiLegOrders ); } else if( command == MenuBar.FILTER_LIST_PROGRAM_BASKET_TRADING_CATEGORY ) { currentModel.viewCategory( Category.ListProgramBasketTrading ); } else if( command == MenuBar.FILTER_ALLOCATION_CATEGORY ) { currentModel.viewCategory( Category.Allocation ); } else if( command == MenuBar.FILTER_CONFIRMATION_CATEGORY ) { currentModel.viewCategory( Category.Confirmation ); } else if( command == MenuBar.FILTER_SETTLEMENT_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.SettlementInstructions ); } else if( command == MenuBar.FILTER_TRADE_CAPTURE_REPORTING_CATEGORY ) { currentModel.viewCategory( Category.TradeCaptureReporting ); } else if( command == MenuBar.FILTER_REGISTRATION_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.RegistrationInstructions ); } else if( command == MenuBar.FILTER_POSITIONS_MAINTENANCE_CATEGORY ) { currentModel.viewCategory( Category.PositionsManagement ); } else if( command == MenuBar.FILTER_COLLATERAL_MANAGEMENT_CATEGORY ) { currentModel.viewCategory( Category.CollateralManagement ); } else if( command == MenuBar.FILTER_CUSTOM_FILTER ) { applyFilter( null ); } else if( command == MenuBar.HELP_ABOUT ) { showAbout(); } else { setEnabled( false ); menuBar.setEnabled( false ); new ActionThread( e ) { public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); } }.start(); } }
|
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { currentModel.viewAll(); } else if( command == MenuBar.FILTER_ADMINISTRATIVE_MESSAGES ) { currentModel.viewAdministrative(); } else if( command == MenuBar.FILTER_APPLICATION_MESSAGES ) { currentModel.viewApplication(); } else if( command == MenuBar.FILTER_INDICATION_CATEGORY ) { currentModel.viewCategory( Category.Indication ); } else if( command == MenuBar.FILTER_EVENT_COMMUNICATION_CATEGORY ) { currentModel.viewCategory( Category.EventCommunication ); } else if( command == MenuBar.FILTER_QUOTATION_NEGOTIATION_CATEGORY ) { currentModel.viewCategory( Category.QuoteNegotiation ); } else if( command == MenuBar.FILTER_MARKET_DATA_CATEGORY ) { currentModel.viewCategory( Category.MarketData ); } else if( command == MenuBar.FILTER_SECURITY_AND_TRADING_SESSION_CATEGORY ) { currentModel.viewCategory( Category.SecurityAndTradingSessionDefinitionStatus ); } else if( command == MenuBar.FILTER_SINGLE_GENERAL_ORDER_HANDLING_CATEGORY ) { currentModel.viewCategory( Category.SingleGeneralOrderHandling ); } else if( command == MenuBar.FILTER_CROSS_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.CrossOrder ); } else if( command == MenuBar.FILTER_MULTILEG_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.MultiLegOrders ); } else if( command == MenuBar.FILTER_LIST_PROGRAM_BASKET_TRADING_CATEGORY ) { currentModel.viewCategory( Category.ListProgramBasketTrading ); } else if( source == MenuBar.filterAllocationCategory ) { currentModel.viewCategory( Category.Allocation ); } else if( command == MenuBar.FILTER_CONFIRMATION_CATEGORY ) { currentModel.viewCategory( Category.Confirmation ); } else if( command == MenuBar.FILTER_SETTLEMENT_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.SettlementInstructions ); } else if( command == MenuBar.FILTER_TRADE_CAPTURE_REPORTING_CATEGORY ) { currentModel.viewCategory( Category.TradeCaptureReporting ); } else if( command == MenuBar.FILTER_REGISTRATION_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.RegistrationInstructions ); } else if( command == MenuBar.FILTER_POSITIONS_MAINTENANCE_CATEGORY ) { currentModel.viewCategory( Category.PositionsManagement ); } else if( command == MenuBar.FILTER_COLLATERAL_MANAGEMENT_CATEGORY ) { currentModel.viewCategory( Category.CollateralManagement ); } else if( command == MenuBar.FILTER_CUSTOM_FILTER ) { applyFilter( null ); } else if( command == MenuBar.HELP_ABOUT ) { showAbout(); } else { setEnabled( false ); menuBar.setEnabled( false ); new ActionThread( e ) { public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); } }.start(); } }
| 1,117,586
|
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { currentModel.viewAll(); } else if( command == MenuBar.FILTER_ADMINISTRATIVE_MESSAGES ) { currentModel.viewAdministrative(); } else if( command == MenuBar.FILTER_APPLICATION_MESSAGES ) { currentModel.viewApplication(); } else if( command == MenuBar.FILTER_INDICATION_CATEGORY ) { currentModel.viewCategory( Category.Indication ); } else if( command == MenuBar.FILTER_EVENT_COMMUNICATION_CATEGORY ) { currentModel.viewCategory( Category.EventCommunication ); } else if( command == MenuBar.FILTER_QUOTATION_NEGOTIATION_CATEGORY ) { currentModel.viewCategory( Category.QuoteNegotiation ); } else if( command == MenuBar.FILTER_MARKET_DATA_CATEGORY ) { currentModel.viewCategory( Category.MarketData ); } else if( command == MenuBar.FILTER_SECURITY_AND_TRADING_SESSION_CATEGORY ) { currentModel.viewCategory( Category.SecurityAndTradingSessionDefinitionStatus ); } else if( command == MenuBar.FILTER_SINGLE_GENERAL_ORDER_HANDLING_CATEGORY ) { currentModel.viewCategory( Category.SingleGeneralOrderHandling ); } else if( command == MenuBar.FILTER_CROSS_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.CrossOrder ); } else if( command == MenuBar.FILTER_MULTILEG_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.MultiLegOrders ); } else if( command == MenuBar.FILTER_LIST_PROGRAM_BASKET_TRADING_CATEGORY ) { currentModel.viewCategory( Category.ListProgramBasketTrading ); } else if( command == MenuBar.FILTER_ALLOCATION_CATEGORY ) { currentModel.viewCategory( Category.Allocation ); } else if( command == MenuBar.FILTER_CONFIRMATION_CATEGORY ) { currentModel.viewCategory( Category.Confirmation ); } else if( command == MenuBar.FILTER_SETTLEMENT_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.SettlementInstructions ); } else if( command == MenuBar.FILTER_TRADE_CAPTURE_REPORTING_CATEGORY ) { currentModel.viewCategory( Category.TradeCaptureReporting ); } else if( command == MenuBar.FILTER_REGISTRATION_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.RegistrationInstructions ); } else if( command == MenuBar.FILTER_POSITIONS_MAINTENANCE_CATEGORY ) { currentModel.viewCategory( Category.PositionsManagement ); } else if( command == MenuBar.FILTER_COLLATERAL_MANAGEMENT_CATEGORY ) { currentModel.viewCategory( Category.CollateralManagement ); } else if( command == MenuBar.FILTER_CUSTOM_FILTER ) { applyFilter( null ); } else if( command == MenuBar.HELP_ABOUT ) { showAbout(); } else { setEnabled( false ); menuBar.setEnabled( false ); new ActionThread( e ) { public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); } }.start(); } }
|
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { currentModel.viewAll(); } else if( command == MenuBar.FILTER_ADMINISTRATIVE_MESSAGES ) { currentModel.viewAdministrative(); } else if( command == MenuBar.FILTER_APPLICATION_MESSAGES ) { currentModel.viewApplication(); } else if( command == MenuBar.FILTER_INDICATION_CATEGORY ) { currentModel.viewCategory( Category.Indication ); } else if( command == MenuBar.FILTER_EVENT_COMMUNICATION_CATEGORY ) { currentModel.viewCategory( Category.EventCommunication ); } else if( command == MenuBar.FILTER_QUOTATION_NEGOTIATION_CATEGORY ) { currentModel.viewCategory( Category.QuoteNegotiation ); } else if( command == MenuBar.FILTER_MARKET_DATA_CATEGORY ) { currentModel.viewCategory( Category.MarketData ); } else if( command == MenuBar.FILTER_SECURITY_AND_TRADING_SESSION_CATEGORY ) { currentModel.viewCategory( Category.SecurityAndTradingSessionDefinitionStatus ); } else if( command == MenuBar.FILTER_SINGLE_GENERAL_ORDER_HANDLING_CATEGORY ) { currentModel.viewCategory( Category.SingleGeneralOrderHandling ); } else if( command == MenuBar.FILTER_CROSS_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.CrossOrder ); } else if( command == MenuBar.FILTER_MULTILEG_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.MultiLegOrders ); } else if( command == MenuBar.FILTER_LIST_PROGRAM_BASKET_TRADING_CATEGORY ) { currentModel.viewCategory( Category.ListProgramBasketTrading ); } else if( command == MenuBar.FILTER_ALLOCATION_CATEGORY ) { currentModel.viewCategory( Category.Allocation ); } else if( source == MenuBar.filterConfirmationCategory ) { currentModel.viewCategory( Category.Confirmation ); } else if( command == MenuBar.FILTER_SETTLEMENT_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.SettlementInstructions ); } else if( command == MenuBar.FILTER_TRADE_CAPTURE_REPORTING_CATEGORY ) { currentModel.viewCategory( Category.TradeCaptureReporting ); } else if( command == MenuBar.FILTER_REGISTRATION_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.RegistrationInstructions ); } else if( command == MenuBar.FILTER_POSITIONS_MAINTENANCE_CATEGORY ) { currentModel.viewCategory( Category.PositionsManagement ); } else if( command == MenuBar.FILTER_COLLATERAL_MANAGEMENT_CATEGORY ) { currentModel.viewCategory( Category.CollateralManagement ); } else if( command == MenuBar.FILTER_CUSTOM_FILTER ) { applyFilter( null ); } else if( command == MenuBar.HELP_ABOUT ) { showAbout(); } else { setEnabled( false ); menuBar.setEnabled( false ); new ActionThread( e ) { public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); } }.start(); } }
| 1,117,587
|
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { currentModel.viewAll(); } else if( command == MenuBar.FILTER_ADMINISTRATIVE_MESSAGES ) { currentModel.viewAdministrative(); } else if( command == MenuBar.FILTER_APPLICATION_MESSAGES ) { currentModel.viewApplication(); } else if( command == MenuBar.FILTER_INDICATION_CATEGORY ) { currentModel.viewCategory( Category.Indication ); } else if( command == MenuBar.FILTER_EVENT_COMMUNICATION_CATEGORY ) { currentModel.viewCategory( Category.EventCommunication ); } else if( command == MenuBar.FILTER_QUOTATION_NEGOTIATION_CATEGORY ) { currentModel.viewCategory( Category.QuoteNegotiation ); } else if( command == MenuBar.FILTER_MARKET_DATA_CATEGORY ) { currentModel.viewCategory( Category.MarketData ); } else if( command == MenuBar.FILTER_SECURITY_AND_TRADING_SESSION_CATEGORY ) { currentModel.viewCategory( Category.SecurityAndTradingSessionDefinitionStatus ); } else if( command == MenuBar.FILTER_SINGLE_GENERAL_ORDER_HANDLING_CATEGORY ) { currentModel.viewCategory( Category.SingleGeneralOrderHandling ); } else if( command == MenuBar.FILTER_CROSS_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.CrossOrder ); } else if( command == MenuBar.FILTER_MULTILEG_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.MultiLegOrders ); } else if( command == MenuBar.FILTER_LIST_PROGRAM_BASKET_TRADING_CATEGORY ) { currentModel.viewCategory( Category.ListProgramBasketTrading ); } else if( command == MenuBar.FILTER_ALLOCATION_CATEGORY ) { currentModel.viewCategory( Category.Allocation ); } else if( command == MenuBar.FILTER_CONFIRMATION_CATEGORY ) { currentModel.viewCategory( Category.Confirmation ); } else if( command == MenuBar.FILTER_SETTLEMENT_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.SettlementInstructions ); } else if( command == MenuBar.FILTER_TRADE_CAPTURE_REPORTING_CATEGORY ) { currentModel.viewCategory( Category.TradeCaptureReporting ); } else if( command == MenuBar.FILTER_REGISTRATION_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.RegistrationInstructions ); } else if( command == MenuBar.FILTER_POSITIONS_MAINTENANCE_CATEGORY ) { currentModel.viewCategory( Category.PositionsManagement ); } else if( command == MenuBar.FILTER_COLLATERAL_MANAGEMENT_CATEGORY ) { currentModel.viewCategory( Category.CollateralManagement ); } else if( command == MenuBar.FILTER_CUSTOM_FILTER ) { applyFilter( null ); } else if( command == MenuBar.HELP_ABOUT ) { showAbout(); } else { setEnabled( false ); menuBar.setEnabled( false ); new ActionThread( e ) { public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); } }.start(); } }
|
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { currentModel.viewAll(); } else if( command == MenuBar.FILTER_ADMINISTRATIVE_MESSAGES ) { currentModel.viewAdministrative(); } else if( command == MenuBar.FILTER_APPLICATION_MESSAGES ) { currentModel.viewApplication(); } else if( command == MenuBar.FILTER_INDICATION_CATEGORY ) { currentModel.viewCategory( Category.Indication ); } else if( command == MenuBar.FILTER_EVENT_COMMUNICATION_CATEGORY ) { currentModel.viewCategory( Category.EventCommunication ); } else if( command == MenuBar.FILTER_QUOTATION_NEGOTIATION_CATEGORY ) { currentModel.viewCategory( Category.QuoteNegotiation ); } else if( command == MenuBar.FILTER_MARKET_DATA_CATEGORY ) { currentModel.viewCategory( Category.MarketData ); } else if( command == MenuBar.FILTER_SECURITY_AND_TRADING_SESSION_CATEGORY ) { currentModel.viewCategory( Category.SecurityAndTradingSessionDefinitionStatus ); } else if( command == MenuBar.FILTER_SINGLE_GENERAL_ORDER_HANDLING_CATEGORY ) { currentModel.viewCategory( Category.SingleGeneralOrderHandling ); } else if( command == MenuBar.FILTER_CROSS_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.CrossOrder ); } else if( command == MenuBar.FILTER_MULTILEG_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.MultiLegOrders ); } else if( command == MenuBar.FILTER_LIST_PROGRAM_BASKET_TRADING_CATEGORY ) { currentModel.viewCategory( Category.ListProgramBasketTrading ); } else if( command == MenuBar.FILTER_ALLOCATION_CATEGORY ) { currentModel.viewCategory( Category.Allocation ); } else if( command == MenuBar.FILTER_CONFIRMATION_CATEGORY ) { currentModel.viewCategory( Category.Confirmation ); } else if( source == MenuBar.filterSettlementInstructionsCategory ) { currentModel.viewCategory( Category.SettlementInstructions ); } else if( command == MenuBar.FILTER_TRADE_CAPTURE_REPORTING_CATEGORY ) { currentModel.viewCategory( Category.TradeCaptureReporting ); } else if( command == MenuBar.FILTER_REGISTRATION_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.RegistrationInstructions ); } else if( command == MenuBar.FILTER_POSITIONS_MAINTENANCE_CATEGORY ) { currentModel.viewCategory( Category.PositionsManagement ); } else if( command == MenuBar.FILTER_COLLATERAL_MANAGEMENT_CATEGORY ) { currentModel.viewCategory( Category.CollateralManagement ); } else if( command == MenuBar.FILTER_CUSTOM_FILTER ) { applyFilter( null ); } else if( command == MenuBar.HELP_ABOUT ) { showAbout(); } else { setEnabled( false ); menuBar.setEnabled( false ); new ActionThread( e ) { public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); } }.start(); } }
| 1,117,588
|
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { currentModel.viewAll(); } else if( command == MenuBar.FILTER_ADMINISTRATIVE_MESSAGES ) { currentModel.viewAdministrative(); } else if( command == MenuBar.FILTER_APPLICATION_MESSAGES ) { currentModel.viewApplication(); } else if( command == MenuBar.FILTER_INDICATION_CATEGORY ) { currentModel.viewCategory( Category.Indication ); } else if( command == MenuBar.FILTER_EVENT_COMMUNICATION_CATEGORY ) { currentModel.viewCategory( Category.EventCommunication ); } else if( command == MenuBar.FILTER_QUOTATION_NEGOTIATION_CATEGORY ) { currentModel.viewCategory( Category.QuoteNegotiation ); } else if( command == MenuBar.FILTER_MARKET_DATA_CATEGORY ) { currentModel.viewCategory( Category.MarketData ); } else if( command == MenuBar.FILTER_SECURITY_AND_TRADING_SESSION_CATEGORY ) { currentModel.viewCategory( Category.SecurityAndTradingSessionDefinitionStatus ); } else if( command == MenuBar.FILTER_SINGLE_GENERAL_ORDER_HANDLING_CATEGORY ) { currentModel.viewCategory( Category.SingleGeneralOrderHandling ); } else if( command == MenuBar.FILTER_CROSS_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.CrossOrder ); } else if( command == MenuBar.FILTER_MULTILEG_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.MultiLegOrders ); } else if( command == MenuBar.FILTER_LIST_PROGRAM_BASKET_TRADING_CATEGORY ) { currentModel.viewCategory( Category.ListProgramBasketTrading ); } else if( command == MenuBar.FILTER_ALLOCATION_CATEGORY ) { currentModel.viewCategory( Category.Allocation ); } else if( command == MenuBar.FILTER_CONFIRMATION_CATEGORY ) { currentModel.viewCategory( Category.Confirmation ); } else if( command == MenuBar.FILTER_SETTLEMENT_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.SettlementInstructions ); } else if( command == MenuBar.FILTER_TRADE_CAPTURE_REPORTING_CATEGORY ) { currentModel.viewCategory( Category.TradeCaptureReporting ); } else if( command == MenuBar.FILTER_REGISTRATION_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.RegistrationInstructions ); } else if( command == MenuBar.FILTER_POSITIONS_MAINTENANCE_CATEGORY ) { currentModel.viewCategory( Category.PositionsManagement ); } else if( command == MenuBar.FILTER_COLLATERAL_MANAGEMENT_CATEGORY ) { currentModel.viewCategory( Category.CollateralManagement ); } else if( command == MenuBar.FILTER_CUSTOM_FILTER ) { applyFilter( null ); } else if( command == MenuBar.HELP_ABOUT ) { showAbout(); } else { setEnabled( false ); menuBar.setEnabled( false ); new ActionThread( e ) { public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); } }.start(); } }
|
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { currentModel.viewAll(); } else if( command == MenuBar.FILTER_ADMINISTRATIVE_MESSAGES ) { currentModel.viewAdministrative(); } else if( command == MenuBar.FILTER_APPLICATION_MESSAGES ) { currentModel.viewApplication(); } else if( command == MenuBar.FILTER_INDICATION_CATEGORY ) { currentModel.viewCategory( Category.Indication ); } else if( command == MenuBar.FILTER_EVENT_COMMUNICATION_CATEGORY ) { currentModel.viewCategory( Category.EventCommunication ); } else if( command == MenuBar.FILTER_QUOTATION_NEGOTIATION_CATEGORY ) { currentModel.viewCategory( Category.QuoteNegotiation ); } else if( command == MenuBar.FILTER_MARKET_DATA_CATEGORY ) { currentModel.viewCategory( Category.MarketData ); } else if( command == MenuBar.FILTER_SECURITY_AND_TRADING_SESSION_CATEGORY ) { currentModel.viewCategory( Category.SecurityAndTradingSessionDefinitionStatus ); } else if( command == MenuBar.FILTER_SINGLE_GENERAL_ORDER_HANDLING_CATEGORY ) { currentModel.viewCategory( Category.SingleGeneralOrderHandling ); } else if( command == MenuBar.FILTER_CROSS_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.CrossOrder ); } else if( command == MenuBar.FILTER_MULTILEG_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.MultiLegOrders ); } else if( command == MenuBar.FILTER_LIST_PROGRAM_BASKET_TRADING_CATEGORY ) { currentModel.viewCategory( Category.ListProgramBasketTrading ); } else if( command == MenuBar.FILTER_ALLOCATION_CATEGORY ) { currentModel.viewCategory( Category.Allocation ); } else if( command == MenuBar.FILTER_CONFIRMATION_CATEGORY ) { currentModel.viewCategory( Category.Confirmation ); } else if( command == MenuBar.FILTER_SETTLEMENT_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.SettlementInstructions ); } else if( source == MenuBar.filterTradeCaptureReportingCategory ) { currentModel.viewCategory( Category.TradeCaptureReporting ); } else if( command == MenuBar.FILTER_REGISTRATION_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.RegistrationInstructions ); } else if( command == MenuBar.FILTER_POSITIONS_MAINTENANCE_CATEGORY ) { currentModel.viewCategory( Category.PositionsManagement ); } else if( command == MenuBar.FILTER_COLLATERAL_MANAGEMENT_CATEGORY ) { currentModel.viewCategory( Category.CollateralManagement ); } else if( command == MenuBar.FILTER_CUSTOM_FILTER ) { applyFilter( null ); } else if( command == MenuBar.HELP_ABOUT ) { showAbout(); } else { setEnabled( false ); menuBar.setEnabled( false ); new ActionThread( e ) { public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); } }.start(); } }
| 1,117,589
|
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { currentModel.viewAll(); } else if( command == MenuBar.FILTER_ADMINISTRATIVE_MESSAGES ) { currentModel.viewAdministrative(); } else if( command == MenuBar.FILTER_APPLICATION_MESSAGES ) { currentModel.viewApplication(); } else if( command == MenuBar.FILTER_INDICATION_CATEGORY ) { currentModel.viewCategory( Category.Indication ); } else if( command == MenuBar.FILTER_EVENT_COMMUNICATION_CATEGORY ) { currentModel.viewCategory( Category.EventCommunication ); } else if( command == MenuBar.FILTER_QUOTATION_NEGOTIATION_CATEGORY ) { currentModel.viewCategory( Category.QuoteNegotiation ); } else if( command == MenuBar.FILTER_MARKET_DATA_CATEGORY ) { currentModel.viewCategory( Category.MarketData ); } else if( command == MenuBar.FILTER_SECURITY_AND_TRADING_SESSION_CATEGORY ) { currentModel.viewCategory( Category.SecurityAndTradingSessionDefinitionStatus ); } else if( command == MenuBar.FILTER_SINGLE_GENERAL_ORDER_HANDLING_CATEGORY ) { currentModel.viewCategory( Category.SingleGeneralOrderHandling ); } else if( command == MenuBar.FILTER_CROSS_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.CrossOrder ); } else if( command == MenuBar.FILTER_MULTILEG_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.MultiLegOrders ); } else if( command == MenuBar.FILTER_LIST_PROGRAM_BASKET_TRADING_CATEGORY ) { currentModel.viewCategory( Category.ListProgramBasketTrading ); } else if( command == MenuBar.FILTER_ALLOCATION_CATEGORY ) { currentModel.viewCategory( Category.Allocation ); } else if( command == MenuBar.FILTER_CONFIRMATION_CATEGORY ) { currentModel.viewCategory( Category.Confirmation ); } else if( command == MenuBar.FILTER_SETTLEMENT_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.SettlementInstructions ); } else if( command == MenuBar.FILTER_TRADE_CAPTURE_REPORTING_CATEGORY ) { currentModel.viewCategory( Category.TradeCaptureReporting ); } else if( command == MenuBar.FILTER_REGISTRATION_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.RegistrationInstructions ); } else if( command == MenuBar.FILTER_POSITIONS_MAINTENANCE_CATEGORY ) { currentModel.viewCategory( Category.PositionsManagement ); } else if( command == MenuBar.FILTER_COLLATERAL_MANAGEMENT_CATEGORY ) { currentModel.viewCategory( Category.CollateralManagement ); } else if( command == MenuBar.FILTER_CUSTOM_FILTER ) { applyFilter( null ); } else if( command == MenuBar.HELP_ABOUT ) { showAbout(); } else { setEnabled( false ); menuBar.setEnabled( false ); new ActionThread( e ) { public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); } }.start(); } }
|
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { currentModel.viewAll(); } else if( command == MenuBar.FILTER_ADMINISTRATIVE_MESSAGES ) { currentModel.viewAdministrative(); } else if( command == MenuBar.FILTER_APPLICATION_MESSAGES ) { currentModel.viewApplication(); } else if( command == MenuBar.FILTER_INDICATION_CATEGORY ) { currentModel.viewCategory( Category.Indication ); } else if( command == MenuBar.FILTER_EVENT_COMMUNICATION_CATEGORY ) { currentModel.viewCategory( Category.EventCommunication ); } else if( command == MenuBar.FILTER_QUOTATION_NEGOTIATION_CATEGORY ) { currentModel.viewCategory( Category.QuoteNegotiation ); } else if( command == MenuBar.FILTER_MARKET_DATA_CATEGORY ) { currentModel.viewCategory( Category.MarketData ); } else if( command == MenuBar.FILTER_SECURITY_AND_TRADING_SESSION_CATEGORY ) { currentModel.viewCategory( Category.SecurityAndTradingSessionDefinitionStatus ); } else if( command == MenuBar.FILTER_SINGLE_GENERAL_ORDER_HANDLING_CATEGORY ) { currentModel.viewCategory( Category.SingleGeneralOrderHandling ); } else if( command == MenuBar.FILTER_CROSS_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.CrossOrder ); } else if( command == MenuBar.FILTER_MULTILEG_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.MultiLegOrders ); } else if( command == MenuBar.FILTER_LIST_PROGRAM_BASKET_TRADING_CATEGORY ) { currentModel.viewCategory( Category.ListProgramBasketTrading ); } else if( command == MenuBar.FILTER_ALLOCATION_CATEGORY ) { currentModel.viewCategory( Category.Allocation ); } else if( command == MenuBar.FILTER_CONFIRMATION_CATEGORY ) { currentModel.viewCategory( Category.Confirmation ); } else if( command == MenuBar.FILTER_SETTLEMENT_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.SettlementInstructions ); } else if( command == MenuBar.FILTER_TRADE_CAPTURE_REPORTING_CATEGORY ) { currentModel.viewCategory( Category.TradeCaptureReporting ); } else if( source == MenuBar.filterRegistrationInstructionsCategory ) { currentModel.viewCategory( Category.RegistrationInstructions ); } else if( command == MenuBar.FILTER_POSITIONS_MAINTENANCE_CATEGORY ) { currentModel.viewCategory( Category.PositionsManagement ); } else if( command == MenuBar.FILTER_COLLATERAL_MANAGEMENT_CATEGORY ) { currentModel.viewCategory( Category.CollateralManagement ); } else if( command == MenuBar.FILTER_CUSTOM_FILTER ) { applyFilter( null ); } else if( command == MenuBar.HELP_ABOUT ) { showAbout(); } else { setEnabled( false ); menuBar.setEnabled( false ); new ActionThread( e ) { public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); } }.start(); } }
| 1,117,590
|
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { currentModel.viewAll(); } else if( command == MenuBar.FILTER_ADMINISTRATIVE_MESSAGES ) { currentModel.viewAdministrative(); } else if( command == MenuBar.FILTER_APPLICATION_MESSAGES ) { currentModel.viewApplication(); } else if( command == MenuBar.FILTER_INDICATION_CATEGORY ) { currentModel.viewCategory( Category.Indication ); } else if( command == MenuBar.FILTER_EVENT_COMMUNICATION_CATEGORY ) { currentModel.viewCategory( Category.EventCommunication ); } else if( command == MenuBar.FILTER_QUOTATION_NEGOTIATION_CATEGORY ) { currentModel.viewCategory( Category.QuoteNegotiation ); } else if( command == MenuBar.FILTER_MARKET_DATA_CATEGORY ) { currentModel.viewCategory( Category.MarketData ); } else if( command == MenuBar.FILTER_SECURITY_AND_TRADING_SESSION_CATEGORY ) { currentModel.viewCategory( Category.SecurityAndTradingSessionDefinitionStatus ); } else if( command == MenuBar.FILTER_SINGLE_GENERAL_ORDER_HANDLING_CATEGORY ) { currentModel.viewCategory( Category.SingleGeneralOrderHandling ); } else if( command == MenuBar.FILTER_CROSS_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.CrossOrder ); } else if( command == MenuBar.FILTER_MULTILEG_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.MultiLegOrders ); } else if( command == MenuBar.FILTER_LIST_PROGRAM_BASKET_TRADING_CATEGORY ) { currentModel.viewCategory( Category.ListProgramBasketTrading ); } else if( command == MenuBar.FILTER_ALLOCATION_CATEGORY ) { currentModel.viewCategory( Category.Allocation ); } else if( command == MenuBar.FILTER_CONFIRMATION_CATEGORY ) { currentModel.viewCategory( Category.Confirmation ); } else if( command == MenuBar.FILTER_SETTLEMENT_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.SettlementInstructions ); } else if( command == MenuBar.FILTER_TRADE_CAPTURE_REPORTING_CATEGORY ) { currentModel.viewCategory( Category.TradeCaptureReporting ); } else if( command == MenuBar.FILTER_REGISTRATION_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.RegistrationInstructions ); } else if( command == MenuBar.FILTER_POSITIONS_MAINTENANCE_CATEGORY ) { currentModel.viewCategory( Category.PositionsManagement ); } else if( command == MenuBar.FILTER_COLLATERAL_MANAGEMENT_CATEGORY ) { currentModel.viewCategory( Category.CollateralManagement ); } else if( command == MenuBar.FILTER_CUSTOM_FILTER ) { applyFilter( null ); } else if( command == MenuBar.HELP_ABOUT ) { showAbout(); } else { setEnabled( false ); menuBar.setEnabled( false ); new ActionThread( e ) { public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); } }.start(); } }
|
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { currentModel.viewAll(); } else if( command == MenuBar.FILTER_ADMINISTRATIVE_MESSAGES ) { currentModel.viewAdministrative(); } else if( command == MenuBar.FILTER_APPLICATION_MESSAGES ) { currentModel.viewApplication(); } else if( command == MenuBar.FILTER_INDICATION_CATEGORY ) { currentModel.viewCategory( Category.Indication ); } else if( command == MenuBar.FILTER_EVENT_COMMUNICATION_CATEGORY ) { currentModel.viewCategory( Category.EventCommunication ); } else if( command == MenuBar.FILTER_QUOTATION_NEGOTIATION_CATEGORY ) { currentModel.viewCategory( Category.QuoteNegotiation ); } else if( command == MenuBar.FILTER_MARKET_DATA_CATEGORY ) { currentModel.viewCategory( Category.MarketData ); } else if( command == MenuBar.FILTER_SECURITY_AND_TRADING_SESSION_CATEGORY ) { currentModel.viewCategory( Category.SecurityAndTradingSessionDefinitionStatus ); } else if( command == MenuBar.FILTER_SINGLE_GENERAL_ORDER_HANDLING_CATEGORY ) { currentModel.viewCategory( Category.SingleGeneralOrderHandling ); } else if( command == MenuBar.FILTER_CROSS_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.CrossOrder ); } else if( command == MenuBar.FILTER_MULTILEG_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.MultiLegOrders ); } else if( command == MenuBar.FILTER_LIST_PROGRAM_BASKET_TRADING_CATEGORY ) { currentModel.viewCategory( Category.ListProgramBasketTrading ); } else if( command == MenuBar.FILTER_ALLOCATION_CATEGORY ) { currentModel.viewCategory( Category.Allocation ); } else if( command == MenuBar.FILTER_CONFIRMATION_CATEGORY ) { currentModel.viewCategory( Category.Confirmation ); } else if( command == MenuBar.FILTER_SETTLEMENT_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.SettlementInstructions ); } else if( command == MenuBar.FILTER_TRADE_CAPTURE_REPORTING_CATEGORY ) { currentModel.viewCategory( Category.TradeCaptureReporting ); } else if( command == MenuBar.FILTER_REGISTRATION_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.RegistrationInstructions ); } else if( source == MenuBar.filterPositionsMaintenanceCategory ) { currentModel.viewCategory( Category.PositionsManagement ); } else if( command == MenuBar.FILTER_COLLATERAL_MANAGEMENT_CATEGORY ) { currentModel.viewCategory( Category.CollateralManagement ); } else if( command == MenuBar.FILTER_CUSTOM_FILTER ) { applyFilter( null ); } else if( command == MenuBar.HELP_ABOUT ) { showAbout(); } else { setEnabled( false ); menuBar.setEnabled( false ); new ActionThread( e ) { public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); } }.start(); } }
| 1,117,591
|
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { currentModel.viewAll(); } else if( command == MenuBar.FILTER_ADMINISTRATIVE_MESSAGES ) { currentModel.viewAdministrative(); } else if( command == MenuBar.FILTER_APPLICATION_MESSAGES ) { currentModel.viewApplication(); } else if( command == MenuBar.FILTER_INDICATION_CATEGORY ) { currentModel.viewCategory( Category.Indication ); } else if( command == MenuBar.FILTER_EVENT_COMMUNICATION_CATEGORY ) { currentModel.viewCategory( Category.EventCommunication ); } else if( command == MenuBar.FILTER_QUOTATION_NEGOTIATION_CATEGORY ) { currentModel.viewCategory( Category.QuoteNegotiation ); } else if( command == MenuBar.FILTER_MARKET_DATA_CATEGORY ) { currentModel.viewCategory( Category.MarketData ); } else if( command == MenuBar.FILTER_SECURITY_AND_TRADING_SESSION_CATEGORY ) { currentModel.viewCategory( Category.SecurityAndTradingSessionDefinitionStatus ); } else if( command == MenuBar.FILTER_SINGLE_GENERAL_ORDER_HANDLING_CATEGORY ) { currentModel.viewCategory( Category.SingleGeneralOrderHandling ); } else if( command == MenuBar.FILTER_CROSS_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.CrossOrder ); } else if( command == MenuBar.FILTER_MULTILEG_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.MultiLegOrders ); } else if( command == MenuBar.FILTER_LIST_PROGRAM_BASKET_TRADING_CATEGORY ) { currentModel.viewCategory( Category.ListProgramBasketTrading ); } else if( command == MenuBar.FILTER_ALLOCATION_CATEGORY ) { currentModel.viewCategory( Category.Allocation ); } else if( command == MenuBar.FILTER_CONFIRMATION_CATEGORY ) { currentModel.viewCategory( Category.Confirmation ); } else if( command == MenuBar.FILTER_SETTLEMENT_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.SettlementInstructions ); } else if( command == MenuBar.FILTER_TRADE_CAPTURE_REPORTING_CATEGORY ) { currentModel.viewCategory( Category.TradeCaptureReporting ); } else if( command == MenuBar.FILTER_REGISTRATION_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.RegistrationInstructions ); } else if( command == MenuBar.FILTER_POSITIONS_MAINTENANCE_CATEGORY ) { currentModel.viewCategory( Category.PositionsManagement ); } else if( command == MenuBar.FILTER_COLLATERAL_MANAGEMENT_CATEGORY ) { currentModel.viewCategory( Category.CollateralManagement ); } else if( command == MenuBar.FILTER_CUSTOM_FILTER ) { applyFilter( null ); } else if( command == MenuBar.HELP_ABOUT ) { showAbout(); } else { setEnabled( false ); menuBar.setEnabled( false ); new ActionThread( e ) { public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); } }.start(); } }
|
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { currentModel.viewAll(); } else if( command == MenuBar.FILTER_ADMINISTRATIVE_MESSAGES ) { currentModel.viewAdministrative(); } else if( command == MenuBar.FILTER_APPLICATION_MESSAGES ) { currentModel.viewApplication(); } else if( command == MenuBar.FILTER_INDICATION_CATEGORY ) { currentModel.viewCategory( Category.Indication ); } else if( command == MenuBar.FILTER_EVENT_COMMUNICATION_CATEGORY ) { currentModel.viewCategory( Category.EventCommunication ); } else if( command == MenuBar.FILTER_QUOTATION_NEGOTIATION_CATEGORY ) { currentModel.viewCategory( Category.QuoteNegotiation ); } else if( command == MenuBar.FILTER_MARKET_DATA_CATEGORY ) { currentModel.viewCategory( Category.MarketData ); } else if( command == MenuBar.FILTER_SECURITY_AND_TRADING_SESSION_CATEGORY ) { currentModel.viewCategory( Category.SecurityAndTradingSessionDefinitionStatus ); } else if( command == MenuBar.FILTER_SINGLE_GENERAL_ORDER_HANDLING_CATEGORY ) { currentModel.viewCategory( Category.SingleGeneralOrderHandling ); } else if( command == MenuBar.FILTER_CROSS_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.CrossOrder ); } else if( command == MenuBar.FILTER_MULTILEG_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.MultiLegOrders ); } else if( command == MenuBar.FILTER_LIST_PROGRAM_BASKET_TRADING_CATEGORY ) { currentModel.viewCategory( Category.ListProgramBasketTrading ); } else if( command == MenuBar.FILTER_ALLOCATION_CATEGORY ) { currentModel.viewCategory( Category.Allocation ); } else if( command == MenuBar.FILTER_CONFIRMATION_CATEGORY ) { currentModel.viewCategory( Category.Confirmation ); } else if( command == MenuBar.FILTER_SETTLEMENT_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.SettlementInstructions ); } else if( command == MenuBar.FILTER_TRADE_CAPTURE_REPORTING_CATEGORY ) { currentModel.viewCategory( Category.TradeCaptureReporting ); } else if( command == MenuBar.FILTER_REGISTRATION_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.RegistrationInstructions ); } else if( command == MenuBar.FILTER_POSITIONS_MAINTENANCE_CATEGORY ) { currentModel.viewCategory( Category.PositionsManagement ); } else if( source == MenuBar.filterCollateralManagementCategory ) { currentModel.viewCategory( Category.CollateralManagement ); } else if( command == MenuBar.FILTER_CUSTOM_FILTER ) { applyFilter( null ); } else if( command == MenuBar.HELP_ABOUT ) { showAbout(); } else { setEnabled( false ); menuBar.setEnabled( false ); new ActionThread( e ) { public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); } }.start(); } }
| 1,117,592
|
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { currentModel.viewAll(); } else if( command == MenuBar.FILTER_ADMINISTRATIVE_MESSAGES ) { currentModel.viewAdministrative(); } else if( command == MenuBar.FILTER_APPLICATION_MESSAGES ) { currentModel.viewApplication(); } else if( command == MenuBar.FILTER_INDICATION_CATEGORY ) { currentModel.viewCategory( Category.Indication ); } else if( command == MenuBar.FILTER_EVENT_COMMUNICATION_CATEGORY ) { currentModel.viewCategory( Category.EventCommunication ); } else if( command == MenuBar.FILTER_QUOTATION_NEGOTIATION_CATEGORY ) { currentModel.viewCategory( Category.QuoteNegotiation ); } else if( command == MenuBar.FILTER_MARKET_DATA_CATEGORY ) { currentModel.viewCategory( Category.MarketData ); } else if( command == MenuBar.FILTER_SECURITY_AND_TRADING_SESSION_CATEGORY ) { currentModel.viewCategory( Category.SecurityAndTradingSessionDefinitionStatus ); } else if( command == MenuBar.FILTER_SINGLE_GENERAL_ORDER_HANDLING_CATEGORY ) { currentModel.viewCategory( Category.SingleGeneralOrderHandling ); } else if( command == MenuBar.FILTER_CROSS_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.CrossOrder ); } else if( command == MenuBar.FILTER_MULTILEG_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.MultiLegOrders ); } else if( command == MenuBar.FILTER_LIST_PROGRAM_BASKET_TRADING_CATEGORY ) { currentModel.viewCategory( Category.ListProgramBasketTrading ); } else if( command == MenuBar.FILTER_ALLOCATION_CATEGORY ) { currentModel.viewCategory( Category.Allocation ); } else if( command == MenuBar.FILTER_CONFIRMATION_CATEGORY ) { currentModel.viewCategory( Category.Confirmation ); } else if( command == MenuBar.FILTER_SETTLEMENT_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.SettlementInstructions ); } else if( command == MenuBar.FILTER_TRADE_CAPTURE_REPORTING_CATEGORY ) { currentModel.viewCategory( Category.TradeCaptureReporting ); } else if( command == MenuBar.FILTER_REGISTRATION_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.RegistrationInstructions ); } else if( command == MenuBar.FILTER_POSITIONS_MAINTENANCE_CATEGORY ) { currentModel.viewCategory( Category.PositionsManagement ); } else if( command == MenuBar.FILTER_COLLATERAL_MANAGEMENT_CATEGORY ) { currentModel.viewCategory( Category.CollateralManagement ); } else if( command == MenuBar.FILTER_CUSTOM_FILTER ) { applyFilter( null ); } else if( command == MenuBar.HELP_ABOUT ) { showAbout(); } else { setEnabled( false ); menuBar.setEnabled( false ); new ActionThread( e ) { public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); } }.start(); } }
|
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { currentModel.viewAll(); } else if( command == MenuBar.FILTER_ADMINISTRATIVE_MESSAGES ) { currentModel.viewAdministrative(); } else if( command == MenuBar.FILTER_APPLICATION_MESSAGES ) { currentModel.viewApplication(); } else if( command == MenuBar.FILTER_INDICATION_CATEGORY ) { currentModel.viewCategory( Category.Indication ); } else if( command == MenuBar.FILTER_EVENT_COMMUNICATION_CATEGORY ) { currentModel.viewCategory( Category.EventCommunication ); } else if( command == MenuBar.FILTER_QUOTATION_NEGOTIATION_CATEGORY ) { currentModel.viewCategory( Category.QuoteNegotiation ); } else if( command == MenuBar.FILTER_MARKET_DATA_CATEGORY ) { currentModel.viewCategory( Category.MarketData ); } else if( command == MenuBar.FILTER_SECURITY_AND_TRADING_SESSION_CATEGORY ) { currentModel.viewCategory( Category.SecurityAndTradingSessionDefinitionStatus ); } else if( command == MenuBar.FILTER_SINGLE_GENERAL_ORDER_HANDLING_CATEGORY ) { currentModel.viewCategory( Category.SingleGeneralOrderHandling ); } else if( command == MenuBar.FILTER_CROSS_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.CrossOrder ); } else if( command == MenuBar.FILTER_MULTILEG_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.MultiLegOrders ); } else if( command == MenuBar.FILTER_LIST_PROGRAM_BASKET_TRADING_CATEGORY ) { currentModel.viewCategory( Category.ListProgramBasketTrading ); } else if( command == MenuBar.FILTER_ALLOCATION_CATEGORY ) { currentModel.viewCategory( Category.Allocation ); } else if( command == MenuBar.FILTER_CONFIRMATION_CATEGORY ) { currentModel.viewCategory( Category.Confirmation ); } else if( command == MenuBar.FILTER_SETTLEMENT_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.SettlementInstructions ); } else if( command == MenuBar.FILTER_TRADE_CAPTURE_REPORTING_CATEGORY ) { currentModel.viewCategory( Category.TradeCaptureReporting ); } else if( command == MenuBar.FILTER_REGISTRATION_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.RegistrationInstructions ); } else if( command == MenuBar.FILTER_POSITIONS_MAINTENANCE_CATEGORY ) { currentModel.viewCategory( Category.PositionsManagement ); } else if( command == MenuBar.FILTER_COLLATERAL_MANAGEMENT_CATEGORY ) { currentModel.viewCategory( Category.CollateralManagement ); } else if( source == MenuBar.filterCustomFilter ) { applyFilter( null ); } else if( command == MenuBar.HELP_ABOUT ) { showAbout(); } else { setEnabled( false ); menuBar.setEnabled( false ); new ActionThread( e ) { public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); } }.start(); } }
| 1,117,593
|
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { currentModel.viewAll(); } else if( command == MenuBar.FILTER_ADMINISTRATIVE_MESSAGES ) { currentModel.viewAdministrative(); } else if( command == MenuBar.FILTER_APPLICATION_MESSAGES ) { currentModel.viewApplication(); } else if( command == MenuBar.FILTER_INDICATION_CATEGORY ) { currentModel.viewCategory( Category.Indication ); } else if( command == MenuBar.FILTER_EVENT_COMMUNICATION_CATEGORY ) { currentModel.viewCategory( Category.EventCommunication ); } else if( command == MenuBar.FILTER_QUOTATION_NEGOTIATION_CATEGORY ) { currentModel.viewCategory( Category.QuoteNegotiation ); } else if( command == MenuBar.FILTER_MARKET_DATA_CATEGORY ) { currentModel.viewCategory( Category.MarketData ); } else if( command == MenuBar.FILTER_SECURITY_AND_TRADING_SESSION_CATEGORY ) { currentModel.viewCategory( Category.SecurityAndTradingSessionDefinitionStatus ); } else if( command == MenuBar.FILTER_SINGLE_GENERAL_ORDER_HANDLING_CATEGORY ) { currentModel.viewCategory( Category.SingleGeneralOrderHandling ); } else if( command == MenuBar.FILTER_CROSS_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.CrossOrder ); } else if( command == MenuBar.FILTER_MULTILEG_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.MultiLegOrders ); } else if( command == MenuBar.FILTER_LIST_PROGRAM_BASKET_TRADING_CATEGORY ) { currentModel.viewCategory( Category.ListProgramBasketTrading ); } else if( command == MenuBar.FILTER_ALLOCATION_CATEGORY ) { currentModel.viewCategory( Category.Allocation ); } else if( command == MenuBar.FILTER_CONFIRMATION_CATEGORY ) { currentModel.viewCategory( Category.Confirmation ); } else if( command == MenuBar.FILTER_SETTLEMENT_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.SettlementInstructions ); } else if( command == MenuBar.FILTER_TRADE_CAPTURE_REPORTING_CATEGORY ) { currentModel.viewCategory( Category.TradeCaptureReporting ); } else if( command == MenuBar.FILTER_REGISTRATION_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.RegistrationInstructions ); } else if( command == MenuBar.FILTER_POSITIONS_MAINTENANCE_CATEGORY ) { currentModel.viewCategory( Category.PositionsManagement ); } else if( command == MenuBar.FILTER_COLLATERAL_MANAGEMENT_CATEGORY ) { currentModel.viewCategory( Category.CollateralManagement ); } else if( command == MenuBar.FILTER_CUSTOM_FILTER ) { applyFilter( null ); } else if( command == MenuBar.HELP_ABOUT ) { showAbout(); } else { setEnabled( false ); menuBar.setEnabled( false ); new ActionThread( e ) { public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); } }.start(); } }
|
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { currentModel.viewAll(); } else if( command == MenuBar.FILTER_ADMINISTRATIVE_MESSAGES ) { currentModel.viewAdministrative(); } else if( command == MenuBar.FILTER_APPLICATION_MESSAGES ) { currentModel.viewApplication(); } else if( command == MenuBar.FILTER_INDICATION_CATEGORY ) { currentModel.viewCategory( Category.Indication ); } else if( command == MenuBar.FILTER_EVENT_COMMUNICATION_CATEGORY ) { currentModel.viewCategory( Category.EventCommunication ); } else if( command == MenuBar.FILTER_QUOTATION_NEGOTIATION_CATEGORY ) { currentModel.viewCategory( Category.QuoteNegotiation ); } else if( command == MenuBar.FILTER_MARKET_DATA_CATEGORY ) { currentModel.viewCategory( Category.MarketData ); } else if( command == MenuBar.FILTER_SECURITY_AND_TRADING_SESSION_CATEGORY ) { currentModel.viewCategory( Category.SecurityAndTradingSessionDefinitionStatus ); } else if( command == MenuBar.FILTER_SINGLE_GENERAL_ORDER_HANDLING_CATEGORY ) { currentModel.viewCategory( Category.SingleGeneralOrderHandling ); } else if( command == MenuBar.FILTER_CROSS_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.CrossOrder ); } else if( command == MenuBar.FILTER_MULTILEG_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.MultiLegOrders ); } else if( command == MenuBar.FILTER_LIST_PROGRAM_BASKET_TRADING_CATEGORY ) { currentModel.viewCategory( Category.ListProgramBasketTrading ); } else if( command == MenuBar.FILTER_ALLOCATION_CATEGORY ) { currentModel.viewCategory( Category.Allocation ); } else if( command == MenuBar.FILTER_CONFIRMATION_CATEGORY ) { currentModel.viewCategory( Category.Confirmation ); } else if( command == MenuBar.FILTER_SETTLEMENT_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.SettlementInstructions ); } else if( command == MenuBar.FILTER_TRADE_CAPTURE_REPORTING_CATEGORY ) { currentModel.viewCategory( Category.TradeCaptureReporting ); } else if( command == MenuBar.FILTER_REGISTRATION_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.RegistrationInstructions ); } else if( command == MenuBar.FILTER_POSITIONS_MAINTENANCE_CATEGORY ) { currentModel.viewCategory( Category.PositionsManagement ); } else if( command == MenuBar.FILTER_COLLATERAL_MANAGEMENT_CATEGORY ) { currentModel.viewCategory( Category.CollateralManagement ); } else if( command == MenuBar.FILTER_CUSTOM_FILTER ) { applyFilter( null ); } else if( source == MenuBar.helpAbout ) { showAbout(); } else { setEnabled( false ); menuBar.setEnabled( false ); new ActionThread( e ) { public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); } }.start(); } }
| 1,117,594
|
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { currentModel.viewAll(); } else if( command == MenuBar.FILTER_ADMINISTRATIVE_MESSAGES ) { currentModel.viewAdministrative(); } else if( command == MenuBar.FILTER_APPLICATION_MESSAGES ) { currentModel.viewApplication(); } else if( command == MenuBar.FILTER_INDICATION_CATEGORY ) { currentModel.viewCategory( Category.Indication ); } else if( command == MenuBar.FILTER_EVENT_COMMUNICATION_CATEGORY ) { currentModel.viewCategory( Category.EventCommunication ); } else if( command == MenuBar.FILTER_QUOTATION_NEGOTIATION_CATEGORY ) { currentModel.viewCategory( Category.QuoteNegotiation ); } else if( command == MenuBar.FILTER_MARKET_DATA_CATEGORY ) { currentModel.viewCategory( Category.MarketData ); } else if( command == MenuBar.FILTER_SECURITY_AND_TRADING_SESSION_CATEGORY ) { currentModel.viewCategory( Category.SecurityAndTradingSessionDefinitionStatus ); } else if( command == MenuBar.FILTER_SINGLE_GENERAL_ORDER_HANDLING_CATEGORY ) { currentModel.viewCategory( Category.SingleGeneralOrderHandling ); } else if( command == MenuBar.FILTER_CROSS_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.CrossOrder ); } else if( command == MenuBar.FILTER_MULTILEG_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.MultiLegOrders ); } else if( command == MenuBar.FILTER_LIST_PROGRAM_BASKET_TRADING_CATEGORY ) { currentModel.viewCategory( Category.ListProgramBasketTrading ); } else if( command == MenuBar.FILTER_ALLOCATION_CATEGORY ) { currentModel.viewCategory( Category.Allocation ); } else if( command == MenuBar.FILTER_CONFIRMATION_CATEGORY ) { currentModel.viewCategory( Category.Confirmation ); } else if( command == MenuBar.FILTER_SETTLEMENT_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.SettlementInstructions ); } else if( command == MenuBar.FILTER_TRADE_CAPTURE_REPORTING_CATEGORY ) { currentModel.viewCategory( Category.TradeCaptureReporting ); } else if( command == MenuBar.FILTER_REGISTRATION_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.RegistrationInstructions ); } else if( command == MenuBar.FILTER_POSITIONS_MAINTENANCE_CATEGORY ) { currentModel.viewCategory( Category.PositionsManagement ); } else if( command == MenuBar.FILTER_COLLATERAL_MANAGEMENT_CATEGORY ) { currentModel.viewCategory( Category.CollateralManagement ); } else if( command == MenuBar.FILTER_CUSTOM_FILTER ) { applyFilter( null ); } else if( command == MenuBar.HELP_ABOUT ) { showAbout(); } else { setEnabled( false ); menuBar.setEnabled( false ); new ActionThread( e ) { public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); } }.start(); } }
|
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { currentModel.viewAll(); } else if( command == MenuBar.FILTER_ADMINISTRATIVE_MESSAGES ) { currentModel.viewAdministrative(); } else if( command == MenuBar.FILTER_APPLICATION_MESSAGES ) { currentModel.viewApplication(); } else if( command == MenuBar.FILTER_INDICATION_CATEGORY ) { currentModel.viewCategory( Category.Indication ); } else if( command == MenuBar.FILTER_EVENT_COMMUNICATION_CATEGORY ) { currentModel.viewCategory( Category.EventCommunication ); } else if( command == MenuBar.FILTER_QUOTATION_NEGOTIATION_CATEGORY ) { currentModel.viewCategory( Category.QuoteNegotiation ); } else if( command == MenuBar.FILTER_MARKET_DATA_CATEGORY ) { currentModel.viewCategory( Category.MarketData ); } else if( command == MenuBar.FILTER_SECURITY_AND_TRADING_SESSION_CATEGORY ) { currentModel.viewCategory( Category.SecurityAndTradingSessionDefinitionStatus ); } else if( command == MenuBar.FILTER_SINGLE_GENERAL_ORDER_HANDLING_CATEGORY ) { currentModel.viewCategory( Category.SingleGeneralOrderHandling ); } else if( command == MenuBar.FILTER_CROSS_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.CrossOrder ); } else if( command == MenuBar.FILTER_MULTILEG_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.MultiLegOrders ); } else if( command == MenuBar.FILTER_LIST_PROGRAM_BASKET_TRADING_CATEGORY ) { currentModel.viewCategory( Category.ListProgramBasketTrading ); } else if( command == MenuBar.FILTER_ALLOCATION_CATEGORY ) { currentModel.viewCategory( Category.Allocation ); } else if( command == MenuBar.FILTER_CONFIRMATION_CATEGORY ) { currentModel.viewCategory( Category.Confirmation ); } else if( command == MenuBar.FILTER_SETTLEMENT_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.SettlementInstructions ); } else if( command == MenuBar.FILTER_TRADE_CAPTURE_REPORTING_CATEGORY ) { currentModel.viewCategory( Category.TradeCaptureReporting ); } else if( command == MenuBar.FILTER_REGISTRATION_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.RegistrationInstructions ); } else if( command == MenuBar.FILTER_POSITIONS_MAINTENANCE_CATEGORY ) { currentModel.viewCategory( Category.PositionsManagement ); } else if( command == MenuBar.FILTER_COLLATERAL_MANAGEMENT_CATEGORY ) { currentModel.viewCategory( Category.CollateralManagement ); } else if( command == MenuBar.FILTER_CUSTOM_FILTER ) { applyFilter( null ); } else if( command == MenuBar.HELP_ABOUT ) { showAbout(); } else { setEnabled( false ); menuBar.setEnabled( false ); new ActionThread( e ) { public void run() { Object command = e.getActionCommand(); if( source == MenuBar.fileOpen ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); } }.start(); } }
| 1,117,595
|
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { currentModel.viewAll(); } else if( command == MenuBar.FILTER_ADMINISTRATIVE_MESSAGES ) { currentModel.viewAdministrative(); } else if( command == MenuBar.FILTER_APPLICATION_MESSAGES ) { currentModel.viewApplication(); } else if( command == MenuBar.FILTER_INDICATION_CATEGORY ) { currentModel.viewCategory( Category.Indication ); } else if( command == MenuBar.FILTER_EVENT_COMMUNICATION_CATEGORY ) { currentModel.viewCategory( Category.EventCommunication ); } else if( command == MenuBar.FILTER_QUOTATION_NEGOTIATION_CATEGORY ) { currentModel.viewCategory( Category.QuoteNegotiation ); } else if( command == MenuBar.FILTER_MARKET_DATA_CATEGORY ) { currentModel.viewCategory( Category.MarketData ); } else if( command == MenuBar.FILTER_SECURITY_AND_TRADING_SESSION_CATEGORY ) { currentModel.viewCategory( Category.SecurityAndTradingSessionDefinitionStatus ); } else if( command == MenuBar.FILTER_SINGLE_GENERAL_ORDER_HANDLING_CATEGORY ) { currentModel.viewCategory( Category.SingleGeneralOrderHandling ); } else if( command == MenuBar.FILTER_CROSS_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.CrossOrder ); } else if( command == MenuBar.FILTER_MULTILEG_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.MultiLegOrders ); } else if( command == MenuBar.FILTER_LIST_PROGRAM_BASKET_TRADING_CATEGORY ) { currentModel.viewCategory( Category.ListProgramBasketTrading ); } else if( command == MenuBar.FILTER_ALLOCATION_CATEGORY ) { currentModel.viewCategory( Category.Allocation ); } else if( command == MenuBar.FILTER_CONFIRMATION_CATEGORY ) { currentModel.viewCategory( Category.Confirmation ); } else if( command == MenuBar.FILTER_SETTLEMENT_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.SettlementInstructions ); } else if( command == MenuBar.FILTER_TRADE_CAPTURE_REPORTING_CATEGORY ) { currentModel.viewCategory( Category.TradeCaptureReporting ); } else if( command == MenuBar.FILTER_REGISTRATION_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.RegistrationInstructions ); } else if( command == MenuBar.FILTER_POSITIONS_MAINTENANCE_CATEGORY ) { currentModel.viewCategory( Category.PositionsManagement ); } else if( command == MenuBar.FILTER_COLLATERAL_MANAGEMENT_CATEGORY ) { currentModel.viewCategory( Category.CollateralManagement ); } else if( command == MenuBar.FILTER_CUSTOM_FILTER ) { applyFilter( null ); } else if( command == MenuBar.HELP_ABOUT ) { showAbout(); } else { setEnabled( false ); menuBar.setEnabled( false ); new ActionThread( e ) { public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); } }.start(); } }
|
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { currentModel.viewAll(); } else if( command == MenuBar.FILTER_ADMINISTRATIVE_MESSAGES ) { currentModel.viewAdministrative(); } else if( command == MenuBar.FILTER_APPLICATION_MESSAGES ) { currentModel.viewApplication(); } else if( command == MenuBar.FILTER_INDICATION_CATEGORY ) { currentModel.viewCategory( Category.Indication ); } else if( command == MenuBar.FILTER_EVENT_COMMUNICATION_CATEGORY ) { currentModel.viewCategory( Category.EventCommunication ); } else if( command == MenuBar.FILTER_QUOTATION_NEGOTIATION_CATEGORY ) { currentModel.viewCategory( Category.QuoteNegotiation ); } else if( command == MenuBar.FILTER_MARKET_DATA_CATEGORY ) { currentModel.viewCategory( Category.MarketData ); } else if( command == MenuBar.FILTER_SECURITY_AND_TRADING_SESSION_CATEGORY ) { currentModel.viewCategory( Category.SecurityAndTradingSessionDefinitionStatus ); } else if( command == MenuBar.FILTER_SINGLE_GENERAL_ORDER_HANDLING_CATEGORY ) { currentModel.viewCategory( Category.SingleGeneralOrderHandling ); } else if( command == MenuBar.FILTER_CROSS_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.CrossOrder ); } else if( command == MenuBar.FILTER_MULTILEG_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.MultiLegOrders ); } else if( command == MenuBar.FILTER_LIST_PROGRAM_BASKET_TRADING_CATEGORY ) { currentModel.viewCategory( Category.ListProgramBasketTrading ); } else if( command == MenuBar.FILTER_ALLOCATION_CATEGORY ) { currentModel.viewCategory( Category.Allocation ); } else if( command == MenuBar.FILTER_CONFIRMATION_CATEGORY ) { currentModel.viewCategory( Category.Confirmation ); } else if( command == MenuBar.FILTER_SETTLEMENT_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.SettlementInstructions ); } else if( command == MenuBar.FILTER_TRADE_CAPTURE_REPORTING_CATEGORY ) { currentModel.viewCategory( Category.TradeCaptureReporting ); } else if( command == MenuBar.FILTER_REGISTRATION_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.RegistrationInstructions ); } else if( command == MenuBar.FILTER_POSITIONS_MAINTENANCE_CATEGORY ) { currentModel.viewCategory( Category.PositionsManagement ); } else if( command == MenuBar.FILTER_COLLATERAL_MANAGEMENT_CATEGORY ) { currentModel.viewCategory( Category.CollateralManagement ); } else if( command == MenuBar.FILTER_CUSTOM_FILTER ) { applyFilter( null ); } else if( command == MenuBar.HELP_ABOUT ) { showAbout(); } else { setEnabled( false ); menuBar.setEnabled( false ); new ActionThread( e ) { public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( source == MenuBar.fileExportFIX ) { exportFile( source ); } else if( source == MenuBar.fileExportXML ) { exportFile( source ); } else if( source == MenuBar.fileExportCSV ) { exportFile( source ); } else if( source == MenuBar.viewExportFIX ) { exportFile( source ); } else if( source == MenuBar.viewExportXML ) { exportFile( source ); } else if( source == MenuBar.viewExportCSV ) { exportFile( source ); } else if( source == MenuBar.viewAutosizeColumns ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); } }.start(); } }
| 1,117,596
|
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { currentModel.viewAll(); } else if( command == MenuBar.FILTER_ADMINISTRATIVE_MESSAGES ) { currentModel.viewAdministrative(); } else if( command == MenuBar.FILTER_APPLICATION_MESSAGES ) { currentModel.viewApplication(); } else if( command == MenuBar.FILTER_INDICATION_CATEGORY ) { currentModel.viewCategory( Category.Indication ); } else if( command == MenuBar.FILTER_EVENT_COMMUNICATION_CATEGORY ) { currentModel.viewCategory( Category.EventCommunication ); } else if( command == MenuBar.FILTER_QUOTATION_NEGOTIATION_CATEGORY ) { currentModel.viewCategory( Category.QuoteNegotiation ); } else if( command == MenuBar.FILTER_MARKET_DATA_CATEGORY ) { currentModel.viewCategory( Category.MarketData ); } else if( command == MenuBar.FILTER_SECURITY_AND_TRADING_SESSION_CATEGORY ) { currentModel.viewCategory( Category.SecurityAndTradingSessionDefinitionStatus ); } else if( command == MenuBar.FILTER_SINGLE_GENERAL_ORDER_HANDLING_CATEGORY ) { currentModel.viewCategory( Category.SingleGeneralOrderHandling ); } else if( command == MenuBar.FILTER_CROSS_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.CrossOrder ); } else if( command == MenuBar.FILTER_MULTILEG_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.MultiLegOrders ); } else if( command == MenuBar.FILTER_LIST_PROGRAM_BASKET_TRADING_CATEGORY ) { currentModel.viewCategory( Category.ListProgramBasketTrading ); } else if( command == MenuBar.FILTER_ALLOCATION_CATEGORY ) { currentModel.viewCategory( Category.Allocation ); } else if( command == MenuBar.FILTER_CONFIRMATION_CATEGORY ) { currentModel.viewCategory( Category.Confirmation ); } else if( command == MenuBar.FILTER_SETTLEMENT_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.SettlementInstructions ); } else if( command == MenuBar.FILTER_TRADE_CAPTURE_REPORTING_CATEGORY ) { currentModel.viewCategory( Category.TradeCaptureReporting ); } else if( command == MenuBar.FILTER_REGISTRATION_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.RegistrationInstructions ); } else if( command == MenuBar.FILTER_POSITIONS_MAINTENANCE_CATEGORY ) { currentModel.viewCategory( Category.PositionsManagement ); } else if( command == MenuBar.FILTER_COLLATERAL_MANAGEMENT_CATEGORY ) { currentModel.viewCategory( Category.CollateralManagement ); } else if( command == MenuBar.FILTER_CUSTOM_FILTER ) { applyFilter( null ); } else if( command == MenuBar.HELP_ABOUT ) { showAbout(); } else { setEnabled( false ); menuBar.setEnabled( false ); new ActionThread( e ) { public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); } }.start(); } }
|
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { currentModel.viewAll(); } else if( command == MenuBar.FILTER_ADMINISTRATIVE_MESSAGES ) { currentModel.viewAdministrative(); } else if( command == MenuBar.FILTER_APPLICATION_MESSAGES ) { currentModel.viewApplication(); } else if( command == MenuBar.FILTER_INDICATION_CATEGORY ) { currentModel.viewCategory( Category.Indication ); } else if( command == MenuBar.FILTER_EVENT_COMMUNICATION_CATEGORY ) { currentModel.viewCategory( Category.EventCommunication ); } else if( command == MenuBar.FILTER_QUOTATION_NEGOTIATION_CATEGORY ) { currentModel.viewCategory( Category.QuoteNegotiation ); } else if( command == MenuBar.FILTER_MARKET_DATA_CATEGORY ) { currentModel.viewCategory( Category.MarketData ); } else if( command == MenuBar.FILTER_SECURITY_AND_TRADING_SESSION_CATEGORY ) { currentModel.viewCategory( Category.SecurityAndTradingSessionDefinitionStatus ); } else if( command == MenuBar.FILTER_SINGLE_GENERAL_ORDER_HANDLING_CATEGORY ) { currentModel.viewCategory( Category.SingleGeneralOrderHandling ); } else if( command == MenuBar.FILTER_CROSS_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.CrossOrder ); } else if( command == MenuBar.FILTER_MULTILEG_ORDERS_CATEGORY ) { currentModel.viewCategory( Category.MultiLegOrders ); } else if( command == MenuBar.FILTER_LIST_PROGRAM_BASKET_TRADING_CATEGORY ) { currentModel.viewCategory( Category.ListProgramBasketTrading ); } else if( command == MenuBar.FILTER_ALLOCATION_CATEGORY ) { currentModel.viewCategory( Category.Allocation ); } else if( command == MenuBar.FILTER_CONFIRMATION_CATEGORY ) { currentModel.viewCategory( Category.Confirmation ); } else if( command == MenuBar.FILTER_SETTLEMENT_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.SettlementInstructions ); } else if( command == MenuBar.FILTER_TRADE_CAPTURE_REPORTING_CATEGORY ) { currentModel.viewCategory( Category.TradeCaptureReporting ); } else if( command == MenuBar.FILTER_REGISTRATION_INSTRUCTIONS_CATEGORY ) { currentModel.viewCategory( Category.RegistrationInstructions ); } else if( command == MenuBar.FILTER_POSITIONS_MAINTENANCE_CATEGORY ) { currentModel.viewCategory( Category.PositionsManagement ); } else if( command == MenuBar.FILTER_COLLATERAL_MANAGEMENT_CATEGORY ) { currentModel.viewCategory( Category.CollateralManagement ); } else if( command == MenuBar.FILTER_CUSTOM_FILTER ) { applyFilter( null ); } else if( command == MenuBar.HELP_ABOUT ) { showAbout(); } else { setEnabled( false ); menuBar.setEnabled( false ); new ActionThread( e ) { public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( source == MenuBar.viewAutosizeAndHideColumns ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); } }.start(); } }
| 1,117,597
|
public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); }
|
public void run() { Object source = e.getSource(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); }
| 1,117,598
|
public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); }
|
public void run() { Object command = e.getActionCommand(); if( source == MenuBar.fileOpen ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); }
| 1,117,599
|
public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); }
|
public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( source == MenuBar.fileExportFIX ) { exportFile( source ); } else if( source == MenuBar.fileExportXML ) { exportFile( source ); } else if( source == MenuBar.fileExportCSV ) { exportFile( source ); } else if( source == MenuBar.viewExportFIX ) { exportFile( source ); } else if( source == MenuBar.viewExportXML ) { exportFile( source ); } else if( source == MenuBar.viewExportCSV ) { exportFile( source ); } else if( source == MenuBar.viewAutosizeColumns ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); }
| 1,117,600
|
public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); }
|
public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( source == MenuBar.viewAutosizeAndHideColumns ) { currentTable.autoSizeColumns( progressBar, 1 ); } setEnabled( true ); menuBar.setEnabled( true ); }
| 1,117,601
|
private void openFile() { FileOpenDialog dialog = new FileOpenDialog( frame, dataDictionary ); dialog.setVisible( true ); final File file = dialog.getFile(); final Date startTime = dialog.getStartTime(); final Date endTime = dialog.getEndTime(); dialog.dispose(); boolean traceRunning = tracer.isRunning(); if( traceRunning ) tracer.stop(); if( file != null ) { try { LogFile logFile = new LogFile( file, dataDictionary ); ArrayList messages = logFile.parseMessages( progressBar, startTime, endTime ); //ArrayList invalidMessages = logFile.getInvalidMessages(); currentModel = new MessagesTableModel( dataDictionary, logFile ); currentTable = new MessagesTable( currentModel ); currentTable.addListSelectionListener( this ); currentTable.addMouseListener( this ); JScrollPane component = new JScrollPane( currentTable ); upperTabbedPane.add( file.getName(), component ); upperTabbedPane.setSelectedComponent( component ); currentModel.setMessages( messages, progressBar ); menuBar.reset(); menuBar.setFileOpen( true ); } catch( CancelException e ) { closeFile(); } catch( FileNotFoundException e ) { System.out.println(e); } catch (IOException e) { System.out.println(e); } } if( traceRunning ) tracer.start(); }
|
private void openFile() { FileOpenDialog dialog = new FileOpenDialog( frame ); dialog.setVisible( true ); final File file = dialog.getFile(); final Date startTime = dialog.getStartTime(); final Date endTime = dialog.getEndTime(); dialog.dispose(); boolean traceRunning = tracer.isRunning(); if( traceRunning ) tracer.stop(); if( file != null ) { try { LogFile logFile = new LogFile( file, dataDictionary ); ArrayList messages = logFile.parseMessages( progressBar, startTime, endTime ); //ArrayList invalidMessages = logFile.getInvalidMessages(); currentModel = new MessagesTableModel( dataDictionary, logFile ); currentTable = new MessagesTable( currentModel ); currentTable.addListSelectionListener( this ); currentTable.addMouseListener( this ); JScrollPane component = new JScrollPane( currentTable ); upperTabbedPane.add( file.getName(), component ); upperTabbedPane.setSelectedComponent( component ); currentModel.setMessages( messages, progressBar ); menuBar.reset(); menuBar.setFileOpen( true ); } catch( CancelException e ) { closeFile(); } catch( FileNotFoundException e ) { System.out.println(e); } catch (IOException e) { System.out.println(e); } } if( traceRunning ) tracer.start(); }
| 1,117,602
|
public FileOpenDialog(JFrame owner, DataDictionary dataDictionary) throws HeadlessException { super(owner, "File Open"); setResizable(false); getContentPane().setLayout( new GridBagLayout() ); GridBagConstraints constraints = new GridBagConstraints(); constraints.fill = GridBagConstraints.BOTH; constraints.weightx = 1.0; constraints.weighty = 20.0; constraints.gridwidth = GridBagConstraints.REMAINDER; getContentPane().add( fileChooser, constraints ); Dimension size = fileChooser.getPreferredSize(); size.setSize( size.getWidth() * 1.1, size.getHeight() * 1.25 ); setSize(size); constraints.weighty = 1.0; constraints.weightx = 1.0; constraints.gridwidth = 1; getContentPane().add( new JLabel(), constraints ); constraints.weightx = 1.0; constraints.gridwidth = 10; startTimeControl = new JSpinner(new SpinnerDateModel()); startTimeControl.setEditor(new JSpinner.DateEditor(startTimeControl, "HH:mm:ss MM/dd/yyyy")); startTimeControl.setValue(new Date()); getContentPane().add( startTimeControl, constraints ); constraints.weightx = 1.0; constraints.gridwidth = 1; label.setHorizontalAlignment(JLabel.CENTER); label.setVerticalAlignment(JLabel.CENTER); getContentPane().add( label, constraints ); constraints.weightx = 1.0; constraints.gridwidth = 10; endTimeControl = new JSpinner(new SpinnerDateModel()); endTimeControl.setEditor(new JSpinner.DateEditor(endTimeControl, "HH:mm:ss MM/dd/yyyy")); endTimeControl.setValue(new Date()); getContentPane().add( endTimeControl, constraints ); constraints.weightx = 1.0; constraints.gridwidth = 1; getContentPane().add( new JLabel(), constraints ); fileChooser.setCurrentDirectory( new File(path) ); fileChooser.addActionListener( this ); fileChooser.addPropertyChangeListener( this ); setSize( 640, 480 ); }
|
public FileOpenDialog(JFrame owner) throws HeadlessException { super(owner, "File Open"); setResizable(false); getContentPane().setLayout( new GridBagLayout() ); GridBagConstraints constraints = new GridBagConstraints(); constraints.fill = GridBagConstraints.BOTH; constraints.weightx = 1.0; constraints.weighty = 20.0; constraints.gridwidth = GridBagConstraints.REMAINDER; getContentPane().add( fileChooser, constraints ); Dimension size = fileChooser.getPreferredSize(); size.setSize( size.getWidth() * 1.1, size.getHeight() * 1.25 ); setSize(size); constraints.weighty = 1.0; constraints.weightx = 1.0; constraints.gridwidth = 1; getContentPane().add( new JLabel(), constraints ); constraints.weightx = 1.0; constraints.gridwidth = 10; startTimeControl = new JSpinner(new SpinnerDateModel()); startTimeControl.setEditor(new JSpinner.DateEditor(startTimeControl, "HH:mm:ss MM/dd/yyyy")); startTimeControl.setValue(new Date()); getContentPane().add( startTimeControl, constraints ); constraints.weightx = 1.0; constraints.gridwidth = 1; label.setHorizontalAlignment(JLabel.CENTER); label.setVerticalAlignment(JLabel.CENTER); getContentPane().add( label, constraints ); constraints.weightx = 1.0; constraints.gridwidth = 10; endTimeControl = new JSpinner(new SpinnerDateModel()); endTimeControl.setEditor(new JSpinner.DateEditor(endTimeControl, "HH:mm:ss MM/dd/yyyy")); endTimeControl.setValue(new Date()); getContentPane().add( endTimeControl, constraints ); constraints.weightx = 1.0; constraints.gridwidth = 1; getContentPane().add( new JLabel(), constraints ); fileChooser.setCurrentDirectory( new File(path) ); fileChooser.addActionListener( this ); fileChooser.addPropertyChangeListener( this ); setSize( 640, 480 ); }
| 1,117,604
|
public LogFile( File file, DataDictionary aDataDictionary ) throws FileNotFoundException { logFile = file; dataDictionary = aDataDictionary; initialize(); }
|
public LogFile( File file, DataDictionary aDataDictionary ) throws FileNotFoundException { logFile = file; dataDictionary = aDataDictionary; initialize(); }
| 1,117,605
|
public ArrayList parseMessages( ProgressBarPanel progressBar, Date startTime, Date endTime ) throws IOException, CancelException { int startingPosition = findPositionByTime( progressBar, startTime, 0, true ); int endingPosition = (int)logFile.length(); if( endTime != null ) endingPosition = findPositionByTime( progressBar, endTime, startingPosition, false ); ArrayList messages = parseMessages( progressBar, startingPosition, endingPosition ); return trimMessages( messages, startTime, endTime ); }
|
public ArrayList parseMessages( ProgressBarPanel progressBar, Date startTime, Date endTime ) throws IOException, CancelException { int startingPosition = findPositionByTime( progressBar, startTime, 0, true ); int endingPosition = (int)logFile.length(); if( endTime != null ) endingPosition = findPositionByTime( progressBar, endTime, startingPosition, false ); ArrayList messages = parseMessages( progressBar, startingPosition, endingPosition ); return trimMessages( messages, startTime, endTime ); }
| 1,117,606
|
public ArrayList parseMessages( ProgressBarPanel progressBar, Date startTime, Date endTime ) throws IOException, CancelException { int startingPosition = findPositionByTime( progressBar, startTime, 0, true ); int endingPosition = (int)logFile.length(); if( endTime != null ) endingPosition = findPositionByTime( progressBar, endTime, startingPosition, false ); ArrayList messages = parseMessages( progressBar, startingPosition, endingPosition ); return trimMessages( messages, startTime, endTime ); }
|
public ArrayList parseMessages( ProgressBarPanel progressBar, Date startTime, Date endTime ) throws IOException, CancelException { int startingPosition = findPositionByTime( progressBar, startTime, 0, true ); int endingPosition = (int)logFile.length(); if( endTime != null ) endingPosition = findPositionByTime( progressBar, endTime, startingPosition, false ); ArrayList messages = parseMessages( progressBar, startingPosition, endingPosition ); return trimMessages( messages, startTime, endTime ); }
| 1,117,607
|
public MessagesTableModel( DataDictionary aDataDictionary, LogFile aLogFile ) { dataDictionary = aDataDictionary; logFile = aLogFile; messages = allMessages; }
|
public MessagesTableModel( DataDictionary aDataDictionary ) { dataDictionary = aDataDictionary; logFile = aLogFile; messages = allMessages; }
| 1,117,608
|
public MessagesTableModel( DataDictionary aDataDictionary, LogFile aLogFile ) { dataDictionary = aDataDictionary; logFile = aLogFile; messages = allMessages; }
|
public MessagesTableModel( DataDictionary aDataDictionary, LogFile aLogFile ) { dataDictionary = aDataDictionary; messages = allMessages; }
| 1,117,609
|
AboutDialog(JFrame owner) { super(owner, "About"); setResizable( false ); setSize( 320, 100 ); setLayout( new GridBagLayout() ); constraints.fill = GridBagConstraints.CENTER; constraints.weightx = 1; constraints.gridx = 1; constraints.weighty = 1; constraints.gridy = 0; addLabel( "QuickFIX Log Viewer v1.0.0" ); addLabel( "Copyright 2004-2006 quickfixengine.org" ); addLabel( "www.quickfixengine.org"); addLabel( "ask@quickfixengine.org"); }
|
AboutDialog(JFrame owner) { super(owner, "About"); setResizable( false ); setSize( 320, 100 ); setLayout( new GridBagLayout() ); constraints.fill = GridBagConstraints.CENTER; constraints.weightx = 1; constraints.gridx = 1; constraints.weighty = 1; constraints.gridy = 0; addLabel( "QuickFIX Log Viewer v1.0.1" ); addLabel( "Copyright 2004-2006 quickfixengine.org" ); addLabel( "www.quickfixengine.org"); addLabel( "ask@quickfixengine.org"); }
| 1,117,610
|
private static final void bindArguments(String funnam, ATObject scope, ATTable parameters, ATTable arguments, BindClosure binder) throws NATException { if (parameters == NATTable.EMPTY) { if (arguments == NATTable.EMPTY) return; // no need to bind any arguments else throw new XArityMismatch(funnam, 0, arguments.base_getLength().asNativeNumber().javaValue); } ATObject[] pars = parameters.asNativeTable().elements_; ATObject[] args = arguments.asNativeTable().elements_; // check to see whether the last argument is a spliced parameters, which // indicates a variable parameter list if (pars[pars.length - 1].isSplice()) { int numMandatoryPars = (pars.length - 1); // if so, check whether at least all mandatory parameters are matched if (args.length < numMandatoryPars) throw new XArityMismatch(funnam, numMandatoryPars, args.length); // bind all parameters except for the last one for (int i = 0; i < numMandatoryPars; i++) { binder.bindParamToArg(scope, pars[i].asSymbol(), args[i]); } // bind the last parameter to the remaining arguments int numRemainingArgs = args.length - numMandatoryPars; ATObject[] restArgs = new ATObject[numRemainingArgs]; for (int i = 0; i < numRemainingArgs; i++) { restArgs[i] = args[i + numMandatoryPars]; } ATSymbol restArgsName = pars[numMandatoryPars].asSplice().getExpression().asSymbol(); binder.bindParamToArg(scope, restArgsName, new NATTable(restArgs)); } else { // regular parameter list: arguments and parameters have to match exactly if (pars.length != args.length) throw new XArityMismatch(funnam, pars.length, args.length); for (int i = 0; i < pars.length; i++) { binder.bindParamToArg(scope, pars[i].asSymbol(), args[i]); } } }
|
private static final void bindArguments(String funnam, ATObject scope, ATTable parameters, ATTable arguments, BindClosure binder) throws NATException { if (parameters == NATTable.EMPTY) { if (arguments == NATTable.EMPTY) return; // no need to bind any arguments else throw new XArityMismatch(funnam, 0, arguments.base_getLength().asNativeNumber().javaValue); } ATObject[] pars = parameters.asNativeTable().elements_; ATObject[] args = arguments.asNativeTable().elements_; // check to see whether the last argument is a spliced parameters, which // indicates a variable parameter list if (pars[pars.length - 1].isSplice()) { int numMandatoryPars = (pars.length - 1); // if so, check whether at least all mandatory parameters are matched if (args.length < numMandatoryPars) throw new XArityMismatch(funnam, numMandatoryPars, args.length); // bind all parameters except for the last one for (int i = 0; i < numMandatoryPars; i++) { binder.bindParamToArg(scope, pars[i].asSymbol(), args[i]); } // bind the last parameter to the remaining arguments int numRemainingArgs = args.length - numMandatoryPars; ATObject[] restArgs = new ATObject[numRemainingArgs]; for (int i = 0; i < numRemainingArgs; i++) { restArgs[i] = args[i + numMandatoryPars]; } ATSymbol restArgsName = pars[numMandatoryPars].asSplice().base_getExpression().asSymbol(); binder.bindParamToArg(scope, restArgsName, new NATTable(restArgs)); } else { // regular parameter list: arguments and parameters have to match exactly if (pars.length != args.length) throw new XArityMismatch(funnam, pars.length, args.length); for (int i = 0; i < pars.length; i++) { binder.bindParamToArg(scope, pars[i].asSymbol(), args[i]); } } }
| 1,117,611
|
public static final NATTable evaluateArguments(NATTable args, ATContext ctx) throws NATException { if (args == NATTable.EMPTY) return NATTable.EMPTY; ATObject[] els = args.elements_; LinkedList result = new LinkedList(); int siz = els.length; for (int i = 0; i < els.length; i++) { if (els[i].isSplice()) { ATObject[] tbl = els[i].asSplice().getExpression().meta_eval(ctx).asNativeTable().elements_; for (int j = 0; j < tbl.length; j++) { result.add(tbl[j]); } siz += (tbl.length - 1); // -1 because we replace one element by a table of elements } else { result.add(els[i].meta_eval(ctx)); } } return new NATTable((ATObject[]) result.toArray(new ATObject[siz])); }
|
public static final NATTable evaluateArguments(NATTable args, ATContext ctx) throws NATException { if (args == NATTable.EMPTY) return NATTable.EMPTY; ATObject[] els = args.elements_; LinkedList result = new LinkedList(); int siz = els.length; for (int i = 0; i < els.length; i++) { if (els[i].isSplice()) { ATObject[] tbl = els[i].asSplice().base_getExpression().meta_eval(ctx).asNativeTable().elements_; for (int j = 0; j < tbl.length; j++) { result.add(tbl[j]); } siz += (tbl.length - 1); // -1 because we replace one element by a table of elements } else { result.add(els[i].meta_eval(ctx)); } } return new NATTable((ATObject[]) result.toArray(new ATObject[siz])); }
| 1,117,612
|
public static String getSeismogramName(ChannelId channelId, DataSet dataset, TimeRange timeRange) { Channel channel = ((XMLDataSet)dataset).getChannel(channelId); SeismogramAttr[] attrs = ((XMLDataSet)dataset).getSeismogramAttrs(); MicroSecondDate startDate = new MicroSecondDate(timeRange.start_time); MicroSecondDate endDate = new MicroSecondDate(timeRange.end_time); for(int counter = 0; counter < attrs.length; counter++) { if(ChannelIdUtil.toString(channelId).equals(ChannelIdUtil.toString(((SeismogramAttrImpl)attrs[counter]).getChannelID()))){ if(((((SeismogramAttrImpl)attrs[counter]).getBeginTime().equals(startDate) || ((SeismogramAttrImpl)attrs[counter]).getBeginTime().before(startDate))) && (((SeismogramAttrImpl)attrs[counter]).getEndTime().equals(endDate) || ((SeismogramAttrImpl)attrs[counter]).getEndTime().after(endDate))){ return ((SeismogramAttrImpl)attrs[counter]).getName(); } } } return null; }
|
public static String getSeismogramName(ChannelId channelId, DataSet dataset, TimeRange timeRange) { SeismogramAttr[] attrs = ((XMLDataSet)dataset).getSeismogramAttrs(); MicroSecondDate startDate = new MicroSecondDate(timeRange.start_time); MicroSecondDate endDate = new MicroSecondDate(timeRange.end_time); for(int counter = 0; counter < attrs.length; counter++) { if(ChannelIdUtil.toString(channelId).equals(ChannelIdUtil.toString(((SeismogramAttrImpl)attrs[counter]).getChannelID()))){ if(((((SeismogramAttrImpl)attrs[counter]).getBeginTime().equals(startDate) || ((SeismogramAttrImpl)attrs[counter]).getBeginTime().before(startDate))) && (((SeismogramAttrImpl)attrs[counter]).getEndTime().equals(endDate) || ((SeismogramAttrImpl)attrs[counter]).getEndTime().after(endDate))){ return ((SeismogramAttrImpl)attrs[counter]).getName(); } } } return null; }
| 1,117,613
|
public static String[] getSeismogramNames(ChannelId channelId, DataSet dataset, TimeRange timeRange) { Channel channel = ((XMLDataSet)dataset).getChannel(channelId); SeismogramAttr[] attrs = ((XMLDataSet)dataset).getSeismogramAttrs(); MicroSecondDate startDate = new MicroSecondDate(timeRange.start_time); MicroSecondDate endDate = new MicroSecondDate(timeRange.end_time); ArrayList arrayList = new ArrayList(); for(int counter = 0; counter < attrs.length; counter++) { if(ChannelIdUtil.toString(channelId).equals(ChannelIdUtil.toString(((SeismogramAttrImpl)attrs[counter]).getChannelID()))){ if(((((SeismogramAttrImpl)attrs[counter]).getBeginTime().equals(startDate) || ((SeismogramAttrImpl)attrs[counter]).getBeginTime().before(startDate))) && (((SeismogramAttrImpl)attrs[counter]).getEndTime().equals(endDate) || ((SeismogramAttrImpl)attrs[counter]).getEndTime().after(endDate))){ arrayList.add(((SeismogramAttrImpl)attrs[counter]).getName()); } } } String[] rtnValues = new String[arrayList.size()]; rtnValues = (String[]) arrayList.toArray(rtnValues); return rtnValues; }
|
public static String[] getSeismogramNames(ChannelId channelId, DataSet dataset, TimeRange timeRange) { SeismogramAttr[] attrs = ((XMLDataSet)dataset).getSeismogramAttrs(); MicroSecondDate startDate = new MicroSecondDate(timeRange.start_time); MicroSecondDate endDate = new MicroSecondDate(timeRange.end_time); ArrayList arrayList = new ArrayList(); for(int counter = 0; counter < attrs.length; counter++) { if(ChannelIdUtil.toString(channelId).equals(ChannelIdUtil.toString(((SeismogramAttrImpl)attrs[counter]).getChannelID()))){ if(((((SeismogramAttrImpl)attrs[counter]).getBeginTime().equals(startDate) || ((SeismogramAttrImpl)attrs[counter]).getBeginTime().before(startDate))) && (((SeismogramAttrImpl)attrs[counter]).getEndTime().equals(endDate) || ((SeismogramAttrImpl)attrs[counter]).getEndTime().after(endDate))){ arrayList.add(((SeismogramAttrImpl)attrs[counter]).getName()); } } } String[] rtnValues = new String[arrayList.size()]; rtnValues = (String[]) arrayList.toArray(rtnValues); return rtnValues; }
| 1,117,614
|
public IdeaView getViewAt(Point2D p) { if (hits(p)) { return this; } else { for (IdeaView subView: subViews) { IdeaView hit = subView.getViewAt(p); if (hit != null) { return hit; } } } return null; }
|
public IdeaView getViewAt(Point2D p) { if (hits(p)) { return this; } else { for (IdeaView subView: subViews) { IdeaView hit = subView.getViewAt(p); if (hit != null) { return hit; } } } return null; }
| 1,117,615
|
public IdeaView getViewAt(Point2D p) { if (hits(p)) { return this; } else { for (IdeaView subView: subViews) { IdeaView hit = subView.getViewAt(p); if (hit != null) { return hit; } } } return null; }
|
public IdeaView getViewAt(Point2D p) { if (hits(p)) { return this; } else { for (IdeaView subView: subViews) { IdeaView hit = subView.getViewAt(p); if (hit != null) { return hit; } } } return hit; }
| 1,117,616
|
private boolean hits(Point2D p) { if ((fromPoint == null) || (toPoint == null)) { return false; } double vx0 = fromPoint.getX(); double vy0 = fromPoint.getY(); double vx1 = toPoint.getX(); double vy1 = toPoint.getY(); double vx2 = p.getX(); double vy2 = p.getY(); double minX = Math.min(vx0, vx1) - thickness; double maxX = Math.max(vx0, vx1) + thickness; double minY = Math.min(vy0, vy1) - thickness; double maxY = Math.max(vy0, vy1) + thickness; if ((vx2 > maxX) || (vx2 < minX)) { return false; } if ((vy2 > maxY) || (vy2 < minY)) { return false; } // Calculate magnitude of the normal to the line-segment double magNormal = Math.sqrt( ((vx1 - vx0) * (vx1 - vx0)) + ((vy1 - vy0) * (vy1 - vy0)) ); // Calculate (signed) distance of the point from the line-segment double distance = ( ((vx2 - vx0) * (vy0 - vy1)) + ((vy2 - vy0) * (vx1 - vx0)) ) / magNormal; // Check if the if (Math.abs(distance) <= thickness) { return true; } return false; }
|
private boolean hits(Point2D p) { if ((fromPoint == null) || (toPoint == null)) { return false; } double vx0 = fromPoint.getX(); double vy0 = fromPoint.getY(); double vx1 = toPoint.getX(); double vy1 = toPoint.getY(); double vx2 = p.getX(); double vy2 = p.getY(); double minX = Math.min(vx0, vx1) - thickness; double maxX = Math.max(vx0, vx1) + thickness; double minY = Math.min(vy0, vy1) - thickness; double maxY = Math.max(vy0, vy1) + thickness; if ((vx2 > maxX) || (vx2 < minX)) { return false; } if ((vy2 > maxY) || (vy2 < minY)) { return false; } // Calculate magnitude of the normal to the line-segment double magNormal = Math.sqrt( ((vx1 - vx0) * (vx1 - vx0)) + ((vy1 - vy0) * (vy1 - vy0)) ); // Calculate (signed) distance of the point from the line-segment double distance = ( ((vx2 - vx0) * (vy0 - vy1)) + ((vy2 - vy0) * (vx1 - vx0)) ) / magNormal; // Check if the if (Math.abs(distance) <= (thickness / 2)) { return true; } return false; }
| 1,117,617
|
public void removeTabAt(int index) { if (index < 0 || index >= getTabCount()) { return; } Component c = getComponentAt(index); Object owner = table.remove(c); if (owner != null && owner instanceof IModule) { ModuleFactory.disposeInstance((IModule)owner); // real removing done by listener (disposed()) } else if (owner != null && owner instanceof IPanel) { ((IPanel)owner).dispose(); super.removeTabAt(index); } else { System.out.println("Simple brutal removeTabAt owner="+owner); super.removeTabAt(index); } }
|
public void removeTabAt(int index) { if (index < 0 || index >= getTabCount()) { return; } Component c = getComponentAt(index); Object owner = table.remove(c); if (owner != null && owner instanceof IModule) { ModuleFactory.disposeInstance((IModule)owner); // real removing done by listener (disposed()) } else if (owner != null && owner instanceof IPanel) { ((IPanel)owner).dispose(); super.removeTabAt(index); } else { super.removeTabAt(index); } }
| 1,117,618
|
public static void show(String msg, Throwable exc) { new ExceptionDialog(msg, exc); }
|
public static void show(String msg, Throwable exc) { new ExceptionDialog(msg, exc); }
| 1,117,619
|
public void testUpSelector() throws InterpreterException { assertEquals("foo_", Reflection.upSelector(AGSymbol.alloc("foo:"))); assertEquals("foo_bar_", Reflection.upSelector(AGSymbol.alloc("foo:bar:"))); assertEquals("_oppls_", Reflection.upSelector(AGSymbol.alloc("+"))); assertEquals("set_opnot_", Reflection.upSelector(AGSymbol.alloc("set!"))); assertEquals("foo__opltx_bar_", Reflection.upSelector(AGSymbol.alloc("foo:<bar:"))); assertEquals("_opbla_", Reflection.upSelector(AGSymbol.alloc(":opbla:"))); assertEquals("yes_opque_", Reflection.upSelector(AGSymbol.alloc("yes?"))); }
|
public void testUpSelector() throws InterpreterException { assertEquals("foo_", Reflection.upSelector(AGSymbol.alloc("foo:"))); assertEquals("foo_bar_", Reflection.upSelector(AGSymbol.alloc("foo:bar:"))); assertEquals("_oppls_", Reflection.upSelector(AGSymbol.alloc("+"))); assertEquals("set_opnot_", Reflection.upSelector(AGSymbol.alloc("set!"))); assertEquals("foo__opltx_bar_", Reflection.upSelector(AGSymbol.alloc("foo:<bar:"))); assertEquals("_opbla_", Reflection.upSelector(AGSymbol.alloc(":opbla:"))); assertEquals("yes_opque_", Reflection.upSelector(AGSymbol.alloc("yes?"))); }
| 1,117,620
|
public DynamicReportDesign(String name) { initializeDocument(name); createTitle(); createPageHeader(); createColumnHeader(); createDetail(); createColumnFooter(); createPageFooter(); createSummary(); }
|
public DynamicReportDesign(String name) { initializeDocument(name); createTitle(); createPageHeader(); createColumnHeader(); createDetail(); createColumnFooter(); createPageFooter(); createSummary(); }
| 1,117,622
|
public String doRefund(String cardnumber, String monthExpires, String yearExpires, String ccVerifyNumber, double amount, String currency, Object parentDataPK, String captureProperties) throws CreditCardAuthorizationException { IWTimestamp stamp = IWTimestamp.RightNow(); strCCNumber = cardnumber; strCCExpire = yearExpires + monthExpires; strCCVerify = ccVerifyNumber; setCurrencyAndAmount(currency, amount); strCurrentDate = getDateString(stamp); try { StringBuffer logText = new StringBuffer(); Hashtable capturePropertiesHash = parseResponse(captureProperties); Hashtable properties = doRefund(getAmountWithExponents(amount), capturePropertiesHash, parentDataPK); String authCode = properties.get(PROPERTY_APPROVAL_CODE).toString(); logText.append("\nRefund successful").append("\nAuthorization Code = " + authCode); logText.append("\nAction Code = " + properties.get(PROPERTY_ACTION_CODE).toString()); try { KortathjonustanAuthorisationEntriesHome authHome = (KortathjonustanAuthorisationEntriesHome) IDOLookup.getHome(KortathjonustanAuthorisationEntries.class); KortathjonustanAuthorisationEntries auth = authHome.create(); String tmpCardNum = CreditCardBusinessBean.encodeCreditCardNumber(cardnumber); auth.setAmount(Double.parseDouble(strAmount)); auth.setAuthorizationCode(authCode); auth.setBrandName(null); auth.setCardExpires(monthExpires+yearExpires); auth.setCardNumber(tmpCardNum); auth.setCurrency(currency); auth.setDate(stamp.getDate()); auth.setErrorNumber(properties.get(PROPERTY_ERROR_CODE).toString()); auth.setErrorText(properties.get(PROPERTY_ERROR_TEXT).toString()); auth.setTransactionType(KortathjonustanAuthorisationEntries.AUTHORIZATION_TYPE_REFUND); auth.setServerResponse(properties.get(PROPERTY_TOTAL_RESPONSE).toString()); if (parentDataPK != null) { try { auth.setParentID(((Integer) parentDataPK).intValue()); } catch (Exception e) { System.out.println("KortathjonustanCCCleint : could not set parentID : " + parentDataPK); } } auth.store(); logger.info(logText.toString()); } catch (Exception e) { System.err.println("Unable to save entry to database"); e.printStackTrace(); if (authCode != null) { return authCode; } else { throw new CreditCardAuthorizationException(e); } } return authCode; } catch (CreditCardAuthorizationException e) { StringBuffer logText = new StringBuffer(); logText.append("Authorization FAILED"); logText.append("\nError = " + e.getErrorMessage()); logText.append("\nNumber = " + e.getErrorNumber()); logText.append("\nDisplay error = " + e.getDisplayError()); logger.info(logText.toString()); throw e; } catch (NullPointerException n) { throw new CreditCardAuthorizationException(n); } }
|
public String doRefund(String cardnumber, String monthExpires, String yearExpires, String ccVerifyNumber, double amount, String currency, Object parentDataPK, String captureProperties) throws CreditCardAuthorizationException { IWTimestamp stamp = IWTimestamp.RightNow(); strCCNumber = cardnumber; strCCExpire = yearExpires + monthExpires; strCCVerify = ccVerifyNumber; setCurrencyAndAmount(currency, amount); strCurrentDate = getDateString(stamp); try { StringBuffer logText = new StringBuffer(); Hashtable capturePropertiesHash = parseResponse(captureProperties); Hashtable properties = doRefund(getAmountWithExponents(amount), capturePropertiesHash, parentDataPK); String authCode = properties.get(PROPERTY_APPROVAL_CODE).toString(); logText.append("\nRefund successful").append("\nAuthorization Code = " + authCode); logText.append("\nAction Code = " + properties.get(PROPERTY_ACTION_CODE).toString()); try { KortathjonustanAuthorisationEntriesHome authHome = (KortathjonustanAuthorisationEntriesHome) IDOLookup.getHome(KortathjonustanAuthorisationEntries.class); KortathjonustanAuthorisationEntries auth = authHome.create(); String tmpCardNum = CreditCardBusinessBean.encodeCreditCardNumber(cardnumber); auth.setAmount(Double.parseDouble(strAmount)); auth.setAuthorizationCode(authCode); auth.setBrandName(null); auth.setCardExpires(monthExpires+yearExpires); auth.setCardNumber(tmpCardNum); auth.setCurrency(currency); auth.setDate(stamp.getDate()); auth.setErrorNumber(properties.get(PROPERTY_ERROR_CODE).toString()); auth.setErrorText(properties.get(PROPERTY_ERROR_TEXT).toString()); auth.setTransactionType(KortathjonustanAuthorisationEntries.AUTHORIZATION_TYPE_REFUND); auth.setServerResponse(properties.get(PROPERTY_TOTAL_RESPONSE).toString()); if (parentDataPK != null) { try { auth.setParentID(((Integer) parentDataPK).intValue()); } catch (Exception e) { System.out.println("KortathjonustanCCCleint : could not set parentID : " + parentDataPK); } } auth.store(); logger.info(logText.toString()); } catch (Exception e) { System.err.println("Unable to save entry to database"); e.printStackTrace(); if (authCode != null) { return authCode; } else { throw new CreditCardAuthorizationException(e); } } return authCode; } catch (CreditCardAuthorizationException e) { StringBuffer logText = new StringBuffer(); logText.append("Authorization FAILED"); logText.append("\nError = " + e.getErrorMessage()); logText.append("\nNumber = " + e.getErrorNumber()); logText.append("\nDisplay error = " + e.getDisplayError()); logger.info(logText.toString()); throw e; } catch (NullPointerException n) { throw new CreditCardAuthorizationException(n); } }
| 1,117,623
|
public String doRefund(String cardnumber, String monthExpires, String yearExpires, String ccVerifyNumber, double amount, String currency, Object parentDataPK, String captureProperties) throws CreditCardAuthorizationException { IWTimestamp stamp = IWTimestamp.RightNow(); strCCNumber = cardnumber; strCCExpire = yearExpires + monthExpires; strCCVerify = ccVerifyNumber; setCurrencyAndAmount(currency, amount); strCurrentDate = getDateString(stamp); try { StringBuffer logText = new StringBuffer(); Hashtable capturePropertiesHash = parseResponse(captureProperties); Hashtable properties = doRefund(getAmountWithExponents(amount), capturePropertiesHash, parentDataPK); String authCode = properties.get(PROPERTY_APPROVAL_CODE).toString(); logText.append("\nRefund successful").append("\nAuthorization Code = " + authCode); logText.append("\nAction Code = " + properties.get(PROPERTY_ACTION_CODE).toString()); try { KortathjonustanAuthorisationEntriesHome authHome = (KortathjonustanAuthorisationEntriesHome) IDOLookup.getHome(KortathjonustanAuthorisationEntries.class); KortathjonustanAuthorisationEntries auth = authHome.create(); String tmpCardNum = CreditCardBusinessBean.encodeCreditCardNumber(cardnumber); auth.setAmount(Double.parseDouble(strAmount)); auth.setAuthorizationCode(authCode); auth.setBrandName(null); auth.setCardExpires(monthExpires+yearExpires); auth.setCardNumber(tmpCardNum); auth.setCurrency(currency); auth.setDate(stamp.getDate()); auth.setErrorNumber(properties.get(PROPERTY_ERROR_CODE).toString()); auth.setErrorText(properties.get(PROPERTY_ERROR_TEXT).toString()); auth.setTransactionType(KortathjonustanAuthorisationEntries.AUTHORIZATION_TYPE_REFUND); auth.setServerResponse(properties.get(PROPERTY_TOTAL_RESPONSE).toString()); if (parentDataPK != null) { try { auth.setParentID(((Integer) parentDataPK).intValue()); } catch (Exception e) { System.out.println("KortathjonustanCCCleint : could not set parentID : " + parentDataPK); } } auth.store(); logger.info(logText.toString()); } catch (Exception e) { System.err.println("Unable to save entry to database"); e.printStackTrace(); if (authCode != null) { return authCode; } else { throw new CreditCardAuthorizationException(e); } } return authCode; } catch (CreditCardAuthorizationException e) { StringBuffer logText = new StringBuffer(); logText.append("Authorization FAILED"); logText.append("\nError = " + e.getErrorMessage()); logText.append("\nNumber = " + e.getErrorNumber()); logText.append("\nDisplay error = " + e.getDisplayError()); logger.info(logText.toString()); throw e; } catch (NullPointerException n) { throw new CreditCardAuthorizationException(n); } }
|
public String doRefund(String cardnumber, String monthExpires, String yearExpires, String ccVerifyNumber, double amount, String currency, Object parentDataPK, String captureProperties) throws CreditCardAuthorizationException { IWTimestamp stamp = IWTimestamp.RightNow(); strCCNumber = cardnumber; strCCExpire = yearExpires + monthExpires; strCCVerify = ccVerifyNumber; setCurrencyAndAmount(currency, amount); strCurrentDate = getDateString(stamp); try { StringBuffer logText = new StringBuffer(); Hashtable capturePropertiesHash = parseResponse(captureProperties); Hashtable properties = doRefund(getAmountWithExponents(amount), capturePropertiesHash, parentDataPK); String authCode = properties.get(PROPERTY_APPROVAL_CODE).toString(); logText.append("\nRefund successful").append("\nAuthorization Code = " + authCode); logText.append("\nAction Code = " + properties.get(PROPERTY_ACTION_CODE).toString()); try { KortathjonustanAuthorisationEntriesHome authHome = (KortathjonustanAuthorisationEntriesHome) IDOLookup.getHome(KortathjonustanAuthorisationEntries.class); KortathjonustanAuthorisationEntries auth = authHome.create(); String tmpCardNum = CreditCardBusinessBean.encodeCreditCardNumber(cardnumber); auth.setAmount(Double.parseDouble(strAmount)); auth.setAuthorizationCode(authCode); auth.setBrandName(null); auth.setCardExpires(monthExpires+yearExpires); auth.setCardNumber(tmpCardNum); auth.setCurrency(currency); auth.setDate(stamp.getDate()); auth.setErrorNumber(properties.get(PROPERTY_ERROR_CODE).toString()); auth.setErrorText(properties.get(PROPERTY_ERROR_TEXT).toString()); auth.setTransactionType(KortathjonustanAuthorisationEntries.AUTHORIZATION_TYPE_REFUND); auth.setServerResponse(properties.get(PROPERTY_TOTAL_RESPONSE).toString()); if (parentDataPK != null) { try { auth.setParentID(((Integer) parentDataPK).intValue()); } catch (Exception e) { System.out.println("KortathjonustanCCCleint : could not set parentID : " + parentDataPK); } } auth.store(); logger.info(logText.toString()); } catch (Exception e) { System.err.println("Unable to save entry to database"); e.printStackTrace(); if (authCode != null) { return authCode; } else { throw new CreditCardAuthorizationException(e); } } return authCode; } catch (CreditCardAuthorizationException e) { StringBuffer logText = new StringBuffer(); logText.append("Authorization FAILED"); logText.append("\nError = " + e.getErrorMessage()); logText.append("\nNumber = " + e.getErrorNumber()); logText.append("\nDisplay error = " + e.getDisplayError()); logger.info(logText.toString()); throw e; } catch (NullPointerException n) { throw new CreditCardAuthorizationException(n); } }
| 1,117,624
|
public String doSale(String nameOnCard, String cardnumber, String monthExpires, String yearExpires, String ccVerifyNumber, double amount, String currency, String referenceNumber) throws CreditCardAuthorizationException { try { IWTimestamp stamp = IWTimestamp.RightNow(); strName = nameOnCard; strCCNumber = cardnumber; strCCExpire = yearExpires + monthExpires; strCCVerify = ccVerifyNumber; setCurrencyAndAmount(currency, amount); strCurrentDate = getDateString(stamp); strReferenceNumber = convertStringToNumbers(referenceNumber); StringBuffer logText = new StringBuffer(); //System.out.println("referenceNumber => " + strReferenceNumber); Hashtable returnedProperties = getFirstResponse(); String authCode = null; if (returnedProperties != null) { logText.append("Authorization successful"); Hashtable returnedCaptureProperties = finishTransaction(returnedProperties); if (returnedCaptureProperties != null && returnedCaptureProperties.get(PROPERTY_APPROVAL_CODE).toString() != null) { //System.out.println("Approval Code = // "+returnedCaptureProperties.get(PROPERTY_APPROVAL_CODE).toString()); authCode = returnedCaptureProperties.get(PROPERTY_APPROVAL_CODE).toString();//returnedCaptureProperties; logText.append("\nCapture successful").append("\nAuthorization Code = " + authCode); logText.append("\nAction Code = " + returnedCaptureProperties.get(PROPERTY_ACTION_CODE).toString()); try { KortathjonustanAuthorisationEntriesHome authHome = (KortathjonustanAuthorisationEntriesHome) IDOLookup.getHome(KortathjonustanAuthorisationEntries.class); KortathjonustanAuthorisationEntries auth = authHome.create(); String tmpCardNum = CreditCardBusinessBean.encodeCreditCardNumber(cardnumber); auth.setAmount(Double.parseDouble(strAmount)); auth.setAuthorizationCode(authCode); auth.setBrandName(returnedCaptureProperties.get(PROPERTY_CARD_BRAND_NAME).toString()); auth.setCardExpires(monthExpires+yearExpires); //auth.setCardExpires(strCCExpire); auth.setCardNumber(tmpCardNum); auth.setCurrency(currency); auth.setDate(stamp.getDate()); auth.setErrorNumber(returnedCaptureProperties.get(PROPERTY_ERROR_CODE).toString()); auth.setErrorText(returnedCaptureProperties.get(PROPERTY_ERROR_TEXT).toString()); auth.setTransactionType(KortathjonustanAuthorisationEntries.AUTHORIZATION_TYPE_SALE); auth.setServerResponse(returnedCaptureProperties.get(PROPERTY_TOTAL_RESPONSE).toString()); auth.store(); logger.info(logText.toString()); } catch (Exception e) { System.err.println("Unable to save entry to database"); throw new CreditCardAuthorizationException(e); } } } return authCode; } catch (CreditCardAuthorizationException e) { StringBuffer logText = new StringBuffer(); logText.append("Authorization FAILED"); logText.append("\nError = " + e.getErrorMessage()); logText.append("\nNumber = " + e.getErrorNumber()); logText.append("\nDisplay error = " + e.getDisplayError()); logger.info(logText.toString()); throw e; } }
|
public String doSale(String nameOnCard, String cardnumber, String monthExpires, String yearExpires, String ccVerifyNumber, double amount, String currency, String referenceNumber) throws CreditCardAuthorizationException { try { IWTimestamp stamp = IWTimestamp.RightNow(); strName = nameOnCard; strCCNumber = cardnumber; strCCExpire = yearExpires + monthExpires; strCCVerify = ccVerifyNumber; setCurrencyAndAmount(currency, amount); strCurrentDate = getDateString(stamp); strReferenceNumber = convertStringToNumbers(referenceNumber); StringBuffer logText = new StringBuffer(); //System.out.println("referenceNumber => " + strReferenceNumber); Hashtable returnedProperties = getFirstResponse(); String authCode = null; if (returnedProperties != null) { logText.append("Authorization successful"); Hashtable returnedCaptureProperties = finishTransaction(returnedProperties); if (returnedCaptureProperties != null && returnedCaptureProperties.get(PROPERTY_APPROVAL_CODE).toString() != null) { //System.out.println("Approval Code = // "+returnedCaptureProperties.get(PROPERTY_APPROVAL_CODE).toString()); authCode = returnedCaptureProperties.get(PROPERTY_APPROVAL_CODE).toString();//returnedCaptureProperties; logText.append("\nCapture successful").append("\nAuthorization Code = " + authCode); logText.append("\nAction Code = " + returnedCaptureProperties.get(PROPERTY_ACTION_CODE).toString()); try { KortathjonustanAuthorisationEntriesHome authHome = (KortathjonustanAuthorisationEntriesHome) IDOLookup.getHome(KortathjonustanAuthorisationEntries.class); KortathjonustanAuthorisationEntries auth = authHome.create(); String tmpCardNum = CreditCardBusinessBean.encodeCreditCardNumber(cardnumber); auth.setAmount(Double.parseDouble(strAmount)); auth.setAuthorizationCode(authCode); auth.setBrandName(returnedCaptureProperties.get(PROPERTY_CARD_BRAND_NAME).toString()); auth.setCardExpires(monthExpires+yearExpires); //auth.setCardExpires(strCCExpire); auth.setCardNumber(tmpCardNum); auth.setCurrency(currency); auth.setDate(stamp.getDate()); auth.setErrorNumber(returnedCaptureProperties.get(PROPERTY_ERROR_CODE).toString()); auth.setErrorText(returnedCaptureProperties.get(PROPERTY_ERROR_TEXT).toString()); auth.setTransactionType(KortathjonustanAuthorisationEntries.AUTHORIZATION_TYPE_SALE); auth.setServerResponse(returnedCaptureProperties.get(PROPERTY_TOTAL_RESPONSE).toString()); auth.store(); logger.info(logText.toString()); } catch (Exception e) { System.err.println("Unable to save entry to database"); throw new CreditCardAuthorizationException(e); } } } return authCode; } catch (CreditCardAuthorizationException e) { StringBuffer logText = new StringBuffer(); logText.append("Authorization FAILED"); logText.append("\nError = " + e.getErrorMessage()); logText.append("\nNumber = " + e.getErrorNumber()); logText.append("\nDisplay error = " + e.getDisplayError()); logger.info(logText.toString()); throw e; } }
| 1,117,625
|
public String doSale(String nameOnCard, String cardnumber, String monthExpires, String yearExpires, String ccVerifyNumber, double amount, String currency, String referenceNumber) throws CreditCardAuthorizationException { try { IWTimestamp stamp = IWTimestamp.RightNow(); strName = nameOnCard; strCCNumber = cardnumber; strCCExpire = yearExpires + monthExpires; strCCVerify = ccVerifyNumber; setCurrencyAndAmount(currency, amount); strCurrentDate = getDateString(stamp); strReferenceNumber = convertStringToNumbers(referenceNumber); StringBuffer logText = new StringBuffer(); //System.out.println("referenceNumber => " + strReferenceNumber); Hashtable returnedProperties = getFirstResponse(); String authCode = null; if (returnedProperties != null) { logText.append("Authorization successful"); Hashtable returnedCaptureProperties = finishTransaction(returnedProperties); if (returnedCaptureProperties != null && returnedCaptureProperties.get(PROPERTY_APPROVAL_CODE).toString() != null) { //System.out.println("Approval Code = // "+returnedCaptureProperties.get(PROPERTY_APPROVAL_CODE).toString()); authCode = returnedCaptureProperties.get(PROPERTY_APPROVAL_CODE).toString();//returnedCaptureProperties; logText.append("\nCapture successful").append("\nAuthorization Code = " + authCode); logText.append("\nAction Code = " + returnedCaptureProperties.get(PROPERTY_ACTION_CODE).toString()); try { KortathjonustanAuthorisationEntriesHome authHome = (KortathjonustanAuthorisationEntriesHome) IDOLookup.getHome(KortathjonustanAuthorisationEntries.class); KortathjonustanAuthorisationEntries auth = authHome.create(); String tmpCardNum = CreditCardBusinessBean.encodeCreditCardNumber(cardnumber); auth.setAmount(Double.parseDouble(strAmount)); auth.setAuthorizationCode(authCode); auth.setBrandName(returnedCaptureProperties.get(PROPERTY_CARD_BRAND_NAME).toString()); auth.setCardExpires(monthExpires+yearExpires); //auth.setCardExpires(strCCExpire); auth.setCardNumber(tmpCardNum); auth.setCurrency(currency); auth.setDate(stamp.getDate()); auth.setErrorNumber(returnedCaptureProperties.get(PROPERTY_ERROR_CODE).toString()); auth.setErrorText(returnedCaptureProperties.get(PROPERTY_ERROR_TEXT).toString()); auth.setTransactionType(KortathjonustanAuthorisationEntries.AUTHORIZATION_TYPE_SALE); auth.setServerResponse(returnedCaptureProperties.get(PROPERTY_TOTAL_RESPONSE).toString()); auth.store(); logger.info(logText.toString()); } catch (Exception e) { System.err.println("Unable to save entry to database"); throw new CreditCardAuthorizationException(e); } } } return authCode; } catch (CreditCardAuthorizationException e) { StringBuffer logText = new StringBuffer(); logText.append("Authorization FAILED"); logText.append("\nError = " + e.getErrorMessage()); logText.append("\nNumber = " + e.getErrorNumber()); logText.append("\nDisplay error = " + e.getDisplayError()); logger.info(logText.toString()); throw e; } }
|
public String doSale(String nameOnCard, String cardnumber, String monthExpires, String yearExpires, String ccVerifyNumber, double amount, String currency, String referenceNumber) throws CreditCardAuthorizationException { try { IWTimestamp stamp = IWTimestamp.RightNow(); strName = nameOnCard; strCCNumber = cardnumber; strCCExpire = yearExpires + monthExpires; strCCVerify = ccVerifyNumber; setCurrencyAndAmount(currency, amount); strCurrentDate = getDateString(stamp); strReferenceNumber = convertStringToNumbers(referenceNumber); StringBuffer logText = new StringBuffer(); //System.out.println("referenceNumber => " + strReferenceNumber); Hashtable returnedProperties = getFirstResponse(); String authCode = null; if (returnedProperties != null) { logText.append("Authorization successful"); Hashtable returnedCaptureProperties = finishTransaction(returnedProperties); if (returnedCaptureProperties != null && returnedCaptureProperties.get(PROPERTY_APPROVAL_CODE).toString() != null) { //System.out.println("Approval Code = // "+returnedCaptureProperties.get(PROPERTY_APPROVAL_CODE).toString()); authCode = returnedCaptureProperties.get(PROPERTY_APPROVAL_CODE).toString();//returnedCaptureProperties; logText.append("\nCapture successful").append("\nAuthorization Code = " + authCode); logText.append("\nAction Code = " + returnedCaptureProperties.get(PROPERTY_ACTION_CODE).toString()); try { KortathjonustanAuthorisationEntriesHome authHome = (KortathjonustanAuthorisationEntriesHome) IDOLookup.getHome(KortathjonustanAuthorisationEntries.class); KortathjonustanAuthorisationEntries auth = authHome.create(); String tmpCardNum = CreditCardBusinessBean.encodeCreditCardNumber(cardnumber); auth.setAmount(Double.parseDouble(strAmount)); auth.setAuthorizationCode(authCode); auth.setBrandName(returnedCaptureProperties.get(PROPERTY_CARD_BRAND_NAME).toString()); auth.setCardExpires(monthExpires+yearExpires); //auth.setCardExpires(strCCExpire); auth.setCardNumber(tmpCardNum); auth.setCurrency(currency); auth.setDate(stamp.getDate()); auth.setErrorNumber(returnedCaptureProperties.get(PROPERTY_ERROR_CODE).toString()); auth.setErrorText(returnedCaptureProperties.get(PROPERTY_ERROR_TEXT).toString()); auth.setTransactionType(KortathjonustanAuthorisationEntries.AUTHORIZATION_TYPE_SALE); auth.setServerResponse(returnedCaptureProperties.get(PROPERTY_TOTAL_RESPONSE).toString()); auth.store(); logger.info(logText.toString()); } catch (Exception e) { System.err.println("Unable to save entry to database"); throw new CreditCardAuthorizationException(e); } } } return authCode; } catch (CreditCardAuthorizationException e) { StringBuffer logText = new StringBuffer(); logText.append("Authorization FAILED"); logText.append("\nError = " + e.getErrorMessage()); logText.append("\nNumber = " + e.getErrorNumber()); logText.append("\nDisplay error = " + e.getDisplayError()); logger.info(logText.toString()); throw e; } }
| 1,117,626
|
public void finishTransaction(String properties) throws KortathjonustanAuthorizationException { finishTransaction(parseResponse(properties)); }
|
public void finishTransaction(String properties) throws KortathjonustanAuthorizationException { Hashtable returnedCaptureProperties = finishTransaction(parseResponse(properties)); try { this.storeAuthorizationEntry(null, null, returnedCaptureProperties, KortathjonustanAuthorisationEntries.AUTHORIZATION_TYPE_DELAYED_TRANSACTION); } catch (Exception e) { System.err.println("Unable to save entry to database"); e.printStackTrace(); throw new KortathjonustanAuthorizationException(e); } }
| 1,117,627
|
public DataSetSeismogram[] retrieve_seismograms() { LocalSeismogramImpl seis = dataSetSeismogram[0].getSeismogram(); ChannelId[] channelIds = ((edu.sc.seis.fissuresUtil.xml.XMLDataSet)dataSetSeismogram[0].getDataSet()).getChannelIds(); ChannelGrouperImpl channelProxy = new ChannelGrouperImpl(); logger.debug("the original channel_code from the seismogram is "+seis.getChannelID().channel_code); channelGroup = channelProxy.retrieve_grouping(channelIds, seis.getChannelID()); logger.debug("THe length of the channel group is "+channelGroup.length); //decide whether to form the radioSetPanel or the checkBoxPanel. if(displayButtonPanel) { if(!advancedOption) { particleMotionDisplay.formRadioSetPanel(channelGroup); } else { particleMotionDisplay.formCheckBoxPanel(channelGroup); } } edu.iris.Fissures.Time startTime; edu.iris.Fissures.Time endTime; DataSetSeismogram[] seismograms = new DataSetSeismogram[3]; if(timeConfigRegistrar != null) { startTime = timeConfigRegistrar.getTimeRange().getBeginTime().getFissuresTime(); endTime = timeConfigRegistrar.getTimeRange().getEndTime().getFissuresTime(); } else { startTime = seis.getBeginTime().getFissuresTime(); endTime = seis.getEndTime().getFissuresTime(); } try { for(int counter = 0; counter < channelGroup.length; counter++) { seismograms[counter] = new DataSetSeismogram(dataSetSeismogram[0].getDataSet(). getSeismogram(DisplayUtils.getSeismogramName(channelGroup[counter], dataSetSeismogram[0].getDataSet(), new edu.iris.Fissures.TimeRange(seis.getBeginTime().getFissuresTime(), seis.getEndTime().getFissuresTime()))), dataSetSeismogram[0].getDataSet()); //ChannelIdUtil.toStringNoDates(channelGroup[counter])); timeConfigRegistrar.addSeismogram(seismograms[counter]); //hAmpRangeConfigRegistrar.addSeismogram(seismograms[counter]); } return seismograms; } catch(Exception e) { e.printStackTrace();//strack trace } return new DataSetSeismogram[0]; }
|
public DataSetSeismogram[] retrieve_seismograms() { LocalSeismogramImpl seis = dataSetSeismogram[0].getSeismogram(); ChannelId[] channelIds = ((edu.sc.seis.fissuresUtil.xml.XMLDataSet)dataSetSeismogram[0].getDataSet()).getChannelIds(); ChannelGrouperImpl channelProxy = new ChannelGrouperImpl(); logger.debug("the original channel_code from the seismogram is "+seis.getChannelID().channel_code); channelGroup = channelProxy.retrieve_grouping(channelIds, seis.getChannelID()); logger.debug("THe length of the channel group is "+channelGroup.length); //decide whether to form the radioSetPanel or the checkBoxPanel. if(displayButtonPanel) { if(!advancedOption) { particleMotionDisplay.formRadioSetPanel(channelGroup); } else { particleMotionDisplay.formCheckBoxPanel(channelGroup); } } edu.iris.Fissures.Time startTime; edu.iris.Fissures.Time endTime; DataSetSeismogram[] seismograms = new DataSetSeismogram[3]; if(timeConfigRegistrar != null) { startTime = timeConfigRegistrar.getTimeRange().getBeginTime().getFissuresTime(); endTime = timeConfigRegistrar.getTimeRange().getEndTime().getFissuresTime(); } else { startTime = seis.getBeginTime().getFissuresTime(); endTime = seis.getEndTime().getFissuresTime(); } try { for(int counter = 0; counter < channelGroup.length; counter++) { seismograms[counter] = new DataSetSeismogram(dataSetSeismogram[0].getDataSet(). getSeismogram(DisplayUtils.getSeismogramName(channelGroup[counter], dataSetSeismogram[0].getDataSet(), new edu.iris.Fissures.TimeRange(seis.getBeginTime().getFissuresTime(), seis.getEndTime().getFissuresTime()))), dataSetSeismogram[0].getDataSet()); //ChannelIdUtil.toStringNoDates(channelGroup[counter])); timeConfigRegistrar.addSeismogram(seismograms[counter]); //hAmpRangeConfigRegistrar.addSeismogram(seismograms[counter]); } return seismograms; } catch(Exception e) { e.printStackTrace();//strack trace } return new DataSetSeismogram[0]; }
| 1,117,629
|
public synchronized void drawAzimuth(ParticleMotion particleMotion, Graphics2D graphics2D) { logger.debug("IN DRAW AZIMUTH"); if(!particleMotion.isHorizontalPlane()) return; Shape sector = getSectorShape(); graphics2D.setColor(Color.blue); graphics2D.fill(sector); graphics2D.draw(sector); graphics2D.setStroke(new BasicStroke(2.0f)); graphics2D.setColor(Color.green); Shape azimuth = getAzimuthPath(); graphics2D.draw(azimuth); graphics2D.setStroke(new BasicStroke(1.0f)); }
|
public synchronized void drawAzimuth(ParticleMotion particleMotion, Graphics2D graphics2D) { logger.debug("IN DRAW AZIMUTH"); if(!particleMotion.isHorizontalPlane()) return; Shape sector = getSectorShape(); graphics2D.setColor(new Color(100, 160, 140)); graphics2D.fill(sector); graphics2D.draw(sector); graphics2D.setStroke(new BasicStroke(2.0f)); graphics2D.setColor(Color.green); Shape azimuth = getAzimuthPath(); graphics2D.draw(azimuth); graphics2D.setStroke(new BasicStroke(1.0f)); }
| 1,117,630
|
public Icon getGUIIcon() { return null; };
|
public Icon getGUIIcon() { return null; }
| 1,117,631
|
public Cursor getModeCursor() { return null; }
|
public Cursor getModeCursor() { return modeCursor; }
| 1,117,632
|
public void mouseMoved(MouseEvent e) {}
|
public void mouseMoved(MouseEvent e) { if (!isPressed && currentCursor != modeCursor){ setCursor(modeCursor, e); } }
| 1,117,633
|
public void mousePressed(MouseEvent e) {}
|
public void mousePressed(MouseEvent e) { isPressed = true; if (currentCursor != pressedCursor){ setCursor(pressedCursor, e); } }
| 1,117,634
|
public void mouseReleased(MouseEvent e) {}
|
public void mouseReleased(MouseEvent e) { isPressed = false; if (currentCursor != modeCursor){ setCursor(modeCursor, e); } }
| 1,117,635
|
public int sort(DataSetSeismogram seismo, String name){ names.add(name); return seismos.size(); }
|
public int sort(DataSetSeismogram seismo, String name){ names.add(name); int rtnValue = seismos.size(); seismos.put(name, seismo); return rtnValue; }
| 1,117,636
|
public void update_region(edu.iris.Fissures.FlinnEngdahlRegion region, edu.iris.Fissures.AuditInfo[] audit_info) { try { jdbcEventAccess.updateFlinnEngdahlRegion(eventid, region); } catch(SQLException sqle) { logger.error("Problem with SQL ", sqle); throw new org.omg.CORBA.INTERNAL(sqle.toString()); } catch(edu.sc.seis.anhinga.database.NotFound nfe) { logger.error(" The Event with id " + eventid + " is Not Found", nfe); throw new org.omg.CORBA.INTERNAL(nfe.toString()); } }
|
public void update_region(edu.iris.Fissures.FlinnEngdahlRegion region, edu.iris.Fissures.AuditInfo[] audit_info) { try { jdbcEventAccess.updateFlinnEngdahlRegion(eventid, region); } catch(SQLException sqle) { logger.error("Problem with SQL ", sqle); throw new org.omg.CORBA.INTERNAL(sqle.toString()); } catch(NotFound nfe) { logger.error(" The Event with id " + eventid + " is Not Found", nfe); throw new org.omg.CORBA.INTERNAL(nfe.toString()); } }
| 1,117,637
|
public NATMirage(ATObject dynamicParent, ATObject lexicalParent, NATIntercessiveMirror mirror, boolean parentType) { super(dynamicParent, lexicalParent, parentType); mirror_ = mirror; }
|
public NATMirage(ATObject dynamicParent, ATObject lexicalParent, NATIntercessiveMirror mirror, boolean parentType) { super(dynamicParent, lexicalParent, parentType); mirror_ = mirror; }
| 1,117,638
|
public TablePanel() { super(new GridLayout(1, 0)); final JTable table = new JTable(model); table.getColumnModel().getColumn(0).setPreferredWidth(150); table.getColumnModel().getColumn(1).setPreferredWidth(150); table.getColumnModel().getColumn(2).setPreferredWidth(10); table.getColumnModel().getColumn(3).setPreferredWidth(150); table.getColumnModel().getColumn(4).setPreferredWidth(50); table.sizeColumnsToFit(-1); final JPopupMenu rightClickMenu = new JPopupMenu(); JMenuItem removeItem = new JMenuItem(Messages.getString("ModuleConfigurationPanel.REMOVE")); //$NON-NLS-1$ removeItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { int[] selected = table.getSelectedRows(); for (int i = 0; i < selected.length; i++) { Object source = table.getModel().getValueAt(selected[i], 0); String id = (String)table.getModel().getValueAt(selected[i], 1); ModuleConfiguration.remove(source); ModuleLoader.unload(id); } } }); rightClickMenu.add(removeItem); table.addMouseListener(new MouseListener() { public void mouseClicked(MouseEvent e) { } public void mouseEntered(MouseEvent e) { } public void mouseExited(MouseEvent e) { } public void mousePressed(MouseEvent e) { if (e.getClickCount() == 1 && e.getButton() == MouseEvent.BUTTON3 && table.getSelectedRow() != -1) { rightClickMenu.show(table, e.getX(), e.getY()); } } public void mouseReleased(MouseEvent e) { } }); JScrollPane scrollPane = new JScrollPane(table); add(scrollPane); }
|
public TablePanel() { super(new GridLayout(1, 0)); final JTable table = new JTable(model); table.getColumnModel().getColumn(0).setPreferredWidth(150); table.getColumnModel().getColumn(1).setPreferredWidth(150); table.getColumnModel().getColumn(2).setPreferredWidth(10); table.getColumnModel().getColumn(3).setPreferredWidth(150); table.getColumnModel().getColumn(4).setPreferredWidth(50); table.sizeColumnsToFit(-1); final JPopupMenu rightClickMenu = new JPopupMenu(); JMenuItem removeItem = new JMenuItem(Messages.getString("ModuleConfigurationPanel.REMOVE")); //$NON-NLS-1$ removeItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { int[] selected = table.getSelectedRows(); for (int i = selected.length - 1; i >= 0; i--) { Object source = table.getModel().getValueAt(selected[i], 0); String id = (String)table.getModel().getValueAt(selected[i], 1); ModuleConfiguration.remove(source); ModuleLoader.unload(id); } } }); rightClickMenu.add(removeItem); table.addMouseListener(new MouseListener() { public void mouseClicked(MouseEvent e) { } public void mouseEntered(MouseEvent e) { } public void mouseExited(MouseEvent e) { } public void mousePressed(MouseEvent e) { if (e.getClickCount() == 1 && e.getButton() == MouseEvent.BUTTON3 && table.getSelectedRow() != -1) { rightClickMenu.show(table, e.getX(), e.getY()); } } public void mouseReleased(MouseEvent e) { } }); JScrollPane scrollPane = new JScrollPane(table); add(scrollPane); }
| 1,117,639
|
public void actionPerformed(ActionEvent e) { int[] selected = table.getSelectedRows(); for (int i = 0; i < selected.length; i++) { Object source = table.getModel().getValueAt(selected[i], 0); String id = (String)table.getModel().getValueAt(selected[i], 1); ModuleConfiguration.remove(source); ModuleLoader.unload(id); } }
|
public void actionPerformed(ActionEvent e) { int[] selected = table.getSelectedRows(); for (int i = selected.length - 1; i >= 0; i--) { Object source = table.getModel().getValueAt(selected[i], 0); String id = (String)table.getModel().getValueAt(selected[i], 1); ModuleConfiguration.remove(source); ModuleLoader.unload(id); } }
| 1,117,640
|
public static void addRightClickMenu(JTextComponent tc) { RightClickMenu menu = new RightClickMenu(tc); menu.addRightClickListener(); tc.add(menu); }
|
public static void addRightClickMenu(JTextComponent tc) { RightClickMenu menu = new RightClickMenu(tc); menu.addRightClickListener(); tc.add(menu); }
| 1,117,641
|
public static ModuleContainer load(String moduleClassName) throws ModuleLoaderException { try { float version = 0.0f; Requirement[] requirements = new Requirement[0]; Class cls = Class.forName(moduleClassName); ModuleContainer module = new ModuleContainer(cls, version); module.setRequirements(requirements); module.setSource(moduleClassName); String id = module.getId(); if (!isLoaded(id)) { table.put(id, module); fireLoaded(module); return module; } else { return getLoadedModule(id); } } catch (ModuleLoaderException exc) { throw exc; } catch (Exception exc) { throw new ModuleLoaderException(exc); } }
|
public static ModuleContainer load(String moduleClassName) throws ModuleLoaderException { try { float version = 0.0f; Requirement[] requirements = new Requirement[0]; Class cls = Class.forName(moduleClassName); ModuleContainer module = new ModuleContainer(cls, version); module.setRequirements(requirements); module.setSource(moduleClassName); String id = module.getId(); if (!isLoaded(id)) { table.put(id, module); fireLoaded(module); return module; } else { return getLoadedModule(id); } } catch (ModuleLoaderException exc) { throw exc; } catch (Exception exc) { throw new ModuleLoaderException(exc); } }
| 1,117,642
|
public static ModuleContainer load(String moduleClassName) throws ModuleLoaderException { try { float version = 0.0f; Requirement[] requirements = new Requirement[0]; Class cls = Class.forName(moduleClassName); ModuleContainer module = new ModuleContainer(cls, version); module.setRequirements(requirements); module.setSource(moduleClassName); String id = module.getId(); if (!isLoaded(id)) { table.put(id, module); fireLoaded(module); return module; } else { return getLoadedModule(id); } } catch (ModuleLoaderException exc) { throw exc; } catch (Exception exc) { throw new ModuleLoaderException(exc); } }
|
public static ModuleContainer load(String moduleClassName) throws ModuleLoaderException { try { float version = 0.0f; Requirement[] requirements = new Requirement[0]; Class cls = Class.forName(moduleClassName); ModuleContainer module = new ModuleContainer(cls, version); module.setRequirements(requirements); module.setSource(moduleClassName); String id = module.getId(); if (!isLoaded(id)) { table.put(id, module); fireLoaded(module); return module; } else { return getLoadedModule(id); } } catch (ModuleLoaderException exc) { throw exc; } catch (Exception exc) { throw new ModuleLoaderException(exc); } }
| 1,117,643
|
public static int[] fill(MicroSecondTimeRange fullRange, int[] y, PlottableChunk chunk) { MicroSecondDate rowBeginTime = chunk.getBeginTime(); int offsetIntoRequestSamples = SimplePlotUtil.getPixel(y.length, fullRange, rowBeginTime); int[] dataY = chunk.getData().y_coor; int numSamples = dataY.length; int firstSampleForRequest = 0; if(offsetIntoRequestSamples < 0) { firstSampleForRequest = -1 * offsetIntoRequestSamples; } int lastSampleForRequest = numSamples; if(offsetIntoRequestSamples + numSamples > y.length) { lastSampleForRequest = y.length - offsetIntoRequestSamples; } for(int i = firstSampleForRequest; i < lastSampleForRequest; i++) { y[i + offsetIntoRequestSamples] = dataY[i]; } return y; }
|
public static int[] fill(MicroSecondTimeRange fullRange, int[] y, PlottableChunk chunk) { MicroSecondDate rowBeginTime = chunk.getBeginTime(); int offsetIntoRequestSamples = SimplePlotUtil.getPixel(y.length / 2, fullRange, rowBeginTime); int[] dataY = chunk.getData().y_coor; int numSamples = dataY.length; int firstSampleForRequest = 0; if(offsetIntoRequestSamples < 0) { firstSampleForRequest = -1 * offsetIntoRequestSamples; } int lastSampleForRequest = numSamples; if(offsetIntoRequestSamples + numSamples > y.length) { lastSampleForRequest = y.length - offsetIntoRequestSamples; } for(int i = firstSampleForRequest; i < lastSampleForRequest; i++) { y[i + offsetIntoRequestSamples] = dataY[i]; } return y; }
| 1,117,644
|
public static int[] fill(MicroSecondTimeRange fullRange, int[] y, PlottableChunk chunk) { MicroSecondDate rowBeginTime = chunk.getBeginTime(); int offsetIntoRequestSamples = SimplePlotUtil.getPixel(y.length, fullRange, rowBeginTime); int[] dataY = chunk.getData().y_coor; int numSamples = dataY.length; int firstSampleForRequest = 0; if(offsetIntoRequestSamples < 0) { firstSampleForRequest = -1 * offsetIntoRequestSamples; } int lastSampleForRequest = numSamples; if(offsetIntoRequestSamples + numSamples > y.length) { lastSampleForRequest = y.length - offsetIntoRequestSamples; } for(int i = firstSampleForRequest; i < lastSampleForRequest; i++) { y[i + offsetIntoRequestSamples] = dataY[i]; } return y; }
|
public static int[] fill(MicroSecondTimeRange fullRange, int[] y, PlottableChunk chunk) { MicroSecondDate rowBeginTime = chunk.getBeginTime(); int offsetIntoRequestSamples = SimplePlotUtil.getPixel(y.length, fullRange, rowBeginTime) * 2; int[] dataY = chunk.getData().y_coor; int numSamples = dataY.length; int firstSampleForRequest = 0; if(offsetIntoRequestSamples < 0) { firstSampleForRequest = -1 * offsetIntoRequestSamples; } int lastSampleForRequest = numSamples; if(offsetIntoRequestSamples + numSamples > y.length) { lastSampleForRequest = y.length - offsetIntoRequestSamples; } for(int i = firstSampleForRequest; i < lastSampleForRequest; i++) { y[i + offsetIntoRequestSamples] = dataY[i]; } return y; }
| 1,117,645
|
public PlottableChunk[] get(MicroSecondTimeRange requestRange, ChannelId id, int pixelsPerDay) throws SQLException, IOException { int chanDbId; try { chanDbId = chanTable.getDBId(id); } catch(NotFound e) { logger.info("Channel " + ChannelIdUtil.toStringNoDates(id) + " not found"); return new PlottableChunk[0]; } int index = 1; ResultSet rs; synchronized(get) { get.setTimestamp(index++, requestRange.getEndTime().getTimestamp()); get.setTimestamp(index++, requestRange.getBeginTime() .getTimestamp()); get.setInt(index++, chanDbId); get.setInt(index++, pixelsPerDay); rs = get.executeQuery(); } List chunks = new ArrayList(); int requestPixels = getPixels(pixelsPerDay, requestRange); logger.debug("Request made for " + requestPixels + " from " + requestRange + " at " + pixelsPerDay + "ppd"); while(rs.next()) { Timestamp ts = rs.getTimestamp("start_time"); MicroSecondDate rowBeginTime = new MicroSecondDate(ts); logger.debug("rowBeginTime: " + rowBeginTime); int offsetIntoRequestPixels = SimplePlotUtil.getPixel(requestPixels, requestRange, rowBeginTime); logger.debug("offetIntoRequestPixels: " + offsetIntoRequestPixels); int numPixels = rs.getInt("pixel_count"); logger.debug("numPixels: " + numPixels); int firstPixelForRequest = 0; if(offsetIntoRequestPixels < 0) { // This db row has data starting before the request, start at // pertinent point firstPixelForRequest = -1 * offsetIntoRequestPixels; } logger.debug("firstPixelForRequest: " + firstPixelForRequest); int lastPixelForRequest = numPixels; if(offsetIntoRequestPixels + numPixels > requestPixels) { // This row has more data than was requested in it, only get // enough to fill the request lastPixelForRequest = requestPixels - offsetIntoRequestPixels; } logger.debug("lastPixleForRequest: " + lastPixelForRequest); int pixelsUsed = lastPixelForRequest - firstPixelForRequest; logger.debug("pixelsUsed: " + pixelsUsed); int[] x = new int[pixelsUsed * 2]; int[] y = new int[pixelsUsed * 2]; byte[] dataBytes = rs.getBytes("data"); DataInputStream dis = new DataInputStream(new ByteArrayInputStream(dataBytes)); for(int i = 0; i < firstPixelForRequest; i++) { dis.readInt(); dis.readInt(); } for(int i = 0; i < pixelsUsed * 2; i++) { // x[i] = firstPixelForRequest + i / 2; x[i] = firstPixelForRequest + offsetIntoRequestPixels + i / 2; y[i] = dis.readInt(); } if(x.length > 0) { logger.debug("x[0]: " + x[0]); } else { logger.debug("ZERO LENGTH ARRAY!!!"); } Plottable p = new Plottable(x, y); PlottableChunk pc = new PlottableChunk(p, PlottableChunk.getPixel(rowBeginTime, pixelsPerDay) + firstPixelForRequest, PlottableChunk.getJDay(rowBeginTime), PlottableChunk.getYear(rowBeginTime), pixelsPerDay, id); chunks.add(pc); logger.debug("Returning " + pc + " from chunk starting at " + rowBeginTime); } return (PlottableChunk[])chunks.toArray(new PlottableChunk[chunks.size()]); }
|
public PlottableChunk[] get(MicroSecondTimeRange requestRange, ChannelId id, int pixelsPerDay) throws SQLException, IOException { int chanDbId; try { chanDbId = chanTable.getDBId(id); } catch(NotFound e) { logger.info("Channel " + ChannelIdUtil.toStringNoDates(id) + " not found"); return new PlottableChunk[0]; } int index = 1; ResultSet rs; synchronized(get) { get.setTimestamp(index++, requestRange.getEndTime().getTimestamp()); get.setTimestamp(index++, requestRange.getBeginTime() .getTimestamp()); get.setInt(index++, chanDbId); get.setInt(index++, pixelsPerDay); rs = get.executeQuery(); } List chunks = new ArrayList(); int requestPixels = getPixels(pixelsPerDay, requestRange); logger.debug("Request made for " + requestPixels + " from " + requestRange + " at " + pixelsPerDay + "ppd"); while(rs.next()) { Timestamp ts = rs.getTimestamp("start_time"); MicroSecondDate rowBeginTime = new MicroSecondDate(ts); int offsetIntoRequestPixels = SimplePlotUtil.getPixel(requestPixels, requestRange, rowBeginTime); logger.debug("offetIntoRequestPixels: " + offsetIntoRequestPixels); int numPixels = rs.getInt("pixel_count"); logger.debug("numPixels: " + numPixels); int firstPixelForRequest = 0; if(offsetIntoRequestPixels < 0) { // This db row has data starting before the request, start at // pertinent point firstPixelForRequest = -1 * offsetIntoRequestPixels; } logger.debug("firstPixelForRequest: " + firstPixelForRequest); int lastPixelForRequest = numPixels; if(offsetIntoRequestPixels + numPixels > requestPixels) { // This row has more data than was requested in it, only get // enough to fill the request lastPixelForRequest = requestPixels - offsetIntoRequestPixels; } logger.debug("lastPixleForRequest: " + lastPixelForRequest); int pixelsUsed = lastPixelForRequest - firstPixelForRequest; logger.debug("pixelsUsed: " + pixelsUsed); int[] x = new int[pixelsUsed * 2]; int[] y = new int[pixelsUsed * 2]; byte[] dataBytes = rs.getBytes("data"); DataInputStream dis = new DataInputStream(new ByteArrayInputStream(dataBytes)); for(int i = 0; i < firstPixelForRequest; i++) { dis.readInt(); dis.readInt(); } for(int i = 0; i < pixelsUsed * 2; i++) { // x[i] = firstPixelForRequest + i / 2; x[i] = firstPixelForRequest + offsetIntoRequestPixels + i / 2; y[i] = dis.readInt(); } if(x.length > 0) { logger.debug("x[0]: " + x[0]); } else { logger.debug("ZERO LENGTH ARRAY!!!"); } Plottable p = new Plottable(x, y); PlottableChunk pc = new PlottableChunk(p, PlottableChunk.getPixel(rowBeginTime, pixelsPerDay) + firstPixelForRequest, PlottableChunk.getJDay(rowBeginTime), PlottableChunk.getYear(rowBeginTime), pixelsPerDay, id); chunks.add(pc); logger.debug("Returning " + pc + " from chunk starting at " + rowBeginTime); } return (PlottableChunk[])chunks.toArray(new PlottableChunk[chunks.size()]); }
| 1,117,646
|
public PlottableChunk[] get(MicroSecondTimeRange requestRange, ChannelId id, int pixelsPerDay) throws SQLException, IOException { int chanDbId; try { chanDbId = chanTable.getDBId(id); } catch(NotFound e) { logger.info("Channel " + ChannelIdUtil.toStringNoDates(id) + " not found"); return new PlottableChunk[0]; } int index = 1; ResultSet rs; synchronized(get) { get.setTimestamp(index++, requestRange.getEndTime().getTimestamp()); get.setTimestamp(index++, requestRange.getBeginTime() .getTimestamp()); get.setInt(index++, chanDbId); get.setInt(index++, pixelsPerDay); rs = get.executeQuery(); } List chunks = new ArrayList(); int requestPixels = getPixels(pixelsPerDay, requestRange); logger.debug("Request made for " + requestPixels + " from " + requestRange + " at " + pixelsPerDay + "ppd"); while(rs.next()) { Timestamp ts = rs.getTimestamp("start_time"); MicroSecondDate rowBeginTime = new MicroSecondDate(ts); logger.debug("rowBeginTime: " + rowBeginTime); int offsetIntoRequestPixels = SimplePlotUtil.getPixel(requestPixels, requestRange, rowBeginTime); logger.debug("offetIntoRequestPixels: " + offsetIntoRequestPixels); int numPixels = rs.getInt("pixel_count"); logger.debug("numPixels: " + numPixels); int firstPixelForRequest = 0; if(offsetIntoRequestPixels < 0) { // This db row has data starting before the request, start at // pertinent point firstPixelForRequest = -1 * offsetIntoRequestPixels; } logger.debug("firstPixelForRequest: " + firstPixelForRequest); int lastPixelForRequest = numPixels; if(offsetIntoRequestPixels + numPixels > requestPixels) { // This row has more data than was requested in it, only get // enough to fill the request lastPixelForRequest = requestPixels - offsetIntoRequestPixels; } logger.debug("lastPixleForRequest: " + lastPixelForRequest); int pixelsUsed = lastPixelForRequest - firstPixelForRequest; logger.debug("pixelsUsed: " + pixelsUsed); int[] x = new int[pixelsUsed * 2]; int[] y = new int[pixelsUsed * 2]; byte[] dataBytes = rs.getBytes("data"); DataInputStream dis = new DataInputStream(new ByteArrayInputStream(dataBytes)); for(int i = 0; i < firstPixelForRequest; i++) { dis.readInt(); dis.readInt(); } for(int i = 0; i < pixelsUsed * 2; i++) { // x[i] = firstPixelForRequest + i / 2; x[i] = firstPixelForRequest + offsetIntoRequestPixels + i / 2; y[i] = dis.readInt(); } if(x.length > 0) { logger.debug("x[0]: " + x[0]); } else { logger.debug("ZERO LENGTH ARRAY!!!"); } Plottable p = new Plottable(x, y); PlottableChunk pc = new PlottableChunk(p, PlottableChunk.getPixel(rowBeginTime, pixelsPerDay) + firstPixelForRequest, PlottableChunk.getJDay(rowBeginTime), PlottableChunk.getYear(rowBeginTime), pixelsPerDay, id); chunks.add(pc); logger.debug("Returning " + pc + " from chunk starting at " + rowBeginTime); } return (PlottableChunk[])chunks.toArray(new PlottableChunk[chunks.size()]); }
|
public PlottableChunk[] get(MicroSecondTimeRange requestRange, ChannelId id, int pixelsPerDay) throws SQLException, IOException { int chanDbId; try { chanDbId = chanTable.getDBId(id); } catch(NotFound e) { logger.info("Channel " + ChannelIdUtil.toStringNoDates(id) + " not found"); return new PlottableChunk[0]; } int index = 1; ResultSet rs; synchronized(get) { get.setTimestamp(index++, requestRange.getEndTime().getTimestamp()); get.setTimestamp(index++, requestRange.getBeginTime() .getTimestamp()); get.setInt(index++, chanDbId); get.setInt(index++, pixelsPerDay); rs = get.executeQuery(); } List chunks = new ArrayList(); int requestPixels = getPixels(pixelsPerDay, requestRange); logger.debug("Request made for " + requestPixels + " from " + requestRange + " at " + pixelsPerDay + "ppd"); while(rs.next()) { Timestamp ts = rs.getTimestamp("start_time"); MicroSecondDate rowBeginTime = new MicroSecondDate(ts); logger.debug("rowBeginTime: " + rowBeginTime); int offsetIntoRequestPixels = SimplePlotUtil.getPixel(requestPixels, requestRange, rowBeginTime); int numPixels = rs.getInt("pixel_count"); logger.debug("numPixels: " + numPixels); int firstPixelForRequest = 0; if(offsetIntoRequestPixels < 0) { // This db row has data starting before the request, start at // pertinent point firstPixelForRequest = -1 * offsetIntoRequestPixels; } logger.debug("firstPixelForRequest: " + firstPixelForRequest); int lastPixelForRequest = numPixels; if(offsetIntoRequestPixels + numPixels > requestPixels) { // This row has more data than was requested in it, only get // enough to fill the request lastPixelForRequest = requestPixels - offsetIntoRequestPixels; } logger.debug("lastPixleForRequest: " + lastPixelForRequest); int pixelsUsed = lastPixelForRequest - firstPixelForRequest; logger.debug("pixelsUsed: " + pixelsUsed); int[] x = new int[pixelsUsed * 2]; int[] y = new int[pixelsUsed * 2]; byte[] dataBytes = rs.getBytes("data"); DataInputStream dis = new DataInputStream(new ByteArrayInputStream(dataBytes)); for(int i = 0; i < firstPixelForRequest; i++) { dis.readInt(); dis.readInt(); } for(int i = 0; i < pixelsUsed * 2; i++) { // x[i] = firstPixelForRequest + i / 2; x[i] = firstPixelForRequest + offsetIntoRequestPixels + i / 2; y[i] = dis.readInt(); } if(x.length > 0) { logger.debug("x[0]: " + x[0]); } else { logger.debug("ZERO LENGTH ARRAY!!!"); } Plottable p = new Plottable(x, y); PlottableChunk pc = new PlottableChunk(p, PlottableChunk.getPixel(rowBeginTime, pixelsPerDay) + firstPixelForRequest, PlottableChunk.getJDay(rowBeginTime), PlottableChunk.getYear(rowBeginTime), pixelsPerDay, id); chunks.add(pc); logger.debug("Returning " + pc + " from chunk starting at " + rowBeginTime); } return (PlottableChunk[])chunks.toArray(new PlottableChunk[chunks.size()]); }
| 1,117,647
|
public PlottableChunk[] get(MicroSecondTimeRange requestRange, ChannelId id, int pixelsPerDay) throws SQLException, IOException { int chanDbId; try { chanDbId = chanTable.getDBId(id); } catch(NotFound e) { logger.info("Channel " + ChannelIdUtil.toStringNoDates(id) + " not found"); return new PlottableChunk[0]; } int index = 1; ResultSet rs; synchronized(get) { get.setTimestamp(index++, requestRange.getEndTime().getTimestamp()); get.setTimestamp(index++, requestRange.getBeginTime() .getTimestamp()); get.setInt(index++, chanDbId); get.setInt(index++, pixelsPerDay); rs = get.executeQuery(); } List chunks = new ArrayList(); int requestPixels = getPixels(pixelsPerDay, requestRange); logger.debug("Request made for " + requestPixels + " from " + requestRange + " at " + pixelsPerDay + "ppd"); while(rs.next()) { Timestamp ts = rs.getTimestamp("start_time"); MicroSecondDate rowBeginTime = new MicroSecondDate(ts); logger.debug("rowBeginTime: " + rowBeginTime); int offsetIntoRequestPixels = SimplePlotUtil.getPixel(requestPixels, requestRange, rowBeginTime); logger.debug("offetIntoRequestPixels: " + offsetIntoRequestPixels); int numPixels = rs.getInt("pixel_count"); logger.debug("numPixels: " + numPixels); int firstPixelForRequest = 0; if(offsetIntoRequestPixels < 0) { // This db row has data starting before the request, start at // pertinent point firstPixelForRequest = -1 * offsetIntoRequestPixels; } logger.debug("firstPixelForRequest: " + firstPixelForRequest); int lastPixelForRequest = numPixels; if(offsetIntoRequestPixels + numPixels > requestPixels) { // This row has more data than was requested in it, only get // enough to fill the request lastPixelForRequest = requestPixels - offsetIntoRequestPixels; } logger.debug("lastPixleForRequest: " + lastPixelForRequest); int pixelsUsed = lastPixelForRequest - firstPixelForRequest; logger.debug("pixelsUsed: " + pixelsUsed); int[] x = new int[pixelsUsed * 2]; int[] y = new int[pixelsUsed * 2]; byte[] dataBytes = rs.getBytes("data"); DataInputStream dis = new DataInputStream(new ByteArrayInputStream(dataBytes)); for(int i = 0; i < firstPixelForRequest; i++) { dis.readInt(); dis.readInt(); } for(int i = 0; i < pixelsUsed * 2; i++) { // x[i] = firstPixelForRequest + i / 2; x[i] = firstPixelForRequest + offsetIntoRequestPixels + i / 2; y[i] = dis.readInt(); } if(x.length > 0) { logger.debug("x[0]: " + x[0]); } else { logger.debug("ZERO LENGTH ARRAY!!!"); } Plottable p = new Plottable(x, y); PlottableChunk pc = new PlottableChunk(p, PlottableChunk.getPixel(rowBeginTime, pixelsPerDay) + firstPixelForRequest, PlottableChunk.getJDay(rowBeginTime), PlottableChunk.getYear(rowBeginTime), pixelsPerDay, id); chunks.add(pc); logger.debug("Returning " + pc + " from chunk starting at " + rowBeginTime); } return (PlottableChunk[])chunks.toArray(new PlottableChunk[chunks.size()]); }
|
public PlottableChunk[] get(MicroSecondTimeRange requestRange, ChannelId id, int pixelsPerDay) throws SQLException, IOException { int chanDbId; try { chanDbId = chanTable.getDBId(id); } catch(NotFound e) { logger.info("Channel " + ChannelIdUtil.toStringNoDates(id) + " not found"); return new PlottableChunk[0]; } int index = 1; ResultSet rs; synchronized(get) { get.setTimestamp(index++, requestRange.getEndTime().getTimestamp()); get.setTimestamp(index++, requestRange.getBeginTime() .getTimestamp()); get.setInt(index++, chanDbId); get.setInt(index++, pixelsPerDay); rs = get.executeQuery(); } List chunks = new ArrayList(); int requestPixels = getPixels(pixelsPerDay, requestRange); logger.debug("Request made for " + requestPixels + " from " + requestRange + " at " + pixelsPerDay + "ppd"); while(rs.next()) { Timestamp ts = rs.getTimestamp("start_time"); MicroSecondDate rowBeginTime = new MicroSecondDate(ts); logger.debug("rowBeginTime: " + rowBeginTime); int offsetIntoRequestPixels = SimplePlotUtil.getPixel(requestPixels, requestRange, rowBeginTime); logger.debug("offetIntoRequestPixels: " + offsetIntoRequestPixels); int numPixels = rs.getInt("pixel_count"); int firstPixelForRequest = 0; if(offsetIntoRequestPixels < 0) { // This db row has data starting before the request, start at // pertinent point firstPixelForRequest = -1 * offsetIntoRequestPixels; } logger.debug("firstPixelForRequest: " + firstPixelForRequest); int lastPixelForRequest = numPixels; if(offsetIntoRequestPixels + numPixels > requestPixels) { // This row has more data than was requested in it, only get // enough to fill the request lastPixelForRequest = requestPixels - offsetIntoRequestPixels; } logger.debug("lastPixleForRequest: " + lastPixelForRequest); int pixelsUsed = lastPixelForRequest - firstPixelForRequest; logger.debug("pixelsUsed: " + pixelsUsed); int[] x = new int[pixelsUsed * 2]; int[] y = new int[pixelsUsed * 2]; byte[] dataBytes = rs.getBytes("data"); DataInputStream dis = new DataInputStream(new ByteArrayInputStream(dataBytes)); for(int i = 0; i < firstPixelForRequest; i++) { dis.readInt(); dis.readInt(); } for(int i = 0; i < pixelsUsed * 2; i++) { // x[i] = firstPixelForRequest + i / 2; x[i] = firstPixelForRequest + offsetIntoRequestPixels + i / 2; y[i] = dis.readInt(); } if(x.length > 0) { logger.debug("x[0]: " + x[0]); } else { logger.debug("ZERO LENGTH ARRAY!!!"); } Plottable p = new Plottable(x, y); PlottableChunk pc = new PlottableChunk(p, PlottableChunk.getPixel(rowBeginTime, pixelsPerDay) + firstPixelForRequest, PlottableChunk.getJDay(rowBeginTime), PlottableChunk.getYear(rowBeginTime), pixelsPerDay, id); chunks.add(pc); logger.debug("Returning " + pc + " from chunk starting at " + rowBeginTime); } return (PlottableChunk[])chunks.toArray(new PlottableChunk[chunks.size()]); }
| 1,117,648
|
public PlottableChunk[] get(MicroSecondTimeRange requestRange, ChannelId id, int pixelsPerDay) throws SQLException, IOException { int chanDbId; try { chanDbId = chanTable.getDBId(id); } catch(NotFound e) { logger.info("Channel " + ChannelIdUtil.toStringNoDates(id) + " not found"); return new PlottableChunk[0]; } int index = 1; ResultSet rs; synchronized(get) { get.setTimestamp(index++, requestRange.getEndTime().getTimestamp()); get.setTimestamp(index++, requestRange.getBeginTime() .getTimestamp()); get.setInt(index++, chanDbId); get.setInt(index++, pixelsPerDay); rs = get.executeQuery(); } List chunks = new ArrayList(); int requestPixels = getPixels(pixelsPerDay, requestRange); logger.debug("Request made for " + requestPixels + " from " + requestRange + " at " + pixelsPerDay + "ppd"); while(rs.next()) { Timestamp ts = rs.getTimestamp("start_time"); MicroSecondDate rowBeginTime = new MicroSecondDate(ts); logger.debug("rowBeginTime: " + rowBeginTime); int offsetIntoRequestPixels = SimplePlotUtil.getPixel(requestPixels, requestRange, rowBeginTime); logger.debug("offetIntoRequestPixels: " + offsetIntoRequestPixels); int numPixels = rs.getInt("pixel_count"); logger.debug("numPixels: " + numPixels); int firstPixelForRequest = 0; if(offsetIntoRequestPixels < 0) { // This db row has data starting before the request, start at // pertinent point firstPixelForRequest = -1 * offsetIntoRequestPixels; } logger.debug("firstPixelForRequest: " + firstPixelForRequest); int lastPixelForRequest = numPixels; if(offsetIntoRequestPixels + numPixels > requestPixels) { // This row has more data than was requested in it, only get // enough to fill the request lastPixelForRequest = requestPixels - offsetIntoRequestPixels; } logger.debug("lastPixleForRequest: " + lastPixelForRequest); int pixelsUsed = lastPixelForRequest - firstPixelForRequest; logger.debug("pixelsUsed: " + pixelsUsed); int[] x = new int[pixelsUsed * 2]; int[] y = new int[pixelsUsed * 2]; byte[] dataBytes = rs.getBytes("data"); DataInputStream dis = new DataInputStream(new ByteArrayInputStream(dataBytes)); for(int i = 0; i < firstPixelForRequest; i++) { dis.readInt(); dis.readInt(); } for(int i = 0; i < pixelsUsed * 2; i++) { // x[i] = firstPixelForRequest + i / 2; x[i] = firstPixelForRequest + offsetIntoRequestPixels + i / 2; y[i] = dis.readInt(); } if(x.length > 0) { logger.debug("x[0]: " + x[0]); } else { logger.debug("ZERO LENGTH ARRAY!!!"); } Plottable p = new Plottable(x, y); PlottableChunk pc = new PlottableChunk(p, PlottableChunk.getPixel(rowBeginTime, pixelsPerDay) + firstPixelForRequest, PlottableChunk.getJDay(rowBeginTime), PlottableChunk.getYear(rowBeginTime), pixelsPerDay, id); chunks.add(pc); logger.debug("Returning " + pc + " from chunk starting at " + rowBeginTime); } return (PlottableChunk[])chunks.toArray(new PlottableChunk[chunks.size()]); }
|
public PlottableChunk[] get(MicroSecondTimeRange requestRange, ChannelId id, int pixelsPerDay) throws SQLException, IOException { int chanDbId; try { chanDbId = chanTable.getDBId(id); } catch(NotFound e) { logger.info("Channel " + ChannelIdUtil.toStringNoDates(id) + " not found"); return new PlottableChunk[0]; } int index = 1; ResultSet rs; synchronized(get) { get.setTimestamp(index++, requestRange.getEndTime().getTimestamp()); get.setTimestamp(index++, requestRange.getBeginTime() .getTimestamp()); get.setInt(index++, chanDbId); get.setInt(index++, pixelsPerDay); rs = get.executeQuery(); } List chunks = new ArrayList(); int requestPixels = getPixels(pixelsPerDay, requestRange); logger.debug("Request made for " + requestPixels + " from " + requestRange + " at " + pixelsPerDay + "ppd"); while(rs.next()) { Timestamp ts = rs.getTimestamp("start_time"); MicroSecondDate rowBeginTime = new MicroSecondDate(ts); logger.debug("rowBeginTime: " + rowBeginTime); int offsetIntoRequestPixels = SimplePlotUtil.getPixel(requestPixels, requestRange, rowBeginTime); logger.debug("offetIntoRequestPixels: " + offsetIntoRequestPixels); int numPixels = rs.getInt("pixel_count"); logger.debug("numPixels: " + numPixels); int firstPixelForRequest = 0; if(offsetIntoRequestPixels < 0) { // This db row has data starting before the request, start at // pertinent point firstPixelForRequest = -1 * offsetIntoRequestPixels; } int lastPixelForRequest = numPixels; if(offsetIntoRequestPixels + numPixels > requestPixels) { // This row has more data than was requested in it, only get // enough to fill the request lastPixelForRequest = requestPixels - offsetIntoRequestPixels; } logger.debug("lastPixleForRequest: " + lastPixelForRequest); int pixelsUsed = lastPixelForRequest - firstPixelForRequest; logger.debug("pixelsUsed: " + pixelsUsed); int[] x = new int[pixelsUsed * 2]; int[] y = new int[pixelsUsed * 2]; byte[] dataBytes = rs.getBytes("data"); DataInputStream dis = new DataInputStream(new ByteArrayInputStream(dataBytes)); for(int i = 0; i < firstPixelForRequest; i++) { dis.readInt(); dis.readInt(); } for(int i = 0; i < pixelsUsed * 2; i++) { // x[i] = firstPixelForRequest + i / 2; x[i] = firstPixelForRequest + offsetIntoRequestPixels + i / 2; y[i] = dis.readInt(); } if(x.length > 0) { logger.debug("x[0]: " + x[0]); } else { logger.debug("ZERO LENGTH ARRAY!!!"); } Plottable p = new Plottable(x, y); PlottableChunk pc = new PlottableChunk(p, PlottableChunk.getPixel(rowBeginTime, pixelsPerDay) + firstPixelForRequest, PlottableChunk.getJDay(rowBeginTime), PlottableChunk.getYear(rowBeginTime), pixelsPerDay, id); chunks.add(pc); logger.debug("Returning " + pc + " from chunk starting at " + rowBeginTime); } return (PlottableChunk[])chunks.toArray(new PlottableChunk[chunks.size()]); }
| 1,117,649
|
public PlottableChunk[] get(MicroSecondTimeRange requestRange, ChannelId id, int pixelsPerDay) throws SQLException, IOException { int chanDbId; try { chanDbId = chanTable.getDBId(id); } catch(NotFound e) { logger.info("Channel " + ChannelIdUtil.toStringNoDates(id) + " not found"); return new PlottableChunk[0]; } int index = 1; ResultSet rs; synchronized(get) { get.setTimestamp(index++, requestRange.getEndTime().getTimestamp()); get.setTimestamp(index++, requestRange.getBeginTime() .getTimestamp()); get.setInt(index++, chanDbId); get.setInt(index++, pixelsPerDay); rs = get.executeQuery(); } List chunks = new ArrayList(); int requestPixels = getPixels(pixelsPerDay, requestRange); logger.debug("Request made for " + requestPixels + " from " + requestRange + " at " + pixelsPerDay + "ppd"); while(rs.next()) { Timestamp ts = rs.getTimestamp("start_time"); MicroSecondDate rowBeginTime = new MicroSecondDate(ts); logger.debug("rowBeginTime: " + rowBeginTime); int offsetIntoRequestPixels = SimplePlotUtil.getPixel(requestPixels, requestRange, rowBeginTime); logger.debug("offetIntoRequestPixels: " + offsetIntoRequestPixels); int numPixels = rs.getInt("pixel_count"); logger.debug("numPixels: " + numPixels); int firstPixelForRequest = 0; if(offsetIntoRequestPixels < 0) { // This db row has data starting before the request, start at // pertinent point firstPixelForRequest = -1 * offsetIntoRequestPixels; } logger.debug("firstPixelForRequest: " + firstPixelForRequest); int lastPixelForRequest = numPixels; if(offsetIntoRequestPixels + numPixels > requestPixels) { // This row has more data than was requested in it, only get // enough to fill the request lastPixelForRequest = requestPixels - offsetIntoRequestPixels; } logger.debug("lastPixleForRequest: " + lastPixelForRequest); int pixelsUsed = lastPixelForRequest - firstPixelForRequest; logger.debug("pixelsUsed: " + pixelsUsed); int[] x = new int[pixelsUsed * 2]; int[] y = new int[pixelsUsed * 2]; byte[] dataBytes = rs.getBytes("data"); DataInputStream dis = new DataInputStream(new ByteArrayInputStream(dataBytes)); for(int i = 0; i < firstPixelForRequest; i++) { dis.readInt(); dis.readInt(); } for(int i = 0; i < pixelsUsed * 2; i++) { // x[i] = firstPixelForRequest + i / 2; x[i] = firstPixelForRequest + offsetIntoRequestPixels + i / 2; y[i] = dis.readInt(); } if(x.length > 0) { logger.debug("x[0]: " + x[0]); } else { logger.debug("ZERO LENGTH ARRAY!!!"); } Plottable p = new Plottable(x, y); PlottableChunk pc = new PlottableChunk(p, PlottableChunk.getPixel(rowBeginTime, pixelsPerDay) + firstPixelForRequest, PlottableChunk.getJDay(rowBeginTime), PlottableChunk.getYear(rowBeginTime), pixelsPerDay, id); chunks.add(pc); logger.debug("Returning " + pc + " from chunk starting at " + rowBeginTime); } return (PlottableChunk[])chunks.toArray(new PlottableChunk[chunks.size()]); }
|
public PlottableChunk[] get(MicroSecondTimeRange requestRange, ChannelId id, int pixelsPerDay) throws SQLException, IOException { int chanDbId; try { chanDbId = chanTable.getDBId(id); } catch(NotFound e) { logger.info("Channel " + ChannelIdUtil.toStringNoDates(id) + " not found"); return new PlottableChunk[0]; } int index = 1; ResultSet rs; synchronized(get) { get.setTimestamp(index++, requestRange.getEndTime().getTimestamp()); get.setTimestamp(index++, requestRange.getBeginTime() .getTimestamp()); get.setInt(index++, chanDbId); get.setInt(index++, pixelsPerDay); rs = get.executeQuery(); } List chunks = new ArrayList(); int requestPixels = getPixels(pixelsPerDay, requestRange); logger.debug("Request made for " + requestPixels + " from " + requestRange + " at " + pixelsPerDay + "ppd"); while(rs.next()) { Timestamp ts = rs.getTimestamp("start_time"); MicroSecondDate rowBeginTime = new MicroSecondDate(ts); logger.debug("rowBeginTime: " + rowBeginTime); int offsetIntoRequestPixels = SimplePlotUtil.getPixel(requestPixels, requestRange, rowBeginTime); logger.debug("offetIntoRequestPixels: " + offsetIntoRequestPixels); int numPixels = rs.getInt("pixel_count"); logger.debug("numPixels: " + numPixels); int firstPixelForRequest = 0; if(offsetIntoRequestPixels < 0) { // This db row has data starting before the request, start at // pertinent point firstPixelForRequest = -1 * offsetIntoRequestPixels; } logger.debug("firstPixelForRequest: " + firstPixelForRequest); int lastPixelForRequest = numPixels; if(offsetIntoRequestPixels + numPixels > requestPixels) { // This row has more data than was requested in it, only get // enough to fill the request lastPixelForRequest = requestPixels - offsetIntoRequestPixels; } int pixelsUsed = lastPixelForRequest - firstPixelForRequest; logger.debug("pixelsUsed: " + pixelsUsed); int[] x = new int[pixelsUsed * 2]; int[] y = new int[pixelsUsed * 2]; byte[] dataBytes = rs.getBytes("data"); DataInputStream dis = new DataInputStream(new ByteArrayInputStream(dataBytes)); for(int i = 0; i < firstPixelForRequest; i++) { dis.readInt(); dis.readInt(); } for(int i = 0; i < pixelsUsed * 2; i++) { // x[i] = firstPixelForRequest + i / 2; x[i] = firstPixelForRequest + offsetIntoRequestPixels + i / 2; y[i] = dis.readInt(); } if(x.length > 0) { logger.debug("x[0]: " + x[0]); } else { logger.debug("ZERO LENGTH ARRAY!!!"); } Plottable p = new Plottable(x, y); PlottableChunk pc = new PlottableChunk(p, PlottableChunk.getPixel(rowBeginTime, pixelsPerDay) + firstPixelForRequest, PlottableChunk.getJDay(rowBeginTime), PlottableChunk.getYear(rowBeginTime), pixelsPerDay, id); chunks.add(pc); logger.debug("Returning " + pc + " from chunk starting at " + rowBeginTime); } return (PlottableChunk[])chunks.toArray(new PlottableChunk[chunks.size()]); }
| 1,117,650
|
public PlottableChunk[] get(MicroSecondTimeRange requestRange, ChannelId id, int pixelsPerDay) throws SQLException, IOException { int chanDbId; try { chanDbId = chanTable.getDBId(id); } catch(NotFound e) { logger.info("Channel " + ChannelIdUtil.toStringNoDates(id) + " not found"); return new PlottableChunk[0]; } int index = 1; ResultSet rs; synchronized(get) { get.setTimestamp(index++, requestRange.getEndTime().getTimestamp()); get.setTimestamp(index++, requestRange.getBeginTime() .getTimestamp()); get.setInt(index++, chanDbId); get.setInt(index++, pixelsPerDay); rs = get.executeQuery(); } List chunks = new ArrayList(); int requestPixels = getPixels(pixelsPerDay, requestRange); logger.debug("Request made for " + requestPixels + " from " + requestRange + " at " + pixelsPerDay + "ppd"); while(rs.next()) { Timestamp ts = rs.getTimestamp("start_time"); MicroSecondDate rowBeginTime = new MicroSecondDate(ts); logger.debug("rowBeginTime: " + rowBeginTime); int offsetIntoRequestPixels = SimplePlotUtil.getPixel(requestPixels, requestRange, rowBeginTime); logger.debug("offetIntoRequestPixels: " + offsetIntoRequestPixels); int numPixels = rs.getInt("pixel_count"); logger.debug("numPixels: " + numPixels); int firstPixelForRequest = 0; if(offsetIntoRequestPixels < 0) { // This db row has data starting before the request, start at // pertinent point firstPixelForRequest = -1 * offsetIntoRequestPixels; } logger.debug("firstPixelForRequest: " + firstPixelForRequest); int lastPixelForRequest = numPixels; if(offsetIntoRequestPixels + numPixels > requestPixels) { // This row has more data than was requested in it, only get // enough to fill the request lastPixelForRequest = requestPixels - offsetIntoRequestPixels; } logger.debug("lastPixleForRequest: " + lastPixelForRequest); int pixelsUsed = lastPixelForRequest - firstPixelForRequest; logger.debug("pixelsUsed: " + pixelsUsed); int[] x = new int[pixelsUsed * 2]; int[] y = new int[pixelsUsed * 2]; byte[] dataBytes = rs.getBytes("data"); DataInputStream dis = new DataInputStream(new ByteArrayInputStream(dataBytes)); for(int i = 0; i < firstPixelForRequest; i++) { dis.readInt(); dis.readInt(); } for(int i = 0; i < pixelsUsed * 2; i++) { // x[i] = firstPixelForRequest + i / 2; x[i] = firstPixelForRequest + offsetIntoRequestPixels + i / 2; y[i] = dis.readInt(); } if(x.length > 0) { logger.debug("x[0]: " + x[0]); } else { logger.debug("ZERO LENGTH ARRAY!!!"); } Plottable p = new Plottable(x, y); PlottableChunk pc = new PlottableChunk(p, PlottableChunk.getPixel(rowBeginTime, pixelsPerDay) + firstPixelForRequest, PlottableChunk.getJDay(rowBeginTime), PlottableChunk.getYear(rowBeginTime), pixelsPerDay, id); chunks.add(pc); logger.debug("Returning " + pc + " from chunk starting at " + rowBeginTime); } return (PlottableChunk[])chunks.toArray(new PlottableChunk[chunks.size()]); }
|
public PlottableChunk[] get(MicroSecondTimeRange requestRange, ChannelId id, int pixelsPerDay) throws SQLException, IOException { int chanDbId; try { chanDbId = chanTable.getDBId(id); } catch(NotFound e) { logger.info("Channel " + ChannelIdUtil.toStringNoDates(id) + " not found"); return new PlottableChunk[0]; } int index = 1; ResultSet rs; synchronized(get) { get.setTimestamp(index++, requestRange.getEndTime().getTimestamp()); get.setTimestamp(index++, requestRange.getBeginTime() .getTimestamp()); get.setInt(index++, chanDbId); get.setInt(index++, pixelsPerDay); rs = get.executeQuery(); } List chunks = new ArrayList(); int requestPixels = getPixels(pixelsPerDay, requestRange); logger.debug("Request made for " + requestPixels + " from " + requestRange + " at " + pixelsPerDay + "ppd"); while(rs.next()) { Timestamp ts = rs.getTimestamp("start_time"); MicroSecondDate rowBeginTime = new MicroSecondDate(ts); logger.debug("rowBeginTime: " + rowBeginTime); int offsetIntoRequestPixels = SimplePlotUtil.getPixel(requestPixels, requestRange, rowBeginTime); logger.debug("offetIntoRequestPixels: " + offsetIntoRequestPixels); int numPixels = rs.getInt("pixel_count"); logger.debug("numPixels: " + numPixels); int firstPixelForRequest = 0; if(offsetIntoRequestPixels < 0) { // This db row has data starting before the request, start at // pertinent point firstPixelForRequest = -1 * offsetIntoRequestPixels; } logger.debug("firstPixelForRequest: " + firstPixelForRequest); int lastPixelForRequest = numPixels; if(offsetIntoRequestPixels + numPixels > requestPixels) { // This row has more data than was requested in it, only get // enough to fill the request lastPixelForRequest = requestPixels - offsetIntoRequestPixels; } logger.debug("lastPixleForRequest: " + lastPixelForRequest); int pixelsUsed = lastPixelForRequest - firstPixelForRequest; int[] x = new int[pixelsUsed * 2]; int[] y = new int[pixelsUsed * 2]; byte[] dataBytes = rs.getBytes("data"); DataInputStream dis = new DataInputStream(new ByteArrayInputStream(dataBytes)); for(int i = 0; i < firstPixelForRequest; i++) { dis.readInt(); dis.readInt(); } for(int i = 0; i < pixelsUsed * 2; i++) { // x[i] = firstPixelForRequest + i / 2; x[i] = firstPixelForRequest + offsetIntoRequestPixels + i / 2; y[i] = dis.readInt(); } if(x.length > 0) { logger.debug("x[0]: " + x[0]); } else { logger.debug("ZERO LENGTH ARRAY!!!"); } Plottable p = new Plottable(x, y); PlottableChunk pc = new PlottableChunk(p, PlottableChunk.getPixel(rowBeginTime, pixelsPerDay) + firstPixelForRequest, PlottableChunk.getJDay(rowBeginTime), PlottableChunk.getYear(rowBeginTime), pixelsPerDay, id); chunks.add(pc); logger.debug("Returning " + pc + " from chunk starting at " + rowBeginTime); } return (PlottableChunk[])chunks.toArray(new PlottableChunk[chunks.size()]); }
| 1,117,651
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.