mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-26 17:53:55 +02:00
[249428] - [update policy] Get rid of "Updates Atomic" submenu in Debug view.
This commit is contained in:
parent
08e3a84e8c
commit
0583283a84
4 changed files with 0 additions and 101 deletions
|
@ -36,10 +36,6 @@ action.breakpointHitUpdatePolicy.label = Breakpoint Hit
|
||||||
action.manualUpdatePolicy.label = Manual
|
action.manualUpdatePolicy.label = Manual
|
||||||
action.automaticUpdatePolicy.label = Automatic
|
action.automaticUpdatePolicy.label = Automatic
|
||||||
|
|
||||||
menu.updatePolicyAtomic = Updates Atomic
|
|
||||||
action.updatePolicyAtomic.label = Delay run control until updates are complete
|
|
||||||
action.updatePolicyNotAtomic.label = Do NOT Delay run control until updates are complete
|
|
||||||
|
|
||||||
menu.updateScope = Update Scope
|
menu.updateScope = Update Scope
|
||||||
action.visibleUpdateScope.label = Visible
|
action.visibleUpdateScope.label = Visible
|
||||||
action.allUpdateScope.label = Expanded
|
action.allUpdateScope.label = Expanded
|
||||||
|
|
|
@ -414,28 +414,6 @@
|
||||||
state="true"
|
state="true"
|
||||||
style="radio">
|
style="radio">
|
||||||
</action>
|
</action>
|
||||||
|
|
||||||
<menu id="updatesAtomic"
|
|
||||||
label="%menu.updatePolicyAtomic"
|
|
||||||
path="additions"/>
|
|
||||||
<action
|
|
||||||
class="org.eclipse.dd.dsf.debug.internal.provisional.ui.viewmodel.update.actions.AtomicUpdatePolicyAction"
|
|
||||||
id="org.eclipse.dd.dsf.debug.ui.UpdatePolicy_Atomic"
|
|
||||||
label="%action.updatePolicyAtomic.label"
|
|
||||||
menubarPath="updatesAtomic/additions"
|
|
||||||
style="radio">
|
|
||||||
</action>
|
|
||||||
<action
|
|
||||||
class="org.eclipse.dd.dsf.debug.internal.provisional.ui.viewmodel.update.actions.NonAtomicUpdatePolicyAction"
|
|
||||||
id="org.eclipse.dd.dsf.debug.ui.UpdatePolicy_NonAtomic"
|
|
||||||
label="%action.updatePolicyNotAtomic.label"
|
|
||||||
menubarPath="updatesAtomic/additions"
|
|
||||||
state="true"
|
|
||||||
style="radio">
|
|
||||||
</action>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</viewContribution>
|
</viewContribution>
|
||||||
|
|
||||||
</extension>
|
</extension>
|
||||||
|
|
|
@ -1,38 +0,0 @@
|
||||||
/*******************************************************************************
|
|
||||||
* Copyright (c) 2008 Wind River Systems and others.
|
|
||||||
* All rights reserved. This program and the accompanying materials
|
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
|
||||||
* which accompanies this distribution, and is available at
|
|
||||||
* http://www.eclipse.org/legal/epl-v10.html
|
|
||||||
*
|
|
||||||
* Contributors:
|
|
||||||
* Wind River Systems - initial API and implementation
|
|
||||||
*******************************************************************************/
|
|
||||||
|
|
||||||
package org.eclipse.dd.dsf.debug.internal.provisional.ui.viewmodel.update.actions;
|
|
||||||
|
|
||||||
import org.eclipse.dd.dsf.debug.internal.provisional.ui.viewmodel.actions.AbstractVMProviderActionDelegate;
|
|
||||||
import org.eclipse.dd.dsf.debug.internal.ui.DsfDebugUIPlugin;
|
|
||||||
import org.eclipse.jface.action.IAction;
|
|
||||||
import org.eclipse.jface.viewers.ISelection;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @since 1.1
|
|
||||||
*/
|
|
||||||
public class AtomicUpdatePolicyAction extends AbstractVMProviderActionDelegate {
|
|
||||||
|
|
||||||
private final static String ATOMIC_UPDATE = "ATOMIC_UPDATE";
|
|
||||||
|
|
||||||
public void run(IAction action) {
|
|
||||||
DsfDebugUIPlugin.getDefault().getPreferenceStore().setValue(ATOMIC_UPDATE, "true");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void selectionChanged(IAction action, ISelection selection) {
|
|
||||||
super.selectionChanged(action, selection);
|
|
||||||
|
|
||||||
this.getAction().setChecked(DsfDebugUIPlugin.getDefault().getPreferenceStore().getBoolean(ATOMIC_UPDATE));
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,37 +0,0 @@
|
||||||
/*******************************************************************************
|
|
||||||
* Copyright (c) 2008 Wind River Systems and others.
|
|
||||||
* All rights reserved. This program and the accompanying materials
|
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
|
||||||
* which accompanies this distribution, and is available at
|
|
||||||
* http://www.eclipse.org/legal/epl-v10.html
|
|
||||||
*
|
|
||||||
* Contributors:
|
|
||||||
* Wind River Systems - initial API and implementation
|
|
||||||
*******************************************************************************/
|
|
||||||
|
|
||||||
package org.eclipse.dd.dsf.debug.internal.provisional.ui.viewmodel.update.actions;
|
|
||||||
|
|
||||||
import org.eclipse.dd.dsf.debug.internal.provisional.ui.viewmodel.actions.AbstractVMProviderActionDelegate;
|
|
||||||
import org.eclipse.dd.dsf.debug.internal.ui.DsfDebugUIPlugin;
|
|
||||||
import org.eclipse.jface.action.IAction;
|
|
||||||
import org.eclipse.jface.viewers.ISelection;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @since 1.1
|
|
||||||
*/
|
|
||||||
public class NonAtomicUpdatePolicyAction extends AbstractVMProviderActionDelegate {
|
|
||||||
|
|
||||||
private final static String ATOMIC_UPDATE = "ATOMIC_UPDATE";
|
|
||||||
|
|
||||||
public void run(IAction action) {
|
|
||||||
DsfDebugUIPlugin.getDefault().getPreferenceStore().setValue(ATOMIC_UPDATE, "false");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void selectionChanged(IAction action, ISelection selection) {
|
|
||||||
super.selectionChanged(action, selection);
|
|
||||||
|
|
||||||
getAction().setChecked(DsfDebugUIPlugin.getDefault().getPreferenceStore().getBoolean(ATOMIC_UPDATE));
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
Loading…
Add table
Reference in a new issue