How to change the style of the main application window shell

Hello,
I am migrating my application from eclipse 3.x to eclipse 4.3 and I want to set the style of the main application window i.e. the shell that is created in application MTrimmedWindow in e4.
Earlier we were doing it using
IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
configurer.setInitialSize(new Point(0, 0));
configurer.setShowCoolBar(false);
configurer.setShowStatusLine(false);
configurer.setShellStyle(SWT.DIALOG_TRIM | SWT.RESIZE);
But now in e4 application after reading some forum replies I got to know that custom renderer needs to be created for that.
I created my own renderer extending WBWRenderer and as I wanted to change the style of shell I am overriding createWidget method.
Now the problem is that if I am just creating a new shell in this createWidget method then it is not working. Might be because this method has a lot of other code also.
So I copied all this code into my overridden method of createWidget & just changed the style of shell according to my need. Then this worked but for this I have to put some private methods also into my custom renderer class from WBWRenderer.
SO my question is to confirm that if I am doing it in a right way?
or is there any other mechanism to do this in a more efficient way?
Thanks

This can now be solved with a specific "persisted state" key flag, as documented in https://bugs.eclipse.org/bugs/show_bug.cgi?id=386951 . For example to realize a NO_TRIM window, add the key/value styleOverride/8, where 8 is the value if you get the numeric of
int val = SWT.NO_TRIM;
System.out.println(val);
Hey Zugi: Liebe Grüsse! Master UIBK/2010

