use of org.apache.sling.ide.eclipse.core.SetBundleInstallLocallyCommand in project sling by apache.
the class InstallEditorSection method initialize.
private void initialize() {
final ISlingLaunchpadConfiguration config = launchpadServer.getConfiguration();
quickLocalInstallButton.setSelection(config.bundleInstallLocally());
bundleLocalInstallButton.setSelection(!config.bundleInstallLocally());
SelectionListener listener = new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
execute(new SetBundleInstallLocallyCommand(server, quickLocalInstallButton.getSelection()));
}
};
quickLocalInstallButton.addSelectionListener(listener);
bundleLocalInstallButton.addSelectionListener(listener);
}
Aggregations