How to set initial size of Console window in RCP application - swt

I am working on RCP application, in my application one composite is there at first half horizontal space and after that Console window is there.
But the size if console window is small when I opens RCP application and there is much space between console window and other elements in above composite.
Please refer below screenshot for initial size of console when I open RCP app :
Initial Size Of Console:
And I want initial size of console is like :
So each time I have to resize console manually when I opens RCP app.
I have used consolePageParticipants extension in RCP app :
<extension point="org.eclipse.ui.console.consolePageParticipants">
<consolePageParticipant
id="com.example.ExamplePageParticipant"
class="com.example.ExamplePageParticipant">
</consolePageParticipant>
</extension>
How can I set initial size of console window in RCP application?
Could you please help me with it?
Thanks In Advance!!

I had added upper view in perspective(org.eclipse.ui.perspectiveExtensions) but in relative there was org.eclipse.ui.editorss.
Now, I have changed relative as org.eclipse.ui.console.ConsoleView and added ratio and relationship of upperview as top :
<perspectiveExtension
targetID="*">
<view
id="<My Upper View ID'"
minimized="false"
ratio="0.30"
relationship="top"
relative="org.eclipse.ui.console.ConsoleView">
</view>
</perspectiveExtension>
This resolved my issue.
Thank you so much for all your inputs!

Related

Can you zoom the windowbuilder in order to see more of your design?

I am working a project on windowbuilder of eclipse. My frame is fullscreen so it does not fit in the design page of WB.
The same problem also happens with JScrollPanes, in the design-view of Windowbuilder you can see the scrollbars, but you cant use them.
Is there anyway to zoom out WB so that I can have overall view of my window?
You cannot zoom in/out in window builder but you can use the editor scroll bars to view to specific parts of your large window area, you can also right click and select "preview" to see the actual application window. If you cannot see the scroll bars in the window builder editor and you are using a mac, use an external mouse and they will show up. Also add this to your eclipse.ini file -Dswt.enable.themedScrollBar=false
Hope that helps - Duncan Krebs

Cannot see my code on the debug windows

Hi I used the Eclipse for creating a project. I don't know what I did that make my code didn't show on the debug windows. How to solve this problem?
It is because the console log window is on top of the editor. Resize it to be shorter.
You could also just reset your perspective to the default layout. Use Window > Reset Perspective... menu item.

Show Eclipse mini progress bar?

Silly question: How do I get the tiny progress bar back in Eclipse ? I managed to drag it out of existance...
I don't know how you remove only progress bar.
I guess you removed console window. To add console window go to
Window --> Show View --> console
Maximize eclipse window and it will pop back up. Worked for me.
Restoring Down and Maximizing the Eclipse window also did the trick for me.

How Can I Show Console Tab in Different Monitor for Eclipse?

i'am using Eclipse and two monitors. My Laptos's screen is not enough big to show Console tap. Is there a way for showing Console Tab at different monitor screen?
Idea?
Yes, you can. You can drag the Console tap out of Eclipse workbench window. Then the view is detached from the workbench window. After the view is detached, you can move it to the other monitor screen.
Anyone else had the popped out console window move back to the primary monitor after it has been dragged to the secondary monitor? Seems to happen when eclipse pops up a dialog box for some reason.
This is a bit annoying. I like having a console window on a monitor I've got in portrait mode, very handy for watching unit tests execute.

How can I take eclipse out of MDI mode?

Does anyone know of a way to make Eclipse an SDI application rather than an MDI one?
SDI - Single document interface, each pane is its own window
MDI - Multiple document interface, all of the panes are stuck inside one "master" window.
Eclipse is an MDI application. All of the little panes (like the call stack, variable viewer, etc) are part of the one master Eclipse window. Rather than having all of the windows stuck inside one master "eclipse" window, I'd like them to all be their own free-floating windows.
To make a pane "free-floatting" just drag that pane outside the main eclipse window.
If you have only one monitor, you have to resize first your eclipse window: you can not leave eclipse maximized on all the screen space.
Then you have to drag your pane outside the eclipse window until you see the cursor change into a little window with a '+' in the middle.
Once all your panes are in the required position, save your configuration in a new perspective. (Menu Window\Save Perspective As)
That way, you can switch between panes configurations easily.
Regarding the SDI aspect however, the editor part of eclipse is made to edit several document (so, MDI only).
Karl's double-click suggestion is the most effective to focus on one of those edited document.
Hit the little X next to each document until there is only one open.
Alternatively, doubleclick on the tab to maximize it.
Then edit your question to give some more information about what you really want to do.
No, Unfortuantly Eclipse 3.x and lower do not allow the editor window to be outside the application window. You can drag other windows outside the main window to give you more editor space, but you cannot for example drag an editor outside the main eclipse window onto a second monitor and to have another code window open on the main monitor. This feature seems to be scheduled for Eclipse 4. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=8886 for this feature.