Skip to content
Snippets Groups Projects
Commit e08a04c2 authored by Vesa Lappalainen's avatar Vesa Lappalainen :bicyclist:
Browse files

siirto gitiin

parent 9237824b
No related branches found
No related tags found
No related merge requests found
Showing
with 1549 additions and 0 deletions
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
<classpathentry exported="true" kind="lib" path="bin" sourcepath="bin"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER">
<attributes>
<attribute name="module" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
<classpathentry kind="output" path="bin"/>
</classpath>
##############################
## Java
##############################
.mtj.tmp/
*.class
*.jar
*.war
*.ear
*.nar
hs_err_pid*
.svn/
##############################
## Maven
##############################
target/
pom.xml.tag
pom.xml.releaseBackup
pom.xml.versionsBackup
pom.xml.next
release.properties
dependency-reduced-pom.xml
buildNumber.properties
.mvn/timing.properties
.mvn/wrapper/maven-wrapper.jar
##############################
## Gradle
##############################
bin/
build/
.gradle
.gradletasknamecache
gradle-app.setting
!gradle-wrapper.jar
##############################
## IntelliJ
##############################
out/
.idea/
.idea_modules/
*.iml
*.ipr
*.iws
##############################
## Eclipse
##############################
.settings/
bin/
tmp/
.metadata
*.tmp
*.bak
*.swp
*~.nib
local.properties
.loadpath
##############################
## NetBeans
##############################
nbproject/private/
build/
nbbuild/
dist/
nbdist/
nbactions.xml
nb-configuration.xml
##############################
## OS X
##############################
.DS_Store
\ No newline at end of file
.pmd 0 → 100644
This diff is collapsed.
.project 0 → 100644
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>comtestplugin</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>
<linkedResources>
<link>
<name>src/comtest</name>
<type>2</type>
<location>E:/kurssit/ohj2/comtest/comtest</location>
</link>
</linkedResources>
</projectDescription>
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %Bundle-Name
Bundle-SymbolicName: comtestplug; singleton:=true
Bundle-Version: 1.0.13
Bundle-Activator: comtestplug.Activator
Bundle-Localization: plugin
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
org.eclipse.core.resources,
org.eclipse.jdt.junit,
org.eclipse.debug.ui,
org.eclipse.jdt.ui,
org.eclipse.jface.text
Bundle-ActivationPolicy: lazy
Bundle-ClassPath: bin/
output.. = bin/
bin.includes = META-INF/,\
.classpath,\
build.properties,\
.settings/,\
bin/,\
plugin.xml,\
plugin.properties
jars.compile.order = .
bin.excludes = bin/comtest/Mock.class,\
bin/comtest/ComTestTest.class,\
bin/comtest/StringUtilitiesTest.class,\
bin/comtest/StringsTest.class
src.includes = src/
<?xml version="1.0" encoding="UTF-8"?>
<project default="plugin_export" name="build">
<target name="plugin_export">
<pde.exportPlugins destination="e:\kurssit\ohj2\comtestplugin\plugins" exportSource="false" exportType="directory" filename="comtestplug_1.0.8.jar" plugins="comtestplug" useJARFormat="true"/>
</target>
</project>
#Properties file for comtestplug
Bundle-Name = Comtestplug Plug-in
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?>
<plugin>
<!-- Plugin for ComTest. Category, actionSets and actions
The default keyshotcuts does not work???
Creates many instances of actions plugin, one
for PopUps and one for Windows. See Java comments from
GenerateTest.java.
The shortcut is possible to change manually from:
Window/Preferences/General/Keys/Modify/
Category: ComTest.
If you choose shortcut that is allready in use, remove
the old one. The shortcut works only for last item run
from PopUpMenu. Can somebody fix that?
It could be nice to have also toolbar icon?
Vesa Lappalainen 2.12.2007
To develop this plugin,
1) first pick ComTest project from:
https://svn.cc.jyu.fi/srv/svn/comtest/proto/vesal/trunk (to directory comtest)
2) then pick comtestplugin project from
https://svn.cc.jyu.fi/srv/svn/comtest/proto/ji/trunk (to directory comtestplugin)
3) then try to change the Eclipse project variabale
comtestfolder
needed. I have that variable in WorkSpace configuration:
.metadata\.plugins\org.eclipse.core.runtime\.settings\org.eclipse.core.resources.prefs:
pathvariable.comtestfolder=E\:/kurssit/ohj2/comtest/comtest
Create Java project comtest from directory ComTest
Create Plugin project comtestplugin from directory comtestplugin
4) Now ComTest should be a linked directory under comtestplug/src path.
This is done by .project file like:
<linkedResources>
<link>
<name>src/comtest</name>
<type>2</type>
<locationURI>comtestfolder</locationURI>
</link>
</linkedResources>
Then variable comtestfolder is defined in:
Window/Preferences/General/Workspace/Linked Resources
and then add comtestfolder f.ex to
e:\kurssit\ohj2\comtest\comtest
5) Run test or debug by selecting the plugin project name by
right mouse button and then run or debug as Eclipse Application
6) To create a new plugin .jar open the file plugin.xml in Eclipse
and go Overview-tab and hit link "Export Wizard".
7) Please choose directory so that it is your comtestplug
dircetory.
8) After creating the new plugin, copy the plugin to your Eclipse
plugins directory and restart Eclipse.
9) Please commit your changes. And please comment to source code
what you have done.
-->
<extension point="org.eclipse.ui.commands">
<category
name="ComTest"
description="ComTest actions"
id="comtestplug.category.comtest" />
<command
name="ComTest run"
description="Run comtest plugin"
categoryId="comtestplug.category.comtest"
id="comtestplug.generateAndRun.run" />
</extension>
<extension point = "org.eclipse.ui.actionSets">
<actionSet id="comtestplug.actionSet" label="ComTest Actions" visible="true">
<!-- <menu id="comtest.RunMenu"
label="ComTest Menu"
path="additions">
<separator name="group1" />
<separator name="option1" />
</menu>
-->
<action
class="comtestplug.popup.actions.GenerateTestAndRunJUnit"
id="comtestplug.generateAndRun.action"
label="Generate, Run JUnit, Action"
tooltip="Generate test and then run test"
definitionId="comtestplug.generateAndRun.run"
>
</action>
</actionSet>
</extension>
<extension
point="org.eclipse.ui.popupMenus">
<objectContribution
adaptable="true"
id="comtestplug.contribution1"
nameFilter="*.java"
objectClass="org.eclipse.core.resources.IFile">
<menu
label="ComTest"
path="additions"
id="comtestplug.menu">
<separator
name="group">
</separator>
</menu>
<action
label="Generate tests"
class="comtestplug.popup.actions.GenerateTest"
menubarPath="comtestplug.menu/group"
id="comtestplug.newAction"
>
</action>
<action
class="comtestplug.popup.actions.GenerateTestAndRunJUnit"
id="comtestplug.generateAndRun"
label="Generate, Run JUnit"
tooltip="Generate test and then run test"
menubarPath="comtestplug.menu/group"
definitionId="comtestplug.generateAndRun.run"
>
<!-- enablesFor="1" OK for many but run just the firts -->
</action>
</objectContribution>
</extension>
<extension point="org.eclipse.ui.bindings">
<!--
for some reason (object not created) can not reference to comtestplug.generateAndRun.run...
<key sequence="Ctrl+3" commandId="comtestplug.generateAndRun.action.run" schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" contextId="org.eclipse.ui.contexts.window" />
<key sequence="Ctrl+4" commandId="comtestplug.generateAndRun.run" schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" />
-->
</extension>
<extension
point="org.eclipse.ui.preferencePages">
<page
name="ComTest Preferences"
class="comtestplug.preferences.ComTestPreferencePage"
id="comtestplug.preferences.ComTestPreferencePage">
</page>
</extension>
<extension
point="org.eclipse.core.runtime.preferences">
<initializer
class="comtestplug.preferences.PreferenceInitializer">
</initializer>
</extension>
<extension
point="org.eclipse.ui.propertyPages">
<page
objectClass="org.eclipse.core.resources.IFile"
name="ComTest Page"
nameFilter="*.*"
class="comtestplug.properties.ComTestPropertyPage"
id="comtestplug.properties.samplePropertyPage">
</page>
</extension>
<extension
id="id1"
point="org.eclipse.jdt.ui.javaCompletionProposalComputer">
<javaCompletionProposalComputer
activate="true"
categoryId="org.eclipse.ui.texteditor.textual_proposals"
class="comtestplug.ui.text.java.ComtestProposalComputer">
<partition type="__java_javadoc"/>
</javaCompletionProposalComputer>
</extension>
</plugin>
<?xml version="1.0" encoding="UTF-8"?>
<project default="plugin_export" name="build">
<target name="plugin_export">
<pde.exportPlugins destination="e:\temp" exportSource="false" exportType="zip" filename="comtest13.jar.zip" plugins="comtestplug" useJARFormat="true"/>
</target>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<project default="plugin_export" name="build">
<target name="plugin_export">
<pde.exportPlugins destination="E:\kurssit\ohj2\comtestplugin" exportSource="false" exportType="directory" plugins="comtestplug" useJARFormat="true"/>
</target>
<taskdef resource="net/sf/antcontrib/antcontrib.properties" classpath="E:/c/Java_ME_platform_SDK_3.0/toolbar/mobility8/modules/ext/ant-contrib-1.0b3.jar"/>
<taskdef resource="net/sf/antcontrib/antlib.xml" classpath="E:/c/Java_ME_platform_SDK_3.0/toolbar/mobility8/modules/ext/ant-contrib-1.0b3.jar"/>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
<classpathentry exported="true" kind="lib" path="bin" sourcepath="bin"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER">
<attributes>
<attribute name="module" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
<classpathentry kind="output" path="bin"/>
</classpath>
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %Bundle-Name
Bundle-SymbolicName: comtestplug; singleton:=true
Bundle-Version: 1.0.20
Bundle-Activator: comtestplug.Activator
Bundle-Localization: plugin
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
org.eclipse.core.resources,
org.eclipse.jdt.junit,
org.eclipse.debug.ui,
org.eclipse.jdt.ui,
org.eclipse.jface.text
Bundle-ActivationPolicy: lazy
Bundle-ClassPath: bin/
output.. = bin/
bin.includes = META-INF/,\
.classpath,\
build.properties,\
.settings/,\
bin/,\
plugin.xml,\
plugin.properties
jars.compile.order = .
bin.excludes = bin/comtest/Mock.class,\
bin/comtest/ComTestTest.class,\
bin/comtest/StringUtilitiesTest.class,\
bin/comtest/StringsTest.class
src.includes = src/
#Properties file for comtestplug
Bundle-Name = Comtestplug Plug-in
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?>
<plugin>
<!-- Plugin for ComTest. Category, actionSets and actions
The default keyshotcuts does not work???
Creates many instances of actions plugin, one
for PopUps and one for Windows. See Java comments from
GenerateTest.java.
The shortcut is possible to change manually from:
Window/Preferences/General/Keys/Modify/
Category: ComTest.
If you choose shortcut that is allready in use, remove
the old one. The shortcut works only for last item run
from PopUpMenu. Can somebody fix that?
It could be nice to have also toolbar icon?
Vesa Lappalainen 2.12.2007
To develop this plugin,
1) first pick ComTest project from:
https://svn.cc.jyu.fi/srv/svn/comtest/proto/vesal/trunk (to directory comtest)
2) then pick comtestplugin project from
https://svn.cc.jyu.fi/srv/svn/comtest/proto/ji/trunk (to directory comtestplugin)
3) then try to change the Eclipse project variabale
comtestfolder
needed. I have that variable in WorkSpace configuration:
.metadata\.plugins\org.eclipse.core.runtime\.settings\org.eclipse.core.resources.prefs:
pathvariable.comtestfolder=E\:/kurssit/ohj2/comtest/comtest
Create Java project comtest from directory ComTest
Create Plugin project comtestplugin from directory comtestplugin
4) Now ComTest should be a linked directory under comtestplug/src path.
This is done by .project file like:
<linkedResources>
<link>
<name>src/comtest</name>
<type>2</type>
<locationURI>comtestfolder</locationURI>
</link>
</linkedResources>
Then variable comtestfolder is defined in:
Window/Preferences/General/Workspace/Linked Resources
and then add comtestfolder f.ex to
e:\kurssit\ohj2\comtest\comtest
5) Run test or debug by selecting the plugin project name by
right mouse button and then run or debug as Eclipse Application
6) To create a new plugin .jar open the file plugin.xml in Eclipse
and go Overview-tab and hit link "Export Wizard".
7) Please choose directory so that it is your comtestplug
dircetory.
8) After creating the new plugin, copy the plugin to your Eclipse
plugins directory and restart Eclipse.
9) Please commit your changes. And please comment to source code
what you have done.
-->
<extension point="org.eclipse.ui.commands">
<category
name="ComTest"
description="ComTest actions"
id="comtestplug.category.comtest" />
<command
name="ComTest run"
description="Run comtest plugin"
categoryId="comtestplug.category.comtest"
id="comtestplug.generateAndRun.run" />
</extension>
<extension point = "org.eclipse.ui.actionSets">
<actionSet id="comtestplug.actionSet" label="ComTest Actions" visible="true">
<!-- <menu id="comtest.RunMenu"
label="ComTest Menu"
path="additions">
<separator name="group1" />
<separator name="option1" />
</menu>
-->
<action
class="comtestplug.popup.actions.GenerateTestAndRunJUnit"
id="comtestplug.generateAndRun.action"
label="Generate, Run JUnit, Action"
tooltip="Generate test and then run test"
definitionId="comtestplug.generateAndRun.run"
>
</action>
</actionSet>
</extension>
<extension
point="org.eclipse.ui.popupMenus">
<objectContribution
adaptable="true"
id="comtestplug.contribution1"
nameFilter="*.java"
objectClass="org.eclipse.core.resources.IFile">
<menu
label="ComTest"
path="additions"
id="comtestplug.menu">
<separator
name="group">
</separator>
</menu>
<action
label="Generate tests"
class="comtestplug.popup.actions.GenerateTest"
menubarPath="comtestplug.menu/group"
id="comtestplug.newAction"
>
</action>
<action
class="comtestplug.popup.actions.GenerateTestAndRunJUnit"
id="comtestplug.generateAndRun"
label="Generate, Run JUnit"
tooltip="Generate test and then run test"
menubarPath="comtestplug.menu/group"
definitionId="comtestplug.generateAndRun.run"
>
<!-- enablesFor="1" OK for many but run just the firts -->
</action>
</objectContribution>
</extension>
<extension point="org.eclipse.ui.bindings">
<!--
for some reason (object not created) can not reference to comtestplug.generateAndRun.run...
<key sequence="Ctrl+3" commandId="comtestplug.generateAndRun.action.run" schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" contextId="org.eclipse.ui.contexts.window" />
<key sequence="Ctrl+4" commandId="comtestplug.generateAndRun.run" schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" />
-->
</extension>
<extension
point="org.eclipse.ui.preferencePages">
<page
name="ComTest Preferences"
class="comtestplug.preferences.ComTestPreferencePage"
id="comtestplug.preferences.ComTestPreferencePage">
</page>
</extension>
<extension
point="org.eclipse.core.runtime.preferences">
<initializer
class="comtestplug.preferences.PreferenceInitializer">
</initializer>
</extension>
<extension
point="org.eclipse.ui.propertyPages">
<page
objectClass="org.eclipse.core.resources.IFile"
name="ComTest Page"
nameFilter="*.*"
class="comtestplug.properties.ComTestPropertyPage"
id="comtestplug.properties.samplePropertyPage">
</page>
</extension>
<extension
id="id1"
point="org.eclipse.jdt.ui.javaCompletionProposalComputer">
<javaCompletionProposalComputer
activate="true"
categoryId="org.eclipse.ui.texteditor.textual_proposals"
class="comtestplug.ui.text.java.ComtestProposalComputer">
<partition type="__java_javadoc"/>
</javaCompletionProposalComputer>
</extension>
</plugin>
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Ctplugin
Bundle-SymbolicName: ctplugin;singleton:=true
Bundle-Version: 1.0.0.201912252227
Require-Bundle: org.eclipse.ui
Automatic-Module-Name: ctplugin
Bundle-RequiredExecutionEnvironment: JavaSE-13
plugins/plugins/ctplugin_1.0.0.201912252227/icons/sample.png

