Bug 120072 Support intellisense for "this" object in script editor & expression builder.
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.
UI/org.eclipse.birt.report.designer.ui.lib.explorer/src/org/eclipse/birt/report/designer/ui/lib/explorer/LibraryExplorerView.java
import org.eclipse.birt.report.designer.internal.ui.views.ILibraryProvider;
import org.eclipse.birt.report.designer.nls.Messages;
import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.IWorkbenchPart;
import org.eclipse.ui.part.IContributedContentsView;
import org.eclipse.ui.part.IPage;
import org.eclipse.ui.part.MessagePage;
import org.eclipse.ui.part.PageBook;
import org.eclipse.ui.part.PageBookView;
/**
 * Attribute view shows the attributes of the selected control. If no control is
 * selected, it will show no attributes and a sentence describing there is
 * nothing to show for the selected object.
 * </p>
 * Multi-selection of control of the same type will normally show the same UI as
 * if only one control was selected. Some of the values may be gray or blank if
 * the selected controls have different attributes. If the controls have
 * different type, nothing will be shown in the attributes view.
 * </P>
 * 
 * 
 */
public class LibraryExplorerView extends PageBookView
{
	/**
	 * the ID
	 */
	public static final String ID = "org.eclipse.birt.report.designer.ui.lib.explorer.view"; 
	private String defaultText = Messages.getString( "LibraryExplorerView.defaultText.notAvailable" );