Java Code Examples for net.sf.launch4j.binding.Binding#put()

The following examples show how to use net.sf.launch4j.binding.Binding#put() . 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
private void updateLibs() {
	if (!_libsCheck.isSelected()) {
		ConfigPersister.getInstance().getConfig().setLibs(null);
		Binding b = _bindings.getBinding("libs");
		b.put(ConfigPersister.getInstance().getConfig());
	}
}
 
Example 2
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 3
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) {
	if (!_headerObjectsCheck.isSelected()) {
		ConfigPersister.getInstance().getConfig().setHeaderObjects(null);
		Binding b = _bindings.getBinding("headerObjects");
		b.put(ConfigPersister.getInstance().getConfig());
	}
}
 
Example 4
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 5
Source File: HeaderFormImpl.java    From PyramidShader with GNU General Public License v3.0 5 votes vote down vote up
public void actionPerformed(ActionEvent e) {
	if (!_headerObjectsCheck.isSelected()) {
		ConfigPersister.getInstance().getConfig().setHeaderObjects(null);
		Binding b = _bindings.getBinding("headerObjects");
		b.put(ConfigPersister.getInstance().getConfig());
	}
}
 
Example 6
Source File: HeaderFormImpl.java    From PyramidShader with GNU General Public License v3.0 5 votes vote down vote up
public void actionPerformed(ActionEvent e) {
	if (!_libsCheck.isSelected()) {
		ConfigPersister.getInstance().getConfig().setLibs(null);
		Binding b = _bindings.getBinding("libs");
		b.put(ConfigPersister.getInstance().getConfig());
	}
}
 
Example 7
Source File: HeaderFormImpl.java    From jmkvpropedit with BSD 2-Clause "Simplified" License 5 votes vote down vote up
private void updateLibs() {
	if (!_libsCheck.isSelected()) {
		ConfigPersister.getInstance().getConfig().setLibs(null);
		Binding b = _bindings.getBinding("libs");
		b.put(ConfigPersister.getInstance().getConfig());
	}
}
 
Example 8
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();
	}
}
 
Example 9
Source File: HeaderFormImpl.java    From jmkvpropedit with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public void actionPerformed(ActionEvent e) {
	if (!_headerObjectsCheck.isSelected()) {
		ConfigPersister.getInstance().getConfig().setHeaderObjects(null);
		Binding b = _bindings.getBinding("headerObjects");
		b.put(ConfigPersister.getInstance().getConfig());
	}
}