Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormrussell2014-11-06 17:06:06 +0000
committermrussell2014-11-06 17:06:06 +0000
commita607cb5122124872645a202ac842ed26b3a46259 (patch)
treed92c855f61a10f12022206565badcdd028e1d1d3
parentc76d3e8635cb63052cc06ca08eedba965d2d44b7 (diff)
downloadorg.eclipse.windowbuilder-a607cb5122124872645a202ac842ed26b3a46259.tar.gz
org.eclipse.windowbuilder-a607cb5122124872645a202ac842ed26b3a46259.tar.xz
org.eclipse.windowbuilder-a607cb5122124872645a202ac842ed26b3a46259.zip
Fixed build error for missing implementation.
-rw-r--r--org.eclipse.wb.core.java/src/org/eclipse/wb/internal/core/utils/ast/binding/DesignerMethodBinding.java17
1 files changed, 15 insertions, 2 deletions
diff --git a/org.eclipse.wb.core.java/src/org/eclipse/wb/internal/core/utils/ast/binding/DesignerMethodBinding.java b/org.eclipse.wb.core.java/src/org/eclipse/wb/internal/core/utils/ast/binding/DesignerMethodBinding.java
index 285e8a3e..e5433492 100644
--- a/org.eclipse.wb.core.java/src/org/eclipse/wb/internal/core/utils/ast/binding/DesignerMethodBinding.java
+++ b/org.eclipse.wb.core.java/src/org/eclipse/wb/internal/core/utils/ast/binding/DesignerMethodBinding.java
@@ -20,11 +20,11 @@ import org.apache.commons.lang.ArrayUtils;
/**
* Implementation of {@link IMethodBinding}.
- *
+ *
* We use our implementations of bindings because standard ones reference objects from internal
* compiler's AST. This is not problem for Eclipse itself, but we parse very often, for every change
* in editor, so we can end up with a lot of referenced objects.
- *
+ *
* @author scheglov_ke
* @coverage core.util.ast
*/
@@ -38,6 +38,7 @@ public final class DesignerMethodBinding implements IMethodBinding {
private ITypeBinding[] m_parameterTypes;
private ITypeBinding[] m_exceptionTypes;
private DesignerMethodBinding m_methodDeclaration;
+ private ITypeBinding m_methodRecieverType;
////////////////////////////////////////////////////////////////////////////
//
@@ -75,6 +76,14 @@ public final class DesignerMethodBinding implements IMethodBinding {
m_methodDeclaration = context.get(methodDeclaration);
}
}
+ {
+ ITypeBinding methodRecieverType = binding.getReturnType();
+ if (m_constructor) {
+ m_methodRecieverType = null;
+ } else {
+ m_methodRecieverType = context.get(methodRecieverType);
+ }
+ }
}
////////////////////////////////////////////////////////////////////////////
@@ -146,6 +155,10 @@ public final class DesignerMethodBinding implements IMethodBinding {
return m_returnType;
}
+ public ITypeBinding getDeclaredReceiverType() {
+ return m_methodRecieverType;
+ }
+
public ITypeBinding[] getTypeArguments() {
throw new IllegalArgumentException();
}

Back to the top