Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » How to make those customized buttons to be left-aligned on main toolbar
How to make those customized buttons to be left-aligned on main toolbar [message #1281935] Tue, 01 April 2014 15:59
Leon Yuan is currently offline Leon YuanFriend
Messages: 5
Registered: March 2014
Junior Member
hi,
In method Activator.start() of my plugin, I removed the "File" buttons group as below:
 		WorkbenchWindow aWindow = (WorkbenchWindow) PlatformUI.getWorkbench().getWorkbenchWindows()[0];
		if(aWindow != null){
			ICoolBarManager aBarMgr = aWindow.getCoolBarManager2();
			if (aBarMgr != null) {
				IContributionItem aItem = aBarMgr.find("org.eclipse.ui.workbench.file");
			        if (aItem != null) {
					aBarMgr.remove(aItem);
				}
			}	
		}


then I added some new buttons by the way "actionSet";
finally I built the plugin and move it into "plugin" folder of eclipse, a strange thing is that those new buttons on main toolbar is properly left-aligned the first time I start my application (when there's no .metadata folder). However, after that the buttons are not aligned properly anymore. plz see the pic.
index.php/fa/17869/0/
someone can help?
  • Attachment: 1.jpg
    (Size: 32.89KB, Downloaded 286 times)
Previous Topic:Dependent plugin for RCP app at relative path
Next Topic:JSP Compilation Issue for Simple Web Application
Goto Forum:
  


Current Time: Fri Apr 19 12:41:11 GMT 2024

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

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

Back to the top