Project: Birt
Bug 120072 Support intellisense for "this" object in script editor & expression builder.
Reported: 2005-12-09 02:36:37 | Status: resolved fixed

In BIRT, "this" object in javaScript methods represents the current report item or report item instamnce, for example, "this" object represents an ILabel object in label report item's onPrepare() method, and an ILabelInstance object in label report item's onCreate() and onRender() method. Script editor should support inteli-sense for "this" object for all report items. DE will define those methods using standard ROM method defintion, and the first argument will be the "this" object. This is also consistent with eventhandler interface defined for java event handler. Script editor (GUI) should use DE-API to get the classtype of the first argument of the current method, and use reflection to get all the methods defined on this classes, and display after the "this." is enetered.

Files changed in fix:
UI/org.eclipse.birt.report.designer.core/src/org/eclipse/birt/report/designer/util/DEUtil.java UI/org.eclipse.birt.report.designer.ui.ide/src/org/eclipse/birt/report/designer/ui/ide/wizards/SaveReportAsWizard.java UI/org.eclipse.birt.report.designer.ui.ide/src/org/eclipse/birt/report/designer/ui/ide/wizards/SaveReportAsWizardDialog.java UI/org.eclipse.birt.report.designer.ui.ide/src/org/eclipse/birt/report/designer/ui/ide/wizards/WizardSaveAsPage.java UI/org.eclipse.birt.report.designer.ui.lib.explorer/src/org/eclipse/birt/report/designer/ui/lib/explorer/LibraryExplorerTreeViewPage.java UI/org.eclipse.birt.report.designer.ui.lib.explorer/src/org/eclipse/birt/report/designer/ui/lib/explorer/LibraryExplorerView.java UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dialogs/TemplateReportItemPropertiesDialog.java UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/wizards/WizardReportSettingPage.java UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/actions/PublishTemplateAction.java