How to restrict the window of RCP app from resizing? - eclipse

I want to restrict the window size of an RCP app from resizing.
So in prewindowopen of ApplicationWorkbenchWindowAdvisor class I tried
IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
configurer.setShellStyle(SWT.CLOSE | SWT.MIN | SWT.MODELESS | SWT.BORDER | SWT.TITLE);
But it does not seem to have any effect on the window. When I tried the same things in a dialog this seems to work. Any clue on this will really help.

This looks like Eclipse bug 432501 which is saying the setShellStyle is being ignored in Eclipse 4. There is currently no fix for this.

Related

Import popup not displaying

In my IntelliJ, auto import pop-up is not displaying although "show import pop-up" is ticked in the settings so I always have to manually type import java.util..... at the top.
I found some similar questions and tried out their solutions, but none of them worked.
I'm new to Java and started using IntelliJ just a week ago, but if I remember correctly the pop-up was displayed at first.
I didn't update any settings and have no clue how I can make it back.
Also, unlike many screenshots of other people's intelliJ, the color of code in my intelliJ are all white except for some keywords which are orange and string which is green.
Not sure if it has something to do with this issue tho.
Could anyone help me find out what could be a problem?
Please follow below instruction, by that you can fix your issues.
1) Go to setting and in the Settings/Preferences dialog (Ctrl+Alt+S), click Editor | General | Auto Import.
2) Select the Add unambiguous imports on the fly checkbox, and apply the changes.
3) After apply the changes , restart the Intellij idea.
It turned out "Power Save Mode" was on, which caused this problem.
I turned it on now and the issue was solved.

eclipse rcp plugin - removing default title bar of workbench window

I want my rcp plugin without the default title bar and border. I have tried configuerer.setshellstyle (SWT.No_TRIM). But it does not work.
How can i do it?
Unfortunately in Eclipse 4 the setShellStyle call is being ignored (see Eclipse bug 432501).
You might be able to use the 'styleOveride' value in the LegacyIDE.e4xmi file to set the style (more details here)

what is the name of the very bottom of the eclipse window? I want to turn it off but can't until I know what its called

I like to keep as much of my Eclipse screen as possible for code. So I try to disable or turn off as many of the extra bars and such as possible. The area at the very bottom of the Eclipse screen is my next target but I don't know what it's called.
Can anyone tell me the name of this area and how to reclaim it? Thanks.
Here is an eclipse plug-in which hides/shows Menu bar and/or Status bar.
User can change these options in Windows > Preferences > Full Screen
But Hiding Status bar was NOT working on my machine
Ubuntu 13.10 Eclipse Version: Kepler Release Build id: 20130614-0229
This are is called the Status Line but it composed of a number of different components such as the progress indicator, editor current line and row, and the message area.
I am not aware of anything that will turn it all off.
I can see why you're eager to close that. It looks like your screen resolution is extremely low. Are you using a netbook perhaps?
Here's the problem though: On your screen, that part looks quite large and looks empty but it's because of your screen size. I'm fairly certain it doesn't have a name and having scoured the options, I'm convinced it can't be removed. On my screen, that section contains only a few words: "Writable | Smart Insert | 423:32"
Essentially, the words that show up there are a guide for your current editing mode and location in the file. I don't think it can be turned off. If you hit Ctrl + M, it will hide almost everything possible on maximize your editor view.
On my screen, that little bar is very small. That is of course because I have a high screen resolution. If possible, try increasing the resolution on your screen to something more appropriate. You'll find you have a lot more space to code, and that little bar will become much smaller.
In eclipse oxygen there is option to hide status bar:
Windows->Appearance->Hide_status_bar

Hiding show view toolbar in eclipse

I want to remove this toolbar shown in the image. I have tried disabling all other items in the toolbar but this one doesn't seem to go. This toolbar is blocking my editor's space and I want to get rid of it. Please tell me a way to remove this.
Thanks
I think you could try writing your own WorbenchWindow or WorkbenchPage (not sure exactly which right now) and overwrite maybe createWindowContents.
See this from here (i got this quote from there, but maybe you can find a book or better reference for this):
There are limitations as to when you can override the Workbench
window. The Workbench's default implementation of
createWindowContents() creates controls that are not available to
clients, such as the job progress area, the trim that docks fast
views, and the perspective bar. When you override
createWindowContents(), you lose these areas.
There's no way of removing it. I have tried finding solutions but it isn't customizable
Hey looks like they solved this issue in eclipse juno .. just download juno and life is good !
Which version of eclipse you are using?You can toggle the toolbar visibility by clicking Window->Hide Toolbar or Window->Show toolbar

How to get the quickfix menu in RubyMine?

According to http://blogs.jetbrains.com/ruby/2009/08/whats-mining-rails-i18n-support/ there should be a quick fix menu that allows me to create translation keys. It seems to be related to the light bulb but in the latest RubyMine (RM-96.886) I don't seem to get the little lightbulb. Any ideas how to get to that menu?
Make sure you have 'i18n string value' intention enabled in IDE Settings | Intentions | Ruby.
When you're on a string in the code try Alt+Enter (Option+Enter on Mac). It should show the quick-fix popup.