Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » CommonNavigator (CNF) and CheckboxTreeViewer
CommonNavigator (CNF) and CheckboxTreeViewer [message #524936] Sun, 04 April 2010 13:29 Go to next message
epoch  is currently offline epoch
Messages: 12
Registered: September 2009
Junior Member
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 14:18 Go to previous message
Wim Jongman is currently offline Wim Jongman
Messages: 418
Registered: July 2009
Senior Member
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 Sep 30 12:09:19 GMT 2014

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

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