Skip to main content



      Home
Home » Newcomers » Newcomers » Class implementing WorkbenchWindowControlContribution gets called 70 to 80 times(Class implementing WorkbenchWindowControlContribution gets called 70 to 80 times.)
Class implementing WorkbenchWindowControlContribution gets called 70 to 80 times [message #1710321] Tue, 06 October 2015 02:10
Eclipse UserFriend
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
Previous Topic:New Eclipse installation does not start up
Next Topic:Need Help, cant seem to call INTENT on another class file
Goto Forum:
  


Current Time: Thu Apr 17 20:47:55 EDT 2025

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

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

Back to the top