org.eclipse.xtend.ui.debug
Class ExpressionPluginAdapter

java.lang.Object
  extended by org.eclipse.xtend.ui.debug.ExpressionPluginAdapter
All Implemented Interfaces:
org.eclipse.emf.mwe.ui.debug.processing.PluginAdapter
Direct Known Subclasses:
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)

Field Summary
protected  ExpressionModelPresentation pres
           
protected  java.util.Set<BaseSpecialTreatment> specials
           
 
Constructor Summary
ExpressionPluginAdapter()
           
 
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  java.util.List<ISyntaxElement> getBody(ISyntaxElement exp)
           
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pres

protected ExpressionModelPresentation pres

specials

protected java.util.Set<BaseSpecialTreatment> specials
Constructor Detail

ExpressionPluginAdapter

public ExpressionPluginAdapter()
Method Detail

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

collectFirstLevelElements

protected java.util.List<ISyntaxElement> collectFirstLevelElements(IXtendXpandResource res)

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