Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Finding all the controls in a View
Finding all the controls in a View [message #1759799] Tue, 18 April 2017 14:47
Naveen Sabapathy is currently offline Naveen SabapathyFriend
Messages: 46
Registered: July 2016
Member
I'm creating a View. The View contains a Combo control. Based on the selection in the Combo, I want to perform some operation in the View. How to access the between control and the View or vice versa. (I dont want to create any static access).

Code for combo control.
<control class="com.test.rac.actions.V4BPCColumnControlContribution"
		 id="com.test.rac.actions.ColumnControlContribution">
   <visibleWhen>
	  <with
			variable="rac_command_suppression">
		 <not>
			<iterate
				  operator="or">
			   <equals
					 value="com.test.rac.ptiview.row">
			   </equals>
			</iterate>
		 </not>
	  </with>
   </visibleWhen>
</control>
Re: Finding all the controls in a View [message #1759821 is a reply to message #1759799] Tue, 18 April 2017 09:04 Go to previous message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 786
Registered: January 2012
Senior Member

So typically you'd have your control and view operate against a shared model object. You can obtain the model by various means such as an OSGi service, via the E4 Eclipse Context hierarchy (e.g., hosted in the window's context), or some other approach -- or combination.

Eclipse Platform committer. Ask me about Eclipse support, training, and consulting.
Previous Topic:Removing contribution from the plugin
Next Topic:How to give eclipse RCP certification exam ?
Goto Forum:
  


Current Time: Thu Nov 15 14:16:53 GMT 2018

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

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

Back to the top