public void actionPerformed(ActionEvent event) { //System.out.println("actionPerformed: " + event); _command.setSelected(_button.isSelected()); }
@Override public void configure(ConfigurationElement config) throws CoreException { super.configure(config); Boolean resBoolean = getConfigBoolean(config, "selected"); if (resBoolean != null) { setSelected(resBoolean); } }
/** * Configures this command with the properties (if any) found in the given resource bundle. Overrides the base class * implementation in order to configure the following extra properties:<p> <ld> * <li><code>command.</code><i>command-ID</i><code>.selected = true</code> or <code>false</code></li> </ld> * * @param resourceBundle the resource bundle from which the properties are received * * @throws IllegalArgumentException if the resource bundle is null */ @Override public void configure(ResourceBundle resourceBundle) { super.configure(resourceBundle); Boolean resBoolean; resBoolean = getResourceBoolean(resourceBundle, "selected"); if (resBoolean != null) { setSelected(resBoolean); } }