plugin progress
This commit is contained in:
parent
ca3471070e
commit
7028909e36
|
@ -76,7 +76,7 @@ please remove the space between '-' and '-add-exports' it should be double-dash
|
|||
<manifest>
|
||||
<attribute name="Main-Class" value="com.rusefi.Launcher"/>
|
||||
<attribute name="Built-Date" value="${TODAY}"/>
|
||||
<attribute name="Signature-Vendor" value="rusEfi LLC"/>
|
||||
<attribute name="Signature-Vendor" value="rusEFI LLC"/>
|
||||
</manifest>
|
||||
<zipfileset src="lib/SteelSeries-3.9.30.jar" includes="**/*.class"/>
|
||||
<zipfileset src="lib/trident-6.2.jar" includes="**/*.class"/>
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="AntConfiguration">
|
||||
<buildFile url="file://$PROJECT_DIR$/build.xml" />
|
||||
</component>
|
||||
</project>
|
|
@ -0,0 +1,11 @@
|
|||
<component name="libraryTable">
|
||||
<library name="TunerStudioPluginAPI">
|
||||
<CLASSES>
|
||||
<root url="jar://$PROJECT_DIR$/lib/TunerStudioPluginAPI.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC>
|
||||
<root url="jar://$PROJECT_DIR$/lib/TunerStudioPluginAPI-javadoc.jar!/" />
|
||||
</JAVADOC>
|
||||
<SOURCES />
|
||||
</library>
|
||||
</component>
|
|
@ -0,0 +1,9 @@
|
|||
<component name="libraryTable">
|
||||
<library name="annotations">
|
||||
<CLASSES>
|
||||
<root url="jar://$PROJECT_DIR$/../../java_console/lib/annotations.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</component>
|
|
@ -0,0 +1,14 @@
|
|||
<component name="libraryTable">
|
||||
<library name="httpclient-javadoc">
|
||||
<CLASSES>
|
||||
<root url="jar://$PROJECT_DIR$/../../java_console/lib/httpclient.jar!/" />
|
||||
<root url="jar://$PROJECT_DIR$/../../java_console/lib/httpcore.jar!/" />
|
||||
<root url="jar://$PROJECT_DIR$/../../java_console/lib/httpmime.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC>
|
||||
<root url="jar://$PROJECT_DIR$/../../java_console/lib/httpclient-javadoc.jar!/" />
|
||||
<root url="jar://$PROJECT_DIR$/../../java_console/lib/httpmime-javadoc.jar!/" />
|
||||
</JAVADOC>
|
||||
<SOURCES />
|
||||
</library>
|
||||
</component>
|
|
@ -0,0 +1,11 @@
|
|||
<component name="libraryTable">
|
||||
<library name="junit">
|
||||
<CLASSES>
|
||||
<root url="jar://$PROJECT_DIR$/../../java_console/lib/junit.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES>
|
||||
<root url="jar://$PROJECT_DIR$/../../java_console/lib/junit-src.jar!/" />
|
||||
</SOURCES>
|
||||
</library>
|
||||
</component>
|
|
@ -2,6 +2,7 @@
|
|||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/../../java_console/inifile/inifile.iml" filepath="$PROJECT_DIR$/../../java_console/inifile/inifile.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/ts_plugin.iml" filepath="$PROJECT_DIR$/ts_plugin.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
|
|
|
@ -0,0 +1,39 @@
|
|||
<project default="jar">
|
||||
<property name="jar_file_folder" value="build/jar"/>
|
||||
<property name="jar_file" value="${jar_file_folder}/rusefi_plugin.jar"/>
|
||||
|
||||
<target name="clean">
|
||||
<delete dir="build"/>
|
||||
</target>
|
||||
|
||||
<target name="compile">
|
||||
<mkdir dir="build/classes"/>
|
||||
</target>
|
||||
|
||||
<target name="jar" depends="compile">
|
||||
<mkdir dir="${jar_file_folder}"/>
|
||||
<delete file="${jar_file}"/>
|
||||
|
||||
<tstamp>
|
||||
<format property="TODAY" pattern="yyyy-MM-dd HH:mm:ss"/>
|
||||
</tstamp>
|
||||
|
||||
|
||||
<jar destfile="${jar_file}" basedir="build/classes">
|
||||
<manifest>
|
||||
<attribute name="Main-Class" value="com.rusefi.Launcher"/>
|
||||
<attribute name="Built-Date" value="${TODAY}"/>
|
||||
<attribute name="Signature-Vendor" value="rusEFI LLC"/>
|
||||
<attribute name="ApplicationPlugin" value="com.rusefi.TsPlugin"/>
|
||||
</manifest>
|
||||
|
||||
<zipfileset src="../../java_console/lib/httpclient.jar" includes="**/*.class"/>
|
||||
<zipfileset src="../../java_console/lib/httpcore.jar" includes="**/*.class"/>
|
||||
<zipfileset src="../../java_console/lib/httpmime.jar" includes="**/*.class"/>
|
||||
|
||||
</jar>
|
||||
|
||||
|
||||
</target>
|
||||
|
||||
</project>
|
Binary file not shown.
|
@ -0,0 +1,7 @@
|
|||
package com.rusefi;
|
||||
|
||||
public class Standalone {
|
||||
public static void main(String[] args) {
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,76 @@
|
|||
package com.rusefi;
|
||||
|
||||
import com.efiAnalytics.plugin.ApplicationPlugin;
|
||||
import com.efiAnalytics.plugin.ecu.ControllerAccess;
|
||||
|
||||
import javax.swing.*;
|
||||
|
||||
public class TsPlugin implements ApplicationPlugin {
|
||||
private ControllerAccess controllerAccess;
|
||||
|
||||
@Override
|
||||
public String getIdName() {
|
||||
return "rusEFI_plugin";
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getPluginType() {
|
||||
return PERSISTENT_DIALOG_PANEL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getDisplayName() {
|
||||
return "rusEFI Plugin";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getDescription() {
|
||||
return "A plugin for rusEFI integration";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void initialize(ControllerAccess controllerAccess) {
|
||||
this.controllerAccess = controllerAccess;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean displayPlugin(String signature) {
|
||||
// todo: smarter implementation one day
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isMenuEnabled() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getAuthor() {
|
||||
return "rusEFI LLC";
|
||||
}
|
||||
|
||||
@Override
|
||||
public JComponent getPluginPanel() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void close() {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getHelpUrl() {
|
||||
return "https://rusefi.com";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getVersion() {
|
||||
return "0.00000001";
|
||||
}
|
||||
|
||||
@Override
|
||||
public double getRequiredPluginSpec() {
|
||||
return PLUGIN_API_VERSION;
|
||||
}
|
||||
}
|
|
@ -7,5 +7,8 @@
|
|||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="library" name="TunerStudioPluginAPI" level="project" />
|
||||
<orderEntry type="library" name="httpclient-javadoc" level="project" />
|
||||
<orderEntry type="library" name="annotations" level="project" />
|
||||
</component>
|
||||
</module>
|
Loading…
Reference in New Issue