forked from redhat-developer/quarkus-ls
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for MicroProfile RestClient/Health Diagnostics
Fixes redhat-developer#217 Signed-off-by: azerr <azerr@redhat.com>
- Loading branch information
1 parent
1e0c715
commit a7ac0e1
Showing
63 changed files
with
2,846 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
101 changes: 101 additions & 0 deletions
101
microprofile.jdt/com.redhat.microprofile.jdt.core/schema/javaFeatureParticipants.exsd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<!-- Schema file written by PDE --> | ||
<schema targetNamespace="com.redhat.microprofile.jdt.core" xmlns="http://www.w3.org/2001/XMLSchema"> | ||
<annotation> | ||
<appinfo> | ||
<meta.schema plugin="com.redhat.microprofile.jdt.core" id="javaFeatureParticipants" name="Java features participants"/> | ||
</appinfo> | ||
<documentation> | ||
This extension point allows adding a Java feature (codelens, hover, diagnostics) to consume it in the Java editor. | ||
</documentation> | ||
</annotation> | ||
|
||
<element name="extension"> | ||
<annotation> | ||
<appinfo> | ||
<meta.element /> | ||
</appinfo> | ||
</annotation> | ||
<complexType> | ||
<sequence minOccurs="1" maxOccurs="unbounded"> | ||
<choice> | ||
<element ref="diagnostics"/> | ||
</choice> | ||
</sequence> | ||
<attribute name="point" type="string" use="required"> | ||
<annotation> | ||
<documentation> | ||
|
||
</documentation> | ||
</annotation> | ||
</attribute> | ||
<attribute name="id" type="string"> | ||
<annotation> | ||
<documentation> | ||
|
||
</documentation> | ||
</annotation> | ||
</attribute> | ||
<attribute name="name" type="string"> | ||
<annotation> | ||
<documentation> | ||
|
||
</documentation> | ||
<appinfo> | ||
<meta.attribute translatable="true"/> | ||
</appinfo> | ||
</annotation> | ||
</attribute> | ||
</complexType> | ||
</element> | ||
|
||
<element name="diagnostics"> | ||
<annotation> | ||
<documentation> | ||
Java diagnostics participant. | ||
</documentation> | ||
</annotation> | ||
<complexType> | ||
<attribute name="class" type="string" use="required"> | ||
<annotation> | ||
<documentation> | ||
Name of a class that implements IJavaDiagnosticsParticipant. | ||
</documentation> | ||
<appinfo> | ||
<meta.attribute kind="java" basedOn=":com.redhat.microprofile.jdt.core.java.IJavaDiagnosticsParticipant"/> | ||
</appinfo> | ||
</annotation> | ||
</attribute> | ||
</complexType> | ||
</element> | ||
|
||
<annotation> | ||
<appinfo> | ||
<meta.section type="since"/> | ||
</appinfo> | ||
<documentation> | ||
2.0 | ||
</documentation> | ||
</annotation> | ||
|
||
<annotation> | ||
<appinfo> | ||
<meta.section type="examples"/> | ||
</appinfo> | ||
<documentation> | ||
The following is an example of a java feature participant extension: | ||
|
||
<pre> | ||
<extension point="com.redhat.quarkus.jdt.core.javaFeatureParticipants"> | ||
<diagnostics | ||
class="com.example.MyJavaDiagnosticsParticipant"> | ||
</diagnostics> | ||
</extension> | ||
</pre> | ||
</documentation> | ||
</annotation> | ||
|
||
|
||
|
||
|
||
</schema> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
...core/src/main/java/com/redhat/microprofile/commons/MicroProfileJavaDiagnosticsParams.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2020 Red Hat Inc. and others. | ||
* All rights reserved. This program and the accompanying materials | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/legal/epl-v20.html | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Contributors: | ||
* Red Hat Inc. - initial API and implementation | ||
*******************************************************************************/ | ||
package com.redhat.microprofile.commons; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* MicroProfile Java diagnostics parameters. | ||
* | ||
* @author Angelo ZERR | ||
* | ||
*/ | ||
public class MicroProfileJavaDiagnosticsParams { | ||
|
||
private List<String> uris; | ||
|
||
private DocumentFormat documentFormat; | ||
|
||
public MicroProfileJavaDiagnosticsParams() { | ||
this(null); | ||
} | ||
|
||
public MicroProfileJavaDiagnosticsParams(List<String> uris) { | ||
setUris(uris); | ||
} | ||
|
||
/** | ||
* Returns the java file uris list. | ||
* | ||
* @return the java file uris list. | ||
*/ | ||
public List<String> getUris() { | ||
return uris; | ||
} | ||
|
||
/** | ||
* Set the java file uris list. | ||
* | ||
* @param uris the java file uris list. | ||
*/ | ||
public void setUris(List<String> uris) { | ||
this.uris = uris; | ||
} | ||
|
||
public DocumentFormat getDocumentFormat() { | ||
return documentFormat; | ||
} | ||
|
||
public void setDocumentFormat(DocumentFormat documentFormat) { | ||
this.documentFormat = documentFormat; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.