Skip to content

Instantly share code, notes, and snippets.

View OszkarSemerath's full-sized avatar

Oszkár Semeráth OszkarSemerath

View GitHub Profile
@OszkarSemerath
OszkarSemerath / stack trace
Created August 7, 2012 16:33
Exception stack trace
!ENTRY org.eclipse.jdt.core 4 4 2012-08-07 18:28:26.200
!MESSAGE Could not retrieve interfaces
!STACK 0
org.eclipse.jdt.internal.compiler.problem.AbortCompilation: Pb(324) The type org.eclipse.viatra2.emf.incquery.base.itc.igraph.ITcObserver cannot be resolved. It is indirectly referenced from required .class files
at org.eclipse.jdt.internal.compiler.problem.ProblemHandler.handle(ProblemHandler.java:135)
at org.eclipse.jdt.internal.compiler.problem.ProblemHandler.handle(ProblemHandler.java:201)
at org.eclipse.jdt.internal.compiler.problem.ProblemReporter.handle(ProblemReporter.java:2132)
at org.eclipse.jdt.internal.compiler.problem.ProblemReporter.isClassPathCorrect(ProblemReporter.java:4162)
at org.eclipse.jdt.internal.compiler.lookup.UnresolvedReferenceBinding.resolve(UnresolvedReferenceBinding.java:59)
at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.resolveType(BinaryTypeBinding.java:131)
@OszkarSemerath
OszkarSemerath / bughunter2.eiq
Created August 6, 2012 16:36
matching bughunter2.eiq to testpatterns.eiq
package bughunter2
import "http://www.eclipse.org/viatra2/patternlanguage/core/PatternLanguage"
import "http://www.eclipse.org/viatra2/patternlanguage/EMFPatternLanguage"
import "http://www.eclipse.org/emf/2002/Ecore"
@QueryExplorer(display = true) pattern C2(variable:Variable) =
{
VariableReference.variable(_,variable);
}
@OszkarSemerath
OszkarSemerath / bughunter.eiq
Created August 1, 2012 09:25
EClassifier type in parameter list doesn't work in some cases
package bughunter
import "http://www.eclipse.org/viatra2/patternlanguage/core/PatternLanguage"
import "http://www.eclipse.org/viatra2/patternlanguage/EMFPatternLanguage"
import "http://www.eclipse.org/emf/2002/Ecore"
@QueryExplorer(display = true) pattern ClassConstrainInDirectBodyByEntities(pat:Pattern, body:PatternBody, variable:Variable, class:EClassifier, constraint:EClassifierConstraint) =
{
Pattern.bodies(pat,body);
PatternBody.constraints(body,constraint);