Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Modifying the main menu and app title on OSX
Modifying the main menu and app title on OSX [message #1075488] Mon, 29 July 2013 14:09
Ric Wright is currently offline Ric WrightFriend
Messages: 70
Registered: July 2009
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
<meta name="Generator" content="Cocoa HTML Writer">
<meta name="CocoaVersion" content="1187.39">
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Verdana}
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Verdana; min-height: 17.0px}
p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Verdana; color: #0433ff}
span.s1 {text-decoration: underline}
span.s2 {color: #000000}
<p class="p1">If one creates the simple "Hello RCP" app using the basic wizard in Eclipse, it creates a simple window with "Hello RCP" as the title of the "window" that it creates.<span class="Apple-converted-space">  </span>However, the main menu bar is named "SWT" and has two menu items "Run" and "Search".<span class="Apple-converted-space">  </span>I figured out (through some painful searches and experiments) how to set up my own menus and items, but it isn't clear how to programmatically remove these other menus/items.<span class="Apple-converted-space">  </span>They get set somewhere in the bowels of the RCP setup but it isn't immediately obvious where (and if<span class="Apple-converted-space">  </span>documented I couldn't find it).</p>
<p class="p2"><br></p>
<p class="p1">Moreover, the main menubar title is "SWT".<span class="Apple-converted-space">  </span>Again, it isn't clear how to change it to my own title - changing the value in the product file doesn't work.<span class="Apple-converted-space">  </span>I found one article that proposed dealing with it for standalone SWT apps by renaming the shell</p>
<p class="p2"><br></p>
<p class="p3"><span class="s1"><a href=""></a></span><span class="s2"><span class="Apple-converted-space"> </span></span></p>
<p class="p2"><br></p>
<p class="p1">But he blithely says that it works fine in RCP apps.<span class="Apple-converted-space">  </span>Unfortunately this is not true as checking out innumerable tutorials shows.<span class="Apple-converted-space">  </span>I've even seen some "production" RCP apps that say 'SWT' on the main menu bar.<span class="Apple-converted-space">  </span>I've yet to come across a RCP app that has it's own name on the main menu bar (not the client window, the main menu bar or window).<span class="Apple-converted-space">  </span>I tried getting the runtime shell and changing the text but that didn't work either.</p>
<p class="p2"><br></p>
<p class="p1">Perhaps it's obvious, but not to me.<span class="Apple-converted-space">  </span>Anyone know how this might be done?<span class="Apple-converted-space"> </span></p>
<p class="p2"><br></p>
<p class="p1">TIA, RIc</p>
Previous Topic:how can to call setGlobalActionHandler of WWinActionBars
Next Topic:How show packageexplorer in my rcp.(e4)
Goto Forum:

Current Time: Mon Jun 18 19:35:51 GMT 2018

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

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

Back to the top