@Test public void testIsEnabled() { Assert.assertNotNull(executableButtonAction); }
@Override public boolean isEnabled() { manifestation = currentContext.getSelectedManifestations().iterator().next(); if (isWindows()) { logger.error(WINDOWS_NOT_SUPPORTED_MSG); OptionBox.showMessageDialog(manifestation, WINDOWS_NOT_SUPPORTED_MSG, bundle.getString("ExecButtonFailedMsg"), JOptionPane.ERROR_MESSAGE); return false; } return (isExecutableButtonComponent(manifestation.getManifestedComponent()) && (isMac() || isUnixLinux())); }
ExecutableButtonAction extends ContextAwareAction { @Override public boolean isEnabled() { manifestation = currentContext.getSelectedManifestations().iterator().next(); if (isWindows()) { logger.error(WINDOWS_NOT_SUPPORTED_MSG); OptionBox.showMessageDialog(manifestation, WINDOWS_NOT_SUPPORTED_MSG, bundle.getString("ExecButtonFailedMsg"), JOptionPane.ERROR_MESSAGE); return false; } return (isExecutableButtonComponent(manifestation.getManifestedComponent()) && (isMac() || isUnixLinux())); } }
ExecutableButtonAction extends ContextAwareAction { @Override public boolean isEnabled() { manifestation = currentContext.getSelectedManifestations().iterator().next(); if (isWindows()) { logger.error(WINDOWS_NOT_SUPPORTED_MSG); OptionBox.showMessageDialog(manifestation, WINDOWS_NOT_SUPPORTED_MSG, bundle.getString("ExecButtonFailedMsg"), JOptionPane.ERROR_MESSAGE); return false; } return (isExecutableButtonComponent(manifestation.getManifestedComponent()) && (isMac() || isUnixLinux())); } ExecutableButtonAction(); }
ExecutableButtonAction extends ContextAwareAction { @Override public boolean isEnabled() { manifestation = currentContext.getSelectedManifestations().iterator().next(); if (isWindows()) { logger.error(WINDOWS_NOT_SUPPORTED_MSG); OptionBox.showMessageDialog(manifestation, WINDOWS_NOT_SUPPORTED_MSG, bundle.getString("ExecButtonFailedMsg"), JOptionPane.ERROR_MESSAGE); return false; } return (isExecutableButtonComponent(manifestation.getManifestedComponent()) && (isMac() || isUnixLinux())); } ExecutableButtonAction(); @Override boolean canHandle(ActionContext context); @Override boolean isEnabled(); @Override void actionPerformed(ActionEvent e); }
ExecutableButtonAction extends ContextAwareAction { @Override public boolean isEnabled() { manifestation = currentContext.getSelectedManifestations().iterator().next(); if (isWindows()) { logger.error(WINDOWS_NOT_SUPPORTED_MSG); OptionBox.showMessageDialog(manifestation, WINDOWS_NOT_SUPPORTED_MSG, bundle.getString("ExecButtonFailedMsg"), JOptionPane.ERROR_MESSAGE); return false; } return (isExecutableButtonComponent(manifestation.getManifestedComponent()) && (isMac() || isUnixLinux())); } ExecutableButtonAction(); @Override boolean canHandle(ActionContext context); @Override boolean isEnabled(); @Override void actionPerformed(ActionEvent e);  }