DESCRIPTION

[RFC] Open/close projects when switching branches

Store which projects are imported on each branch and
add/open projects when a checkout is done

Close projects that don't exist on branches being checked
out and reopen them when the previous branch is checked out.

There is a new preferences on the 'Projects' page for
this behavior and it is enabled by default

Bug: 350866
Change-Id: I4d33f4120bce03941c1610b22870adfa529b1ad2


COMMENTS

author: Jaidyn Nichols
date: 2012-01-06 23:26:33.000000000

Uploaded patch set 6.

-------------------------------------
author: Brenden Conley
date: 2012-01-06 23:36:38.000000000

Patch Set 6:

Build Started https://hudson.eclipse.org/sandbox/job/egit.gerrit/2254/ 

-------------------------------------
author: Brenden Conley
date: 2012-01-06 23:50:27.000000000

Patch Set 6: I would prefer that you didn't submit this

Build Unstable 
 
https://hudson.eclipse.org/sandbox/job/egit.gerrit/2254/ : UNSTABLE

-------------------------------------
author: Douglas Trujillo
date: 2012-01-07 00:45:20.000000000

Patch Set 6: I would prefer that you didn't submit this

the first time I tried this with a simple example I checked out the branch containing one project less from the history view I hit this exception

!ENTRY org.eclipse.ui 4 4 2012-01-07 01:41:43.032
!MESSAGE Failed to execute item org.eclipse.egit.ui.history.CheckoutCommand
!STACK 0
org.eclipse.core.commands.ExecutionException: Could not get the repository from the history view
	at org.eclipse.egit.ui.internal.history.command.AbstractHistoryCommandHandler.getRepository(AbstractHistoryCommandHandler.java:100)
	at org.eclipse.egit.ui.internal.history.command.CheckoutCommitHandler.execute(CheckoutCommitHandler.java:34)
	at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293)
	at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
	at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
	at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
	at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:241)
	at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:241)
	at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:241)
	at org.eclipse.ui.menus.CommandContributionItem.handleWidgetSelection(CommandContributionItem.java:829)
	at org.eclipse.ui.menus.CommandContributionItem.access$19(CommandContributionItem.java:815)
	at org.eclipse.ui.menus.CommandContributionItem$5.handleEvent(CommandContributionItem.java:805)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
...

-------------------------------------
author: Jaidyn Nichols
date: 2012-01-07 00:50:25.000000000

Patch Set 6:

Was that the only exception?  I don't think any code was touched that affected that area in the stack trace.

-------------------------------------
