Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » CommonNavigator (CNF) and CheckboxTreeViewer
CommonNavigator (CNF) and CheckboxTreeViewer [message #524936] Sun, 04 April 2010 09:29 Go to next message
Eclipse UserFriend
Does anybody know if it is possible to use a CheckboxTreeViewer with the CNF? I wanted to take advantage of the CNF architecture (and declarative contributions) but I wanted to render checkboxes with each node.

Is this possible?
Re: CommonNavigator (CNF) and CheckboxTreeViewer [message #527228 is a reply to message #524936] Wed, 14 April 2010 10:18 Go to previous message
Eclipse UserFriend
Hi Epoch,

Yes. Override this method of the navigator:

/**
* Constructs and returns an instance of {@link CommonViewer}. The ID of the
* Eclipse view part will be used to create the viewer.
*
* Override this method if you want a subclass of the CommonViewer
*
* @param aParent
* A composite parent to contain the CommonViewer
* @return An instance of CommonViewer
* @since 3.4
*/
protected CommonViewer createCommonViewerObject(Composite aParent) {
return new CommonViewer(getViewSite().getId(), aParent, SWT.CHECK
| SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL);
}

--

Best Regards,
Wim Jongman
-- ASCII question, get an ANSI!
(Eclipse Old Skool Quote Service)

> Does anybody know if it is possible to use a CheckboxTreeViewer with the
CNF? I wanted to take advantage of the CNF architecture (and declarative
contributions) but I wanted to render checkboxes with each node.
>
> Is this possible?
Previous Topic:how to implement Zoom Bar in ScalableFreeformRootEditPart
Next Topic:Adding Checkbox in specific columns of nebula Grid Tree Viewer
Goto Forum:
  


Current Time: Tue Jun 24 01:10:01 EDT 2025

Powered by FUDForum. Page generated in 0.11805 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top