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
Eclipse UserFriend
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.
Previous Topic:Removing contribution from the plugin
Next Topic:How to give eclipse RCP certification exam ?
Goto Forum:
  


Current Time: Tue Apr 23 16:52:04 GMT 2024

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

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

Back to the top