332 B

plugins/plugins/ctplugin_1.0.0.201912252227/icons/sample@2x.png

526 B

<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
point="org.eclipse.ui.commands">
<category
id="ctplugin.commands.category"
name="Sample Category">
</category>
<command
categoryId="ctplugin.commands.category"
name="Sample Command"
id="ctplugin.commands.sampleCommand">
</command>
</extension>
<extension
point="org.eclipse.ui.handlers">
<handler
class="ctplugin.handlers.ComTestHandler"
commandId="ctplugin.commands.sampleCommand">
</handler>
</extension>
<extension
point="org.eclipse.ui.bindings">
<key
commandId="ctplugin.commands.sampleCommand"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
contextId="org.eclipse.ui.contexts.window"
sequence="M1+6">
</key>
</extension>
<extension
point="org.eclipse.ui.menus">
<menuContribution
locationURI="menu:org.eclipse.ui.main.menu?after=additions">
<menu
id="ctplugin.menus.sampleMenu"
label="Sample Menu"
mnemonic="M">
<command
commandId="ctplugin.commands.sampleCommand"
id="ctplugin.menus.sampleCommand"
mnemonic="S">
</command>
</menu>
</menuContribution>
<menuContribution
locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions">
<toolbar
id="ctplugin.toolbars.sampleToolbar">
<command
id="ctplugin.toolbars.sampleCommand"
commandId="ctplugin.commands.sampleCommand"
icon="icons/sample.png"
tooltip="Say hello world">
</command>
</toolbar>
</menuContribution>
</extension>
</plugin>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment