Done


From: Michael Xia <notifications@github.com<mailto:notifications@github.com>>
Reply-To: aptana/studio3 <reply@reply.github.com<mailto:reply@reply.github.com>>
Date: Tuesday, January 14, 2014 at 3:59 PM
To: aptana/studio3 <studio3@noreply.github.com<mailto:studio3@noreply.github.com>>
Cc: Christopher Williams <cwilliams@appcelerator.com<mailto:cwilliams@appcelerator.com>>
Subject: Re: [studio3] TISTUD-6018 Object property content assist missing inside object declaration (#149)


In plugins/com.aptana.js.core/src/com/aptana/js/core/model/ParameterElement.java:

> @@ -66,7 +65,16 @@ public void fromJSON(Map object)
>               this.setUsage(StringUtil.getStringValue(object.get(USAGE_PROPERTY)));
>               this.setDescription(StringUtil.getStringValue(object.get(DESCRIPTION_PROPERTY)));
>
> -             this._types = IndexUtil.createList(object.get(TYPES_PROPERTY));
> +             // JSCA contains a single "type" value
> +             if (object.containsKey("type"))


Extract to a constant.

-
Reply to this email directly or view it on GitHub<https://github.com/aptana/studio3/pull/149/files#r8875718>.