Class implementing WorkbenchWindowControlContribution gets called 70 to 80 times [message #1710321] |
Tue, 06 October 2015 02:10 |
Eclipse User |
|
|
|
Hi,
I am trying to put a label in the status bar,below is the entry i made in the plugin.xml file.
<extension point="org.eclipse.ui.menus">
<menuContribution
locationURI="toolbar:org.eclipse.ui.trim.status">
<toolbar
id="com.bmc.arsys.studio.ui.contributions.userNameContribution">
<control
class="com.bmc.arsys.studio.ui.contributions.UserNameControlContribution"
id="contributions.userNameControlContrib">
</control>
</toolbar>
</menuContribution>
<menuContribution
locationURI="toolbar:org.eclipse.ui.trim.status">
<toolbar
id="com.bmc.arsys.studio.ui.contributions.modeNameContribution">
<control
class="com.bmc.arsys.studio.ui.contributions.ModeNameControlContribution"
id="contributions.modeNameControlContrib">
</control>
</toolbar>
</menuContribution>
</extension>
the problem is with the "id" used in
<control
class="com.bmc.arsys.studio.ui.contributions.UserNameControlContribution"
id="contributions.userNameControlContrib">
</control>
The createControl(*) method of this class is getting called 70-80 times.
But if change the id to something else it is working correctly.
I have looked for this id in my entire workspace and could not find any other occurrence of it.
Another important thing,if i change the id of my second contributionitem from
id="contributions.modeNameControlContrib">
to
id="contributions.userNameControlContrib"> (Id causing the problem)
then createControl(*) method of this class also starts getting called 70 to 80 times.
Please anyone give me some clue as to why this could be happening.
P.S:If i set the id of both the contribution item to the problematic id then whichever item is defined at the end gets called 70-80 times.
Thanks and Regards,
Ankush Rana
|
|
|
Powered by
FUDForum. Page generated in 0.07337 seconds