Java Code Examples for net.sf.launch4j.config.Config#setHeaderType()

The following examples show how to use net.sf.launch4j.config.Config#setHeaderType() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: HeaderFormImpl.java    From beast-mcmc with GNU Lesser General Public License v2.1 5 votes vote down vote up
public void actionPerformed(ActionEvent e) {
	Config c = ConfigPersister.getInstance().getConfig();
	c.setHeaderType(e.getActionCommand());

	if (!_headerObjectsCheck.isSelected()) {
		Binding b = _bindings.getBinding("headerObjects");
		b.put(c);
		updateLibs();
	}
}
 
Example 2
Source File: HeaderFormImpl.java    From PyramidShader with GNU General Public License v3.0 5 votes vote down vote up
public void stateChanged(ChangeEvent e) {
	Config c = ConfigPersister.getInstance().getConfig();
	c.setHeaderType(_guiHeaderRadio.isSelected() ? Config.GUI_HEADER
												: Config.CONSOLE_HEADER);
	if (!_headerObjectsCheck.isSelected()) {
		Binding b = _bindings.getBinding("headerObjects");
		b.put(c);
	}
}
 
Example 3
Source File: HeaderFormImpl.java    From jmkvpropedit with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public void actionPerformed(ActionEvent e) {
	Config c = ConfigPersister.getInstance().getConfig();
	c.setHeaderType(e.getActionCommand());

	if (!_headerObjectsCheck.isSelected()) {
		Binding b = _bindings.getBinding("headerObjects");
		b.put(c);
		updateLibs();
	}
}