Community
Participate
Working Groups
Build Identifier: I20110329-0800 Eclipse version:I20110329-0800 OS: Ubuntu Linux 10.10 Java Version: JRE 1.6.0 IBM Linux build pxi3260sr9fp1-20110208_03 (SR9 FP1) Locale: ja_JP.utf8 Reproducible: Always Steps to Reproduce: 1.Open a Java class in a Java Editor. 2.Click Window->Navigation->Minimize Active View or Editor 3.The view will not be minimized.
Is this 3.7 then? I20110329-0800 is not a valid 4.1 build identifier. PW
WorkbenchActionBuilder instantiates org.eclipse.ui.actions.ActionFactory.MINIMIZE It leads back to org.eclipse.ui.internal.handlers.MinimizePartHandler Have a look at org.eclipse.e4.ui.workbench.addons.minmax.MinMaxAddon to see what changes to the model you will need in order to make the stack minimized PW
Created attachment 193441 [details] Fix for minimizing the active view
Sorry about the version numbering, was a mistake on my part. Yes it is eclipse 4.1 and the build ID is I20110407-2200.
(In reply to comment #3) > Created attachment 193441 [details] > Fix for minimizing the active view For your state checking code, could you change it to compare against the constant values defined in IWorkbenchPage.STATE_*? I'm also curious if it would be possible to refactor the code somehow so that both setPartState(IWorkbenchPartReference, int) and toggleZoom(IWorkbenchPartReference) could share some of the same code. Or alternatively just have toggleZoom(*) delegate to setPartState(*) after checking whether the request is ultimately a STATE_MAXIMIZED or a STATE_RESTORED. Please also implement getPartState(IWorkbenchPartReference).
Created attachment 193613 [details] Fix for minimizing the active view (refactored) Thanks for the suggestions, Remy. I've made the alterations/additions that you've suggested, and refactored the code such that some of it is shared between setPartState(IWorkbenchPartPreference, int) and toggleZoom(...) - Jesse
(In reply to comment #6) > Created attachment 193613 [details] > Fix for minimizing the active view (refactored) Patch released to CVS HEAD. Thanks, Jesse! I renamed getActiveView(IWorkbenchPartReference) to getActiveElement(IWorkbenchPartReference) instead since the returned value may not be a part and moved two methods around but didn't make any actual code changes.