mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Renaming templates
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -272,7 +272,6 @@ public class BaseWriter {
|
||||
{
|
||||
TemplateWriter templateWriter = new TemplateWriter();
|
||||
ArrayList<HashMap<String, String>> ret = new ArrayList<HashMap<String,String>>();
|
||||
|
||||
|
||||
for( MethodDoc methodDoc : doc.containingClass().methods() )
|
||||
{
|
||||
@@ -286,13 +285,18 @@ public class BaseWriter {
|
||||
map.put("object", instanceName);
|
||||
|
||||
ArrayList<HashMap<String, String>> parameters = new ArrayList<HashMap<String,String>>();
|
||||
String params="";
|
||||
for( Parameter p : methodDoc.parameters() )
|
||||
{
|
||||
params = params + p.name() + ", ";
|
||||
HashMap<String, String> paramMap = new HashMap<String, String>();
|
||||
paramMap.put("parameter", p.name());
|
||||
parameters.add(paramMap);
|
||||
}
|
||||
String params = templateWriter.writeLoop("method.parameter.partial.html", parameters, ", ");
|
||||
|
||||
if(params.endsWith(", ")){
|
||||
params = params.substring(0, params.lastIndexOf(", "));
|
||||
}
|
||||
|
||||
map.put("parameters", params);
|
||||
if( ! ret.contains(map) )
|
||||
|
||||
@@ -53,7 +53,7 @@ public class FieldWriter extends BaseWriter {
|
||||
} else {
|
||||
fieldJSON.put("classanchor", getLocalAnchor(doc.containingClass()));
|
||||
fieldJSON.put("parameters", getParentParam(doc));
|
||||
String syntax = templateWriter.writePartial("field.syntax.partial.html", getSyntax(doc));
|
||||
String syntax = templateWriter.writePartial("field.syntax.partial", getSyntax(doc));
|
||||
ArrayList<String> syntaxList = new ArrayList<String>();
|
||||
syntaxList.add(syntax);
|
||||
fieldJSON.put("syntax", syntaxList);
|
||||
|
||||
@@ -21,7 +21,7 @@ public class FunctionWriter extends BaseWriter {
|
||||
String anchor = getAnchor(doc);
|
||||
TemplateWriter templateWriter = new TemplateWriter();
|
||||
|
||||
ArrayList<String> syntax = templateWriter.writeLoopSyntax("function.syntax.partial.html", getSyntax(doc, ""));
|
||||
ArrayList<String> syntax = templateWriter.writeLoopSyntax("function.syntax.partial", getSyntax(doc, ""));
|
||||
|
||||
JSONObject functionJSON = new JSONObject();
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ public class MethodWriter extends BaseWriter {
|
||||
String filename = getAnchor(doc);
|
||||
TemplateWriter templateWriter = new TemplateWriter();
|
||||
|
||||
ArrayList<String> syntax = templateWriter.writeLoopSyntax("method.syntax.partial.html", getSyntax(doc, getInstanceName(doc)));
|
||||
ArrayList<String> syntax = templateWriter.writeLoopSyntax("method.syntax.partial", getSyntax(doc, getInstanceName(doc)));
|
||||
|
||||
JSONObject methodJSON = new JSONObject();
|
||||
|
||||
@@ -37,7 +37,7 @@ public class MethodWriter extends BaseWriter {
|
||||
|
||||
try
|
||||
{
|
||||
methodJSON.put("type", "function");
|
||||
methodJSON.put("type", "method");
|
||||
methodJSON.put("name", getName(doc));
|
||||
methodJSON.put("description", getWebDescriptionFromSource(doc));
|
||||
methodJSON.put("brief", getWebBriefFromSource(doc));
|
||||
|
||||
Reference in New Issue
Block a user