Skip to content

Instantly share code, notes, and snippets.

View 573's full-sized avatar

Daniel Kahlenberg 573

View GitHub Profile
@573
573 / gist:3938916
Created October 23, 2012 14:03
The plugin_jpf.xml file (JPF)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plugin PUBLIC "-//JPF//Java Plug-in Manifest 0.6"
"http://jpf.sourceforge.net/plugin_0_6.dtd">
<plugin id="simple.simphony.plugin" version="">
<attributes>
<attribute id="simphony" value="1.2.0" />
</attributes>
<requires>
<import plugin-id="saf.core.ui" reverse-lookup="true"/>
<import plugin-id="repast.simphony.data.ui" />
@573
573 / gist:3938927
Created October 23, 2012 14:05
The plugin.properties file (JPF)
# <copyright>
# </copyright>
#
# $Id$
# ====================================================================
# To code developer:
# Do NOT change the properties between this line and the
# "%%% END OF TRANSLATED PROPERTIES %%%" line.
# Make a new property name, append to the end of the file and change
@573
573 / gist:3938946
Created October 23, 2012 14:08
The META-INF/MANIFEST.MF file (JPF)
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: simple.simphony.plugin
Bundle-Version: 1.2.0
Bundle-Localization: plugin
Require-Bundle: repast.simphony.gui,
repast.simphony.data,
repast.simphony.core,
saf.core.ui,
@573
573 / gist:3938960
Created October 23, 2012 14:11
The build.properties file (JPF)
projects.dir = ${basedir}/..
wkspace.dir = ${projects.dir}/..
common.dir = ${wkspace.dir}/common
bin.includes = bin/,\
icons/,\
plugin_jpf.xml,\
licenses/,\
META-INF/
src.includes = src/
jars.compile.order =
@573
573 / gist:3938986
Created October 23, 2012 14:16
The META-INF/MANIFEST.MF file (JPF)
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: simple.simphony.pluslib.plugin
Bundle-Version: 1.2.0
Bundle-Localization: plugin
Require-Bundle: repast.simphony.gui,
repast.simphony.core,
repast.simphony.data,
saf.core.ui,
@573
573 / gist:3938997
Created October 23, 2012 14:18
The build.properties file (JPF)
bin.includes = bin/,\
icons/,\
plugin_jpf.xml,\
licenses/,\
META-INF/,\
plugin.properties,\
lib/,\
lib/google-collections-1.0.jar
projects.dir = ${basedir}/..
wkspace.dir = ${projects.dir}/..
@573
573 / gist:3939039
Created October 23, 2012 14:25
The plugin_jpf.xml file (JPF)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plugin PUBLIC "-//JPF//Java Plug-in Manifest 0.6"
"http://jpf.sourceforge.net/plugin_0_6.dtd">
<plugin id="simple.simphony.pluslib.plugin" version="">
<attributes>
<attribute id="simphony" value="1.2.0" />
</attributes>
<requires>
<import plugin-id="saf.core.ui" reverse-lookup="true"/>
<import plugin-id="repast.simphony.data.ui" />
@573
573 / gist:3939047
Created October 23, 2012 14:26
The plugin.properties file (JPF)
# <copyright>
# </copyright>
#
# $Id$
# ====================================================================
# To code developer:
# Do NOT change the properties between this line and the
# "%%% END OF TRANSLATED PROPERTIES %%%" line.
# Make a new property name, append to the end of the file and change
@573
573 / gist:3939053
Created October 23, 2012 14:28
The HelloWizard.java file (JPF)
/** HelloWizard.java */
package simple.simphony.pluslib.plugin;
import java.util.Map.Entry;
import javax.swing.JOptionPane;
import repast.simphony.data.analysis.NetworkAnalysisPluginWizard;
import com.google.common.collect.HashMultimap;
import com.google.common.collect.Multimap;
public class HelloWizard extends NetworkAnalysisPluginWizard
public HelloWizard() {
super(null);
@573
573 / gist:3939250
Created October 23, 2012 15:00
example .classpath file for eclipse
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="test"/>
<classpathentry kind="src" path="misc"/>
<classpathentry kind="lib" path="/repast.simphony.core/bin"/>
<classpathentry kind="lib" path="/repast.simphony.data/bin"/>
<classpathentry kind="lib" path="/repast.simphony.data.ui/bin"/>