Search in sources :

Example 1 with SetBundleInstallLocallyCommand

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);
}
Also used : SetBundleInstallLocallyCommand(org.apache.sling.ide.eclipse.core.SetBundleInstallLocallyCommand) SelectionAdapter(org.eclipse.swt.events.SelectionAdapter) ISlingLaunchpadConfiguration(org.apache.sling.ide.eclipse.core.ISlingLaunchpadConfiguration) SelectionEvent(org.eclipse.swt.events.SelectionEvent) SelectionListener(org.eclipse.swt.events.SelectionListener)

Aggregations

ISlingLaunchpadConfiguration (org.apache.sling.ide.eclipse.core.ISlingLaunchpadConfiguration)1 SetBundleInstallLocallyCommand (org.apache.sling.ide.eclipse.core.SetBundleInstallLocallyCommand)1 SelectionAdapter (org.eclipse.swt.events.SelectionAdapter)1 SelectionEvent (org.eclipse.swt.events.SelectionEvent)1 SelectionListener (org.eclipse.swt.events.SelectionListener)1