Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .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.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="output" path="bin"/>
</classpath>
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
*.jar
*.war
*.ear
/bin/
28 changes: 28 additions & 0 deletions .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.pathvisio.typeconverter</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.jdt.core.javanature</nature>
<nature>org.eclipse.pde.PluginNature</nature>
</natures>
</projectDescription>
3 changes: 2 additions & 1 deletion META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ Bundle-Name: org.pathvisio.typeconverter
Bundle-SymbolicName: org.pathvisio.typeconverter
Bundle-Version: 1.1.0
Bundle-Activator: org.pathvisio.typeconverter.Activator
Import-Package: org.osgi.framework;version="1.5.0"
Require-Bundle: org.pathvisio.core;bundle-version="3.0.0",
org.pathvisio.desktop;bundle-version="3.0.0",
org.pathvisio.gui;bundle-version="3.0.0"
Import-Package: org.osgi.framework;version="1.5.0"
Export-Package: org.pathvisio.typeconverter
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
org.pathvisio.typeconverter
===========================

Enables the conversion of pathway elements into other types (e.g. Label into Metabolite)
This plugin for Pathvisio enables the conversion of pathway elements into other types (e.g. Label into Metabolite).
3 changes: 3 additions & 0 deletions build.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source.. = src/
bin.includes = META-INF/,\
.
10 changes: 7 additions & 3 deletions src/org/pathvisio/typeconverter/TypeConverter.java
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,14 @@ public void pathwayElementMenuHook(VPathwayElement e, JPopupMenu menu) {
DataNodeToDataNode action5 = new DataNodeToDataNode((Graphics)e, DataNodeType.RNA);
refMenu.add(action5);
}
DataNodeToLabel action6 = new DataNodeToLabel((Graphics)e, ObjectType.LABEL );
refMenu.add(action6);
if(!DataNodeType.byName(dnType).equals(ObjectType.LABEL)) {
DataNodeToLabel action6 = new DataNodeToLabel((Graphics)e, ObjectType.LABEL);
refMenu.add(action6);
}
// DataNodeToLabel action7 = new DataNodeToLabel((Graphics)e, ObjectType.LABEL );
// refMenu.add(action7);
menu.add(refMenu);

}
}

}