/** * Notifies the <code>IControlConnectionListener</code>s that the <code>IControlConnection</code> has refreshed. * @param con refreshed <code>IControlConnection</code> */ public void fireRefreshed(IControlConnection con) { Object[] listeners = _listeners.getListeners(); for (int i = 0; i < listeners.length; i++) { IControlConnectionListener l = (IControlConnectionListener) listeners[i]; l.controlConnectionRefreshed(con); } }
public void fireUpdated(IRowData row, int colIndex, Object oldVal, Object newVal) { Object[] listeners = _listenerList.getListeners(); for (int i = 0; i < listeners.length; i++) { ((ITableDataChangeListener) listeners[i]).rowDataUpdated(row, colIndex, oldVal, newVal); } }
public void insertRow(IRowData rowData, int row) { _rows.insertElementAt(rowData, row); Object[] listeners = _listenerList.getListeners(); for (int i = 0; i < listeners.length; i++) { ((ITableDataChangeListener) listeners[i]).rowAdded(rowData); } }
/** * @see IAnnotationModelListener#modelChanged(IAnnotationModel) */ public void modelChanged(IAnnotationModel model) { Object[] listeners= fListenerList.getListeners(); for (int i= 0; i < listeners.length; i++) { ((IAnnotationModelListener) listeners[i]).modelChanged(model); } }
/** * @see IAnnotationModelListenerExtension#modelChanged(AnnotationModelEvent) */ public void modelChanged(AnnotationModelEvent event) { Object[] listeners= fListenerList.getListeners(); for (int i= 0; i < listeners.length; i++) { Object curr= listeners[i]; if (curr instanceof IAnnotationModelListenerExtension) { ((IAnnotationModelListenerExtension) curr).modelChanged(event); } } }
public void firePostSelectionChanged(final SelectionChangedEvent event) { Object[] listeners = postListeners.getListeners(); for (int i = 0; i < listeners.length; ++i) { final ISelectionChangedListener pl = (ISelectionChangedListener) listeners[i]; Platform.run(new SafeRunnable() { public void run() { pl.selectionChanged(event); } }); } }
/** * Notifies the <code>IControlConnectionListener</code>s that a <code>IControlConnection</code> is removed from this manager. * @param con removed <code>IControlConnection</code> */ public void fireDetached(IControlConnection con) { Object[] listeners = _listeners.getListeners(); for (int i = 0; i < listeners.length; i++) { IControlConnectionListener l = (IControlConnectionListener) listeners[i]; l.controlConnectionDetached(con); } }
/** * Notifies the <code>IControlConnectionListener</code>s that a new <code>IControlConnection</code> is added into this manager. * @param con newly added <code>IControlConnection</code> */ public void fireAdded(IControlConnection con) { Object[] listeners = _listeners.getListeners(); for (int i = 0; i < listeners.length; i++) { IControlConnectionListener l = (IControlConnectionListener) listeners[i]; l.controlConnectionAdded(con); } }
public void fireProfileConnected(ConnectEvent event) throws CoreException { Object[] listeners = _listeners.getListeners(); for (int i = 0; i < listeners.length; i++) { try { ((ISQLToolsConnectListener) listeners[i]).profileConnected(event); } catch (Exception e) { } } }
public void fireProfileAdded(IConnectionProfile profile) { Object[] listeners = _listeners.getListeners(); for (int i = 0; i < listeners.length; i++) { try { ((ISQLToolsProfileListener) listeners[i]).profileAdded(profile); } catch (Exception e) { } } }
public void fireAboutToClose(ConnectEvent event) throws CoreException { Object[] listeners = _listeners.getListeners(); for (int i = 0; i < listeners.length; i++) { try { ((ISQLToolsConnectListener) listeners[i]).aboutToClose(event); } catch (Exception e) { } } }
public void fireProfileDeleted(IConnectionProfile profile) { Object[] listeners = _listeners.getListeners(); for (int i = 0; i < listeners.length; i++) { try { ((ISQLToolsProfileListener) listeners[i]).profileDeleted(profile); } catch (Exception e) { } } }
/** * Notifies the <code>IControlConnectionListener</code>s that a <code>ProcIdentifier</code> managed by the <code>IControlConnection</code> has refereshed. * @param con <code>IControlConnection</code> used by the <code>ProcIdentifier</code> object * @param proc <code>ProcIdentifier</code> */ public void fireRefreshed(IControlConnection con, ProcIdentifier proc) { Object[] listeners = _listeners.getListeners(); for (int i = 0; i < listeners.length; i++) { IControlConnectionListener l = (IControlConnectionListener) listeners[i]; l.controlConnectionRefreshed(con, proc); } }
public void fireCloseConnection(ConnectEvent event) throws CoreException { Object[] listeners = _listeners.getListeners(); for (int i = 0; i < listeners.length; i++) { try { ((ISQLToolsConnectListener) listeners[i]).closeConnection(event); } catch (Exception e) { } } } }
public void fireProfileChanged(IConnectionProfile profile, String oldName, String oldDesc, Boolean oldAutoConnect, boolean onlyNameChanged, ConnectProfile oldProfile) { Object[] listeners = _listeners.getListeners(); for (int i = 0; i < listeners.length; i++) { try { ((ISQLToolsProfileListener) listeners[i]).profileChanged(profile, oldName, oldDesc, oldAutoConnect, onlyNameChanged, oldProfile); } catch (Exception e) { } } } }
public boolean fireOkToClose(ConnectEvent event) { boolean okToClose = true; Object[] listeners = _listeners.getListeners(); for (int i = 0; i < listeners.length; i++) { try { okToClose = ((ISQLToolsConnectListener) listeners[i]).okToClose(event); } catch (Exception e) { } if (!okToClose) { return okToClose; } } return okToClose; }
public IRowData insertRow() { Object data[] = new Object[getColumnCount()]; IRowData row = new RowData(this, RowData.STATE_INSERTED, data); _rows.add(row); Object[] listeners = _listenerList.getListeners(); for (int i = 0; i < listeners.length; i++) { ((ITableDataChangeListener) listeners[i]).rowAdded(row); } return row; }
public void deleteRow(IRowData row) { if (((RowData) row).getState() == RowData.STATE_INSERTED || ((RowData) row).getState() == RowData.STATE_ORIGINAL || ((RowData) row).getState() == RowData.STATE_UPDATED) { _rows.remove(row); } else { ((RowData) row).setState(RowData.STATE_DELETED); } Object[] listeners = _listenerList.getListeners(); for (int i = 0; i < listeners.length; i++) { ((ITableDataChangeListener) listeners[i]).rowDeleted(row); } }