Skip to content

Commit

Permalink
Fixed selectionChanged() logic for properties view
Browse files Browse the repository at this point in the history
  • Loading branch information
blafond committed Aug 23, 2017
1 parent 5ac6e19 commit 7cc1734
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,15 @@ public void selectionChanged(IWorkbenchPart part, ISelection selection) {
if ( selection != null && ! selection.isEmpty() ) {
try {
currentSelection = selection;
if( super.getSaveablePart() != null ) {
if( part != null ) {
super.selectionChanged(part, selection);
}
} catch (Exception e) {
UiConstants.Util.log(IStatus.ERROR, e, e.getClass().getName());
}
} else if ( selection != null ) {
try {
if( super.getSaveablePart() != null ) {
if( part != null ) {
super.selectionChanged(part, selection);
}
} catch (Exception e) {
Expand Down

0 comments on commit 7cc1734

Please sign in to comment.