@Rob
I shall look forward to testing it in 6. but I would hope that this could be back ported to 5.2.x since I had issues with getting a byte array back from the authenticator (json serialisation).
/**
* Custom type for form parameters
*
* @constructor
* @param {String} _name
* @param {Object} [_value]
*/
function FormParam(_name, _value)
{
/** @type {String} */
this.name = _name;
/** @type {Object} */
this.value = _value;
}
/**
* Custom complex type which uses another custom type as a property
*
* @constructor
* @param {String} _formName
*/
function ComplexType(_formName)
{
/** @type {String} */
this.formName = _formName;
/** @type {forms.customTypes.FormParam} */
this.formParam = new forms.customTypes.FormParam('SPECIAL_PARAM_NAME');
}
function doSomething()
{
//create a custom type - note that adding the @type tag to explicitly specify the custom type does not help in resolving the described issue
/** @type {forms.customTypes.ComplexType} */
var _complexType = new forms.customTypes.ComplexType('someFormName');
//here the "value" property of the formParam is "unknown" - the warning which we get is: "The property value is undefined in _complextType.formParam"
_complextType.formParam.value = {foo: 123};
}
jcompagner wrote:So try to keep everything local.
jcompagner wrote:that should only happen when the code completion does cost more the 5 seconds to complete.
Which is quite long and shouldn't happen. Do you have any errors in the eclipse log? (so the one in the workspace/.metadata)
!ENTRY org.eclipse.ui.workbench 2 0 2011-04-20 05:00:02.658
!MESSAGE A handler conflict occurred. This may disable some commands.
!SUBENTRY 1 org.eclipse.ui.workbench 2 0 2011-04-20 05:00:02.658
!MESSAGE Conflict for 'AUTOGEN:::org.eclipse.ui.cheatsheets.actionSet/org.eclipse.ui.cheatsheets.actions.CheatSheetHelpMenuAction':
HandlerActivation(commandId=AUTOGEN:::org.eclipse.ui.cheatsheets.actionSet/org.eclipse.ui.cheatsheets.actions.CheatSheetHelpMenuAction,
handler=ActionDelegateHandlerProxy(null,org.eclipse.ui.cheatsheets.CheatSheetExtensionFactory:helpMenuAction),
expression=AndExpression(ActionSetExpression(org.eclipse.ui.cheatsheets.actionSet,org.eclipse.ui.internal.WorkbenchWindow@196b753),WorkbenchWindowExpression(org.eclipse.ui.internal.WorkbenchWindow@196b753)),sourcePriority=16640)
HandlerActivation(commandId=AUTOGEN:::org.eclipse.ui.cheatsheets.actionSet/org.eclipse.ui.cheatsheets.actions.CheatSheetHelpMenuAction,
handler=ActionDelegateHandlerProxy(null,org.eclipse.ui.cheatsheets.CheatSheetExtensionFactory:helpMenuAction),
expression=AndExpression(ActionSetExpression(org.eclipse.ui.cheatsheets.actionSet,org.eclipse.ui.internal.WorkbenchWindow@196b753),WorkbenchWindowExpression(org.eclipse.ui.internal.WorkbenchWindow@196b753)),sourcePriority=16640)
Users browsing this forum: No registered users and 1 guest