Skip to content

Commit

Permalink
State for "Verbose output" is not stored in the configurations for "C…
Browse files Browse the repository at this point in the history
  • Loading branch information
vrubezhny committed Aug 9, 2023
1 parent 9772380 commit 1e5eb70
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@
*******************************************************************************/
package org.eclipse.wildwebdeveloper.debug.chrome;

import org.eclipse.core.runtime.CoreException;
import org.eclipse.debug.core.ILaunchConfiguration;
import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionListener;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.wildwebdeveloper.Activator;
import org.eclipse.wildwebdeveloper.debug.AbstractRunHTMLDebugTab;

public class RunChromeDebugTab extends AbstractRunHTMLDebugTab {
Expand All @@ -36,7 +39,18 @@ public void createControl(Composite parent) {
updateLaunchConfigurationDialog();
}));
}


@Override
public void initializeFrom(ILaunchConfiguration configuration) {
super.initializeFrom(configuration);
try {
boolean verboseConsoleOutputValue = configuration.getAttribute(ChromeRunDAPDebugDelegate.VERBOSE, false);
verboseConsoleOutput.setSelection(verboseConsoleOutputValue);
} catch (CoreException ex) {
Activator.getDefault().getLog().log(ex.getStatus());
}
}

@Override
public void performApply(ILaunchConfigurationWorkingCopy configuration) {
super.performApply(configuration);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@
*******************************************************************************/
package org.eclipse.wildwebdeveloper.debug.firefox;

import org.eclipse.core.runtime.CoreException;
import org.eclipse.debug.core.ILaunchConfiguration;
import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionListener;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.wildwebdeveloper.Activator;
import org.eclipse.wildwebdeveloper.debug.AbstractRunHTMLDebugTab;
import org.eclipse.wildwebdeveloper.debug.Messages;

Expand All @@ -37,7 +40,18 @@ public void createControl(Composite parent) {
updateLaunchConfigurationDialog();
}));
}


@Override
public void initializeFrom(ILaunchConfiguration configuration) {
super.initializeFrom(configuration);
try {
boolean reloadOnChangeValue = configuration.getAttribute(FirefoxRunDABDebugDelegate.RELOAD_ON_CHANGE, false);
reloadOnChange.setSelection(reloadOnChangeValue);
} catch (CoreException ex) {
Activator.getDefault().getLog().log(ex.getStatus());
}
}

@Override
public void performApply(ILaunchConfigurationWorkingCopy configuration) {
super.performApply(configuration);
Expand Down

0 comments on commit 1e5eb70

Please sign in to comment.