Skip to content

Commit

Permalink
JBIDE-21654 add aeri support for jboss tools
Browse files Browse the repository at this point in the history
Why:

 * want to get error reports similar to what aeri
   gets for eclipse.org

This change addreses the need by:

 * enabling extension point for aeri in Mars.2

Resolves: JBIDE-21654
  • Loading branch information
maxandersen committed Feb 5, 2016
1 parent 488d1a0 commit 960d583
Show file tree
Hide file tree
Showing 10 changed files with 137 additions and 0 deletions.
7 changes: 7 additions & 0 deletions usage/plugins/org.jboss.tools.usage.aeri/.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="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"/>
<classpathentry kind="output" path="bin"/>
</classpath>
28 changes: 28 additions & 0 deletions usage/plugins/org.jboss.tools.usage.aeri/.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.jboss.tools.usage.aeri</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>
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions usage/plugins/org.jboss.tools.usage.aeri/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: JBoss Tools Automatic Error Reporting
Bundle-SymbolicName: org.jboss.tools.usage.aeri;singleton:=true
Bundle-Version: 1.0.0.qualifier
Bundle-Activator: org.jboss.tools.usage.aeri.Activator
Bundle-Vendor: JBoss by Red Hat
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
org.eclipse.epp.logging.aeri.core;bundle-version="1.100.0",
org.eclipse.epp.logging.aeri.ide;bundle-version="1.100.0"
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Bundle-ActivationPolicy: lazy
5 changes: 5 additions & 0 deletions usage/plugins/org.jboss.tools.usage.aeri/build.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
source.. = src/
output.. = bin/
bin.includes = META-INF/,\
.,\
plugin.xml
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 27 additions & 0 deletions usage/plugins/org.jboss.tools.usage.aeri/plugin.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
point="org.eclipse.epp.logging.aeri.ide.servers">
<server
id="org.jboss.tools"
class="org.eclipse.epp.internal.logging.aeri.ide.server.mars.ServerConnection"
icon16="icons/obj16/jbosstools.png"
icon32="icons/obj32/jbosstools.png"
icon64="icons/obj64/jbosstools.png"
name="JBoss Tools"
description="JBoss Tools wishes to get notified about errors that occur in - or may affect the usability of - JBoss Tools. See &lt;a href=&quot;http://tools.jboss.org/usage/&quot;&gt;JBoss Usage Reporting&lt;/a&gt; For details on privacy and data usage."
>
<link
href="https://www.redhat.com"
rel="provider"
title="Red Hat, Inc.">
</link>
<link
href="https://redhat.ctrlflow.com/rest/2.0/community/discovery"
rel="discovery"
title="Discovery URL">
</link>
</server>
</extension>
</plugin>
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
package org.jboss.tools.usage.aeri;

import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.osgi.framework.BundleContext;

/**
* The activator class controls the plug-in life cycle
*/
public class Activator extends AbstractUIPlugin {

// The plug-in ID
public static final String PLUGIN_ID = "org.jboss.tools.usage.aeri"; //$NON-NLS-1$

// The shared instance
private static Activator plugin;

/**
* The constructor
*/
public Activator() {
}

/*
* (non-Javadoc)
* @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
*/
public void start(BundleContext context) throws Exception {
super.start(context);
plugin = this;
}

/*
* (non-Javadoc)
* @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
*/
public void stop(BundleContext context) throws Exception {
plugin = null;
super.stop(context);
}

/**
* Returns the shared instance
*
* @return the shared instance
*/
public static Activator getDefault() {
return plugin;
}

}

0 comments on commit 960d583

Please sign in to comment.