Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
appinventor-sources
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
appinventor-sources
Commits
c58e9adb
Commit
c58e9adb
authored
Sep 06, 2019
by
Evan W. Patton
Committed by
Susan Rati Lane
Sep 06, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Javadoc extraction for property descriptions (#1811)
Change-Id: I7fdc2d77430473420ed2d0e17d798a485ea16325
parent
ad97f109
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
appinventor/components/src/com/google/appinventor/components/scripts/ComponentProcessor.java
...le/appinventor/components/scripts/ComponentProcessor.java
+12
-1
No files found.
appinventor/components/src/com/google/appinventor/components/scripts/ComponentProcessor.java
View file @
c58e9adb
...
...
@@ -1096,8 +1096,19 @@ public abstract class ComponentProcessor extends AbstractProcessor {
propertyName
);
}
// Use Javadoc for property unless description is set to a non-empty string.
String
description
=
elementUtils
.
getDocComment
(
element
);
if
(!
simpleProperty
.
description
().
isEmpty
())
{
description
=
simpleProperty
.
description
();
}
if
(
description
==
null
)
{
description
=
""
;
}
// Read only until the first javadoc parameter
description
=
description
.
split
(
"[^\\\\][@{]"
)[
0
].
trim
();
Property
property
=
new
Property
(
propertyName
,
simpleProperty
.
description
()
,
description
,
simpleProperty
.
category
(),
simpleProperty
.
userVisible
(),
elementUtils
.
isDeprecated
(
element
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment