Search in sources :

Example 1 with SetResolveSourcesCommand

use of org.apache.sling.ide.eclipse.core.SetResolveSourcesCommand in project sling by apache.

the class DebugEditorSection method initialize.

private void initialize() {
    final ISlingLaunchpadConfiguration config = launchpadServer.getConfiguration();
    resolveSourcesButton.setSelection(config.resolveSourcesInDebugMode());
    SelectionListener listener = new SelectionAdapter() {

        @Override
        public void widgetSelected(SelectionEvent e) {
            execute(new SetResolveSourcesCommand(server, resolveSourcesButton.getSelection()));
        }
    };
    resolveSourcesButton.addSelectionListener(listener);
}
Also used : SelectionAdapter(org.eclipse.swt.events.SelectionAdapter) ISlingLaunchpadConfiguration(org.apache.sling.ide.eclipse.core.ISlingLaunchpadConfiguration) SelectionEvent(org.eclipse.swt.events.SelectionEvent) SetResolveSourcesCommand(org.apache.sling.ide.eclipse.core.SetResolveSourcesCommand) SelectionListener(org.eclipse.swt.events.SelectionListener)

Aggregations

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