1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

[249428] - [update policy] Get rid of "Updates Atomic" submenu in Debug view.

This commit is contained in:
Pawel Piech 2008-10-02 04:31:55 +00:00
parent 08e3a84e8c
commit 0583283a84
4 changed files with 0 additions and 101 deletions

View file

@ -36,10 +36,6 @@ action.breakpointHitUpdatePolicy.label = Breakpoint Hit
action.manualUpdatePolicy.label = Manual
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
action.visibleUpdateScope.label = Visible
action.allUpdateScope.label = Expanded

View file

@ -414,28 +414,6 @@
state="true"
style="radio">
</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>
</extension>

View file

@ -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));
}
}

View file

@ -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));
}
}