Skip to content

Commit

Permalink
Initial version
Browse files Browse the repository at this point in the history
  • Loading branch information
Dirk Baeumer committed Mar 31, 2004
1 parent b0eebc5 commit 5365759
Show file tree
Hide file tree
Showing 106 changed files with 8,304 additions and 0 deletions.
7 changes: 7 additions & 0 deletions org.eclipse.ltk.core.refactoring.tests/.classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="output" path="bin"/>
</classpath>
2 changes: 2 additions & 0 deletions org.eclipse.ltk.core.refactoring.tests/.cvsignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bin

28 changes: 28 additions & 0 deletions org.eclipse.ltk.core.refactoring.tests/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>org.eclipse.ltk.core.refactoring.tests</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>
4 changes: 4 additions & 0 deletions org.eclipse.ltk.core.refactoring.tests/.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<form>
<p/><p><b>Tips on working with this plug-in project</b></p><li>For the view of the new plug-in at a glance, go to the <img href="pageImage"/><a href="OverviewPage">Overview</a>.</li><li>You can test the contributions of this plug-in by launching another instance of the workbench. On the <b>Run</b> menu, click <b>Run As</b> and choose <img href="runTimeWorkbenchImage"/><a href="action.run">Run-time Workbench</a> from the available choices.</li><li>You can add more functionality to this plug-in by adding extensions using the <a href="action.newExtension">New Extension Wizard</a>.</li><li>The plug-in project contains Java code that you can debug. Place breakpoints in Java classes. On the <b>Run</b> menu, select <b>Debug As</b> and choose <img href="runTimeWorkbenchImage"/><a href="action.debug">Run-time Workbench</a> from the available choices.</li>
</form>
4 changes: 4 additions & 0 deletions org.eclipse.ltk.core.refactoring.tests/build.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
source.refcoretests.jar = src/
output.refcoretests.jar = bin/
bin.includes = plugin.xml,\
refcoretests.jar
12 changes: 12 additions & 0 deletions org.eclipse.ltk.core.refactoring.tests/plugin.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
###############################################################################
# Copyright (c) 2000, 2004 IBM Corporation and others.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Common Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/cpl-v10.html
#
# Contributors:
# IBM Corporation - initial API and implementation
###############################################################################
pluginName= Refactoring Core Test Plug-in
providerName= Eclipse.org
27 changes: 27 additions & 0 deletions org.eclipse.ltk.core.refactoring.tests/plugin.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<plugin
id="org.eclipse.ltk.core.refactoring.tests"
name="%pluginName"
version="3.0.0"
provider-name="%providerName"
class="org.eclipse.ltk.core.refactoring.tests.RefactoringCoreTestPlugin">

<runtime>
<library name="refcoretests.jar">
<export name="*"/>
<packages prefixes="org.eclipse.ltk.core.refactoring,org.eclipse.ltk.internal.core.refactoring"/>
</library>
</runtime>

<requires>
<import plugin="org.junit"/>
<import plugin="org.eclipse.core.expressions"/>
<import plugin="org.eclipse.core.filebuffers"/>
<import plugin="org.eclipse.core.resources"/>
<import plugin="org.eclipse.text"/>
<import plugin="org.eclipse.core.runtime.compatibility"/>
<import plugin="org.eclipse.ltk.core.refactoring"/>
</requires>

</plugin>
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*******************************************************************************
* Copyright (c) 2000, 2003 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.ltk.core.refactoring.tests;

import junit.framework.Test;
import junit.framework.TestSuite;

