/** * {@inheritDoc} <p> * * Implemented to perform the appropriate Desktop action if supported on the current * target. Sets the visited property to true if the desktop action doesn't throw * an exception or to false if it did. * * Does nothing if the action isn't supported. */ @Override public void actionPerformed(ActionEvent e) { if (!getURIVisitor().isEnabled(getTarget())) return; try { getURIVisitor().visit(getTarget()); setVisited(true); } catch (IOException e1) { setVisited(false); LOG.fine("cant visit Desktop " + e); } }
/** * {@inheritDoc} <p> * * Implemented to perform the appropriate Desktop action if supported on the current * target. Sets the visited property to true if the desktop action doesn't throw * an exception or to false if it did. * * Does nothing if the action isn't supported. */ @Override public void actionPerformed(ActionEvent e) { if (!getURIVisitor().isEnabled(getTarget())) return; try { getURIVisitor().visit(getTarget()); setVisited(true); } catch (IOException e1) { setVisited(false); LOG.fine("cant visit Desktop " + e); } }
/** * {@inheritDoc} <p> * * Implemented to perform the appropriate Desktop action if supported on the current * target. Sets the visited property to true if the desktop action doesn't throw * an exception or to false if it did. * * Does nothing if the action isn't supported. */ @Override public void actionPerformed(ActionEvent e) { if (!getURIVisitor().isEnabled(getTarget())) return; try { getURIVisitor().visit(getTarget()); setVisited(true); } catch (IOException e1) { setVisited(false); LOG.fine("cant visit Desktop " + e); } }
/** * Returns a boolean indicating whether the action is supported on the * given URI. This implementation returns true if both the Desktop is * generally supported and <code>isActionSupported()</code>. * * PENDING JW: hmm ... which class exactly has to check for valid combination * of Action and URI? * * @param uri * @return * * @see #isActionSupported() */ public boolean isEnabled(URI uri) { return desktopSupported && isActionSupported(); }
/** * Returns a boolean indicating whether the action is supported on the * given URI. This implementation returns true if both the Desktop is * generally supported and <code>isActionSupported()</code>. * * PENDING JW: hmm ... which class exactly has to check for valid combination * of Action and URI? * * @param uri * @return * * @see #isActionSupported() */ public boolean isEnabled(URI uri) { return desktopSupported && isActionSupported(); }
/** * {@inheritDoc} <p> * * Implemented to perform the appropriate Desktop action if supported on the current * target. Sets the visited property to true if the desktop action doesn't throw * an exception or to false if it did. * * Does nothing if the action isn't supported. */ @Override public void actionPerformed(ActionEvent e) { if (!getURIVisitor().isEnabled(getTarget())) return; try { getURIVisitor().visit(getTarget()); setVisited(true); } catch (IOException e1) { setVisited(false); LOG.fine("cant visit Desktop " + e); } }
/** * Returns a boolean indicating whether the action is supported on the * given URI. This implementation returns true if both the Desktop is * generally supported and <code>isActionSupported()</code>. * * PENDING JW: hmm ... which class exactly has to check for valid combination * of Action and URI? * * @param uri * @return * * @see #isActionSupported() */ public boolean isEnabled(URI uri) { return desktopSupported && isActionSupported(); }
/** * Returns a boolean indicating whether the action is supported on the * given URI. This implementation returns true if both the Desktop is * generally supported and <code>isActionSupported()</code>. * * PENDING JW: hmm ... which class exactly has to check for valid combination * of Action and URI? * * @param uri * @return * * @see #isActionSupported() */ public boolean isEnabled(URI uri) { return desktopSupported && isActionSupported(); }
/** * {@inheritDoc} <p> * * Implemented to guard against null URI in addition to super. */ @Override public boolean isEnabled(URI uri) { return uri != null && super.isEnabled(uri); }
/** * */ private void updateEnabled() { setEnabled(getURIVisitor().isEnabled(getTarget())); }
/** * */ private void updateEnabled() { setEnabled(getURIVisitor().isEnabled(getTarget())); }
/** * */ private void updateEnabled() { setEnabled(getURIVisitor().isEnabled(getTarget())); }
/** * */ private void updateEnabled() { setEnabled(getURIVisitor().isEnabled(getTarget())); }
/** * {@inheritDoc} <p> * * Implemented to guard against null URI in addition to super. */ @Override public boolean isEnabled(URI uri) { return uri != null && super.isEnabled(uri); }
/** * {@inheritDoc} <p> * * Implemented to guard against null URI in addition to super. */ @Override public boolean isEnabled(URI uri) { return uri != null && super.isEnabled(uri); }
/** * {@inheritDoc} <p> * * Implemented to guard against null URI in addition to super. */ @Override public boolean isEnabled(URI uri) { return uri != null && super.isEnabled(uri); }