This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class DynamicSectionOutputBuffer implements IOutputBuffer { | |
| private final StringBuilder buffer = new StringBuilder(); | |
| @Override | |
| public void printdyn(Object o) { | |
| buffer.append(o); | |
| } | |
| @Override |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class DeleteCascade extends FlockAcceptanceTest { | |
| private static final String strategy = "@cascade" + "\n" + | |
| "delete Family"; | |
| private static final String originalModel = "Families {" + | |
| " Family {" + | |
| " name: \"The Smiths\"" + | |
| " members: Person { " + | |
| " name: \"John\"" + |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/plugins/org.eclipse.epsilon.egl.engine/src/org/eclipse/epsilon/egl/execute/context/EglContext.java b/plugins/org.eclipse.epsilon.egl.engine/src/org/eclipse/epsilon/egl/execute/context/EglContext.java | |
| index 43a15f1..efaea0c 100644 | |
| --- a/plugins/org.eclipse.epsilon.egl.engine/src/org/eclipse/epsilon/egl/execute/context/EglContext.java | |
| +++ b/plugins/org.eclipse.epsilon.egl.engine/src/org/eclipse/epsilon/egl/execute/context/EglContext.java | |
| @@ -34,6 +34,7 @@ import org.eclipse.epsilon.egl.traceability.Template; | |
| import org.eclipse.epsilon.eol.execute.context.EolContext; | |
| import org.eclipse.epsilon.eol.execute.context.IEolContext; | |
| import org.eclipse.epsilon.eol.execute.context.Variable; | |
| +import org.eclipse.epsilon.eol.types.EolClasspathNativeTypeDelegate; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /******************************************************************************* | |
| * Copyright (c) 2008 The University of York. | |
| * All rights reserved. This program and the accompanying materials | |
| * are made available under the terms of the Eclipse Public License v1.0 | |
| * which accompanies this distribution, and is available at | |
| * http://www.eclipse.org/legal/epl-v10.html | |
| * | |
| * Contributors: | |
| * Dimitrios Kolovos - initial API and implementation | |
| ******************************************************************************/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.eclipse.epsilon.eol.dom.ast2dom.workbench; | |
| import java.io.File; | |
| import org.eclipse.epsilon.common.parse.problem.ParseProblem; | |
| import org.eclipse.epsilon.common.util.FileUtil; | |
| import org.eclipse.epsilon.emc.emf.EmfUtil; | |
| import org.eclipse.epsilon.emc.emf.InMemoryEmfModel; | |
| import org.eclipse.epsilon.eol.EolModule; | |
| import org.eclipse.epsilon.eol.dom.DomElement; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ruby '2.1.1' | |
| source "https://rubygems.org" | |
| gem "parser", "~> 2.1.4" | |
| gem "unparser", "~> 0.1.9" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.eclipse.epsilon.eol; | |
| import java.util.Arrays; | |
| import org.eclipse.epsilon.eol.exceptions.EolRuntimeException; | |
| import org.eclipse.epsilon.eol.execute.context.IEolContext; | |
| import org.eclipse.epsilon.eol.execute.introspection.IPropertyGetter; | |
| import org.eclipse.epsilon.eol.execute.introspection.recording.IPropertyAccess; | |
| import org.eclipse.epsilon.eol.execute.introspection.recording.PropertyAccessExecutionListener; | |
| import org.eclipse.epsilon.eol.execute.introspection.recording.PropertyAccessRecorder; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class Palindrome { | |
| // This method checks whether its input reads the same forwards | |
| // as backwards. For example, isPalindrome("noon") should return | |
| // true, but isPalindrome("night") should return false. | |
| // Note that this implementation contains a deliberate bug. | |
| public static boolean isPalindrome(String s) { | |
| if (s.length() == 0) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Based on JOrtho 05.11.2005, by i-net software (GNU General Public License) | |
| */ | |
| package com.inet.jortho; | |
| import java.util.Locale; | |
| import javax.swing.*; | |
| import javax.swing.event.*; | |
| import javax.swing.text.*; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class MoneyUnique | |
| attr_accessor :pounds, :pence | |
| def initialize(pounds, pence) | |
| @pounds = pounds | |
| @pence = pence | |
| end | |
| end | |
| four_quid = MoneyUnique.new(4, 0) |