findNode(Object[] nodes, int offset, boolean searchChildren) Utility method for getRangeElement(int, boolean)
Parameters: nodes - All entries should be instances of IDocumentElementNode Parameters: offset - The offset the cursor is currently on in the document Parameters: searchChildren - true to search child nodes; false otherwise.
getAdapter(Class adapter) Override the getAdapter function to return a list of targets
for the "Show In >" action in the context menu.
Parameters: adapter - A list of targets (IShowInTargetList) for the "Show In >"submenu if the appropriate adapter is passed in and the editoris not read-only.
Utility method for getRangeElement(int, boolean)
Parameters: nodes - All entries should be instances of IDocumentElementNode Parameters: offset - The offset the cursor is currently on in the document Parameters: searchChildren - true to search child nodes; false otherwise. Node the offset is in
Override the getAdapter function to return a list of targets
for the "Show In >" action in the context menu.
Parameters: adapter - A list of targets (IShowInTargetList) for the "Show In >"submenu if the appropriate adapter is passed in and the editoris not read-only. Returns super.getAdapter(adapter)otherwise.