|
Lines 100-105
Link Here
|
| 100 |
import org.eclipse.ui.internal.registry.IWorkbenchRegistryConstants; |
100 |
import org.eclipse.ui.internal.registry.IWorkbenchRegistryConstants; |
| 101 |
import org.eclipse.ui.internal.registry.PerspectiveDescriptor; |
101 |
import org.eclipse.ui.internal.registry.PerspectiveDescriptor; |
| 102 |
import org.eclipse.ui.internal.registry.UIExtensionTracker; |
102 |
import org.eclipse.ui.internal.registry.UIExtensionTracker; |
|
|
103 |
import org.eclipse.ui.internal.tweaklets.GrabFocus; |
| 103 |
import org.eclipse.ui.internal.tweaklets.TabBehaviour; |
104 |
import org.eclipse.ui.internal.tweaklets.TabBehaviour; |
| 104 |
import org.eclipse.ui.internal.tweaklets.Tweaklets; |
105 |
import org.eclipse.ui.internal.tweaklets.Tweaklets; |
| 105 |
import org.eclipse.ui.internal.util.PrefUtil; |
106 |
import org.eclipse.ui.internal.util.PrefUtil; |
|
Lines 571-576
Link Here
|
| 571 |
return; |
572 |
return; |
| 572 |
} |
573 |
} |
| 573 |
|
574 |
|
|
|
575 |
if (composite!=null && composite.isVisible() |
| 576 |
&& !((GrabFocus)Tweaklets.get(GrabFocus.class)).grabFocusAllowed(part)) { |
| 577 |
return; |
| 578 |
} |
| 579 |
|
| 574 |
// If zoomed, unzoom. |
580 |
// If zoomed, unzoom. |
| 575 |
zoomOutIfNecessary(part); |
581 |
zoomOutIfNecessary(part); |
| 576 |
|
582 |
|
|
Lines 789-794
Link Here
|
| 789 |
if (persp == null || !certifyPart(part)) { |
795 |
if (persp == null || !certifyPart(part)) { |
| 790 |
return; |
796 |
return; |
| 791 |
} |
797 |
} |
|
|
798 |
|
| 799 |
if (!((GrabFocus)Tweaklets.get(GrabFocus.class)).grabFocusAllowed(part)) { |
| 800 |
return; |
| 801 |
} |
| 792 |
|
802 |
|
| 793 |
String label = null; // debugging only |
803 |
String label = null; // debugging only |
| 794 |
if (UIStats.isDebugging(UIStats.BRING_PART_TO_TOP)) { |
804 |
if (UIStats.isDebugging(UIStats.BRING_PART_TO_TOP)) { |
|
Lines 1013-1018
Link Here
|
| 1013 |
* Performs showing of the view in the given mode. |
1023 |
* Performs showing of the view in the given mode. |
| 1014 |
*/ |
1024 |
*/ |
| 1015 |
private void busyShowView(IViewPart part, int mode) { |
1025 |
private void busyShowView(IViewPart part, int mode) { |
|
|
1026 |
if (!((GrabFocus)Tweaklets.get(GrabFocus.class)).grabFocusAllowed(part)) { |
| 1027 |
return; |
| 1028 |
} |
| 1016 |
if (mode == VIEW_ACTIVATE) { |
1029 |
if (mode == VIEW_ACTIVATE) { |
| 1017 |
activate(part); |
1030 |
activate(part); |
| 1018 |
} else if (mode == VIEW_VISIBLE) { |
1031 |
} else if (mode == VIEW_VISIBLE) { |