Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 128455
Collapse All | Expand All

(-)Eclipse UI/org/eclipse/ui/internal/presentations/util/AbstractTabFolder.java (+11 lines)
Lines 377-380 Link Here
377
        return false;
377
        return false;
378
    }
378
    }
379
    
379
    
380
    /**
381
	 * Set the folder to visible. This can be extended to propogate the
382
	 * visibility request to other components in the subclass.
383
	 * 
384
	 * @param visible
385
	 *            <code>true</code> - the folder is visible.
386
	 * @since 3.2
387
	 */
388
    public void setVisible(boolean visible) {
389
		getControl().setVisible(visible);
390
	}
380
}
391
}
(-)Eclipse UI/org/eclipse/ui/internal/presentations/util/ProxyControl.java (+15 lines)
Lines 117-122 Link Here
117
        }
117
        }
118
	    
118
	    
119
	};
119
	};
120
	
121
	/**
122
	 * Allow the visibility of the proxy control to be updated while the target
123
	 * is <code>null</code>. When the target is not <code>null</code> it's
124
	 * visibility is tied to the listener.
125
	 * 
126
	 * @param visible
127
	 *            <code>true</code> - set it to visible
128
	 * @since 3.2
129
	 */
130
	public void setVisible(boolean visible) {
131
		if (target == null) {
132
			this.visible = visible;
133
		}
134
	}
120
    
135
    
121
	/**
136
	/**
122
	 * Movement listener. Updates the bounds of the target to match the 
137
	 * Movement listener. Updates the bounds of the target to match the 
(-)Eclipse UI/org/eclipse/ui/internal/presentations/util/PresentablePartFolder.java (-1 / +2 lines)
Lines 389-395 Link Here
389
    
389
    
390
    public void setVisible(boolean isVisible) {
390
    public void setVisible(boolean isVisible) {
391
        this.isVisible  = isVisible;
391
        this.isVisible  = isVisible;
392
        getTabFolder().getControl().setVisible(isVisible);
392
        getTabFolder().setVisible(isVisible);
393
//        getTabFolder().getControl().setVisible(isVisible);
393
        if (isVisible) {
394
        if (isVisible) {
394
            layout(true);
395
            layout(true);
395
        }
396
        }
(-)Eclipse UI/org/eclipse/ui/internal/presentations/defaultpresentation/DefaultTabFolder.java (+8 lines)
Lines 495-498 Link Here
495
        
495
        
496
        layout(true);
496
        layout(true);
497
    }
497
    }
498
499
	/* (non-Javadoc)
500
	 * @see org.eclipse.ui.internal.presentations.util.AbstractTabFolder#setVisible(boolean)
501
	 */
502
	public void setVisible(boolean visible) {
503
		super.setVisible(visible);
504
		getFolder().setVisible(visible);
505
	}
498
}
506
}
(-)Eclipse UI/org/eclipse/ui/internal/presentations/PaneFolder.java (+16 lines)
Lines 817-820 Link Here
817
        return viewForm;
817
        return viewForm;
818
    }
818
    }
819
819
820
    /**
821
	 * Propogate the visibility change requests to the proxy controls. When
822
	 * their target is null, they no longer get visibility updates. Currently
823
	 * this only propagates the changes to the ProxyControls held by this
824
	 * folder.
825
	 * 
826
	 * @param visible
827
	 *            <code>true</code> - it's visible.
828
	 * @since 3.2
829
	 */
830
    public void setVisible(boolean visible) {
831
		contentProxy.setVisible(visible);
832
		viewFormTopCenterProxy.setVisible(visible);
833
		viewFormTopLeftProxy.setVisible(visible);
834
		viewFormTopRightProxy.setVisible(visible);
835
	}
820
}
836
}

Return to bug 128455