Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 45825 - [ActivityMgmt] Perspectives don't respect activity enablement
Summary: [ActivityMgmt] Perspectives don't respect activity enablement
Status: CLOSED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: 3.0 M6   Edit
Assignee: Kim Horne CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 45455 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-10-30 14:59 EST by Jared Burns CLA
Modified: 2004-04-01 15:41 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jared Burns CLA 2003-10-30 14:59:45 EST
When an activity disables a view's prefix, I would expect it to not be added to 
perspectives automatically anymore. For example, JDT Debug contributes a view 
(org.eclipse.jdt.debug.ui.DisplayView) to the Debug perspective provided by 
Debug UI. If I disable an activity that filters "org.eclipse.jdt.debug.*" and 
then create the Debug perspective, I would expect the perspective to be created 
without this view.

In addition, I think views contributed to perspectives (and not declared 
visible="false") should appear automatically when the associated activity is 
enabled. Whether or not they should automatically disappear is debatable.
Comment 1 Chris McLaren CLA 2003-11-25 13:01:02 EST
please fix for jared
Comment 2 Kim Horne CLA 2003-12-05 13:14:41 EST
Initial fix submitted.  I convert all .addView() calls on
IPageLayout/IFolderLayout to .addPlaceholder() and add listeners that detect
when these views should be enabled based on activity deltas.  I've decided not
to add code to shut down views automatically at the point, but I'm still not
convinced that's right. I may reopen if I flip-flop.

Also, please see Bug 48089 for another gotcha that needs addressing.
Comment 3 Kim Horne CLA 2003-12-16 10:35:13 EST
Steps to verify:

1) launch (clean workspace) 200311211210 build with plugin.xml found at
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-ui-home/roles/plugin.xml
2) Open Perspective-> (Raw) Java
3) Note that package explorer/hierarchy are not visible.
4) Window->Activity Configuration.  Enabled Java an OK.
5) Note that packaga explorer/hierarchy appear where they would normally.
Comment 4 Kim Horne CLA 2003-12-16 10:35:40 EST
Verified in 200311211210 using above method.
Comment 5 Kim Horne CLA 2004-02-25 08:09:38 EST
*** Bug 45455 has been marked as a duplicate of this bug. ***
Comment 6 Kim Horne CLA 2004-04-01 15:41:13 EST
Closed.