This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 148574 - [WorkbenchParts] partHidden partVisible not called if you minimize or restore
Summary: [WorkbenchParts] partHidden partVisible not called if you minimize or restore
Status: CLOSED DUPLICATE of bug 384108
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: 4.4 M6   Edit
Assignee: Platform UI Triaged CLA
QA Contact: Paul Webster CLA
URL:
Whiteboard: candidate43
Keywords: performance
: 400123 (view as bug list)
Depends on:
Blocks: 401632
  Show dependency tree
 
Reported: 2006-06-25 15:41 EDT by Giovanni Quarella CLA
Modified: 2014-02-06 06:29 EST (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Giovanni Quarella CLA 2006-06-25 15:41:45 EDT
My view implements IPartListener2 but partHidden is never called when you minimize the view and partVisible is never called when you restore it.
These methods work only if I open and close the view.
Follow a part of my code.
Thanks

Giovanni Quarella

Eclipse 3.2 Build id: I20060505-1306

public class TableView extends ViewPart implements ISelectionListener,
		IPartListener2 {

...

public void createPartControl(Composite parent) {
		getViewSite().getPage().addPartListener(this);
....

public void partHidden(IWorkbenchPartReference partRef) {
		System.out.println("partHidden: " + partRef.getId());
			}

	public void partVisible(IWorkbenchPartReference partRef) {
		System.out.println("partVisible: " + partRef.getId());
		
	}
Comment 1 Paul Webster CLA 2009-03-02 11:40:20 EST
Updated as per http://wiki.eclipse.org/Platform_UI/Bug_Triage
PW
Comment 2 sk sk CLA 2011-12-22 12:43:27 EST
n left side navigation we have some list which opens editors. Editor part(device image) we have zoom position 125 to 400 % . While closing editor zoom percentage is 200 , I need to save this zoom position for this part under particular list id . While opening the same list id it display with last zoom position
Comment 3 Markus Keller CLA 2013-02-07 09:30:57 EST
*** Bug 400123 has been marked as a duplicate of this bug. ***
Comment 4 Daniel Rolka CLA 2014-02-03 09:07:24 EST
The similar issue was reported by the Bug 384108 and fix for it is already available in the M5 build (http://download.eclipse.org/eclipse/downloads/drops4/S-4.4M5-201401231600/)

Could you please verify if the issue is still valid for you?

Daniel
Comment 5 Daniel Rolka CLA 2014-02-06 06:29:13 EST
Since the the symptoms described in the bug seem to be similar to the bug 384108 that is already fixed I will close the bug as duplicate. 

Feel free to reopen it when it is still valid,

Daniel

*** This bug has been marked as a duplicate of bug 384108 ***