Similar Messages

  • As an update, I installed an update 5.7on my Mac laptop, now the Lightroom 5.0 has become a "Lightroom Mobile" version.  How can change it back to the laptop version?

    As an update, I installed an update 5.7on my Mac laptop, now the Lightroom 5.0 has become a "Lightroom Mobile" version.  How can change it back to the laptop version 5.7?
    Thanks for any help you can provide.

    LR on your laptop is still a desktop version.  It is just now able to upload to the cloud to replicate photos to either http://lightroom.adobe.com/ or an iPad that has LR Mobile installed.
    I think you probably just want to change the LR 5 identity plate back so it doesn’t mention LR Mobile all the time.  Hover over the identity-plate area, and click on the little triangle that appears, then choose Change Identity Plate.

  • How to change a setting in the Java Control Panel with command line

    Hi,
    I am trying to figure out how to change a setting in the Java Control Panel with command line or with a script. I want to enable "Use SSL 2.0 compatible ClientHello format"
    I can't seem to find any documentation on how to change settings in the Java Control Panel via the command line
    Edited by: 897133 on Nov 14, 2011 7:15 AM

    OK figured it out. This is for the next person seeking the same solution.
    When you click on the Java Control Panel (found in the Control panel) in any version of Windows, it first looks for a System Wide Java Configuration (found here: C:\Windows\Sun\Java\Deployment). At this point you must be wondering why you don't have this folder (C:\Windows\Sun\Java\Deployment) or why its empty. Well, for an enterprise environment, you have to create it and place something in it - it doesn't exist by default. So you'll need a script (I used Autoit) to create the directory structure and place the the two files into it. The two files are "deployment.properties" and "deployment.config".
    Example: When you click on the Java Control Panel it first checks to see if this directory exists (C:\Windows\Sun\Java\Deployment) and then checks if there is a "deployment.config". If there is one it opens it and reads it. If it doesn't exist, Java creates user settings found here C:\Users\USERNAME\AppData\LocalLow\Sun\Java\Deployment on Windows 7.
    __deployment.config__
    It should look like this inside:
    *#deployment.config*
    *#Mon Nov 14 13:06:38 AST 2011*
    *# The First line below specifies if this config is mandatory which is simple enough*
    *# The second line just tells Java where to the properties of your Java Configuration*
    *# NOTE: These java settings will be applied to each user file and will overwrite existing ones*
    deployment.system.config.mandatory=True
    deployment.system.config=file\:C\:/WINDOWS/Sun/Java/Deployment/deployment.properties
    If you look in C:\Users\USERNAME\AppData\LocalLow\Sun\Java\Deployment on Windows 7 for example you will find "deployment.properties". You can use this as your default example and add your settings to it.
    How?
    Easy. If you want to add *"Use SSL 2.0 compatible ClientHello format"*
    Add this line:
    deployment.security.SSLv2Hello=true
    Maybe you want to disable Java update (which is a big problem for enterprises)
    Add these lines:
    deployment.javaws.autodownload=NEVER
    deployment.javaws.autodownload.locked=
    Below is a basic AutoIt script you could use (It compiles the files into the executable. When you compile the script the two Java files must be in the directory you specify in the FileInstall line, which can be anything you choose. It will also create your directory structure):
    #NoTrayIcon
    #RequireAdmin
    #Region ;**** Directives created by AutoIt3Wrapper_GUI ****
    #AutoIt3Wrapper_UseX64=n
    #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
    Func _JavaConfig()
         $ConfigFile_1 = @TempDir & "\deployment.properties"
         $ConfigFile_2 = @TempDir & "\deployment.config"
         FileInstall ("D:\My Documents\Autoit\Java config\deployment.properties", $ConfigFile_1)
    FileInstall ("D:\My Documents\Autoit\Java config\deployment.config", $ConfigFile_2)
         FileCopy($ConfigFile_1, @WindowsDir & "\Sun\Java\Deployment\", 9)
         FileCopy($ConfigFile_2, @WindowsDir & "\Sun\Java\Deployment\", 9)
         Sleep(10000)
         FileDelete(@TempDir & "\deployment.properties")
         FileDelete(@TempDir & "\deployment.config")
    EndFunc
    _JavaConfig()
    Now if you have SCUP and have setup Self Cert for your organization, you just need to create a SCUP update for JRE.
    Edited by: 897133 on Nov 16, 2011 4:53 AM

  • How to update table styles in the new Pages?

    Anyone found out how to update table styles in the new Pages? I see it's done in some of the templates that Apple provided, but I can't find it. Also, the Copy table style command is gone, so I can't make my tables look in a uniform way, unless I use one of the built-in styles.
    Thanks.

    I'm having the same trouble. Looks like no way to create an overal 'table' style and I cannot access the table paragraph styles either.

  • [svn:bz-trunk] 20754: My latest EndpointPushNotifier change changed the style of the code quite a bit  (sorry for that, it was my IDE settings getting in the loop here) I only changed one char line 389.

    Revision: 20754
    Revision: 20754
    Author:   [email protected]
    Date:     2011-03-10 03:36:05 -0800 (Thu, 10 Mar 2011)
    Log Message:
    My latest EndpointPushNotifier change changed the style of the code quite a bit (sorry for that, it was my IDE settings getting in the loop here) I only changed one char line 389.
    Modified Paths:
        blazeds/trunk/modules/core/src/flex/messaging/client/EndpointPushNotifier.java

    I seem to have fixed it by putting <div  class="clearfloat"></div> after the navigation bar?

  • How to change a connection with the database in Runtime?

    How to change a connection with the database in Runtime?
    My connection was made using ADF Business component (ApplicationModule).
    ADF Swing.
    JDeveloper Studio 11.1.1.4.0.

    When deploying ADF applications with database connection, you should be using JDBC data sources configured in the weblogic server.
    You could change the JDBC data sources to a different DB instance or location - by changing the JDBC data source and restarting the weblogic server.
    For more details, check
    http://techiecook.wordpress.com/2010/12/02/oracle-weblogic-adf-datasources/
    Thanks,
    Navaneeth

  • In camera I can't change the style of the picture

    In camera I can't change the style of the picture

    You have to give more info if you want any help.
    What were you doing?
    What IOS version and which iPhone do you have?

  • How to change html style titles of a JTabbedPne at run time??

    hi,
    how to change html style titles of a JTabbedPne at run time??
    setTitleAt is not working...

    You can't change the canvas at runtime. But you can put the scrollbar on a stacked canvas and then show or hide that stacked canvas on different canvases.

  • Where are my screens!!??? All my task windows work but the main application window where I Can see my work is missing!

    All my task windows work but the main application window where I Can see my work is missing!
    Help Me!
    I have two operational websites that I can't acces!

    Try the following:
    delete the iWeb preference files, com.apple.iWeb.plist and com.apple.iWeb.plist.lockfile, that resides in your Home() /Library/Preferences folder.
    go to your Home()/Library/Caches/com.apple.iWeb folder and delete its contents.
    Click to view full size
    launch iWeb and try again.
    If that doesn't help continue with:
    move the domain file from your Home/Library/Application Support/iWeb folder to the Desktop.
    launch iWeb, create a new test site, save the new domain file and close iWeb.
    go to the your Home/Library/Application Support/iWeb folder and delete the new domain file.
    move your original domain file from the Desktop to the iWeb folder.
    launch iWeb and try again.
    OT

  • Close main application window in WD for Java

    Hi there,
    Is there anyway I can close the main application window(not popup) programatically.
    I tried calling the exit plug in the interface view controller, but doesnt seem to close the window automatically.
    I am having 2 components, one calling the other..
    Any help will be greatly appreciated.
    Many Thanks
    lm

    Hi LM,
    Check Re: Close the parent window especialy Nibu`s suggestion.
    <i>
    1) In your Interface view, create an exit plug with a parameter Url of type string.
    2) Add your Interface view controller to your current view's required controller. (in properties tab of your view)
    3) After opening the new External window fire the outbound plug as :
    wdThis.wdGet<your interface view controller>().wdFirePlug<your exit plug's name>("javascript:void(window.close())");
    </i>
    It should work for you.
    Best regards, Maksim Rashchynski.

  • HTMLLoader, main application window and scrollbars

    If I instantiate HTMLLoader with "new HTMLLoader.createRootWindow()," scrollbars show up correctly when text overflows the set width and height. I can add it to the stage, but I'm still left with an empty popped up native window
    If I instantiate HTMLLoader with simply "new HTMLLoader()," you can add it to the stage, but it doesn't include scrollbars when the window overflows with text.
    What I want to do is incredibly simple - create a new HTMLLoader instance, have as part of my main application's stage, and get the benefit of the built-in scrollbars.  Why is that so difficult?

    OK - my problem with the HTML Control is I can't seem to add it to a child custom class.
    i.e. - I have my main Air app and a custom class extending UIComponent. I add the custom class to the stage in the main app, and in the custom class, add an HTML Control.  I'm also adding a different HTML Control to the main app.
    Only the HTML in the main app actually shows up. No errors given. What am I missing here?
    Main Air app mxml:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()">
    <mx:Script>
    <![CDATA[
    import mx.controls.HTML;
    var _myComp:Comp;
    private function init():void {
    _myComp = new Comp();
    _myComp.init();
    _myComp.x = 200;
    _myComp.y = 200;
    addChild(_myComp)
    var html:HTML = new HTML();
    html.htmlText = "Text on main application window"
    addChild(html);
    ]]>
    </mx:Script>
    </mx:WindowedApplication>
    Comp Class:
    package {
    import flash.display.Shape;
    import mx.controls.HTML;
    import mx.core.UIComponent;
    public class Comp extends UIComponent {
    public function Comp() {
    public function init():void {
    var shape:Shape = new Shape()
    shape.graphics.beginFill(0,1)
    shape.graphics.drawRect(0,0,200,400);
    shape.graphics.endFill();
    addChild(shape)
    var html:HTML = new HTML();
    html.htmlText = "Text Inside child component";
    html.x = 200
    this.addChild(html);
    trace(html.htmlText)

  • How to use character styles in the Find/Change JavaScripts?

    First, good luck to Ole. He's been so helpful (and such a good writer, too). All the best!
    My Find/Change JavaScripts are running into trouble at line 159 of the ExtendScript Toolkit. The script is searching for a particular font, to which it should then apply a character style. I'm using the format I see in Adobe's "FindChangeList" sample text, but the script is still hitting a wall. What am I doing wrong? I'd like to have a working method for searching, not only for fonts, but also for finding a particular character or paragraph style and then applying a new style.
    Simple stuff, but I'm roadblocked.
    Here is the script so far:
    //This script applies the DFKai character style to the Arial Unicode font.
    text {findWhat:"", appliedFont:"Arial Unicode MS", fontStyle:"Regular"} {appliedCharacterStyle:"DFKai"} {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false} Find Unicode font; change to DFKai character style.
    Thanks for your help!
    Gary Niemeier

    You are absolutely correct. I don't know how those spaces got there! I copied the text from the "FindChangeList.txt" document, but somewhere along the way, a software program "helpfully" added the spaces. (Rest assured, it wasn't copied from AppleScript. I stick with JavaScript.) Anyway, the script now runs like a charm.
    My thanks to you! Another "newbie" mistake easily spotted, eh?
    One thing, though, if Adobe is reading this: please flesh out the "FindChangeList.txt" file for those who are not programmers/scripters. I'm just a normal InDesign user, and I really need examples of basic syntax in order to use the "Find/Change" script correctly. I'm referring to the syntax involved with finding or changing text with a certain character or paragraph style. I often search for styles, and those properties should be provided in the help file. A couple of samples are all that's needed. (I did read through the JavaScript reference guide provided by Adobe, and even in the "Find/Change" section, it did not provide this information!). Furthermore, I often search text for a specific font. Why isn't this syntax included as well? It would easy to do and would save users a lot of fumbling around.
    Thanks again, all the best.

  • How to change page type after the fact

    In the application builder, I click on an application and choose Details in View.
    I get the list of pages I have in my app.
    The page type column has:
    Interactive Report
    Navigation Form
    Dynamic HTML
    DML Form
    Chart
    Report
    How do I change this column after a page has long been created?
    Specifically, I want to the change "Dynamic HTML" to something else.
    Why?
    Because on this particular page, tabs do not work (error: page not found).
    Buttons created among a regions items do not work (same error, page not found).
    I need to use tab and buttons to go from this page to other pages.
    And I am suspecting the page type may have something to do with my problem.
    Thanks in advance for any pointers.

    Thanks for your consideration!
    For my current app, a clinical management system,
    I'd like to have, say, 1000 items.
    (For other applications I am thinking about, but have no time,
    nor expertise for now, I'd need millions of items,
    each corresponding to a pixel of a graphic.)
    Who cares if the current computers are too slow?
    How about make it a parameter that can be changed
    per app or per apex installation, and default to 100?
    Some forms can be broken up logically, as people have helpfully suggested,
    and I did follow that advise on some pages.
    But other forms cannot be. People have put a lot of thought on designing
    those forms, they are government or legal standards (or at least something more important
    than computer performance), and people have been trained
    with those original forms.
    Consider the hoops I have to jump through to get more than 100 items
    on a page I am currently working on:
    Generate the items (INPUT type="text" and INPUT type="checkbox") using PLSQL
    lots of htp.p('<INPUT ...>').
    a JavaScript function to collect all the values on the page
    and make up an XML string. submits this string to an application
    process, and application process parses the XML string and does insert or update.
    Another JavaScript to populate the items based on the current values of a row,
    using an application process to retrieve the columns of a row.
    There are about 150 items on this particular page.
    All these are ok, because I was aware of the restriction of 100.
    And because I wanted to generate my own HTML to mimic the original
    form anyway.
    Then things started to go weird.
    I need buttons to go back to another page. and I use tabs.
    Buttons to go back from this page,
    when a button is created with "Create a button in a region position",
    it works fine.
    When a button is created with "Create a button displayed among this region's items",
    it does not work, and I get HTTP 404, https://.../apex/wwv_flow.accept, page cannot be found.
    But I need a button to work like the one created with "Create a button in a region position",
    but displayed like the one created with "Create a button displayed among this region's items".
    This is still not too bad. I saw the difference between the two kinds of buttons.
    I copied the HTML code for the button "Create a button in a region position",
    and used a display only item to create a Back button where I wanted:
    '<table class="t15Button" cellspacing="0" cellpadding="0" border="0"><tr><td class="t15L"><img src="/i/themes/theme_15/button-l.gif"/></td>'||
    '<td class="t15C">Back</td>'||
    '<td class="t15R"><img src="/i/themes/theme_15/button-r.gif"/></td></tr></table>'
    Here P145_BACK holds the page number to which I want this page to go back to.
    Then I noticed that the tabs did not work any more. same error, page not found.
    That's is when I got a little frustrated and posted for help on the forum.
    Then I begin to undo my steps, and
    by lucky accident, I noticed that, if none of the checkboxes is checked,
    the tabs work fine. If at least one is checked, I get this error, page not found.
    My current solution is to add a function of my own in the doSubmit(B) function in file apex_3_1.js,
    which unchecks all checkboxes (o.checked=false).
    And now, from this page of about 150 items,
    the tabs are ok, and I have a button that is similar to one
    created with "Create a button displayed among this region's items", except I created myself
    using HTML.
    I think this trick of using a custom function in doSubmit(), that unchecks or even hides
    INPUT type="text" items (o_div.style.visibility = "hidden"; o_div.style.display = "none";)
    should work in general. this function is only invoked when the user clicks the tab,
    or buttons among a region's items.
    Somebody said regarding restrictions on drugs or sex.....
    you will not make people stop, you just make it harder or more expensive.
    Same here and many other things, a restriction is just making things harder.
    People will try to get around it.
    Now that I have a solution, and I am aware of the problem, I'll calm down and
    go back to my own thing for now.

  • How to change podcast settings in the Application options dialog

    I have attempted to subscribe to an RSS feed for a podcast - URL is http://www.abc.net.au/triplej/kingsmill/rss/podcast.xml
    I am being prompted to join using live bookmarks. As i use Google reader, there is no option available to change it to google. Hitting the dropdown arrow, my choices are live bookmarks or Microsoft Outlook - or browse for application. How do i change / remove the applications entry for RSS so i can start over and select Google as a default
    The Options / Application / Podcast - has the RSS logo - says "preview in firefox"

    Apple does not make what you are asking straightforward for a reason: the user usually sets the system language to the one they prefer anyway.
    If you think you have a good reason for setting the language in the application itself, I would suggest using the pathForResource:ofType:inDirectory:forLocalization: method of the main bundle to get the applicable strings file and then deserialize it into a dictionary as if it were a plist (strings files actually are).

  • How to change Font Type of the Title Text of a JFrame?

    Hi,
    I want to set a different Font Type for the Title text of the titlebar of my JFrame.
    Is it possible? Can anyone show me how if it is?
    Thanks.
    Niteen

    Michael,
    Thanks. It works!
    But there was a problem. I was not using the :-
    JFrame.setDefaultLookAndFeelDecorated(true);
    so I have to use it now.
    Is it possible to do it without the default decorated look and feel? Because the default LNF title bar has too much height and I am cramped for space.
    I know that's no excuse. I tried but it doesn't work.. I am using a extended JFrame like this:-
    class Testing extends JFrame
    public Testing()
    setSize(300,100);
    setLocation(400,200);
    Container container = getContentPane();
    /* add components to this container here */
    setVisible(true);
    When I use getComponent() for the container, I get an ArrayIndexOutOfBound Exception.
    When I set the argument to getComponent(0), the font in the title bar is not changed.
    What else should I do?
    Thanks.
    Niteen.

Maybe you are looking for

  • How does one create a photo book of a custom size? Only option available is 11x 8.5 inches

    Please help me with the basic steps for creating a photo book in pse12 of a custom size e.g. 12x15 I want to create design using pse12 and get the album printed by a local vendor. Please help. I am stuck with the fixed size offered by Adobe. I want t

  • Unable to find the column pay value and monthly salary in element entries

    hi, iam unable to find the payvalue and monthly salary in element entries form. people enter and maintain> assignment > entries >entry values.. please tell me the table and column where the payvalue and monthlly salary is going to get populate. Thank

  • New GL allocations using customer fields functionality

    Can anybody throw light on New GL FI allocations using extended fields(Customer fields). Not much info is present on this topic and detailed steps on how to achieve this would be appreciated. I am basically trying to allocate between a cost center to

  • My .jar and .jad files are not launching

    Hello everyone! I have a problem with my files stated above. I am unable to open them. I see a yellow key at the top right corner on the icons. I Have checked them. They don't have QT errors either. I have gone through the D and Z drives by Xplore bu

  • Group tabs in Safari 7?

    I love Safari 7, but it's really anoying that there's no easy way to group tabs. I often have twenty tabs open, some of whicha re for work, some of which are other hoem related pages. Is there not a way of grouping them, like in Firefox? Thank you in