From a0481f0bf4cecbc9cd7c1015dbdc006f43610161 Mon Sep 17 00:00:00 2001 From: Kamil Patryk Kozakowski Date: Tue, 14 May 2024 19:31:21 +0000 Subject: [PATCH] compiles empty plugin with mvn clean package --- .gitignore | 3 + .project | 17 ++ .settings/org.eclipse.m2e.core.prefs | 4 + features/.project | 17 ++ features/click.kamil.feature/build.properties | 1 + features/click.kamil.feature/feature.xml | 47 ++++ features/click.kamil.feature/pom.xml | 15 ++ plugins/click.kamil.ui/.classpath | 7 + plugins/click.kamil.ui/.project | 28 +++ .../.settings/org.eclipse.jdt.core.prefs | 7 + plugins/click.kamil.ui/META-INF/MANIFEST.MF | 11 + plugins/click.kamil.ui/build.properties | 6 + plugins/click.kamil.ui/icons/sample.png | Bin 0 -> 332 bytes plugins/click.kamil.ui/icons/sample@2x.png | Bin 0 -> 526 bytes plugins/click.kamil.ui/plugin.xml | 62 +++++ plugins/click.kamil.ui/pom.xml | 17 ++ .../main/java/click/kamil/ui/UiPlugin.java | 55 +++++ .../kamil/ui/handlers/SampleHandler.java | 21 ++ pom.xml | 23 ++ releng/.project | 17 ++ .../org.eclipse.core.resources.prefs | 2 + releng/.settings/org.eclipse.m2e.core.prefs | 4 + releng/click.kamil.updatesite/.project | 17 ++ releng/click.kamil.updatesite/category.xml | 11 + releng/click.kamil.updatesite/index.html | 60 +++++ releng/click.kamil.updatesite/pom.xml | 39 ++++ releng/click.kamil.updatesite/web/site.css | 12 + releng/click.kamil.updatesite/web/site.xsl | 214 ++++++++++++++++++ releng/pom.xml | 101 +++++++++ ...ck.kamil.targetplatform.eclipseneon.target | 12 + .../pom.xml | 16 ++ 31 files changed, 846 insertions(+) create mode 100644 .gitignore create mode 100644 .project create mode 100644 .settings/org.eclipse.m2e.core.prefs create mode 100644 features/.project create mode 100644 features/click.kamil.feature/build.properties create mode 100644 features/click.kamil.feature/feature.xml create mode 100644 features/click.kamil.feature/pom.xml create mode 100644 plugins/click.kamil.ui/.classpath create mode 100644 plugins/click.kamil.ui/.project create mode 100644 plugins/click.kamil.ui/.settings/org.eclipse.jdt.core.prefs create mode 100644 plugins/click.kamil.ui/META-INF/MANIFEST.MF create mode 100644 plugins/click.kamil.ui/build.properties create mode 100644 plugins/click.kamil.ui/icons/sample.png create mode 100644 plugins/click.kamil.ui/icons/sample@2x.png create mode 100644 plugins/click.kamil.ui/plugin.xml create mode 100644 plugins/click.kamil.ui/pom.xml create mode 100644 plugins/click.kamil.ui/src/main/java/click/kamil/ui/UiPlugin.java create mode 100644 plugins/click.kamil.ui/src/main/java/click/kamil/ui/handlers/SampleHandler.java create mode 100644 pom.xml create mode 100644 releng/.project create mode 100644 releng/.settings/org.eclipse.core.resources.prefs create mode 100644 releng/.settings/org.eclipse.m2e.core.prefs create mode 100644 releng/click.kamil.updatesite/.project create mode 100644 releng/click.kamil.updatesite/category.xml create mode 100644 releng/click.kamil.updatesite/index.html create mode 100644 releng/click.kamil.updatesite/pom.xml create mode 100644 releng/click.kamil.updatesite/web/site.css create mode 100644 releng/click.kamil.updatesite/web/site.xsl create mode 100644 releng/pom.xml create mode 100644 releng/targetplatforms/click.kamil.targetplatform.eclipseneon/click.kamil.targetplatform.eclipseneon.target create mode 100644 releng/targetplatforms/click.kamil.targetplatform.eclipseneon/pom.xml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..462f0e6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +plugins/click.kamil.ui/target +releng/click.kamil.updatesite/target +features/click.kamil.feature/target diff --git a/.project b/.project new file mode 100644 index 0000000..3026f3d --- /dev/null +++ b/.project @@ -0,0 +1,17 @@ + + + click.kamil.parent + + + + + + org.eclipse.m2e.core.maven2Builder + + + + + + org.eclipse.m2e.core.maven2Nature + + diff --git a/.settings/org.eclipse.m2e.core.prefs b/.settings/org.eclipse.m2e.core.prefs new file mode 100644 index 0000000..f897a7f --- /dev/null +++ b/.settings/org.eclipse.m2e.core.prefs @@ -0,0 +1,4 @@ +activeProfiles= +eclipse.preferences.version=1 +resolveWorkspaceProjects=true +version=1 diff --git a/features/.project b/features/.project new file mode 100644 index 0000000..d8434a7 --- /dev/null +++ b/features/.project @@ -0,0 +1,17 @@ + + + click.kamil.feature + + + + + + org.eclipse.pde.FeatureBuilder + + + + + + org.eclipse.pde.FeatureNature + + diff --git a/features/click.kamil.feature/build.properties b/features/click.kamil.feature/build.properties new file mode 100644 index 0000000..64f93a9 --- /dev/null +++ b/features/click.kamil.feature/build.properties @@ -0,0 +1 @@ +bin.includes = feature.xml diff --git a/features/click.kamil.feature/feature.xml b/features/click.kamil.feature/feature.xml new file mode 100644 index 0000000..b2071aa --- /dev/null +++ b/features/click.kamil.feature/feature.xml @@ -0,0 +1,47 @@ + + + + + [Enter Feature Description here.] + + + + [Enter Copyright Description here.] + + + + [Enter License Description here.] + + + + + + + + + + + diff --git a/features/click.kamil.feature/pom.xml b/features/click.kamil.feature/pom.xml new file mode 100644 index 0000000..12a171b --- /dev/null +++ b/features/click.kamil.feature/pom.xml @@ -0,0 +1,15 @@ + + 4.0.0 + click.kamil.feature + eclipse-feature + + My Feature + + + click.kamil + click.kamil.eclipse-plugin.parent + 1.0.0-SNAPSHOT + ../../releng/pom.xml + + \ No newline at end of file diff --git a/plugins/click.kamil.ui/.classpath b/plugins/click.kamil.ui/.classpath new file mode 100644 index 0000000..7f457fa --- /dev/null +++ b/plugins/click.kamil.ui/.classpath @@ -0,0 +1,7 @@ + + + + + + + diff --git a/plugins/click.kamil.ui/.project b/plugins/click.kamil.ui/.project new file mode 100644 index 0000000..634b91e --- /dev/null +++ b/plugins/click.kamil.ui/.project @@ -0,0 +1,28 @@ + + + click.kamil.ui + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.pde.PluginNature + org.eclipse.jdt.core.javanature + + diff --git a/plugins/click.kamil.ui/.settings/org.eclipse.jdt.core.prefs b/plugins/click.kamil.ui/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..0c68a61 --- /dev/null +++ b/plugins/click.kamil.ui/.settings/org.eclipse.jdt.core.prefs @@ -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 diff --git a/plugins/click.kamil.ui/META-INF/MANIFEST.MF b/plugins/click.kamil.ui/META-INF/MANIFEST.MF new file mode 100644 index 0000000..2f88e29 --- /dev/null +++ b/plugins/click.kamil.ui/META-INF/MANIFEST.MF @@ -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 diff --git a/plugins/click.kamil.ui/build.properties b/plugins/click.kamil.ui/build.properties new file mode 100644 index 0000000..8950055 --- /dev/null +++ b/plugins/click.kamil.ui/build.properties @@ -0,0 +1,6 @@ +source.. = src/main/java/ +output.. = target/classes/ +bin.includes = plugin.xml,\ + META-INF/,\ + .,\ + icons/ diff --git a/plugins/click.kamil.ui/icons/sample.png b/plugins/click.kamil.ui/icons/sample.png new file mode 100644 index 0000000000000000000000000000000000000000..02c4b79e10986d56bda97051eb0da2e9119c97f5 GIT binary patch literal 332 zcmV-S0ki&zP)o}PQ;SW4Q?|D@o|!n4bZ+dmjHl(fFnOU>N3Hz|3`e^PLI_Tklq z9dEUPF8GjIQ2+RLZpDrNq~L=3C%1s!j|YcCWZ+aA5&{s6WBjJ7phjchl+7dD zK%??C5t{FV)M8Cck-?KSfC{eT(i|B$Wp$+QOcA_!0hFXcX&$6FDqzZKU<%z0%uwCY e0aKi5l4}7X=XWJ6VmxR70000{ZT)6VX-X|e!skhH1SmmK(Q+8xOk9EsoDx9;%V9VIujLL74J^=XMJoq9 z1|@9VK_4(VhK80y5@pbo6ckI-X8va_ZhIdO!f9Fi&L*dB`%g;@wBtO?KClDIJKpgF zIsXR&gB_67@QMe>IbYQF_DWvOz5n#UMXhhIg6u>s=Yd5ht>Yhtu@=)Y0h1l*%f Qr~m)}07*qoM6N<$f|JJHQ2+n{ literal 0 HcmV?d00001 diff --git a/plugins/click.kamil.ui/plugin.xml b/plugins/click.kamil.ui/plugin.xml new file mode 100644 index 0000000..4dc7047 --- /dev/null +++ b/plugins/click.kamil.ui/plugin.xml @@ -0,0 +1,62 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/plugins/click.kamil.ui/pom.xml b/plugins/click.kamil.ui/pom.xml new file mode 100644 index 0000000..bda0c36 --- /dev/null +++ b/plugins/click.kamil.ui/pom.xml @@ -0,0 +1,17 @@ + + 4.0.0 + click.kamil.ui + eclipse-plugin + + My UI Plugin + + + click.kamil + click.kamil.eclipse-plugin.parent + 1.0.0-SNAPSHOT + ../../releng/pom.xml + + + + \ No newline at end of file diff --git a/plugins/click.kamil.ui/src/main/java/click/kamil/ui/UiPlugin.java b/plugins/click.kamil.ui/src/main/java/click/kamil/ui/UiPlugin.java new file mode 100644 index 0000000..c27998c --- /dev/null +++ b/plugins/click.kamil.ui/src/main/java/click/kamil/ui/UiPlugin.java @@ -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); + } +} diff --git a/plugins/click.kamil.ui/src/main/java/click/kamil/ui/handlers/SampleHandler.java b/plugins/click.kamil.ui/src/main/java/click/kamil/ui/handlers/SampleHandler.java new file mode 100644 index 0000000..5d64846 --- /dev/null +++ b/plugins/click.kamil.ui/src/main/java/click/kamil/ui/handlers/SampleHandler.java @@ -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; + } +} diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..47ed34e --- /dev/null +++ b/pom.xml @@ -0,0 +1,23 @@ + + 4.0.0 + click.kamil + click.kamil.parent + 1.0.0-SNAPSHOT + pom + My Project + + releng + + + UTF-8 + 0.25.0 + + + + eclipse-2019-03 + http://download.eclipse.org/releases/2019-03 + p2 + + + \ No newline at end of file diff --git a/releng/.project b/releng/.project new file mode 100644 index 0000000..7fbf5d1 --- /dev/null +++ b/releng/.project @@ -0,0 +1,17 @@ + + + click.kamil.eclipse-plugin.parent + + + + + + org.eclipse.m2e.core.maven2Builder + + + + + + org.eclipse.m2e.core.maven2Nature + + diff --git a/releng/.settings/org.eclipse.core.resources.prefs b/releng/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000..99f26c0 --- /dev/null +++ b/releng/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +encoding/=UTF-8 diff --git a/releng/.settings/org.eclipse.m2e.core.prefs b/releng/.settings/org.eclipse.m2e.core.prefs new file mode 100644 index 0000000..f897a7f --- /dev/null +++ b/releng/.settings/org.eclipse.m2e.core.prefs @@ -0,0 +1,4 @@ +activeProfiles= +eclipse.preferences.version=1 +resolveWorkspaceProjects=true +version=1 diff --git a/releng/click.kamil.updatesite/.project b/releng/click.kamil.updatesite/.project new file mode 100644 index 0000000..9d480ee --- /dev/null +++ b/releng/click.kamil.updatesite/.project @@ -0,0 +1,17 @@ + + + click.kamil.updatesite + + + + + + org.eclipse.pde.UpdateSiteBuilder + + + + + + org.eclipse.pde.UpdateSiteNature + + diff --git a/releng/click.kamil.updatesite/category.xml b/releng/click.kamil.updatesite/category.xml new file mode 100644 index 0000000..86e4759 --- /dev/null +++ b/releng/click.kamil.updatesite/category.xml @@ -0,0 +1,11 @@ + + + + + + + + My description + + + diff --git a/releng/click.kamil.updatesite/index.html b/releng/click.kamil.updatesite/index.html new file mode 100644 index 0000000..180326a --- /dev/null +++ b/releng/click.kamil.updatesite/index.html @@ -0,0 +1,60 @@ + + +click.kamil.updatesite + + + + + + +
+ + diff --git a/releng/click.kamil.updatesite/pom.xml b/releng/click.kamil.updatesite/pom.xml new file mode 100644 index 0000000..919cec5 --- /dev/null +++ b/releng/click.kamil.updatesite/pom.xml @@ -0,0 +1,39 @@ + + 4.0.0 + click.kamil.updatesite + eclipse-repository + + My Update Site + + + click.kamil + click.kamil.eclipse-plugin.parent + 1.0.0-SNAPSHOT + ../pom.xml + + + + + + org.apache.maven.plugins + maven-deploy-plugin + 2.8.2 + + + deploy-artifact + deploy + + ${project.build.directory}/${project.build.finalName}.zip + update-site + zip + + + deploy-file + + + + + + + \ No newline at end of file diff --git a/releng/click.kamil.updatesite/web/site.css b/releng/click.kamil.updatesite/web/site.css new file mode 100644 index 0000000..62c6f9f --- /dev/null +++ b/releng/click.kamil.updatesite/web/site.css @@ -0,0 +1,12 @@ + diff --git a/releng/click.kamil.updatesite/web/site.xsl b/releng/click.kamil.updatesite/web/site.xsl new file mode 100644 index 0000000..87733b9 --- /dev/null +++ b/releng/click.kamil.updatesite/web/site.xsl @@ -0,0 +1,214 @@ + + + + + + + + click.kamil.updatesite + + + +

click.kamil.updatesite

+

+ + + + + + + + + + + + + + + + dark-row + + + light-row + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + dark-row + + + light-row + + + + + + + + + + + + + + + dark-row + + + light-row + + + + + + + + +
+ + + +
+ + + +
+
+ ( - ) +
+
+ + - + +
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Operating Systems:
Windows Systems:
Languages:
Architecture:
+


+ Uncategorized +
+ + + +
+
+ ( - ) +
+
+ + - + +
+

+
+ + + + + + + + + + + + + + + + + + + + + +
Operating Systems:
Windows Systems:
Languages:
Architecture:
+
+ + + +
+
+ ( - ) +
+
+ + - + +
+

+
+ + + + + + + + + + + + + + + + + + + + + +
Operating Systems:
Windows Systems:
Languages:
Architecture:
+
+ + +
+
+
diff --git a/releng/pom.xml b/releng/pom.xml new file mode 100644 index 0000000..4119a4b --- /dev/null +++ b/releng/pom.xml @@ -0,0 +1,101 @@ + + 4.0.0 + click.kamil.eclipse-plugin.parent + pom + + My Eclipse Plguin Parent + + + click.kamil + click.kamil.parent + 1.0.0-SNAPSHOT + ../pom.xml + + + targetplatforms/click.kamil.targetplatform.eclipseneon + ../features/click.kamil.feature + click.kamil.updatesite + ../plugins/click.kamil.ui + + + + + + org.eclipse.tycho + tycho-maven-plugin + ${tycho-version} + true + + + org.eclipse.tycho + tycho-compiler-plugin + ${tycho-version} + + 1.8 + 1.8 + + + + org.eclipse.tycho + tycho-packaging-plugin + ${tycho-version} + + + false + + + + + + org.eclipse.tycho + tycho-versions-plugin + ${tycho-version} + + + + + + + org.eclipse.tycho + target-platform-configuration + ${tycho-version} + + + + + linux + gtk + x86 + + + linux + gtk + x86_64 + + + win32 + win32 + x86 + + + win32 + win32 + x86_64 + + + + + + + \ No newline at end of file diff --git a/releng/targetplatforms/click.kamil.targetplatform.eclipseneon/click.kamil.targetplatform.eclipseneon.target b/releng/targetplatforms/click.kamil.targetplatform.eclipseneon/click.kamil.targetplatform.eclipseneon.target new file mode 100644 index 0000000..124339a --- /dev/null +++ b/releng/targetplatforms/click.kamil.targetplatform.eclipseneon/click.kamil.targetplatform.eclipseneon.target @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/releng/targetplatforms/click.kamil.targetplatform.eclipseneon/pom.xml b/releng/targetplatforms/click.kamil.targetplatform.eclipseneon/pom.xml new file mode 100644 index 0000000..ee11032 --- /dev/null +++ b/releng/targetplatforms/click.kamil.targetplatform.eclipseneon/pom.xml @@ -0,0 +1,16 @@ + + 4.0.0 + + click.kamil.targetplatform.eclipseneon + + My Plugin 4.11 Target Platform + + + click.kamil + click.kamil.eclipse-plugin.parent + 1.0.0-SNAPSHOT + ../../pom.xml + + eclipse-target-definition + \ No newline at end of file