diff options
author | Alvaro Sanchez-Leon | 2014-10-24 15:42:04 +0000 |
---|---|---|
committer | Alvaro Sanchez-Leon | 2014-12-09 15:37:26 +0000 |
commit | 3ab1678bc370c56cb41f6830a872e806555ef61a (patch) | |
tree | 18157c35fbde11d23a71f0947d8dd8ced5337caf /dsf/org.eclipse.cdt.dsf/src | |
parent | a830f285fe92a58fb9689020c3ddc605b0d36867 (diff) | |
download | org.eclipse.cdt-3ab1678bc370c56cb41f6830a872e806555ef61a.tar.gz org.eclipse.cdt-3ab1678bc370c56cb41f6830a872e806555ef61a.tar.xz org.eclipse.cdt-3ab1678bc370c56cb41f6830a872e806555ef61a.zip |
Bug 235747: [registers] Allow user to edit the register groups.
Bug 235747: Move register group actions to the command framework.
Change-Id: Ife5aefc1a1609309724db01d92a35750e25def24
Signed-off-by: Alvaro Sanchez-Leon <alvsan09@gmail.com>
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/13980
Tested-by: Hudson CI
Diffstat (limited to 'dsf/org.eclipse.cdt.dsf/src')
-rw-r--r-- | dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/debug/service/IRegisters2.java | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/debug/service/IRegisters2.java b/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/debug/service/IRegisters2.java new file mode 100644 index 00000000000..6939580d867 --- /dev/null +++ b/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/debug/service/IRegisters2.java @@ -0,0 +1,90 @@ +/******************************************************************************* + * Copyright (c) 2014 Ericsson 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: + * Alvaro Sanchez-Leon (Ericsson) - First API (Bug 235747) + *******************************************************************************/ + +package org.eclipse.cdt.dsf.debug.service; + +import org.eclipse.cdt.dsf.concurrent.DataRequestMonitor; +import org.eclipse.cdt.dsf.concurrent.RequestMonitor; +import org.eclipse.cdt.dsf.datamodel.IDMContext; + +/** + * Service extension of IRegisters to manage user defined Register Groups + * @since 2.6 + */ +public interface IRegisters2 extends IRegisters { + /** + * Returns a boolean indicating if it is allowed to add a new register group with the given selected context + * + * @param rm - monitor encapsulating the response + */ + public void canAddRegisterGroup(IDMContext ctx, DataRequestMonitor<Boolean> rm); + + /** + * Add a Register group referencing the given registers + * + * @param ctx - A context containing a parent group context e.g. IContainerDMContext + * @param name - register group name + * @param registers - registers part of this new group + * @param rm - request monitor + */ + public void addRegisterGroup(IDMContext ctx, String name, IRegisterDMContext[] registers, RequestMonitor rm); + + /** + * Returns a boolean indicating if it is allowed to edit the given group + * + * @param rm - monitor encapsulating the response + */ + public void canEditRegisterGroup(IRegisterGroupDMContext group, + DataRequestMonitor<Boolean> rm); + + /** + * Edit the given register group and update its name and associated registers + * + * @param group - group to be edited + * @param groupName - new group name or null if name is not to be changed + * @param registers - new list of registers for this group or null if the list of registers is not be changed + * @param rm - request monitor + */ + public void editRegisterGroup(IRegisterGroupDMContext group, String groupName, + IRegisterDMContext[] registers, RequestMonitor rm); + + /** + * Returns a boolean indicating if it is allowed to remove the given registers groups + * @param groups - list of register group contexts to be removed + * @param rm + */ + public void canRemoveRegisterGroups(IRegisterGroupDMContext[] groups, + DataRequestMonitor<Boolean> rm); + + /** + * Remove the given register groups + * + * @param groups - groups that shall be removed + * @param rm - request monitor + */ + public void removeRegisterGroups(IRegisterGroupDMContext[] groups, RequestMonitor rm); + + /** + * Returns a boolean indicating if it is allowed to restore to the default groups + * @param ctx + * @param rm + */ + public void canRestoreDefaultGroups(IDMContext ctx, DataRequestMonitor<Boolean> rm); + + /** + * Remove all the user defined register groups and restore the default ones to their + * original state. + * + * @param rm - request monitor + */ + public void restoreDefaultGroups(IDMContext selectionContext, RequestMonitor rm); + +} |