Просмотр исходного кода

Deleted deprecated test plugin

Andreas Mülder 13 лет назад
Родитель
Сommit
adc3d3ffaf

+ 0 - 7
test-plugins/org.yakindu.sct.generator.java.test/.classpath

@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
-	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
-	<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
-	<classpathentry kind="src" path="src"/>
-	<classpathentry kind="output" path="bin"/>
-</classpath>

+ 0 - 28
test-plugins/org.yakindu.sct.generator.java.test/.project

@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
-	<name>org.yakindu.sct.generator.java.test</name>
-	<comment></comment>
-	<projects>
-	</projects>
-	<buildSpec>
-		<buildCommand>
-			<name>org.eclipse.jdt.core.javabuilder</name>
-			<arguments>
-			</arguments>
-		</buildCommand>
-		<buildCommand>
-			<name>org.eclipse.pde.ManifestBuilder</name>
-			<arguments>
-			</arguments>
-		</buildCommand>
-		<buildCommand>
-			<name>org.eclipse.pde.SchemaBuilder</name>
-			<arguments>
-			</arguments>
-		</buildCommand>
-	</buildSpec>
-	<natures>
-		<nature>org.eclipse.pde.PluginNature</nature>
-		<nature>org.eclipse.jdt.core.javanature</nature>
-	</natures>
-</projectDescription>

+ 0 - 8
test-plugins/org.yakindu.sct.generator.java.test/.settings/org.eclipse.jdt.core.prefs

@@ -1,8 +0,0 @@
-#Wed Oct 12 10:11:31 CEST 2011
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
-org.eclipse.jdt.core.compiler.compliance=1.6
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.6

+ 0 - 13
test-plugins/org.yakindu.sct.generator.java.test/META-INF/MANIFEST.MF

@@ -1,13 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: Java Generator Test Plugin
-Bundle-SymbolicName: org.yakindu.sct.generator.java.test
-Bundle-Version: 1.0.0.qualifier
-Bundle-Activator: org.yakindu.sct.generator.java.plain.test.Activator
-Require-Bundle: org.eclipse.core.runtime,
- org.eclipse.core.resources;bundle-version="3.7.100",
- org.yakindu.sct.model.sgraph;bundle-version="1.0.0",
- org.yakindu.sct.model.sexec;bundle-version="1.0.0",
- org.yakindu.sct.model.stext;bundle-version="1.0.0",
- org.junit4;bundle-version="4.8.1"
-Bundle-RequiredExecutionEnvironment: JavaSE-1.6

+ 0 - 4
test-plugins/org.yakindu.sct.generator.java.test/build.properties

@@ -1,4 +0,0 @@
-source.. = src/
-output.. = bin/
-bin.includes = META-INF/,\
-               .

+ 0 - 30
test-plugins/org.yakindu.sct.generator.java.test/src/org/yakindu/sct/generator/java/plain/test/Activator.java

@@ -1,30 +0,0 @@
-package org.yakindu.sct.generator.java.plain.test;
-
-import org.osgi.framework.BundleActivator;
-import org.osgi.framework.BundleContext;
-
-public class Activator implements BundleActivator {
-
-	private static BundleContext context;
-
-	static BundleContext getContext() {
-		return context;
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
-	 */
-	public void start(BundleContext bundleContext) throws Exception {
-		Activator.context = bundleContext;
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
-	 */
-	public void stop(BundleContext bundleContext) throws Exception {
-		Activator.context = null;
-	}
-
-}

+ 0 - 53
test-plugins/org.yakindu.sct.generator.java.test/src/org/yakindu/sct/generator/java/plain/test/generator/AbstractGeneratorTest.java

@@ -1,53 +0,0 @@
-package org.yakindu.sct.generator.java.plain.test.generator;
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.net.URL;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.NullProgressMonitor;
-
-/**
- * 
- * @author andreas muelder - Initial contribution and API
- * 
- */
-public class AbstractGeneratorTest {
-
-	public static void copyUrlFileToIFile(URL url, IFile file) throws Exception {
-		InputStream stream = null;
-		try {
-			stream = url.openStream();
-			file.create(stream, true, new NullProgressMonitor());
-		} finally {
-			if (stream != null) {
-				try {
-					stream.close();
-				} catch (IOException e) {
-				}
-			}
-		}
-	}
-
-	/**
-	 * Creates a new Test project Project
-	 */
-	protected IProject createTestProject(String projectName,
-			boolean deleteIfExists) throws Exception {
-		final IProject project = ResourcesPlugin.getWorkspace().getRoot()
-				.getProject(projectName);
-
-		if (project.exists() && deleteIfExists) {
-			project.delete(true, true, new NullProgressMonitor());
-		}
-
-		if (!project.exists() || deleteIfExists) {
-			project.create(new NullProgressMonitor());
-			project.open(new NullProgressMonitor());
-		}
-
-		return project;
-	}
-}