Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 87734 Details for
Bug 216376
[expressions] Cleanup in variables and registers view model nodes: remove IVariable dependency.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Patch with changes.
2008-01-23_IVariable.patch (text/plain), 18.29 KB, created by
Pawel Piech
on 2008-01-23 23:40:31 EST
(
hide
)
Description:
Patch with changes.
Filename:
MIME Type:
Creator:
Pawel Piech
Created:
2008-01-23 23:40:31 EST
Size:
18.29 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.dd.dsf.debug.ui >Index: src/org/eclipse/dd/dsf/debug/ui/viewmodel/variable/VariableVMNode.java >=================================================================== >RCS file: /cvsroot/dsdp/org.eclipse.dd.dsf/plugins/org.eclipse.dd.dsf.debug.ui/src/org/eclipse/dd/dsf/debug/ui/viewmodel/variable/VariableVMNode.java,v >retrieving revision 1.2 >diff -u -r1.2 VariableVMNode.java >--- src/org/eclipse/dd/dsf/debug/ui/viewmodel/variable/VariableVMNode.java 21 Jan 2008 19:31:55 -0000 1.2 >+++ src/org/eclipse/dd/dsf/debug/ui/viewmodel/variable/VariableVMNode.java 24 Jan 2008 04:39:55 -0000 >@@ -48,12 +48,7 @@ > import org.eclipse.dd.dsf.ui.viewmodel.dm.AbstractDMVMProvider; > import org.eclipse.dd.dsf.ui.viewmodel.dm.CompositeDMVMContext; > import org.eclipse.dd.dsf.ui.viewmodel.dm.IDMVMContext; >-import org.eclipse.debug.core.DebugException; >-import org.eclipse.debug.core.ILaunch; >-import org.eclipse.debug.core.model.IDebugTarget; > import org.eclipse.debug.core.model.IExpression; >-import org.eclipse.debug.core.model.IValue; >-import org.eclipse.debug.core.model.IVariable; > import org.eclipse.debug.internal.ui.DebugUIPlugin; > import org.eclipse.debug.internal.ui.IInternalDebugUIConstants; > import org.eclipse.debug.internal.ui.viewers.model.provisional.IChildrenUpdate; >@@ -63,7 +58,7 @@ > import org.eclipse.debug.internal.ui.viewers.model.provisional.IModelDelta; > import org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext; > import org.eclipse.debug.internal.ui.viewers.model.provisional.IViewerUpdate; >-import org.eclipse.debug.ui.actions.IWatchExpressionFactoryAdapterExtension; >+import org.eclipse.debug.ui.actions.IWatchExpressionFactoryAdapter2; > import org.eclipse.jface.util.PropertyChangeEvent; > import org.eclipse.jface.viewers.CellEditor; > import org.eclipse.jface.viewers.ICellModifier; >@@ -128,7 +123,7 @@ > > private final SyncVariableDataAccess fSyncVariableDataAccess; > >- public class VariableExpressionVMC extends DMVMContext implements IFormattedValueVMContext, IVariable { >+ public class VariableExpressionVMC extends DMVMContext implements IFormattedValueVMContext { > > private IExpression fExpression; > >@@ -149,7 +144,7 @@ > public Object getAdapter(Class adapter) { > if (fExpression != null && adapter.isAssignableFrom(fExpression.getClass())) { > return fExpression; >- } else if (adapter.isAssignableFrom(IWatchExpressionFactoryAdapterExtension.class)) { >+ } else if (adapter.isAssignableFrom(IWatchExpressionFactoryAdapter2.class)) { > return fVariableExpressionFactory; > } else { > return super.getAdapter(adapter); >@@ -170,30 +165,17 @@ > public int hashCode() { > return super.hashCode() + (fExpression != null ? fExpression.hashCode() : 0); > } >- >- public String getName() throws DebugException { return toString(); } >- public String getReferenceTypeName() throws DebugException { return ""; } //$NON-NLS-1$ >- public IValue getValue() throws DebugException { return null; } >- public boolean hasValueChanged() throws DebugException { return false; } >- public void setValue(IValue value) throws DebugException {} >- public void setValue(String expression) throws DebugException {} >- public boolean supportsValueModification() { return false; } >- public boolean verifyValue(IValue value) throws DebugException { return false; } >- public boolean verifyValue(String expression) throws DebugException { return false; } >- public IDebugTarget getDebugTarget() { return null;} >- public ILaunch getLaunch() { return null; } >- public String getModelIdentifier() { return DsfDebugUIPlugin.PLUGIN_ID; } > } > >- protected class VariableExpressionFactory implements IWatchExpressionFactoryAdapterExtension { >+ protected class VariableExpressionFactory implements IWatchExpressionFactoryAdapter2 { > >- public boolean canCreateWatchExpression(IVariable variable) { >- return variable instanceof VariableExpressionVMC; >+ public boolean canCreateWatchExpression(Object element) { >+ return element instanceof VariableExpressionVMC; > } > >- public String createWatchExpression(IVariable variable) throws CoreException { >+ public String createWatchExpression(Object element) throws CoreException { > >- VariableExpressionVMC exprVmc = (VariableExpressionVMC) variable; >+ VariableExpressionVMC exprVmc = (VariableExpressionVMC) element; > > IExpressionDMContext exprDmc = DMContexts.getAncestorOfType(exprVmc.getDMContext(), IExpressionDMContext.class); > if (exprDmc != null) { >Index: src/org/eclipse/dd/dsf/debug/ui/viewmodel/register/RegisterBitFieldVMNode.java >=================================================================== >RCS file: /cvsroot/dsdp/org.eclipse.dd.dsf/plugins/org.eclipse.dd.dsf.debug.ui/src/org/eclipse/dd/dsf/debug/ui/viewmodel/register/RegisterBitFieldVMNode.java,v >retrieving revision 1.3 >diff -u -r1.3 RegisterBitFieldVMNode.java >--- src/org/eclipse/dd/dsf/debug/ui/viewmodel/register/RegisterBitFieldVMNode.java 21 Jan 2008 19:31:55 -0000 1.3 >+++ src/org/eclipse/dd/dsf/debug/ui/viewmodel/register/RegisterBitFieldVMNode.java 24 Jan 2008 04:39:54 -0000 >@@ -44,19 +44,14 @@ > import org.eclipse.dd.dsf.ui.viewmodel.VMDelta; > import org.eclipse.dd.dsf.ui.viewmodel.dm.AbstractDMVMProvider; > import org.eclipse.dd.dsf.ui.viewmodel.dm.IDMVMContext; >-import org.eclipse.debug.core.DebugException; >-import org.eclipse.debug.core.ILaunch; >-import org.eclipse.debug.core.model.IDebugTarget; > import org.eclipse.debug.core.model.IExpression; >-import org.eclipse.debug.core.model.IValue; >-import org.eclipse.debug.core.model.IVariable; > import org.eclipse.debug.internal.ui.viewers.model.provisional.IChildrenUpdate; > import org.eclipse.debug.internal.ui.viewers.model.provisional.IElementEditor; > import org.eclipse.debug.internal.ui.viewers.model.provisional.IElementLabelProvider; > import org.eclipse.debug.internal.ui.viewers.model.provisional.ILabelUpdate; > import org.eclipse.debug.internal.ui.viewers.model.provisional.IModelDelta; > import org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext; >-import org.eclipse.debug.ui.actions.IWatchExpressionFactoryAdapterExtension; >+import org.eclipse.debug.ui.actions.IWatchExpressionFactoryAdapter2; > import org.eclipse.jface.util.PropertyChangeEvent; > import org.eclipse.jface.viewers.CellEditor; > import org.eclipse.jface.viewers.ComboBoxCellEditor; >@@ -71,7 +66,7 @@ > { > > protected class BitFieldVMC extends DMVMContext >- implements IVariable, IFormattedValueVMContext >+ implements IFormattedValueVMContext > { > private IExpression fExpression; > public BitFieldVMC(IDMContext dmc) { >@@ -91,7 +86,7 @@ > public Object getAdapter(Class adapter) { > if (fExpression != null && adapter.isAssignableFrom(fExpression.getClass())) { > return fExpression; >- } else if (adapter.isAssignableFrom(IWatchExpressionFactoryAdapterExtension.class)) { >+ } else if (adapter.isAssignableFrom(IWatchExpressionFactoryAdapter2.class)) { > return fBitFieldExpressionFactory; > } else { > return super.getAdapter(adapter); >@@ -112,29 +107,16 @@ > public int hashCode() { > return super.hashCode() + (fExpression != null ? fExpression.hashCode() : 0); > } >- >- public String getName() throws DebugException { return toString(); } >- public String getReferenceTypeName() throws DebugException { return ""; } //$NON-NLS-1$ >- public IValue getValue() throws DebugException { return null; } >- public boolean hasValueChanged() throws DebugException { return false; } >- public void setValue(IValue value) throws DebugException {} >- public void setValue(String expression) throws DebugException {} >- public boolean supportsValueModification() { return false; } >- public boolean verifyValue(IValue value) throws DebugException { return false; } >- public boolean verifyValue(String expression) throws DebugException { return false; } >- public IDebugTarget getDebugTarget() { return null;} >- public ILaunch getLaunch() { return null; } >- public String getModelIdentifier() { return DsfDebugUIPlugin.PLUGIN_ID; } > } > >- protected class BitFieldExpressionFactory implements IWatchExpressionFactoryAdapterExtension { >+ protected class BitFieldExpressionFactory implements IWatchExpressionFactoryAdapter2 { > >- public boolean canCreateWatchExpression(IVariable variable) { >- return variable instanceof BitFieldVMC; >+ public boolean canCreateWatchExpression(Object element) { >+ return element instanceof BitFieldVMC; > } > >- public String createWatchExpression(IVariable variable) throws CoreException { >- BitFieldVMC bitFieldVmc = ((BitFieldVMC)variable); >+ public String createWatchExpression(Object element) throws CoreException { >+ BitFieldVMC bitFieldVmc = ((BitFieldVMC)element); > > StringBuffer exprBuf = new StringBuffer(); > IRegisterGroupDMContext groupDmc = >Index: src/org/eclipse/dd/dsf/debug/ui/viewmodel/register/RegisterGroupVMNode.java >=================================================================== >RCS file: /cvsroot/dsdp/org.eclipse.dd.dsf/plugins/org.eclipse.dd.dsf.debug.ui/src/org/eclipse/dd/dsf/debug/ui/viewmodel/register/RegisterGroupVMNode.java,v >retrieving revision 1.2 >diff -u -r1.2 RegisterGroupVMNode.java >--- src/org/eclipse/dd/dsf/debug/ui/viewmodel/register/RegisterGroupVMNode.java 21 Jan 2008 19:31:55 -0000 1.2 >+++ src/org/eclipse/dd/dsf/debug/ui/viewmodel/register/RegisterGroupVMNode.java 24 Jan 2008 04:39:54 -0000 >@@ -36,12 +36,7 @@ > import org.eclipse.dd.dsf.ui.viewmodel.dm.AbstractDMVMProvider; > import org.eclipse.dd.dsf.ui.viewmodel.dm.CompositeDMVMContext; > import org.eclipse.dd.dsf.ui.viewmodel.dm.IDMVMContext; >-import org.eclipse.debug.core.DebugException; >-import org.eclipse.debug.core.ILaunch; >-import org.eclipse.debug.core.model.IDebugTarget; > import org.eclipse.debug.core.model.IExpression; >-import org.eclipse.debug.core.model.IValue; >-import org.eclipse.debug.core.model.IVariable; > import org.eclipse.debug.internal.ui.DebugPluginImages; > import org.eclipse.debug.internal.ui.viewers.model.provisional.IChildrenUpdate; > import org.eclipse.debug.internal.ui.viewers.model.provisional.IElementEditor; >@@ -50,7 +45,7 @@ > import org.eclipse.debug.internal.ui.viewers.model.provisional.IModelDelta; > import org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext; > import org.eclipse.debug.ui.IDebugUIConstants; >-import org.eclipse.debug.ui.actions.IWatchExpressionFactoryAdapterExtension; >+import org.eclipse.debug.ui.actions.IWatchExpressionFactoryAdapter2; > import org.eclipse.jface.viewers.CellEditor; > import org.eclipse.jface.viewers.ICellModifier; > import org.eclipse.jface.viewers.TextCellEditor; >@@ -62,7 +57,7 @@ > implements IElementEditor, IElementLabelProvider > { > >- protected class RegisterGroupVMC extends DMVMContext implements IVariable >+ protected class RegisterGroupVMC extends DMVMContext > { > private IExpression fExpression; > public RegisterGroupVMC(IDMContext dmc) { >@@ -78,7 +73,7 @@ > public Object getAdapter(Class adapter) { > if (fExpression != null && adapter.isAssignableFrom(fExpression.getClass())) { > return fExpression; >- } else if (adapter.isAssignableFrom(IWatchExpressionFactoryAdapterExtension.class)) { >+ } else if (adapter.isAssignableFrom(IWatchExpressionFactoryAdapter2.class)) { > return fRegisterGroupExpressionFactory; > } else { > return super.getAdapter(adapter); >@@ -99,29 +94,16 @@ > public int hashCode() { > return super.hashCode() + (fExpression != null ? fExpression.hashCode() : 0); > } >- >- public String getName() throws DebugException { return toString(); } >- public String getReferenceTypeName() throws DebugException { return ""; } //$NON-NLS-1$ >- public IValue getValue() throws DebugException { return null; } >- public boolean hasValueChanged() throws DebugException { return false; } >- public void setValue(IValue value) throws DebugException {} >- public void setValue(String expression) throws DebugException {} >- public boolean supportsValueModification() { return false; } >- public boolean verifyValue(IValue value) throws DebugException { return false; } >- public boolean verifyValue(String expression) throws DebugException { return false; } >- public IDebugTarget getDebugTarget() { return null;} >- public ILaunch getLaunch() { return null; } >- public String getModelIdentifier() { return DsfDebugUIPlugin.PLUGIN_ID; } > } > >- protected class RegisterGroupExpressionFactory implements IWatchExpressionFactoryAdapterExtension { >+ protected class RegisterGroupExpressionFactory implements IWatchExpressionFactoryAdapter2 { > >- public boolean canCreateWatchExpression(IVariable variable) { >- return variable instanceof RegisterGroupVMC; >+ public boolean canCreateWatchExpression(Object element) { >+ return element instanceof RegisterGroupVMC; > } > >- public String createWatchExpression(IVariable variable) throws CoreException { >- RegisterGroupVMC registerVmc = ((RegisterGroupVMC)variable); >+ public String createWatchExpression(Object element) throws CoreException { >+ RegisterGroupVMC registerVmc = ((RegisterGroupVMC)element); > > StringBuffer exprBuf = new StringBuffer(); > IRegisterGroupDMContext groupDmc = DMContexts.getAncestorOfType(registerVmc.getDMContext(), IRegisterGroupDMContext.class); >Index: src/org/eclipse/dd/dsf/debug/ui/viewmodel/register/RegisterVMNode.java >=================================================================== >RCS file: /cvsroot/dsdp/org.eclipse.dd.dsf/plugins/org.eclipse.dd.dsf.debug.ui/src/org/eclipse/dd/dsf/debug/ui/viewmodel/register/RegisterVMNode.java,v >retrieving revision 1.2 >diff -u -r1.2 RegisterVMNode.java >--- src/org/eclipse/dd/dsf/debug/ui/viewmodel/register/RegisterVMNode.java 21 Jan 2008 19:31:55 -0000 1.2 >+++ src/org/eclipse/dd/dsf/debug/ui/viewmodel/register/RegisterVMNode.java 24 Jan 2008 04:39:55 -0000 >@@ -41,12 +41,7 @@ > import org.eclipse.dd.dsf.ui.viewmodel.dm.AbstractDMVMProvider; > import org.eclipse.dd.dsf.ui.viewmodel.dm.CompositeDMVMContext; > import org.eclipse.dd.dsf.ui.viewmodel.dm.IDMVMContext; >-import org.eclipse.debug.core.DebugException; >-import org.eclipse.debug.core.ILaunch; >-import org.eclipse.debug.core.model.IDebugTarget; > import org.eclipse.debug.core.model.IExpression; >-import org.eclipse.debug.core.model.IValue; >-import org.eclipse.debug.core.model.IVariable; > import org.eclipse.debug.internal.ui.DebugPluginImages; > import org.eclipse.debug.internal.ui.DebugUIPlugin; > import org.eclipse.debug.internal.ui.IInternalDebugUIConstants; >@@ -57,7 +52,7 @@ > import org.eclipse.debug.internal.ui.viewers.model.provisional.IModelDelta; > import org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext; > import org.eclipse.debug.ui.IDebugUIConstants; >-import org.eclipse.debug.ui.actions.IWatchExpressionFactoryAdapterExtension; >+import org.eclipse.debug.ui.actions.IWatchExpressionFactoryAdapter2; > import org.eclipse.jface.util.PropertyChangeEvent; > import org.eclipse.jface.viewers.CellEditor; > import org.eclipse.jface.viewers.ICellModifier; >@@ -70,7 +65,7 @@ > implements IElementEditor, IElementLabelProvider > { > protected class RegisterVMC extends DMVMContext >- implements IVariable, IFormattedValueVMContext >+ implements IFormattedValueVMContext > { > private IExpression fExpression; > public RegisterVMC(IDMContext dmc) { >@@ -86,7 +81,7 @@ > public Object getAdapter(Class adapter) { > if (fExpression != null && adapter.isAssignableFrom(fExpression.getClass())) { > return fExpression; >- } else if (adapter.isAssignableFrom(IWatchExpressionFactoryAdapterExtension.class)) { >+ } else if (adapter.isAssignableFrom(IWatchExpressionFactoryAdapter2.class)) { > return fRegisterExpressionFactory; > } else { > return super.getAdapter(adapter); >@@ -111,29 +106,16 @@ > public IFormattedValuePreferenceStore getPreferenceStore() { > return fFormattedPrefStore; > } >- >- public String getName() throws DebugException { return toString(); } >- public String getReferenceTypeName() throws DebugException { return ""; } //$NON-NLS-1$ >- public IValue getValue() throws DebugException { return null; } >- public boolean hasValueChanged() throws DebugException { return false; } >- public void setValue(IValue value) throws DebugException {} >- public void setValue(String expression) throws DebugException {} >- public boolean supportsValueModification() { return false; } >- public boolean verifyValue(IValue value) throws DebugException { return false; } >- public boolean verifyValue(String expression) throws DebugException { return false; } >- public IDebugTarget getDebugTarget() { return null;} >- public ILaunch getLaunch() { return null; } >- public String getModelIdentifier() { return DsfDebugUIPlugin.PLUGIN_ID; } > } > >- protected class RegisterExpressionFactory implements IWatchExpressionFactoryAdapterExtension { >+ protected class RegisterExpressionFactory implements IWatchExpressionFactoryAdapter2 { > >- public boolean canCreateWatchExpression(IVariable variable) { >- return variable instanceof RegisterVMC; >+ public boolean canCreateWatchExpression(Object element) { >+ return element instanceof RegisterVMC; > } > >- public String createWatchExpression(IVariable variable) throws CoreException { >- RegisterVMC registerVmc = ((RegisterVMC)variable); >+ public String createWatchExpression(Object element) throws CoreException { >+ RegisterVMC registerVmc = ((RegisterVMC)element); > > StringBuffer exprBuf = new StringBuffer(); > IRegisterGroupDMContext groupDmc =
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
cdtdoug
:
iplog-
Actions:
View
|
Diff
Attachments on
bug 216376
: 87734