rem
stringlengths 0
477k
| add
stringlengths 0
313k
| context
stringlengths 6
599k
|
---|---|---|
Cmplx c = new Cmplx(); c.r = a.r * b.r - a.i * b.i; c.i = a.i * b.r + a.r * b.i; return c; | return Cmplx.mul(new Cmplx(a,0), b); | public static final Cmplx mul(Cmplx a, Cmplx b) { Cmplx c = new Cmplx(); c.r = a.r * b.r - a.i * b.i; c.i = a.i * b.r + a.r * b.i; return c; } |
public static final Cmplx div(Cmplx a, Cmplx b) | public static final Cmplx div(double a, Cmplx b) | public static final Cmplx div(Cmplx a, Cmplx b) { Cmplx c = new Cmplx(); double r, den; if (Math.abs(b.r) >= Math.abs(b.i)) { r = b.i / b.r; den = b.r + r * b.i; c.r = (a.r + r * a.i) / den; c.i = (a.i - r * a.r) / den; } else { r = b.r / b.i; den = b.i + r * b.r; c.r = (a.r * r + a.i) / den; c.i = (a.i * r - a.r) / den; } return c; } |
Cmplx c = new Cmplx(); double r, den; if (Math.abs(b.r) >= Math.abs(b.i)) { r = b.i / b.r; den = b.r + r * b.i; c.r = (a.r + r * a.i) / den; c.i = (a.i - r * a.r) / den; } else { r = b.r / b.i; den = b.i + r * b.r; c.r = (a.r * r + a.i) / den; c.i = (a.i * r - a.r) / den; } return c; | return div(new Cmplx(a, 0), b); | public static final Cmplx div(Cmplx a, Cmplx b) { Cmplx c = new Cmplx(); double r, den; if (Math.abs(b.r) >= Math.abs(b.i)) { r = b.i / b.r; den = b.r + r * b.i; c.r = (a.r + r * a.i) / den; c.i = (a.i - r * a.r) / den; } else { r = b.r / b.i; den = b.i + r * b.r; c.r = (a.r * r + a.i) / den; c.i = (a.i * r - a.r) / den; } return c; } |
return bldr.build(new StringReader(val)); | return bldr.build(new StringReader(val), true); | public static Calendar getCalendar(String val) throws CalFacadeException { try { CalendarBuilder bldr = new CalendarBuilder(new CalendarParserImpl()); return bldr.build(new StringReader(val)); } catch (Throwable t) { throw new CalFacadeException(t); } } |
Calendar cal = bldr.build(new StringReader(val)); | Calendar cal = bldr.build(new StringReader(val), true); | public Collection toVEvent(String val) throws CalFacadeException { try { CalendarBuilder bldr = new CalendarBuilder(new CalendarParserImpl()); Calendar cal = bldr.build(new StringReader(val)); Vector evs = new Vector(); if (cal == null) { return evs; } ComponentList clist = cal.getComponents(); Iterator it = clist.iterator(); while (it.hasNext()) { Object o = it.next(); if (o instanceof VEvent) { evs.add(o); } } return evs; } catch (Throwable t) { throw new CalFacadeException(t); } } |
logger.debug("InformativeShapeLayer: rendering shape layer"); | logger.debug(ExceptionReporterUtils.getMemoryUsage()+" InformativeShapeLayer: rendering shape layer"); | public void renderDataForProjection(Projection p, Graphics g){ logger.debug("InformativeShapeLayer: rendering shape layer"); super.renderDataForProjection(p,g); } |
om.writeMapToPNG("map.png"); | try { om.writeMapToPNG("map.png"); } catch (IOException e) { logger.error("problem saving image to map.png", e); } | public static void main(String[] args) { OpenMap om = new OpenMap("edu/sc/seis/fissuresUtil/data/maps/dcwpo-browse"); om.writeMapToPNG("map.png"); System.out.println("done"); System.exit(0); } |
public void writeMapToPNG(String filename){ Projection proj = mapBean.getProjection(); int w = proj.getWidth(), h = proj.getHeight(); BufferedImage bi = new BufferedImage(w, h, BufferedImage.TYPE_INT_RGB); Graphics g = bi.getGraphics(); g.setColor(WATER); g.fillRect(0,0,w,h); Layer[] layers = getLayers(); for (int i = layers.length - 1; i >= 0; i--){ layers[i].renderDataForProjection(proj, g); } try { | public void writeMapToPNG(String filename) throws IOException { synchronized(OpenMap.class) { Projection proj = mapBean.getProjection(); int w = proj.getWidth(), h = proj.getHeight(); logger.debug(ExceptionReporterUtils.getMemoryUsage()+" before make Buf Image"); BufferedImage bi = new BufferedImage(w, h, BufferedImage.TYPE_INT_RGB); Graphics g = bi.getGraphics(); g.setColor(WATER); g.fillRect(0,0,w,h); Layer[] layers = getLayers(); for (int i = layers.length - 1; i >= 0; i--){ layers[i].renderDataForProjection(proj, g); } | public void writeMapToPNG(String filename){ Projection proj = mapBean.getProjection(); int w = proj.getWidth(), h = proj.getHeight(); BufferedImage bi = new BufferedImage(w, h, BufferedImage.TYPE_INT_RGB); Graphics g = bi.getGraphics(); g.setColor(WATER); g.fillRect(0,0,w,h); Layer[] layers = getLayers(); for (int i = layers.length - 1; i >= 0; i--){ layers[i].renderDataForProjection(proj, g); } try { File loc = new File(filename); File temp = File.createTempFile(loc.getName(), null); ImageIO.write(bi, "png", temp); loc.delete(); temp.renameTo(loc); } catch(IOException e) { System.out.println("there was a problem writing the file"); } } |
catch(IOException e) { System.out.println("there was a problem writing the file"); } | public void writeMapToPNG(String filename){ Projection proj = mapBean.getProjection(); int w = proj.getWidth(), h = proj.getHeight(); BufferedImage bi = new BufferedImage(w, h, BufferedImage.TYPE_INT_RGB); Graphics g = bi.getGraphics(); g.setColor(WATER); g.fillRect(0,0,w,h); Layer[] layers = getLayers(); for (int i = layers.length - 1; i >= 0; i--){ layers[i].renderDataForProjection(proj, g); } try { File loc = new File(filename); File temp = File.createTempFile(loc.getName(), null); ImageIO.write(bi, "png", temp); loc.delete(); temp.renameTo(loc); } catch(IOException e) { System.out.println("there was a problem writing the file"); } } |
|
super(new MicroSecondDate().add(RTTimeRangeConfig.serverTimeOffset), "Current Time"); | super(ClockUtil.now(), "Current Time"); | public CurrentTimeFlag (){ super(new MicroSecondDate().add(RTTimeRangeConfig.serverTimeOffset), "Current Time"); } |
sceppDCLoadTime = new MicroSecondDate(); | sceppDCLoadTime = ClockUtil.now(); | DCResolver(String serverName) { super("DCResolver"+serverName); this.serverName = serverName; if (serverName.equals("SCEPP")) { sceppDCLoadTime = new MicroSecondDate(); } else if (serverName.equals("BUD")) { budDCLoadTime = new MicroSecondDate(); } else if (serverName.equals("POND")) { pondDCLoadTime = new MicroSecondDate(); } } |
budDCLoadTime = new MicroSecondDate(); | budDCLoadTime = ClockUtil.now(); | DCResolver(String serverName) { super("DCResolver"+serverName); this.serverName = serverName; if (serverName.equals("SCEPP")) { sceppDCLoadTime = new MicroSecondDate(); } else if (serverName.equals("BUD")) { budDCLoadTime = new MicroSecondDate(); } else if (serverName.equals("POND")) { pondDCLoadTime = new MicroSecondDate(); } } |
pondDCLoadTime = new MicroSecondDate(); | pondDCLoadTime = ClockUtil.now(); | DCResolver(String serverName) { super("DCResolver"+serverName); this.serverName = serverName; if (serverName.equals("SCEPP")) { sceppDCLoadTime = new MicroSecondDate(); } else if (serverName.equals("BUD")) { budDCLoadTime = new MicroSecondDate(); } else if (serverName.equals("POND")) { pondDCLoadTime = new MicroSecondDate(); } } |
TimeInterval delay = budDCLoadTime.difference(new MicroSecondDate()); | TimeInterval delay = budDCLoadTime.difference(ClockUtil.now()); | protected DataCenterOperations getBudDC() { while (budDC == null) { logger.debug("Resolving Bud DataCenter"); TimeInterval delay = budDCLoadTime.difference(new MicroSecondDate()); delay.convertTo(UnitImpl.SECOND); logger.debug("Resolving Bud DataCenter "+delay); if (delay.getValue() > 10) { // max sleep is 10 seconds break; } try { Thread.sleep(500); } catch (InterruptedException e) { } } return budDC; } |
TimeInterval delay = pondDCLoadTime.difference(new MicroSecondDate()); | TimeInterval delay = pondDCLoadTime.difference(ClockUtil.now()); | protected DataCenterOperations getPondDC() { while (pondDC == null) { logger.debug("Resolving Pond DataCenter"); TimeInterval delay = pondDCLoadTime.difference(new MicroSecondDate()); delay.convertTo(UnitImpl.SECOND); logger.debug("Resolving Pond DataCenter "+delay); if (delay.getValue() > 10) { // max sleep is 10 seconds break; } try { Thread.sleep(500); } catch (InterruptedException e) { } } return pondDC; } |
TimeInterval delay = sceppDCLoadTime.difference(new MicroSecondDate()); | TimeInterval delay = sceppDCLoadTime.difference(ClockUtil.now()); | protected DataCenterOperations getSceppDC() { logger.debug("Resolving Scepp DataCenter"); while (sceppDC == null) { TimeInterval delay = sceppDCLoadTime.difference(new MicroSecondDate()); delay.convertTo(UnitImpl.SECOND); logger.debug("Resolving Scepp DataCenter "+delay); if (delay.getValue() > 10) { // max sleep is 10 seconds break; } try { Thread.sleep(500); } catch (InterruptedException e) { } } return sceppDC; } |
public NCReader(NetworkAttr net, Map initialLocations) { this.net = net; this.locs = initialLocations; | public NCReader(Properties props) throws IOException { this(PopulationProperties.getNetworkAttr(props), XYReader.create(props)); PropParser pp = new PropParser(props); load(new FileInputStream(pp.getPath(NCReader.NC_FILE_LOC))); | public NCReader(NetworkAttr net, Map initialLocations) { this.net = net; this.locs = initialLocations; } |
public Element getParamter(String name); | public Object getParamter(String name); | public Element getParamter(String name); |
menuReview.add(menuItemBeginning); menuReview.add(menuItemEnd); | menuReview.add(menuItemGoToBeginning); menuReview.add(menuItemGoToEnd); | public MainFrameMenuBar() { // File add(menuFile); menuFile.add(menuItemReinitialize); menuFile.addSeparator(); menuFile.add(menuItemOptions); menuFile.addSeparator(); menuFile.add(menuItemQuit); // Play add(menuPlay); menuPlay.add(menuItemShowUsers); menuPlay.add(menuItemShowGames); menuPlay.addSeparator(); menuPlay.add(menuItemStartNewGame); menuPlay.add(menuItemStartGamePlay); menuPlay.add(menuItemJoinGame); menuPlay.add(menuItemWatchGame); menuPlay.add(menuItemShowGameState); menuPlay.addSeparator(); menuPlay.add(menuItemLeaveGame); // Review add(menuReview); menuReview.add(menuItemBeginning); menuReview.add(menuItemEnd); menuReview.addSeparator(); menuReview.add(menuItemPreviousTurn); menuReview.add(menuItemNextTurn); menuReview.addSeparator(); menuReview.add(menuItemPreviousDecision); menuReview.add(menuItemNextDecision); // Help add(menuHelp); menuHelp.add(menuItemAboutNetAcquire); } |
menuReview.add(menuItemPreviousTurn); menuReview.add(menuItemNextTurn); | menuReview.add(menuItemGoToPreviousTurn); menuReview.add(menuItemGoToNextTurn); | public MainFrameMenuBar() { // File add(menuFile); menuFile.add(menuItemReinitialize); menuFile.addSeparator(); menuFile.add(menuItemOptions); menuFile.addSeparator(); menuFile.add(menuItemQuit); // Play add(menuPlay); menuPlay.add(menuItemShowUsers); menuPlay.add(menuItemShowGames); menuPlay.addSeparator(); menuPlay.add(menuItemStartNewGame); menuPlay.add(menuItemStartGamePlay); menuPlay.add(menuItemJoinGame); menuPlay.add(menuItemWatchGame); menuPlay.add(menuItemShowGameState); menuPlay.addSeparator(); menuPlay.add(menuItemLeaveGame); // Review add(menuReview); menuReview.add(menuItemBeginning); menuReview.add(menuItemEnd); menuReview.addSeparator(); menuReview.add(menuItemPreviousTurn); menuReview.add(menuItemNextTurn); menuReview.addSeparator(); menuReview.add(menuItemPreviousDecision); menuReview.add(menuItemNextDecision); // Help add(menuHelp); menuHelp.add(menuItemAboutNetAcquire); } |
menuReview.add(menuItemPreviousDecision); menuReview.add(menuItemNextDecision); | menuReview.add(menuItemGoToPreviousDecision); menuReview.add(menuItemGoToNextDecision); | public MainFrameMenuBar() { // File add(menuFile); menuFile.add(menuItemReinitialize); menuFile.addSeparator(); menuFile.add(menuItemOptions); menuFile.addSeparator(); menuFile.add(menuItemQuit); // Play add(menuPlay); menuPlay.add(menuItemShowUsers); menuPlay.add(menuItemShowGames); menuPlay.addSeparator(); menuPlay.add(menuItemStartNewGame); menuPlay.add(menuItemStartGamePlay); menuPlay.add(menuItemJoinGame); menuPlay.add(menuItemWatchGame); menuPlay.add(menuItemShowGameState); menuPlay.addSeparator(); menuPlay.add(menuItemLeaveGame); // Review add(menuReview); menuReview.add(menuItemBeginning); menuReview.add(menuItemEnd); menuReview.addSeparator(); menuReview.add(menuItemPreviousTurn); menuReview.add(menuItemNextTurn); menuReview.addSeparator(); menuReview.add(menuItemPreviousDecision); menuReview.add(menuItemNextDecision); // Help add(menuHelp); menuHelp.add(menuItemAboutNetAcquire); } |
menuItemBeginning.setEnabled(enablednessInModesMenuItemReviewMode[mode]); menuItemEnd.setEnabled(enablednessInModesMenuItemReviewMode[mode]); menuItemPreviousTurn.setEnabled(enablednessInModesMenuItemReviewMode[mode]); menuItemNextTurn.setEnabled(enablednessInModesMenuItemReviewMode[mode]); menuItemPreviousDecision.setEnabled(enablednessInModesMenuItemReviewMode[mode]); menuItemNextDecision.setEnabled(enablednessInModesMenuItemReviewMode[mode]); | menuItemGoToBeginning.setEnabled(enablednessInModesMenuItemReviewMode[mode]); menuItemGoToEnd.setEnabled(enablednessInModesMenuItemReviewMode[mode]); menuItemGoToPreviousTurn.setEnabled(enablednessInModesMenuItemReviewMode[mode]); menuItemGoToNextTurn.setEnabled(enablednessInModesMenuItemReviewMode[mode]); menuItemGoToPreviousDecision.setEnabled(enablednessInModesMenuItemReviewMode[mode]); menuItemGoToNextDecision.setEnabled(enablednessInModesMenuItemReviewMode[mode]); | public void setMode(int mode) { menuItemShowUsers.setEnabled(enablednessInModesMenuItemShowUsers[mode]); menuItemShowGames.setEnabled(enablednessInModesMenuItemShowGames[mode]); menuItemStartNewGame.setEnabled(enablednessInModesMenuItemStartNewGame[mode]); menuItemStartGamePlay.setEnabled(enablednessInModesMenuItemStartGamePlay[mode]); menuItemJoinGame.setEnabled(enablednessInModesMenuItemJoinGame[mode]); menuItemWatchGame.setEnabled(enablednessInModesMenuItemWatchGame[mode]); menuItemShowGameState.setEnabled(enablednessInModesMenuItemShowGameState[mode]); menuItemLeaveGame.setEnabled(enablednessInModesMenuItemLeaveGame[mode]); menuItemBeginning.setEnabled(enablednessInModesMenuItemReviewMode[mode]); menuItemEnd.setEnabled(enablednessInModesMenuItemReviewMode[mode]); menuItemPreviousTurn.setEnabled(enablednessInModesMenuItemReviewMode[mode]); menuItemNextTurn.setEnabled(enablednessInModesMenuItemReviewMode[mode]); menuItemPreviousDecision.setEnabled(enablednessInModesMenuItemReviewMode[mode]); menuItemNextDecision.setEnabled(enablednessInModesMenuItemReviewMode[mode]); } |
logger.debug("calling contains(double, double, double, double)"); | public boolean contains(double x, double y, double w, double h){ return false; } |
|
public Rectangle getBounds(){ return null; } | public Rectangle getBounds(){ logger.debug("calling getBounds"); return null; } | public Rectangle getBounds(){ return null; } |
public Rectangle2D getBounds2D(){ return null; } | public Rectangle2D getBounds2D(){ logger.debug("calling getBounds2D"); return null; } | public Rectangle2D getBounds2D(){ return null; } |
logger.debug("calling getPathIterator(AffineTransform)"); | public PathIterator getPathIterator(AffineTransform at){ return getPathIterator(at, 0); } |
|
logger.debug("calling intersects(double, double, double, double)"); | public boolean intersects(double x, double y, double w, double h){ return false; } |
|
if(tr.getEndTime().before(seis.getEndTime()) | if(tr.getEndTime().before(seis.getBeginTime()) | public static Plottable makePlottable(LocalSeismogramImpl seis, MicroSecondTimeRange tr, int pixelsPerDay) throws CodecException { if(tr.getEndTime().before(seis.getEndTime()) || tr.getBeginTime().after(seis.getEndTime())) { int[] empty = new int[0]; return new Plottable(empty, empty); } //Calculating the number of plottable pixels to cover the full time // range double pixelPeriod = 1 / (double)pixelsPerDay;//in days TimeInterval trInt = (TimeInterval)tr.getInterval() .convertTo(UnitImpl.DAY); double exactNumPixels = trInt.divideBy(pixelPeriod).getValue(); //always round up since a partial pixel means the caller requested data // in that pixel int numPixels = (int)Math.ceil(exactNumPixels); TimeInterval pointPeriod = (TimeInterval)seis.getSampling() .getPeriod() .convertTo(UnitImpl.DAY); double pointsPerPixel = pixelPeriod / pointPeriod.getValue(); int startPoint = getPoint(seis, tr.getBeginTime()); int endPoint = startPoint + (int)(pointsPerPixel * numPixels); int startPixel = 0; if(startPoint < 0) { //Requested time begins before seis, scoot up the start pixel up startPixel = (int)Math.floor((startPoint * -1) / pointsPerPixel); numPixels -= startPixel; } if(endPoint > seis.getNumPoints()) { //Requested time ends after seis, scoot the end pixel back int pointShift = endPoint - seis.getNumPoints(); numPixels -= (int)Math.floor(pointShift / pointsPerPixel); endPoint = seis.getNumPoints(); } int[][] pixels = new int[2][numPixels * 2]; int pixelPoint = startPoint < 0 ? 0 : startPoint; for(int i = 0; i < numPixels; i++) { int pos = 2 * i; int nextPos = pos + 1; pixels[0][pos] = startPixel + i; pixels[0][nextPos] = pixels[0][pos]; int nextPixelPoint = startPoint + (int)((pixels[0][pos] + 1) * pointsPerPixel); if(i == numPixels - 1) { nextPixelPoint = endPoint; } QuantityImpl min = seis.getMinValue(pixelPoint, nextPixelPoint); pixels[1][pos] = (int)min.getValue(); QuantityImpl max = seis.getMaxValue(pixelPoint, nextPixelPoint); pixels[1][nextPos] = (int)max.getValue(); pixelPoint = nextPixelPoint; } return new Plottable(pixels[0], pixels[1]); } |
if (tr.getEndTime().before(seis.getEndTime())){ logger.debug("tr.getEndTime().before(seis.getEndTime())"); } else { logger.debug("tr.getBeginTime().after(seis.getEndTime())"); } | public static Plottable makePlottable(LocalSeismogramImpl seis, MicroSecondTimeRange tr, int pixelsPerDay) throws CodecException { if(tr.getEndTime().before(seis.getEndTime()) || tr.getBeginTime().after(seis.getEndTime())) { int[] empty = new int[0]; return new Plottable(empty, empty); } //Calculating the number of plottable pixels to cover the full time // range double pixelPeriod = 1 / (double)pixelsPerDay;//in days TimeInterval trInt = (TimeInterval)tr.getInterval() .convertTo(UnitImpl.DAY); double exactNumPixels = trInt.divideBy(pixelPeriod).getValue(); //always round up since a partial pixel means the caller requested data // in that pixel int numPixels = (int)Math.ceil(exactNumPixels); TimeInterval pointPeriod = (TimeInterval)seis.getSampling() .getPeriod() .convertTo(UnitImpl.DAY); double pointsPerPixel = pixelPeriod / pointPeriod.getValue(); int startPoint = getPoint(seis, tr.getBeginTime()); int endPoint = startPoint + (int)(pointsPerPixel * numPixels); int startPixel = 0; if(startPoint < 0) { //Requested time begins before seis, scoot up the start pixel up startPixel = (int)Math.floor((startPoint * -1) / pointsPerPixel); numPixels -= startPixel; } if(endPoint > seis.getNumPoints()) { //Requested time ends after seis, scoot the end pixel back int pointShift = endPoint - seis.getNumPoints(); numPixels -= (int)Math.floor(pointShift / pointsPerPixel); endPoint = seis.getNumPoints(); } int[][] pixels = new int[2][numPixels * 2]; int pixelPoint = startPoint < 0 ? 0 : startPoint; for(int i = 0; i < numPixels; i++) { int pos = 2 * i; int nextPos = pos + 1; pixels[0][pos] = startPixel + i; pixels[0][nextPos] = pixels[0][pos]; int nextPixelPoint = startPoint + (int)((pixels[0][pos] + 1) * pointsPerPixel); if(i == numPixels - 1) { nextPixelPoint = endPoint; } QuantityImpl min = seis.getMinValue(pixelPoint, nextPixelPoint); pixels[1][pos] = (int)min.getValue(); QuantityImpl max = seis.getMaxValue(pixelPoint, nextPixelPoint); pixels[1][nextPos] = (int)max.getValue(); pixelPoint = nextPixelPoint; } return new Plottable(pixels[0], pixels[1]); } |
|
BwFreeBusy fb = freeBusy.getFreeBusy(svci, user); | BwFreeBusy fb = freeBusy.getFreeBusy(svci, cnode.getCDURI().getCal(), user); | public void getFreeBusy(CaldavCalNode cnode, FreeBusyQuery freeBusy) throws WebdavIntfException { try { String user = cnode.getCDURI().getOwner(); getSvci(); BwFreeBusy fb = freeBusy.getFreeBusy(svci, user); cnode.setFreeBusy(fb); } catch (WebdavIntfException we) { throw we; } catch (Throwable t) { throw new WebdavIntfException(t); } } |
public TimeZone getDefaultTimeZone() throws CalFacadeException; | public TimeZone getDefaultTimeZone() throws CalFacadeException { if ((defaultTimeZone == null) && (defaultTimeZoneId != null)) { defaultTimeZone = getTimeZone(defaultTimeZoneId); } return defaultTimeZone; } | public TimeZone getDefaultTimeZone() throws CalFacadeException; |
public JDBCTime(Connection conn) throws SQLException{ super("time", conn); seq = new JDBCSequence(conn, "TimeSeq"); if(!DBUtil.tableExists("time", conn)){ conn.createStatement().executeUpdate(ConnMgr.getSQL("time.create")); } getById = conn.prepareStatement("SELECT * FROM time WHERE time_id = ?"); put = conn.prepareStatement("INSERT INTO time " + "(time_id, time_stamp, time_nanos, time_leapsec) " + "VALUES (?, ?, ?, ?)"); getByValues = conn.prepareStatement("SELECT time_id FROM time WHERE time_stamp = ? " + "AND time_nanos = ? AND time_leapsec = ?"); } | public JDBCTime() throws SQLException{this(ConnMgr.createConnection());} | public JDBCTime(Connection conn) throws SQLException{ super("time", conn); seq = new JDBCSequence(conn, "TimeSeq"); if(!DBUtil.tableExists("time", conn)){ conn.createStatement().executeUpdate(ConnMgr.getSQL("time.create")); } getById = conn.prepareStatement("SELECT * FROM time WHERE time_id = ?"); put = conn.prepareStatement("INSERT INTO time " + "(time_id, time_stamp, time_nanos, time_leapsec) " + "VALUES (?, ?, ?, ?)"); getByValues = conn.prepareStatement("SELECT time_id FROM time WHERE time_stamp = ? " + "AND time_nanos = ? AND time_leapsec = ?"); } |
public static GJChronology getInstance( DateTimeZone zone, ReadableInstant gregorianCutover) { return getInstance(zone, gregorianCutover, 4); | public static GJChronology getInstance() { return getInstance(DateTimeZone.getDefault(), DEFAULT_CUTOVER, 4); | public static GJChronology getInstance( DateTimeZone zone, ReadableInstant gregorianCutover) { return getInstance(zone, gregorianCutover, 4); } |
createPoints(rootView, ORIGIN); | createPoints(rootView, ORIGIN, rootView.getAngle()); | private void adjustModel() { points = new Vector<Point2D>(); Vector<IdeaView> views = rootView.getSubViews(); createPoints(rootView, ORIGIN); tweakIdeas(views, ORIGIN, 0.0, false); } |
private void createPoints(IdeaView parentView, Point2D c) { | private void createPoints(IdeaView parentView, Point2D c, double initAngle) { | private void createPoints(IdeaView parentView, Point2D c) { Vector<IdeaView> views = parentView.getSubViews(); double initAngle = parentView.getAngle(); points.add(ORIGIN); synchronized(views) { for(IdeaView view: views) { Point2D point = getPoint(view, c, initAngle);// if (parentView.isRoot()) {// double x = point.getX();// double y = point.getY();// x += Math.sin(view.getAngle()) * parentView.ROOT_RADIUS;// y += Math.cos(view.getAngle()) * parentView.ROOT_RADIUS;// point = new Point2D.Double(x, y);// } points.add(point); createPoints(view, point); } } } |
double initAngle = parentView.getAngle(); | private void createPoints(IdeaView parentView, Point2D c) { Vector<IdeaView> views = parentView.getSubViews(); double initAngle = parentView.getAngle(); points.add(ORIGIN); synchronized(views) { for(IdeaView view: views) { Point2D point = getPoint(view, c, initAngle);// if (parentView.isRoot()) {// double x = point.getX();// double y = point.getY();// x += Math.sin(view.getAngle()) * parentView.ROOT_RADIUS;// y += Math.cos(view.getAngle()) * parentView.ROOT_RADIUS;// point = new Point2D.Double(x, y);// } points.add(point); createPoints(view, point); } } } |
|
createPoints(view, point); | createPoints(view, point, initAngle + view.getAngle()); | private void createPoints(IdeaView parentView, Point2D c) { Vector<IdeaView> views = parentView.getSubViews(); double initAngle = parentView.getAngle(); points.add(ORIGIN); synchronized(views) { for(IdeaView view: views) { Point2D point = getPoint(view, c, initAngle);// if (parentView.isRoot()) {// double x = point.getX();// double y = point.getY();// x += Math.sin(view.getAngle()) * parentView.ROOT_RADIUS;// y += Math.cos(view.getAngle()) * parentView.ROOT_RADIUS;// point = new Point2D.Double(x, y);// } points.add(point); createPoints(view, point); } } } |
view.getAngle(), true); | view.getAngle() + initAngle, true); | private Point2D tweakIdeas(final Vector<IdeaView> views, final Point2D c, final double initAngle, final boolean hasParent) { if (views.size() == 0) { return new Point2D.Double(0.0, 0.0); } double mass = 2000.0 / (points.size() * Math.sqrt((double)points.size())); double totForceX = 0.0; double totForceY = 0.0; if (timeChanged == 0) { timeChanged = System.currentTimeMillis(); } long now = System.currentTimeMillis(); double maxSpeed = 0.0; if ((now - timeChanged) < (MAX_MOVE_TIME_SECS * 1000.0)) { maxSpeed = MAX_SPEED - ((now - timeChanged) * MAX_SPEED / 1000.0 / MAX_MOVE_TIME_SECS); } synchronized(views) { double minDiffAngle = Math.PI / 2 / views.size(); for (int i = 0; i < views.size(); i++) { IdeaView previousView = null; IdeaView nextView = null; IdeaView view = views.get(i); if (i > 0) { previousView = views.get(i - 1); } if (i < views.size() - 1) { nextView = views.get(i + 1); } Point2D point = getPoint(view, c, initAngle); double forceX = 0.0; double forceY = 0.0; for(Point2D other: points) { double dirX = point.getX() - other.getX(); double dirY = point.getY() - other.getY(); double dSquare = point.distanceSq(other); if (dSquare > 0.000001) { double unitFactor = point.distance(other); forceX += (dirX / unitFactor) * (mass * mass / dSquare); if (forceX > 1.0) { forceX = 1.0; } if (forceX < -1.0) { forceX = -1.0; } forceY += (dirY / unitFactor) * (mass * mass / dSquare); if (forceY > 1.0) { forceY = 1.0; } if (forceY < -1.0) { forceY = -1.0; } } } Point2D p2 = getPoint(view, ORIGIN, initAngle); Point2D tf = tweakIdeas(view.getSubViews(), point, view.getAngle(), true); forceX += tf.getX(); forceY += tf.getY(); double sideForce = (p2.getY() * forceX) + (-p2.getX() * forceY); totForceX += forceX; totForceY += forceY; double v = view.getV(); v += sideForce / mass; v *= 0.90; if (v > maxSpeed) { v = maxSpeed; } if (v < -maxSpeed) { v = -maxSpeed; } view.setV(v); double oldAngle = view.getAngle(); double newAngle = oldAngle + (view.getV() / view.getLength()); if (previousView != null) { double previousAngle = previousView.getAngle(); if (previousAngle > newAngle - minDiffAngle) { previousView.setAngle(newAngle - minDiffAngle); newAngle = previousAngle + minDiffAngle; double previousV = previousView.getV(); double diffV = v - previousV; if (diffV > 0) { view.setV(diffV); previousView.setV(-diffV); } else { view.setV(-diffV); previousView.setV(diffV); } v = view.getV(); } } else { double previousAngle = -Math.PI; if (!hasParent) { previousAngle = views.get(views.size() - 1).getAngle() - 2 * Math.PI; } if (previousAngle > newAngle - minDiffAngle) { newAngle = previousAngle + minDiffAngle; double previousV = 0.0; double diffV = v - previousV; if (diffV > 0) { view.setV(diffV); } else { view.setV(-diffV); } v = view.getV(); } } if (nextView != null) { double nextAngle = nextView.getAngle(); if (nextAngle < newAngle + minDiffAngle) { nextView.setAngle(newAngle + minDiffAngle); newAngle = nextAngle - minDiffAngle; double nextV = nextView.getV(); double diffV = 0.0; if (diffV > 0) { view.setV(-diffV); nextView.setV(diffV); } else { view.setV(diffV); nextView.setV(-diffV); } v = view.getV(); } } else { double nextAngle = Math.PI; if (!hasParent) { nextAngle = views.get(0).getAngle() + 2 * Math.PI; } if (nextAngle < newAngle + minDiffAngle) { newAngle = nextAngle - minDiffAngle; double nextV = 0.0; double diffV = 0.0; if (diffV > 0) { view.setV(-diffV); } else { view.setV(diffV); } v = view.getV(); } } view.setAngle(newAngle); } } return new Point2D.Double(totForceX, totForceY); } |
public IdeaView(Idea anIdea) { setIdea(anIdea); | public IdeaView() { this(null); | public IdeaView(Idea anIdea) { setIdea(anIdea); } |
form.getMsg().emit("org.bedework.message.event.added"); | form.getMsg().emit("org.bedework.client.message.event.added"); | public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { if (form.getGuest()) { return "noAccess"; // First line of defence } FormFile upFile = form.getUploadFile(); if (upFile == null) { // Just forget it return "success"; } String fileName = upFile.getFileName(); if ((fileName == null) || (fileName.length() == 0)) { return null; } InputStream is = upFile.getInputStream(); CalSvcI svci = form.getCalSvcI(); IcalTranslator trans = new IcalTranslator(svci.getIcalCallback(), debug); Collection objs = trans.fromIcal(new InputStreamReader(is)); Iterator it = objs.iterator(); while (it.hasNext()) { Object o = it.next(); if (o instanceof EventInfo) { EventInfo ei = (EventInfo)o; BwEvent ev = ei.getEvent(); if (ei.getNewEvent()) { svci.addEvent(ev, ei.getOverrides()); } else { svci.updateEvent(ev); } } } form.getMsg().emit("org.bedework.message.event.added"); return "success"; } |
installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new ResizableCompartmentEditPolicy()); | protected void createDefaultEditPolicies() { super.createDefaultEditPolicies(); installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new ResizableCompartmentEditPolicy()); installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new RegionSubverticesItemSemanticEditPolicy()); installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy()); installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy()); installEditPolicy(EditPolicyRoles.CANONICAL_ROLE, new RegionSubverticesCanonicalEditPolicy()); } |
|
seisPlotters.put(newPlotter, seisColors[seisPlotters.size()%seisColors.length]); | if(autoColor) seisPlotters.put(newPlotter, seisColors[seisPlotters.size()%seisColors.length]); else seisPlotters.put(newPlotter, Color.blue); | public void addSeismogram(DataSetSeismogram newSeismogram){ seismos.add(newSeismogram); SeismogramPlotter newPlotter = new SeismogramPlotter(newSeismogram.getSeismogram(), timeRegistrar, ampRegistrar); Iterator e = filters.iterator(); seisPlotters.put(newPlotter, seisColors[seisPlotters.size()%seisColors.length]); while(e.hasNext()){ filterPlotters.put(new FilteredSeismogramPlotter(((ButterworthFilter)e.next()), newSeismogram.getSeismogram(), timeRegistrar, ampRegistrar), filterColors[filterPlotters.size()%filterColors.length]); } timeRegistrar.addSeismogram(newSeismogram.getSeismogram()); ampRegistrar.addSeismogram(newSeismogram.getSeismogram()); redo = true; } |
logger.debug("Starting image creation thread"); | public synchronized void createImage(BasicSeismogramDisplay.ImagePainter patron, PlotInfo requirements){ patrons.put(patron, requirements); if(!requests.contains(patron)) requests.add(patron); if(!imageCreation.isAlive()){ imageCreation = new Thread(this, "Image Maker"); imageCreation.start(); } } |
|
public int find(String file, TimeRange fileTimeWindow) | public int find(String file, MicroSecondTimeRange fileTimeWindow) | public int find(String file, TimeRange fileTimeWindow) throws RT130FormatException, IOException { return rtFileReader.processRT130Data(file, false, fileTimeWindow)[0].sample_rate; } |
val = (BwSubscription)val.clone(); | public void addSubscription(BwSubscription val) throws CalFacadeException { BwPreferences prefs = getPreferences(); checkOwnerOrSuper(prefs); setupOwnedEntity(val); val = (BwSubscription)val.clone(); // Avoid hibernate prefs.addSubscription(val); dbi.updatePreferences(prefs); } |
|
dbi.updatePreferences(prefs); | public void addSubscription(BwSubscription val) throws CalFacadeException { BwPreferences prefs = getPreferences(); checkOwnerOrSuper(prefs); setupOwnedEntity(val); val = (BwSubscription)val.clone(); // Avoid hibernate prefs.addSubscription(val); dbi.updatePreferences(prefs); } |
|
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; | 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; | 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; } |
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; } |
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; } |
|
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]; | 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]; } | 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; } |
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; } |
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; } |
|
if (iSeries != null) { return iSeries.length; | 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; } |
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; } |
|
if (iSeries != null) { return iBinaryIndexSum(start, finish); } if (sSeries != null) { return sBinaryIndexSum(start, finish); } if (fSeries != null) { return fBinaryIndexSum(start, finish); } if (dSeries != null) { return dBinaryIndexSum(start, finish); } return 0; | if (iSeries != null) { return iBinaryIndexSum(start, finish); } if (sSeries != null) { return sBinaryIndexSum(start, finish); } if (fSeries != null) { return fBinaryIndexSum(start, finish); } if (dSeries != null) { return dBinaryIndexSum(start, finish); } throw new RuntimeException("All data arrays are null (int, short, float and double), This should never happen"); | 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; } |
if (queryResult == null || queryResult.isEmpty()) { | if (queryResult == null) { return resourceBundle.getLocalizedString("ro_execution_of_query_failed", "Execution of query failed."); } if (queryResult.isEmpty()) { | 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; } |
if (designBox == null) { return resourceBundle.getLocalizedString("ro_design_is_not available", "Problems with the chosen layout occurred."); } | 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; } |
|
DataCenter datacenter = DataCenterHelper.narrow(getSeismogramDCObject(dns, objectname)); | 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"); | 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; } |
stat = createInstance(); | stat = createInstanceArray(); | protected void setUp() throws Exception { // JUnitDoclet begin method testcase.setUp super.setUp(); stat = createInstance(); // JUnitDoclet end method testcase.setUp } |
context.setName(params.getTestContext()); | context.setName(params.getTrainingContext()); | 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; } |
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()); | public int[] getFileIds(RequestFilter[] requestFilters) throws SQLException { ArrayList arrayList = new ArrayList(); | 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; } |
ResultSet rs = rfGetFileIdStmt.executeQuery(); if(rs.next()) { Integer rtn = new Integer(rs.getInt("id")); return rtn.toString(); | for(int counter = 0; counter < requestFilters.length; counter++) { String channel_id = ChannelIdUtil.toString(requestFilters[counter].channel_id); MicroSecondDate beginDate = new MicroSecondDate(requestFilters[counter].start_time); MicroSecondDate endDate = new MicroSecondDate(requestFilters[counter].end_time); int[] ids = getFileIds(channel_id, beginDate, endDate); for(int subCounter = 0; subCounter < ids.length; subCounter++){ arrayList.add(new Integer(ids[subCounter])); } | 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; } |
return null; | 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; | 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; } |
if(job == null) job = new RetrievalJob(); | public DataCenterThread (RequestFilter[] requestFilters, LocalDataCenterCallBack a_client, SeisDataChangeListener initiator, DataCenterOperations dbDataCenter){ this.requestFilters = requestFilters; this.a_client = a_client; synchronized(initiators){ initiators.add(initiator); } this.dbDataCenter = dbDataCenter; } |
|
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; | public void addItem(com.idega.block.basket.data.BasketItem p0) throws java.rmi.RemoteException; |
if (!st.hasMoreTokens()) continue; | String value = ""; if (st.hasMoreTokens()) value = URLDecoder.decode(st.nextToken(), encoding); | 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; } |
String value = URLDecoder.decode(st.nextToken(), encoding); | 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; } |
|
if (this.ldapContext == null) { throw new IllegalStateException("No LdapContext specified."); } | 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); } } |
|
static void addResult(final Map results, final Object key, final Object value) { | public static void addResult(final Map results, final Object key, final Object value) { | 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); } } } |
static Map parseAttributeToAttributeMapping(final Map mapping) { | public static Map parseAttributeToAttributeMapping(final Map mapping) { | 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); } |
static Collection flattenCollection(final Collection source) { | public static Collection flattenCollection(final Collection source) { | 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; } |
Object command = e.getActionCommand(); | Object source = e.getSource(); | 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(); } } |
if( command == MenuBar.FILE_CLOSE ) { | if( source == MenuBar.fileClose ) { | 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(); } } |
} else if( command == MenuBar.FILE_TRACE ) { | } else if( source == MenuBar.fileTrace ) { | 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(); } } |
} else if( command == MenuBar.FILTER_ALL_MESSAGES ) { | } else if( source == MenuBar.filterAllMessages ) { | 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(); } } |
} else if( command == MenuBar.FILTER_ADMINISTRATIVE_MESSAGES ) { | } else if( source == MenuBar.filterAdministrativeMessages ) { | 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(); } } |
} else if( command == MenuBar.FILTER_APPLICATION_MESSAGES ) { | } else if( source == MenuBar.filterApplicationMessages ) { | 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(); } } |
} else if( command == MenuBar.FILTER_INDICATION_CATEGORY ) { | } else if( source == MenuBar.filterIndicationCategory ) { | 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(); } } |
} else if( command == MenuBar.FILTER_EVENT_COMMUNICATION_CATEGORY ) { | } else if( source == MenuBar.filterEventCommunicationCategory ) { | 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(); } } |
} else if( command == MenuBar.FILTER_QUOTATION_NEGOTIATION_CATEGORY ) { | } else if( source == MenuBar.filterQuotationNegotiationCategory ) { | 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(); } } |
} else if( command == MenuBar.FILTER_MARKET_DATA_CATEGORY ) { | } else if( source == MenuBar.filterMarketDataCategory ) { | 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(); } } |
} else if( command == MenuBar.FILTER_SECURITY_AND_TRADING_SESSION_CATEGORY ) { | } else if( source == MenuBar.filterSecurityAndTradingSessionCategory ) { | 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(); } } |
} else if( command == MenuBar.FILTER_SINGLE_GENERAL_ORDER_HANDLING_CATEGORY ) { | } else if( source == MenuBar.filterSingleGeneralOrderHandlingCategory ) { | 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(); } } |
} else if( command == MenuBar.FILTER_CROSS_ORDERS_CATEGORY ) { | } else if( source == MenuBar.filterCrossOrdersCategory ) { | 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(); } } |
} else if( command == MenuBar.FILTER_MULTILEG_ORDERS_CATEGORY ) { | } else if( source == MenuBar.filterMultilegOrdersCategory ) { | 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(); } } |
} else if( command == MenuBar.FILTER_LIST_PROGRAM_BASKET_TRADING_CATEGORY ) { | } else if( source == MenuBar.filterListProgramBasketTradingCategory ) { | 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(); } } |
} else if( command == MenuBar.FILTER_ALLOCATION_CATEGORY ) { | } else if( source == MenuBar.filterAllocationCategory ) { | 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(); } } |
} else if( command == MenuBar.FILTER_CONFIRMATION_CATEGORY ) { | } else if( source == MenuBar.filterConfirmationCategory ) { | 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(); } } |
} else if( command == MenuBar.FILTER_SETTLEMENT_INSTRUCTIONS_CATEGORY ) { | } else if( source == MenuBar.filterSettlementInstructionsCategory ) { | 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(); } } |
} else if( command == MenuBar.FILTER_TRADE_CAPTURE_REPORTING_CATEGORY ) { | } else if( source == MenuBar.filterTradeCaptureReportingCategory ) { | 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(); } } |
} else if( command == MenuBar.FILTER_REGISTRATION_INSTRUCTIONS_CATEGORY ) { | } else if( source == MenuBar.filterRegistrationInstructionsCategory ) { | 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(); } } |
} else if( command == MenuBar.FILTER_POSITIONS_MAINTENANCE_CATEGORY ) { | } else if( source == MenuBar.filterPositionsMaintenanceCategory ) { | 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(); } } |
} else if( command == MenuBar.FILTER_COLLATERAL_MANAGEMENT_CATEGORY ) { | } else if( source == MenuBar.filterCollateralManagementCategory ) { | 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(); } } |
} else if( command == MenuBar.FILTER_CUSTOM_FILTER ) { | } else if( source == MenuBar.filterCustomFilter ) { | 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(); } } |
} else if( command == MenuBar.HELP_ABOUT ) { | } else if( source == MenuBar.helpAbout ) { | 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(); } } |
if( command == MenuBar.FILE_OPEN ) { | if( source == MenuBar.fileOpen ) { | 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(); } } |
} else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { | } 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 ) { | 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(); } } |
} else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { | } else if( source == MenuBar.viewAutosizeAndHideColumns ) { | 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(); } } |
Object command = e.getActionCommand(); | Object source = e.getSource(); | 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 ); } |
if( command == MenuBar.FILE_OPEN ) { | if( source == MenuBar.fileOpen ) { | 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 ); } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.