org.eclipse.xtend.ui.debug
Class ExpressionPluginAdapter
java.lang.Object
org.eclipse.xtend.ui.debug.ExpressionPluginAdapter
- All Implemented Interfaces:
- org.eclipse.emf.mwe.ui.debug.processing.PluginAdapter
- Direct Known Subclasses:
- CheckPluginAdapter, XpandPluginAdapter
public class ExpressionPluginAdapter
- extends java.lang.Object
- implements org.eclipse.emf.mwe.ui.debug.processing.PluginAdapter
The IPluginAdapter implementation for Expressions.
- Author:
- Clemens Kadura (zAJKa), Karsten Thoms - maintenance, Aykut Kilic (itemis) - Bug#465802,480646
|
Method Summary |
boolean |
canHandleResourceExtension(java.lang.String ext)
|
boolean |
canHandleType(java.lang.String type)
|
org.eclipse.debug.core.model.IBreakpoint |
checkBreakpoints(org.eclipse.debug.core.model.IBreakpoint[] bps,
org.eclipse.core.resources.IResource resource,
int start,
int end,
int line)
|
protected java.util.List<ISyntaxElement> |
collectFirstLevelElements(IXtendXpandResource res)
|
org.eclipse.emf.mwe.ui.debug.model.MWEBreakpoint |
createBreakpoint(org.eclipse.core.resources.IResource resource,
int start,
int end,
int line)
|
protected ISyntaxElement |
findElementForPosition(org.eclipse.core.resources.IResource resource,
int position,
int line)
|
protected java.util.List<ISyntaxElement> |
getBody(ISyntaxElement exp)
|
protected ISyntaxElement |
getBodyOfRootElement(ISyntaxElement elem)
|
protected ISyntaxElement |
getContainingChild(SyntaxElement parent,
java.util.Collection<SyntaxElement> children,
int position)
|
protected ISyntaxElement |
getContainingElement(SyntaxElement se,
int position)
|
protected ISyntaxElement |
getContainingRootElement(org.eclipse.core.resources.IResource resource,
int position)
|
java.lang.String |
getEditorId()
|
org.eclipse.swt.graphics.Image |
getIcon()
|
protected java.lang.String |
getRequiredExtension()
|
boolean |
isToggleBpEnabled(org.eclipse.core.resources.IResource resource,
int start,
int end,
int line)
|
protected boolean |
isValidReturnElement(ISyntaxElement se)
|
protected int |
shiftPositionIfInside(int currentPosition,
SyntaxElement lowerBound,
SyntaxElement upperBound)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
pres
protected ExpressionModelPresentation pres
specials
protected java.util.Set<BaseSpecialTreatment> specials
ExpressionPluginAdapter
public ExpressionPluginAdapter()
getRequiredExtension
protected java.lang.String getRequiredExtension()
canHandleResourceExtension
public boolean canHandleResourceExtension(java.lang.String ext)
- Specified by:
canHandleResourceExtension in interface org.eclipse.emf.mwe.ui.debug.processing.PluginAdapter
canHandleType
public boolean canHandleType(java.lang.String type)
- Specified by:
canHandleType in interface org.eclipse.emf.mwe.ui.debug.processing.PluginAdapter
getEditorId
public java.lang.String getEditorId()
- Specified by:
getEditorId in interface org.eclipse.emf.mwe.ui.debug.processing.PluginAdapter
isToggleBpEnabled
public boolean isToggleBpEnabled(org.eclipse.core.resources.IResource resource,
int start,
int end,
int line)
- Specified by:
isToggleBpEnabled in interface org.eclipse.emf.mwe.ui.debug.processing.PluginAdapter
createBreakpoint
public org.eclipse.emf.mwe.ui.debug.model.MWEBreakpoint createBreakpoint(org.eclipse.core.resources.IResource resource,
int start,
int end,
int line)
throws org.eclipse.core.runtime.CoreException
- Specified by:
createBreakpoint in interface org.eclipse.emf.mwe.ui.debug.processing.PluginAdapter
- Throws:
org.eclipse.core.runtime.CoreException
checkBreakpoints
public org.eclipse.debug.core.model.IBreakpoint checkBreakpoints(org.eclipse.debug.core.model.IBreakpoint[] bps,
org.eclipse.core.resources.IResource resource,
int start,
int end,
int line)
throws org.eclipse.core.runtime.CoreException
- Specified by:
checkBreakpoints in interface org.eclipse.emf.mwe.ui.debug.processing.PluginAdapter
- Throws:
org.eclipse.core.runtime.CoreException
findElementForPosition
protected ISyntaxElement findElementForPosition(org.eclipse.core.resources.IResource resource,
int position,
int line)
- Since:
- 2.2
shiftPositionIfInside
protected int shiftPositionIfInside(int currentPosition,
SyntaxElement lowerBound,
SyntaxElement upperBound)
- Since:
- 2.2
getContainingElement
protected ISyntaxElement getContainingElement(SyntaxElement se,
int position)
- Since:
- 2.2
getContainingChild
protected ISyntaxElement getContainingChild(SyntaxElement parent,
java.util.Collection<SyntaxElement> children,
int position)
- Since:
- 2.2
getContainingRootElement
protected ISyntaxElement getContainingRootElement(org.eclipse.core.resources.IResource resource,
int position)
- Since:
- 2.2
collectFirstLevelElements
protected java.util.List<ISyntaxElement> collectFirstLevelElements(IXtendXpandResource res)
getBodyOfRootElement
protected ISyntaxElement getBodyOfRootElement(ISyntaxElement elem)
- Since:
- 2.2
getBody
protected java.util.List<ISyntaxElement> getBody(ISyntaxElement exp)
isValidReturnElement
protected boolean isValidReturnElement(ISyntaxElement se)
getIcon
public org.eclipse.swt.graphics.Image getIcon()
- Specified by:
getIcon in interface org.eclipse.emf.mwe.ui.debug.processing.PluginAdapter