/* (non-Javadoc) * @see org.marketcetera.photon.views.MessagesViewBase#createPartControl(org.eclipse.swt.widgets.Composite) */ @Override public void createPartControl(Composite inParent) { super.createPartControl(inParent); TradeReportsHistory messageHistory = PhotonPlugin.getDefault().getTradeReportsHistory(); if (messageHistory != null) { setInput(messageHistory); } }
/* (non-Javadoc) * @see org.marketcetera.photon.views.MessagesViewBase#dispose() */ @Override public void dispose() { super.dispose(); if (tableRefresher != null) { tableRefresher.dispose(); tableRefresher = null; } }
/** * Sets the input object upon which the message view is based. * * @param inHistory a <code>FIXMessageHistory</code> value containing the messages to display */ public void setInput(TradeReportsHistory inHistory) { EventList<ReportHolder> list = getMessageList(inHistory); // Get the write lock since it is needed for sorting (see PN-416) Lock writeLock = list.getReadWriteLock().writeLock(); writeLock.lock(); try { super.setInput(new FilterList<ReportHolder>(list, getFilterMatcherEditor())); } finally { writeLock.unlock(); } }