Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Only remove structure from 2d view when editor is closed and not just…
… hidden

solves bug 3441
  • Loading branch information
goglepox committed Nov 22, 2012
1 parent 062044d commit 75cf602
Showing 1 changed file with 4 additions and 5 deletions.
Expand Up @@ -165,10 +165,6 @@ public void partVisible( IWorkbenchPartReference partRef ) {

public void partHidden( IWorkbenchPartReference partRef ) {

IWorkbenchPart part = partRef.getPart( false );
if ( part instanceof IEditorPart ) {
setAtomContainer( null );
}
}

public void partActivated( IWorkbenchPartReference partRef ) {
Expand All @@ -180,7 +176,10 @@ public void partBroughtToTop( IWorkbenchPartReference partRef ) {
}

public void partClosed( IWorkbenchPartReference partRef ) {

IWorkbenchPart part = partRef.getPart( false );
if ( part instanceof IEditorPart ) {
setAtomContainer( null );
}
}

public void partDeactivated( IWorkbenchPartReference partRef ) {
Expand Down

0 comments on commit 75cf602

Please sign in to comment.