Skip to content

Commit

Permalink
migrate files and remove xtend nature from n4js.jsdoc2spec
Browse files Browse the repository at this point in the history
  • Loading branch information
mmews committed Dec 15, 2023
1 parent c096d65 commit 4aac987
Show file tree
Hide file tree
Showing 7 changed files with 739 additions and 625 deletions.
1 change: 0 additions & 1 deletion plugins/org.eclipse.n4js.jsdoc2spec/.classpath
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="xtend-gen"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="output" path="bin"/>
</classpath>
3 changes: 1 addition & 2 deletions plugins/org.eclipse.n4js.jsdoc2spec/build.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
source.. = src/,\
xtend-gen/
source.. = src/
output.. = bin/
bin.includes = META-INF/,\
.,\
Expand Down
4 changes: 0 additions & 4 deletions plugins/org.eclipse.n4js.jsdoc2spec/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ Contributors:
</configuration>
</plugin>
-->
<plugin>
<groupId>org.eclipse.xtend</groupId>
<artifactId>xtend-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@
*/
package org.eclipse.n4js.jsdoc2spec.adoc;

import com.google.inject.Inject
import org.eclipse.n4js.jsdoc.N4JSDocHelper
import java.util.Map
import java.util.Map;

import org.eclipse.n4js.jsdoc.N4JSDocHelper;

import com.google.inject.Inject;

/**
* Creates AsciiDoc spec fragments for spec region entries.
Expand All @@ -25,20 +27,21 @@ public class ADocFactory {
@Inject
ADocSerializer ADocSerializer;


/**
* Creates the spec of the given entry for the AsciiDoc document.
*/
public def CharSequence createSpecRegionString(SpecRequirementSection spec, Map<String, SpecSection> specsByKey) {
return ADocSerializer.process(spec, specsByKey);
public CharSequence createSpecRegionString(SpecRequirementSection spec,
@SuppressWarnings("unused") Map<String, SpecSection> specsByKey) {
return ADocSerializer.process(spec);
}

/**
* Creates the spec of the given entry for the AsciiDoc document.
*/
public def CharSequence createSpecRegionString(SpecIdentifiableElementSection spec, Map<String, SpecSection> specsByKey) {
if (spec.getDoclet === null) {
spec.doclet = n4jsDocHelper.getDoclet(spec.identifiableElement);
public CharSequence createSpecRegionString(SpecIdentifiableElementSection spec,
Map<String, SpecSection> specsByKey) {
if (spec.getDoclet() == null) {
spec.setDoclet(n4jsDocHelper.getDoclet(spec.getIdentifiableElement()));
}
return ADocSerializer.process(spec, specsByKey);
}
Expand Down
Loading

0 comments on commit 4aac987

Please sign in to comment.