[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Re: MacOS: SWT instead the application's name at menu

Víctor Conesa wrote:
Hi guys,

I've a strange problem I can't resolve and I explain it to you in case any of you could help me. I've an RCP application that I can export out of the eclipse and run it in a Mac enviroment. Everithing works pretty fine, even the main menu bar (with the preferences and the application's name working so good and at place) but I have to obfuscate the code (using ZelixClassMaster) and after the obfuscation, the main menu shows "SWT" as the first item instead the application's name. Anybody know where is exactly the RCP system looking for the application's name?

Thanks in advance!

Víctor Conesa Ribelles
Product Manager at Justinmind
www.justinmind.com




The topbar application name for the Mac is set by Display.setAppName(...) and works well if placed at the very beginning of main(...).


public static void main(String[] args) {
				
	Display.setAppName("Case Study"); // topmenu appname for Mac OS
	Display display= new Display();	
	Shell shell= new Shell(display);	

...