Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to minimize a view programatically in eclipse kepler(How to minimize a view programatically in eclipse kepler)
How to minimize a view programatically in eclipse kepler [message #1415997] Thu, 04 September 2014 05:58
Kondal Kolipaka is currently offline Kondal KolipakaFriend
Messages: 9
Registered: November 2010
Junior Member
During the eclipse startup itself, I wanted to keep all the views in the minimized way, so that it will be added to the side toolbar. It will opened by the end user only on the need basis.

I have tried the following.
Fast views - it's not working in eclipse kepler, but the same thing worked in the helios.

Even tried minimizing through workbench page
IViewPart showView = page.showView(View.ID);
IWorkbenchPartReference myView = page.findViewReference(View.ID);
page.setPartState(myView, IWorkbenchPage.STATE_MINIMIZED);

This added the view as a tool item in the side bar, but when I click on the tool item it will not open up the view, rather it's throwing null pointer exception in the trim bar.

at org.eclipse.e4.ui.workbench.addons.minmax.TrimStack.showStack(
at org.eclipse.e4.ui.workbench.addons.minmax.TrimStack$8.widgetSelected(
at org.eclipse.swt.widgets.TypedListener.handleEvent(
at org.eclipse.swt.widgets.EventTable.sendEvent(
at org.eclipse.swt.widgets.Widget.sendEvent(
at org.eclipse.swt.widgets.Display.runDeferredEvents(
at org.eclipse.swt.widgets.Display.readAndDispatch(
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$
at org.eclipse.core.databinding.observable.Realm.runWithDefault(
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(
at org.eclipse.ui.internal.Workbench$
at org.eclipse.core.databinding.observable.Realm.runWithDefault(
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(
at org.eclipse.ui.internal.ide.application.IDEApplication.start(
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(
at org.eclipse.equinox.launcher.Main.basicRun(
at org.eclipse.equinox.launcher.Main.main(


[Updated on: Thu, 04 September 2014 06:18]

Report message to a moderator

Previous Topic:Making a patch to platform resources plug-in
Next Topic:How to tell which plugins contain cryptographic code?
Goto Forum:

Current Time: Thu Sep 20 08:22:56 GMT 2018

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

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

Back to the top