public class AllTests {

public static Test suite() {
TestSuite suite= new TestSuite("All Refactoring Core Tests"); //$NON-NLS-1$
suite.addTestSuite(EmptySuite.class);
return suite;
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*******************************************************************************
* Copyright (c) 2000, 2004 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.ltk.core.refactoring.tests;

import junit.framework.TestCase;

public class EmptySuite extends TestCase {

public void test0() {
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*******************************************************************************
* Copyright (c) 2000, 2004 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.ltk.core.refactoring.tests;

import org.eclipse.core.runtime.IPluginDescriptor;
import org.eclipse.core.runtime.Plugin;

public class RefactoringCoreTestPlugin extends Plugin {

private static RefactoringCoreTestPlugin fgDefault;

public RefactoringCoreTestPlugin(IPluginDescriptor descriptor) {
super(descriptor);
fgDefault= this;
}

public static RefactoringCoreTestPlugin getDefault() {
return fgDefault;
}

public static String getPluginId() {
return getDefault().getDescriptor().getUniqueIdentifier();
}
}
51 changes: 51 additions & 0 deletions org.eclipse.ltk.core.refactoring.tests/test.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<?xml version="1.0" encoding="UTF-8"?>

<project name="testsuite" default="run" basedir=".">
<!-- The property ${eclipse-home} should be passed into this script -->
<!-- Set a meaningful default value for when it is not. -->
<property name="eclipse-home" value="${basedir}\..\.."/>

<!-- sets the properties eclipse-home, and library-file -->
<property name="plugin-name" value="org.eclipse.ltk.core.refactoring.tests"/>
<property name="library-file"
value="${eclipse-home}/plugins/org.eclipse.test/library.xml"/>

<!-- This target holds all initialization code that needs to be done for -->
<!-- all tests that are to be run. Initialization for individual tests -->
<!-- should be done within the body of the suite target. -->
<target name="init">
<tstamp/>
<delete>
<fileset dir="${eclipse-home}" includes="org*.xml"/>
</delete>
</target>

<!-- This target defines the tests that need to be run. -->
<target name="suite">
<property name="refactoring-core-folder"
value="${eclipse-home}/refactoring_core_folder"/>
<delete dir="${refactoring-core-folder}" quiet="true"/>
<ant target="ui-test" antfile="${library-file}" dir="${eclipse-home}">
<property name="data-dir" value="${refactoring-core-folder}"/>
<property name="plugin-name" value="${plugin-name}"/>
<property name="classname"
value="org.eclipse.ltk.core.refactoring.tests.AllTests"/>
</ant>
</target>

<!-- This target holds code to cleanup the testing environment after -->
<!-- after all of the tests have been run. You can use this target to -->
<!-- delete temporary files that have been created. -->
<target name="cleanup">
</target>

<!-- This target runs the test suite. Any actions that need to happen -->
<!-- after all the tests have been run should go here. -->
<target name="run" depends="init,suite,cleanup">
<ant target="collect" antfile="${library-file}" dir="${eclipse-home}">
<property name="includes" value="org*.xml"/>
<property name="output-file" value="${plugin-name}.xml"/>
</ant>
</target>

</project>
7 changes: 7 additions & 0 deletions org.eclipse.ltk.core.refactoring/.classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="output" path="bin"/>
</classpath>
2 changes: 2 additions & 0 deletions org.eclipse.ltk.core.refactoring/.cvsignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bin

28 changes: 28 additions & 0 deletions org.eclipse.ltk.core.refactoring/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>org.eclipse.ltk.core.refactoring</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>
4 changes: 4 additions & 0 deletions org.eclipse.ltk.core.refactoring/build.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
source.refcore.jar = src/
output.refcore.jar = bin/
bin.includes = plugin.xml,\
refcore.jar
18 changes: 18 additions & 0 deletions org.eclipse.ltk.core.refactoring/plugin.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
###############################################################################
# Copyright (c) 2000, 2004 IBM Corporation and others.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Common Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/cpl-v10.html
#
# Contributors:
# IBM Corporation - initial API and implementation
###############################################################################
pluginName= Refactoring Core
providerName= Eclipse.org

renameParticipantsExtensionPoint= Rename Participants
createParticipantsExtensionPoint= Create Participants
deleteParticipantsExtensionPoint= Delete Participants
moveParticipantsExtensionPoint= Move Participants
copyParticipantsExtensionPoint= Copy Participants
31 changes: 31 additions & 0 deletions org.eclipse.ltk.core.refactoring/plugin.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<plugin
id="org.eclipse.ltk.core.refactoring"
name="%pluginName"
version="3.0.0"
provider-name="%providerName"
class="org.eclipse.ltk.internal.core.refactoring.RefactoringCorePlugin">

<runtime>
<library name="refcore.jar">
<export name="*"/>
<packages prefixes="org.eclipse.ltk.core.refactoring,org.eclipse.ltk.internal.core.refactoring"/>
</library>
</runtime>

<requires>
<import plugin="org.eclipse.core.expressions"/>
<import plugin="org.eclipse.core.filebuffers"/>
<import plugin="org.eclipse.core.resources"/>
<import plugin="org.eclipse.text"/>
<import plugin="org.eclipse.core.runtime.compatibility"/>
</requires>

<extension-point id="renameParticipants" name="%renameParticipantsExtensionPoint"/>
<extension-point id="createParticipants" name="%createParticipantsExtensionPoint"/>
<extension-point id="deleteParticipants" name="%deleteParticipantsExtensionPoint"/>
<extension-point id="moveParticipants" name="%moveParticipantsExtensionPoint"/>
<extension-point id="copyParticipants" name="%copyParticipantsExtensionPoint"/>

</plugin>
Loading

0 comments on commit 5365759

Please sign in to comment.