private void queryFlushRegion() { XLabel msg = new XLabel(MessageFormat.format(bundle.getString("evict.all.entries.in.region.confirm"), regionInfo .getRegionName())); Frame frame = (Frame) SwingUtilities.getAncestorOfClass(Frame.class, this); int answer = JOptionPane.showConfirmDialog(this.getParent(), msg, frame.getTitle(), JOptionPane.OK_CANCEL_OPTION); if (answer == JOptionPane.OK_OPTION) { appContext.submit(new FlushRegionWorker()); } else { flushButton.setSelected(false); flushButton.setEnabled(true); } }
@Override protected void finished() { Exception e = getException(); if (e != null) { appContext.log(e); } flushButton.setText(bundle.getString("evict.all.entries.in.region")); flushButton.setSelected(false); flushButton.setEnabled(true); } }
private void queryFlushRegion() { String currLabel = flushButton.getText(); XLabel msg = new XLabel(MessageFormat.format(bundle.getString("evict.all.entries.in.region.confirm"), regionInfo .getRegionName())); Frame frame = (Frame) SwingUtilities.getAncestorOfClass(Frame.class, this); int answer = JOptionPane.showConfirmDialog(this.getParent(), msg, frame.getTitle(), JOptionPane.OK_CANCEL_OPTION); if (answer == JOptionPane.OK_OPTION) { appContext.submit(new FlushRegionWorker()); } else { flushButton.setText(currLabel); flushButton.setSelected(false); flushButton.setEnabled(true); } }
@Override protected void finished() { Exception e = getException(); if (e != null) { appContext.log(e); } flushButton.setSelected(false); flushButton.setEnabled(true); } }
@Override protected void finished() { Exception e = getException(); if (e != null) { appContext.log(e); } flushButton.setSelected(false); flushButton.setEnabled(true); } }
private void queryFlushRegion() { XLabel msg = new XLabel(MessageFormat.format(bundle.getString("evict.all.entries.in.region.confirm"), regionInfo .getRegionName())); Frame frame = (Frame) SwingUtilities.getAncestorOfClass(Frame.class, this); int answer = JOptionPane.showConfirmDialog(this.getParent(), msg, frame.getTitle(), JOptionPane.OK_CANCEL_OPTION); if (answer == JOptionPane.OK_OPTION) { appContext.submit(new FlushRegionWorker()); } else { flushButton.setSelected(false); flushButton.setEnabled(true); } }