compiles empty plugin with mvn clean package
This commit is contained in:
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
plugins/click.kamil.ui/target
|
||||||
|
releng/click.kamil.updatesite/target
|
||||||
|
features/click.kamil.feature/target
|
||||||
17
.project
Normal file
17
.project
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<projectDescription>
|
||||||
|
<name>click.kamil.parent</name>
|
||||||
|
<comment></comment>
|
||||||
|
<projects>
|
||||||
|
</projects>
|
||||||
|
<buildSpec>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.eclipse.m2e.core.maven2Builder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
|
</buildSpec>
|
||||||
|
<natures>
|
||||||
|
<nature>org.eclipse.m2e.core.maven2Nature</nature>
|
||||||
|
</natures>
|
||||||
|
</projectDescription>
|
||||||
4
.settings/org.eclipse.m2e.core.prefs
Normal file
4
.settings/org.eclipse.m2e.core.prefs
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
activeProfiles=
|
||||||
|
eclipse.preferences.version=1
|
||||||
|
resolveWorkspaceProjects=true
|
||||||
|
version=1
|
||||||
17
features/.project
Normal file
17
features/.project
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<projectDescription>
|
||||||
|
<name>click.kamil.feature</name>
|
||||||
|
<comment></comment>
|
||||||
|
<projects>
|
||||||
|
</projects>
|
||||||
|
<buildSpec>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.eclipse.pde.FeatureBuilder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
|
</buildSpec>
|
||||||
|
<natures>
|
||||||
|
<nature>org.eclipse.pde.FeatureNature</nature>
|
||||||
|
</natures>
|
||||||
|
</projectDescription>
|
||||||
1
features/click.kamil.feature/build.properties
Normal file
1
features/click.kamil.feature/build.properties
Normal file
@@ -0,0 +1 @@
|
|||||||
|
bin.includes = feature.xml
|
||||||
47
features/click.kamil.feature/feature.xml
Normal file
47
features/click.kamil.feature/feature.xml
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<feature
|
||||||
|
id="click.kamil.feature"
|
||||||
|
label="My Feature"
|
||||||
|
version="1.0.0.qualifier">
|
||||||
|
|
||||||
|
<description url="http://www.example.com/description">
|
||||||
|
[Enter Feature Description here.]
|
||||||
|
</description>
|
||||||
|
|
||||||
|
<copyright url="http://www.example.com/copyright">
|
||||||
|
[Enter Copyright Description here.]
|
||||||
|
</copyright>
|
||||||
|
|
||||||
|
<license url="http://www.example.com/license">
|
||||||
|
[Enter License Description here.]
|
||||||
|
</license>
|
||||||
|
|
||||||
|
<plugin
|
||||||
|
id="org.eclipse.ui"
|
||||||
|
download-size="0"
|
||||||
|
install-size="0"
|
||||||
|
version="0.0.0"
|
||||||
|
unpack="false"/>
|
||||||
|
|
||||||
|
<plugin
|
||||||
|
id="org.eclipse.ui.console"
|
||||||
|
download-size="0"
|
||||||
|
install-size="0"
|
||||||
|
version="0.0.0"
|
||||||
|
unpack="false"/>
|
||||||
|
|
||||||
|
<plugin
|
||||||
|
id="org.eclipse.swt"
|
||||||
|
download-size="0"
|
||||||
|
install-size="0"
|
||||||
|
version="0.0.0"
|
||||||
|
unpack="false"/>
|
||||||
|
|
||||||
|
<plugin
|
||||||
|
id="click.kamil.ui"
|
||||||
|
download-size="0"
|
||||||
|
install-size="0"
|
||||||
|
version="0.0.0"
|
||||||
|
unpack="false"/>
|
||||||
|
|
||||||
|
</feature>
|
||||||
15
features/click.kamil.feature/pom.xml
Normal file
15
features/click.kamil.feature/pom.xml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<artifactId>click.kamil.feature</artifactId>
|
||||||
|
<packaging>eclipse-feature</packaging>
|
||||||
|
|
||||||
|
<name>My Feature</name>
|
||||||
|
|
||||||
|
<parent>
|
||||||
|
<groupId>click.kamil</groupId>
|
||||||
|
<artifactId>click.kamil.eclipse-plugin.parent</artifactId>
|
||||||
|
<version>1.0.0-SNAPSHOT</version>
|
||||||
|
<relativePath>../../releng/pom.xml</relativePath>
|
||||||
|
</parent>
|
||||||
|
</project>
|
||||||
7
plugins/click.kamil.ui/.classpath
Normal file
7
plugins/click.kamil.ui/.classpath
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<classpath>
|
||||||
|
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
|
||||||
|
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
||||||
|
<classpathentry kind="src" path="src/main/java"/>
|
||||||
|
<classpathentry kind="output" path="target/classes"/>
|
||||||
|
</classpath>
|
||||||
28
plugins/click.kamil.ui/.project
Normal file
28
plugins/click.kamil.ui/.project
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<projectDescription>
|
||||||
|
<name>click.kamil.ui</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>
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
eclipse.preferences.version=1
|
||||||
|
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
||||||
|
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
|
||||||
|
org.eclipse.jdt.core.compiler.compliance=1.8
|
||||||
|
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
||||||
|
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
|
||||||
|
org.eclipse.jdt.core.compiler.source=1.8
|
||||||
11
plugins/click.kamil.ui/META-INF/MANIFEST.MF
Normal file
11
plugins/click.kamil.ui/META-INF/MANIFEST.MF
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
Manifest-Version: 1.0
|
||||||
|
Bundle-ManifestVersion: 2
|
||||||
|
Bundle-Name: Java Ui
|
||||||
|
Bundle-SymbolicName: click.kamil.ui;singleton:=true
|
||||||
|
Bundle-Version: 1.0.0.qualifier
|
||||||
|
Bundle-Activator: click.kamil.ui.UiPlugin
|
||||||
|
Require-Bundle: org.eclipse.ui,
|
||||||
|
org.eclipse.core.runtime
|
||||||
|
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
|
||||||
|
Automatic-Module-Name: click.kamil.ui
|
||||||
|
Bundle-ActivationPolicy: lazy
|
||||||
6
plugins/click.kamil.ui/build.properties
Normal file
6
plugins/click.kamil.ui/build.properties
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
source.. = src/main/java/
|
||||||
|
output.. = target/classes/
|
||||||
|
bin.includes = plugin.xml,\
|
||||||
|
META-INF/,\
|
||||||
|
.,\
|
||||||
|
icons/
|
||||||
BIN
plugins/click.kamil.ui/icons/sample.png
Normal file
BIN
plugins/click.kamil.ui/icons/sample.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 332 B |
BIN
plugins/click.kamil.ui/icons/sample@2x.png
Normal file
BIN
plugins/click.kamil.ui/icons/sample@2x.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 526 B |
62
plugins/click.kamil.ui/plugin.xml
Normal file
62
plugins/click.kamil.ui/plugin.xml
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<?eclipse version="3.4"?>
|
||||||
|
<plugin>
|
||||||
|
|
||||||
|
<extension
|
||||||
|
point="org.eclipse.ui.commands">
|
||||||
|
<category
|
||||||
|
id="click.kamil.ui.commands.category"
|
||||||
|
name="Sample Category">
|
||||||
|
</category>
|
||||||
|
<command
|
||||||
|
categoryId="click.kamil.ui.commands.category"
|
||||||
|
name="Sample Command"
|
||||||
|
id="click.kamil.ui.commands.sampleCommand">
|
||||||
|
</command>
|
||||||
|
</extension>
|
||||||
|
<extension
|
||||||
|
point="org.eclipse.ui.handlers">
|
||||||
|
<handler
|
||||||
|
class="click.kamil.ui.handlers.SampleHandler"
|
||||||
|
commandId="click.kamil.ui.commands.sampleCommand">
|
||||||
|
</handler>
|
||||||
|
</extension>
|
||||||
|
<extension
|
||||||
|
point="org.eclipse.ui.bindings">
|
||||||
|
<key
|
||||||
|
commandId="click.kamil.ui.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="click.kamil.ui.menus.sampleMenu"
|
||||||
|
label="Sample Menu"
|
||||||
|
mnemonic="M">
|
||||||
|
<command
|
||||||
|
commandId="click.kamil.ui.commands.sampleCommand"
|
||||||
|
id="click.kamil.ui.menus.sampleCommand"
|
||||||
|
mnemonic="S">
|
||||||
|
</command>
|
||||||
|
</menu>
|
||||||
|
</menuContribution>
|
||||||
|
<menuContribution
|
||||||
|
locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions">
|
||||||
|
<toolbar
|
||||||
|
id="click.kamil.ui.toolbars.sampleToolbar">
|
||||||
|
<command
|
||||||
|
id="click.kamil.ui.toolbars.sampleCommand"
|
||||||
|
commandId="click.kamil.ui.commands.sampleCommand"
|
||||||
|
icon="icons/sample.png"
|
||||||
|
tooltip="Say hello world">
|
||||||
|
</command>
|
||||||
|
</toolbar>
|
||||||
|
</menuContribution>
|
||||||
|
</extension>
|
||||||
|
|
||||||
|
</plugin>
|
||||||
17
plugins/click.kamil.ui/pom.xml
Normal file
17
plugins/click.kamil.ui/pom.xml
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<artifactId>click.kamil.ui</artifactId>
|
||||||
|
<packaging>eclipse-plugin</packaging>
|
||||||
|
|
||||||
|
<name>My UI Plugin</name>
|
||||||
|
|
||||||
|
<parent>
|
||||||
|
<groupId>click.kamil</groupId>
|
||||||
|
<artifactId>click.kamil.eclipse-plugin.parent</artifactId>
|
||||||
|
<version>1.0.0-SNAPSHOT</version>
|
||||||
|
<relativePath>../../releng/pom.xml</relativePath>
|
||||||
|
</parent>
|
||||||
|
<dependencies>
|
||||||
|
</dependencies>
|
||||||
|
</project>
|
||||||
@@ -0,0 +1,55 @@
|
|||||||
|
package click.kamil.ui;
|
||||||
|
|
||||||
|
import org.eclipse.jface.resource.ImageDescriptor;
|
||||||
|
import org.eclipse.ui.plugin.AbstractUIPlugin;
|
||||||
|
import org.osgi.framework.BundleContext;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The activator class controls the plug-in life cycle
|
||||||
|
*/
|
||||||
|
public class UiPlugin extends AbstractUIPlugin {
|
||||||
|
|
||||||
|
// The plug-in ID
|
||||||
|
public static final String PLUGIN_ID = "click.kamil.ui"; //$NON-NLS-1$
|
||||||
|
|
||||||
|
// The shared instance
|
||||||
|
private static UiPlugin plugin;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The constructor
|
||||||
|
*/
|
||||||
|
public UiPlugin() {
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void start(BundleContext context) throws Exception {
|
||||||
|
super.start(context);
|
||||||
|
plugin = this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void stop(BundleContext context) throws Exception {
|
||||||
|
plugin = null;
|
||||||
|
super.stop(context);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the shared instance
|
||||||
|
*
|
||||||
|
* @return the shared instance
|
||||||
|
*/
|
||||||
|
public static UiPlugin getDefault() {
|
||||||
|
return plugin;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns an image descriptor for the image file at the given
|
||||||
|
* plug-in relative path
|
||||||
|
*
|
||||||
|
* @param path the path
|
||||||
|
* @return the image descriptor
|
||||||
|
*/
|
||||||
|
public static ImageDescriptor getImageDescriptor(String path) {
|
||||||
|
return imageDescriptorFromPlugin(PLUGIN_ID, path);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
package click.kamil.ui.handlers;
|
||||||
|
|
||||||
|
import org.eclipse.core.commands.AbstractHandler;
|
||||||
|
import org.eclipse.core.commands.ExecutionEvent;
|
||||||
|
import org.eclipse.core.commands.ExecutionException;
|
||||||
|
import org.eclipse.ui.IWorkbenchWindow;
|
||||||
|
import org.eclipse.ui.handlers.HandlerUtil;
|
||||||
|
import org.eclipse.jface.dialogs.MessageDialog;
|
||||||
|
|
||||||
|
public class SampleHandler extends AbstractHandler {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Object execute(ExecutionEvent event) throws ExecutionException {
|
||||||
|
// IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindowChecked(event);
|
||||||
|
// MessageDialog.openInformation(
|
||||||
|
// window.getShell(),
|
||||||
|
// "Java Ui",
|
||||||
|
// "Hello, Eclipse world");
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
23
pom.xml
Normal file
23
pom.xml
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<groupId>click.kamil</groupId>
|
||||||
|
<artifactId>click.kamil.parent</artifactId>
|
||||||
|
<version>1.0.0-SNAPSHOT</version>
|
||||||
|
<packaging>pom</packaging>
|
||||||
|
<name>My Project</name>
|
||||||
|
<modules>
|
||||||
|
<module>releng</module>
|
||||||
|
</modules>
|
||||||
|
<properties>
|
||||||
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
|
<tycho-version>0.25.0</tycho-version>
|
||||||
|
</properties>
|
||||||
|
<repositories>
|
||||||
|
<repository>
|
||||||
|
<id>eclipse-2019-03</id>
|
||||||
|
<url>http://download.eclipse.org/releases/2019-03</url>
|
||||||
|
<layout>p2</layout>
|
||||||
|
</repository>
|
||||||
|
</repositories>
|
||||||
|
</project>
|
||||||
17
releng/.project
Normal file
17
releng/.project
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<projectDescription>
|
||||||
|
<name>click.kamil.eclipse-plugin.parent</name>
|
||||||
|
<comment></comment>
|
||||||
|
<projects>
|
||||||
|
</projects>
|
||||||
|
<buildSpec>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.eclipse.m2e.core.maven2Builder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
|
</buildSpec>
|
||||||
|
<natures>
|
||||||
|
<nature>org.eclipse.m2e.core.maven2Nature</nature>
|
||||||
|
</natures>
|
||||||
|
</projectDescription>
|
||||||
2
releng/.settings/org.eclipse.core.resources.prefs
Normal file
2
releng/.settings/org.eclipse.core.resources.prefs
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
eclipse.preferences.version=1
|
||||||
|
encoding/<project>=UTF-8
|
||||||
4
releng/.settings/org.eclipse.m2e.core.prefs
Normal file
4
releng/.settings/org.eclipse.m2e.core.prefs
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
activeProfiles=
|
||||||
|
eclipse.preferences.version=1
|
||||||
|
resolveWorkspaceProjects=true
|
||||||
|
version=1
|
||||||
17
releng/click.kamil.updatesite/.project
Normal file
17
releng/click.kamil.updatesite/.project
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<projectDescription>
|
||||||
|
<name>click.kamil.updatesite</name>
|
||||||
|
<comment></comment>
|
||||||
|
<projects>
|
||||||
|
</projects>
|
||||||
|
<buildSpec>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.eclipse.pde.UpdateSiteBuilder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
|
</buildSpec>
|
||||||
|
<natures>
|
||||||
|
<nature>org.eclipse.pde.UpdateSiteNature</nature>
|
||||||
|
</natures>
|
||||||
|
</projectDescription>
|
||||||
11
releng/click.kamil.updatesite/category.xml
Normal file
11
releng/click.kamil.updatesite/category.xml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<site>
|
||||||
|
<feature url="features/click.kamil.feature_1.0.0.qualifier.jar" id="click.kamil.feature" version="1.0.0.qualifier">
|
||||||
|
<category name="click.kamil.category"/>
|
||||||
|
</feature>
|
||||||
|
<category-def name="click.kamil.category" label="My name of the category">
|
||||||
|
<description>
|
||||||
|
My description
|
||||||
|
</description>
|
||||||
|
</category-def>
|
||||||
|
</site>
|
||||||
60
releng/click.kamil.updatesite/index.html
Normal file
60
releng/click.kamil.updatesite/index.html
Normal file
@@ -0,0 +1,60 @@
|
|||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>click.kamil.updatesite</title>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||||
|
<style>@import url("web/site.css");</style>
|
||||||
|
<script type="text/javascript">
|
||||||
|
var returnval = 0;
|
||||||
|
var stylesheet, xmlFile, cache, doc;
|
||||||
|
function init(){
|
||||||
|
// NSCP 7.1+ / Mozilla 1.4.1+ / Safari
|
||||||
|
// Use the standard DOM Level 2 technique, if it is supported
|
||||||
|
if (document.implementation && document.implementation.createDocument) {
|
||||||
|
xmlFile = document.implementation.createDocument("", "", null);
|
||||||
|
stylesheet = document.implementation.createDocument("", "", null);
|
||||||
|
if (xmlFile.load){
|
||||||
|
xmlFile.load("site.xml");
|
||||||
|
stylesheet.load("web/site.xsl");
|
||||||
|
} else {
|
||||||
|
alert("Document could not be loaded by browser.");
|
||||||
|
}
|
||||||
|
xmlFile.addEventListener("load", transform, false);
|
||||||
|
stylesheet.addEventListener("load", transform, false);
|
||||||
|
}
|
||||||
|
//IE 6.0+ solution
|
||||||
|
else if (window.ActiveXObject) {
|
||||||
|
xmlFile = new ActiveXObject("msxml2.DOMDocument.3.0");
|
||||||
|
xmlFile.async = false;
|
||||||
|
xmlFile.load("site.xml");
|
||||||
|
stylesheet = new ActiveXObject("msxml2.FreeThreadedDOMDocument.3.0");
|
||||||
|
stylesheet.async = false;
|
||||||
|
stylesheet.load("web/site.xsl");
|
||||||
|
cache = new ActiveXObject("msxml2.XSLTemplate.3.0");
|
||||||
|
cache.stylesheet = stylesheet;
|
||||||
|
transformData();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// separate transformation function for IE 6.0+
|
||||||
|
function transformData(){
|
||||||
|
var processor = cache.createProcessor();
|
||||||
|
processor.input = xmlFile;
|
||||||
|
processor.transform();
|
||||||
|
data.innerHTML = processor.output;
|
||||||
|
}
|
||||||
|
// separate transformation function for NSCP 7.1+ and Mozilla 1.4.1+
|
||||||
|
function transform(){
|
||||||
|
returnval+=1;
|
||||||
|
if (returnval==2){
|
||||||
|
var processor = new XSLTProcessor();
|
||||||
|
processor.importStylesheet(stylesheet);
|
||||||
|
doc = processor.transformToDocument(xmlFile);
|
||||||
|
document.getElementById("data").innerHTML = doc.documentElement.innerHTML;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
<body onload="init();">
|
||||||
|
<!--[insert static HTML here]-->
|
||||||
|
<div id="data"><!-- this is where the transformed data goes --></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
39
releng/click.kamil.updatesite/pom.xml
Normal file
39
releng/click.kamil.updatesite/pom.xml
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<artifactId>click.kamil.updatesite</artifactId>
|
||||||
|
<packaging>eclipse-repository</packaging>
|
||||||
|
|
||||||
|
<name>My Update Site</name>
|
||||||
|
|
||||||
|
<parent>
|
||||||
|
<groupId>click.kamil</groupId>
|
||||||
|
<artifactId>click.kamil.eclipse-plugin.parent</artifactId>
|
||||||
|
<version>1.0.0-SNAPSHOT</version>
|
||||||
|
<relativePath>../pom.xml</relativePath>
|
||||||
|
</parent>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-deploy-plugin</artifactId>
|
||||||
|
<version>2.8.2</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>deploy-artifact</id>
|
||||||
|
<phase>deploy</phase>
|
||||||
|
<configuration>
|
||||||
|
<file>${project.build.directory}/${project.build.finalName}.zip</file>
|
||||||
|
<artifactId>update-site</artifactId>
|
||||||
|
<packaging>zip</packaging>
|
||||||
|
</configuration>
|
||||||
|
<goals>
|
||||||
|
<goal>deploy-file</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</project>
|
||||||
12
releng/click.kamil.updatesite/web/site.css
Normal file
12
releng/click.kamil.updatesite/web/site.css
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
<STYLE type="text/css">
|
||||||
|
td.spacer {padding-bottom: 10px; padding-top: 10px;}
|
||||||
|
.title { font-family: sans-serif; color: #99AACC;}
|
||||||
|
.bodyText { font-family: sans-serif; font-size: 9pt; color:#000000; }
|
||||||
|
.sub-header { font-family: sans-serif; font-style: normal; font-weight: bold; font-size: 9pt; color: white;}
|
||||||
|
.log-text {font-family: sans-serif; font-style: normal; font-weight: lighter; font-size: 8pt; color:black;}
|
||||||
|
.big-header { font-family: sans-serif; font-style: normal; font-weight: bold; font-size: 9pt; color: white; border-top:10px solid white;}
|
||||||
|
.light-row {background:#FFFFFF}
|
||||||
|
.dark-row {background:#EEEEFF}
|
||||||
|
.header {background:#99AADD}
|
||||||
|
#indent {word-wrap : break-word;width :300px;text-indent:10px;}
|
||||||
|
</STYLE>
|
||||||
214
releng/click.kamil.updatesite/web/site.xsl
Normal file
214
releng/click.kamil.updatesite/web/site.xsl
Normal file
@@ -0,0 +1,214 @@
|
|||||||
|
<xsl:stylesheet version = '1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl="urn:schemas-microsoft-com:xslt">
|
||||||
|
<xsl:output method="html" encoding="UTF-8"/>
|
||||||
|
<xsl:key name="cat" match="category" use="@name"/>
|
||||||
|
<xsl:template match="/">
|
||||||
|
<xsl:for-each select="site">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>click.kamil.updatesite</title>
|
||||||
|
<style>@import url("web/site.css");</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1 class="title">click.kamil.updatesite</h1>
|
||||||
|
<p class="bodyText"><xsl:value-of select="description"/></p>
|
||||||
|
<table width="100%" border="0" cellspacing="1" cellpadding="2">
|
||||||
|
<xsl:for-each select="category-def">
|
||||||
|
<xsl:sort select="@label" order="ascending" case-order="upper-first"/>
|
||||||
|
<xsl:sort select="@name" order="ascending" case-order="upper-first"/>
|
||||||
|
<xsl:if test="count(key('cat',@name)) != 0">
|
||||||
|
<tr class="header">
|
||||||
|
<td class="sub-header" width="30%">
|
||||||
|
<xsl:value-of select="@name"/>
|
||||||
|
</td>
|
||||||
|
<td class="sub-header" width="70%">
|
||||||
|
<xsl:value-of select="@label"/>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<xsl:for-each select="key('cat',@name)">
|
||||||
|
<xsl:sort select="ancestor::feature//@version" order="ascending"/>
|
||||||
|
<xsl:sort select="ancestor::feature//@id" order="ascending" case-order="upper-first"/>
|
||||||
|
<tr>
|
||||||
|
<xsl:choose>
|
||||||
|
<xsl:when test="(position() mod 2 = 1)">
|
||||||
|
<xsl:attribute name="class">dark-row</xsl:attribute>
|
||||||
|
</xsl:when>
|
||||||
|
<xsl:otherwise>
|
||||||
|
<xsl:attribute name="class">light-row</xsl:attribute>
|
||||||
|
</xsl:otherwise>
|
||||||
|
</xsl:choose>
|
||||||
|
<td class="log-text" id="indent">
|
||||||
|
<xsl:choose>
|
||||||
|
<xsl:when test="ancestor::feature//@label">
|
||||||
|
<a href="{ancestor::feature//@url}"><xsl:value-of select="ancestor::feature//@label"/></a>
|
||||||
|
<br/>
|
||||||
|
<div id="indent">
|
||||||
|
(<xsl:value-of select="ancestor::feature//@id"/> - <xsl:value-of select="ancestor::feature//@version"/>)
|
||||||
|
</div>
|
||||||
|
</xsl:when>
|
||||||
|
<xsl:otherwise>
|
||||||
|
<a href="{ancestor::feature//@url}"><xsl:value-of select="ancestor::feature//@id"/> - <xsl:value-of select="ancestor::feature//@version"/></a>
|
||||||
|
</xsl:otherwise>
|
||||||
|
</xsl:choose>
|
||||||
|
<br />
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<table>
|
||||||
|
<xsl:if test="ancestor::feature//@os">
|
||||||
|
<tr><td class="log-text" id="indent">Operating Systems:</td>
|
||||||
|
<td class="log-text" id="indent"><xsl:value-of select="ancestor::feature//@os"/></td>
|
||||||
|
</tr>
|
||||||
|
</xsl:if>
|
||||||
|
<xsl:if test="ancestor::feature//@ws">
|
||||||
|
<tr><td class="log-text" id="indent">Windows Systems:</td>
|
||||||
|
<td class="log-text" id="indent"><xsl:value-of select="ancestor::feature//@ws"/></td>
|
||||||
|
</tr>
|
||||||
|
</xsl:if>
|
||||||
|
<xsl:if test="ancestor::feature//@nl">
|
||||||
|
<tr><td class="log-text" id="indent">Languages:</td>
|
||||||
|
<td class="log-text" id="indent"><xsl:value-of select="ancestor::feature//@nl"/></td>
|
||||||
|
</tr>
|
||||||
|
</xsl:if>
|
||||||
|
<xsl:if test="ancestor::feature//@arch">
|
||||||
|
<tr><td class="log-text" id="indent">Architecture:</td>
|
||||||
|
<td class="log-text" id="indent"><xsl:value-of select="ancestor::feature//@arch"/></td>
|
||||||
|
</tr>
|
||||||
|
</xsl:if>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</xsl:for-each>
|
||||||
|
<tr><td class="spacer"><br/></td><td class="spacer"><br/></td></tr>
|
||||||
|
</xsl:if>
|
||||||
|
</xsl:for-each>
|
||||||
|
<xsl:if test="count(feature) > count(feature/category)">
|
||||||
|
<tr class="header">
|
||||||
|
<td class="sub-header" colspan="2">
|
||||||
|
Uncategorized
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</xsl:if>
|
||||||
|
<xsl:choose>
|
||||||
|
<xsl:when test="function-available('msxsl:node-set')">
|
||||||
|
<xsl:variable name="rtf-nodes">
|
||||||
|
<xsl:for-each select="feature[not(category)]">
|
||||||
|
<xsl:sort select="@id" order="ascending" case-order="upper-first"/>
|
||||||
|
<xsl:sort select="@version" order="ascending" />
|
||||||
|
<xsl:value-of select="."/>
|
||||||
|
<xsl:copy-of select="." />
|
||||||
|
</xsl:for-each>
|
||||||
|
</xsl:variable>
|
||||||
|
<xsl:variable name="myNodeSet" select="msxsl:node-set($rtf-nodes)/*"/>
|
||||||
|
<xsl:for-each select="$myNodeSet">
|
||||||
|
<tr>
|
||||||
|
<xsl:choose>
|
||||||
|
<xsl:when test="position() mod 2 = 1">
|
||||||
|
<xsl:attribute name="class">dark-row</xsl:attribute>
|
||||||
|
</xsl:when>
|
||||||
|
<xsl:otherwise>
|
||||||
|
<xsl:attribute name="class">light-row</xsl:attribute>
|
||||||
|
</xsl:otherwise>
|
||||||
|
</xsl:choose>
|
||||||
|
<td class="log-text" id="indent">
|
||||||
|
<xsl:choose>
|
||||||
|
<xsl:when test="@label">
|
||||||
|
<a href="{@url}"><xsl:value-of select="@label"/></a>
|
||||||
|
<br />
|
||||||
|
<div id="indent">
|
||||||
|
(<xsl:value-of select="@id"/> - <xsl:value-of select="@version"/>)
|
||||||
|
</div>
|
||||||
|
</xsl:when>
|
||||||
|
<xsl:otherwise>
|
||||||
|
<a href="{@url}"><xsl:value-of select="@id"/> - <xsl:value-of select="@version"/></a>
|
||||||
|
</xsl:otherwise>
|
||||||
|
</xsl:choose>
|
||||||
|
<br /><br />
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<table>
|
||||||
|
<xsl:if test="@os">
|
||||||
|
<tr><td class="log-text" id="indent">Operating Systems:</td>
|
||||||
|
<td class="log-text" id="indent"><xsl:value-of select="@os"/></td>
|
||||||
|
</tr>
|
||||||
|
</xsl:if>
|
||||||
|
<xsl:if test="@ws">
|
||||||
|
<tr><td class="log-text" id="indent">Windows Systems:</td>
|
||||||
|
<td class="log-text" id="indent"><xsl:value-of select="@ws"/></td>
|
||||||
|
</tr>
|
||||||
|
</xsl:if>
|
||||||
|
<xsl:if test="@nl">
|
||||||
|
<tr><td class="log-text" id="indent">Languages:</td>
|
||||||
|
<td class="log-text" id="indent"><xsl:value-of select="@nl"/></td>
|
||||||
|
</tr>
|
||||||
|
</xsl:if>
|
||||||
|
<xsl:if test="@arch">
|
||||||
|
<tr><td class="log-text" id="indent">Architecture:</td>
|
||||||
|
<td class="log-text" id="indent"><xsl:value-of select="@arch"/></td>
|
||||||
|
</tr>
|
||||||
|
</xsl:if>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</xsl:for-each>
|
||||||
|
</xsl:when>
|
||||||
|
<xsl:otherwise>
|
||||||
|
<xsl:for-each select="feature[not(category)]">
|
||||||
|
<xsl:sort select="@id" order="ascending" case-order="upper-first"/>
|
||||||
|
<xsl:sort select="@version" order="ascending" />
|
||||||
|
<tr>
|
||||||
|
<xsl:choose>
|
||||||
|
<xsl:when test="count(preceding-sibling::feature[not(category)]) mod 2 = 1">
|
||||||
|
<xsl:attribute name="class">dark-row</xsl:attribute>
|
||||||
|
</xsl:when>
|
||||||
|
<xsl:otherwise>
|
||||||
|
<xsl:attribute name="class">light-row</xsl:attribute>
|
||||||
|
</xsl:otherwise>
|
||||||
|
</xsl:choose>
|
||||||
|
<td class="log-text" id="indent">
|
||||||
|
<xsl:choose>
|
||||||
|
<xsl:when test="@label">
|
||||||
|
<a href="{@url}"><xsl:value-of select="@label"/></a>
|
||||||
|
<br />
|
||||||
|
<div id="indent">
|
||||||
|
(<xsl:value-of select="@id"/> - <xsl:value-of select="@version"/>)
|
||||||
|
</div>
|
||||||
|
</xsl:when>
|
||||||
|
<xsl:otherwise>
|
||||||
|
<a href="{@url}"><xsl:value-of select="@id"/> - <xsl:value-of select="@version"/></a>
|
||||||
|
</xsl:otherwise>
|
||||||
|
</xsl:choose>
|
||||||
|
<br /><br />
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<table>
|
||||||
|
<xsl:if test="@os">
|
||||||
|
<tr><td class="log-text" id="indent">Operating Systems:</td>
|
||||||
|
<td class="log-text" id="indent"><xsl:value-of select="@os"/></td>
|
||||||
|
</tr>
|
||||||
|
</xsl:if>
|
||||||
|
<xsl:if test="@ws">
|
||||||
|
<tr><td class="log-text" id="indent">Windows Systems:</td>
|
||||||
|
<td class="log-text" id="indent"><xsl:value-of select="@ws"/></td>
|
||||||
|
</tr>
|
||||||
|
</xsl:if>
|
||||||
|
<xsl:if test="@nl">
|
||||||
|
<tr><td class="log-text" id="indent">Languages:</td>
|
||||||
|
<td class="log-text" id="indent"><xsl:value-of select="@nl"/></td>
|
||||||
|
</tr>
|
||||||
|
</xsl:if>
|
||||||
|
<xsl:if test="@arch">
|
||||||
|
<tr><td class="log-text" id="indent">Architecture:</td>
|
||||||
|
<td class="log-text" id="indent"><xsl:value-of select="@arch"/></td>
|
||||||
|
</tr>
|
||||||
|
</xsl:if>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</xsl:for-each>
|
||||||
|
</xsl:otherwise>
|
||||||
|
</xsl:choose>
|
||||||
|
</table>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
</xsl:for-each>
|
||||||
|
</xsl:template>
|
||||||
|
</xsl:stylesheet>
|
||||||
101
releng/pom.xml
Normal file
101
releng/pom.xml
Normal file
@@ -0,0 +1,101 @@
|
|||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<artifactId>click.kamil.eclipse-plugin.parent</artifactId>
|
||||||
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
|
<name>My Eclipse Plguin Parent</name>
|
||||||
|
|
||||||
|
<parent>
|
||||||
|
<groupId>click.kamil</groupId>
|
||||||
|
<artifactId>click.kamil.parent</artifactId>
|
||||||
|
<version>1.0.0-SNAPSHOT</version>
|
||||||
|
<relativePath>../pom.xml</relativePath>
|
||||||
|
</parent>
|
||||||
|
<modules>
|
||||||
|
<module>targetplatforms/click.kamil.targetplatform.eclipseneon</module>
|
||||||
|
<module>../features/click.kamil.feature</module>
|
||||||
|
<module>click.kamil.updatesite</module>
|
||||||
|
<module>../plugins/click.kamil.ui</module>
|
||||||
|
</modules>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.eclipse.tycho</groupId>
|
||||||
|
<artifactId>tycho-maven-plugin</artifactId>
|
||||||
|
<version>${tycho-version}</version>
|
||||||
|
<extensions>true</extensions>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.eclipse.tycho</groupId>
|
||||||
|
<artifactId>tycho-compiler-plugin</artifactId>
|
||||||
|
<version>${tycho-version}</version>
|
||||||
|
<configuration>
|
||||||
|
<source>1.8</source>
|
||||||
|
<target>1.8</target>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.eclipse.tycho</groupId>
|
||||||
|
<artifactId>tycho-packaging-plugin</artifactId>
|
||||||
|
<version>${tycho-version}</version>
|
||||||
|
<configuration>
|
||||||
|
<archive>
|
||||||
|
<addMavenDescriptor>false</addMavenDescriptor>
|
||||||
|
</archive>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
<!-- This plugin updates the version in the pom.xml and Manifest according
|
||||||
|
to the passed value. -->
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.eclipse.tycho</groupId>
|
||||||
|
<artifactId>tycho-versions-plugin</artifactId>
|
||||||
|
<version>${tycho-version}</version>
|
||||||
|
<executions>
|
||||||
|
<!--This updates the version of pom with the version of the Manifest
|
||||||
|
every Build automatically. -->
|
||||||
|
<!--execution> <id>versions</id> <phase>validate</phase> <goals> <goal>update-pom</goal>
|
||||||
|
</goals> </execution -->
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.eclipse.tycho</groupId>
|
||||||
|
<artifactId>target-platform-configuration</artifactId>
|
||||||
|
<version>${tycho-version}</version>
|
||||||
|
<configuration>
|
||||||
|
<!--
|
||||||
|
<target>
|
||||||
|
<artifact>
|
||||||
|
<groupId>click.kamil</groupId>
|
||||||
|
<artifactId>${target-platform-name}</artifactId>
|
||||||
|
<version>${project.version}</version>
|
||||||
|
</artifact>
|
||||||
|
</target>-->
|
||||||
|
<environments>
|
||||||
|
<environment>
|
||||||
|
<os>linux</os>
|
||||||
|
<ws>gtk</ws>
|
||||||
|
<arch>x86</arch>
|
||||||
|
</environment>
|
||||||
|
<environment>
|
||||||
|
<os>linux</os>
|
||||||
|
<ws>gtk</ws>
|
||||||
|
<arch>x86_64</arch>
|
||||||
|
</environment>
|
||||||
|
<environment>
|
||||||
|
<os>win32</os>
|
||||||
|
<ws>win32</ws>
|
||||||
|
<arch>x86</arch>
|
||||||
|
</environment>
|
||||||
|
<environment>
|
||||||
|
<os>win32</os>
|
||||||
|
<ws>win32</ws>
|
||||||
|
<arch>x86_64</arch>
|
||||||
|
</environment>
|
||||||
|
</environments>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</project>
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?><?pde version="3.8"?><target name="click.kamil.eclipseneon">
|
||||||
|
<locations>
|
||||||
|
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
|
||||||
|
<unit id="org.eclipse.pde.feature.group" version="3.13.400.v20190307-0943"/>
|
||||||
|
<unit id="org.eclipse.pde.source.feature.group" version="3.13.400.v20190307-0943"/>
|
||||||
|
<unit id="org.eclipse.platform.ide" version="4.11.0.I20190307-0500"/>
|
||||||
|
<unit id="org.eclipse.platform.sdk" version="4.11.0.I20190307-0500"/>
|
||||||
|
<unit id="org.eclipse.sdk.ide" version="4.11.0.I20190307-0500"/>
|
||||||
|
<repository location="http://download.eclipse.org/eclipse/updates/4.11"/>
|
||||||
|
</location>
|
||||||
|
</locations>
|
||||||
|
</target>
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
<artifactId>click.kamil.targetplatform.eclipseneon</artifactId>
|
||||||
|
|
||||||
|
<name>My Plugin 4.11 Target Platform</name>
|
||||||
|
|
||||||
|
<parent>
|
||||||
|
<groupId>click.kamil</groupId>
|
||||||
|
<artifactId>click.kamil.eclipse-plugin.parent</artifactId>
|
||||||
|
<version>1.0.0-SNAPSHOT</version>
|
||||||
|
<relativePath>../../pom.xml</relativePath>
|
||||||
|
</parent>
|
||||||
|
<packaging>eclipse-target-definition</packaging>
|
||||||
|
</project>
|
||||||
Reference in New Issue
Block a user