mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-15 04:55:22 +02:00
[182403] kevin's patch for scratchpad doube-click-expand
This commit is contained in:
parent
807e1d2515
commit
a9d24a242f
1 changed files with 9 additions and 1 deletions
|
@ -13,6 +13,7 @@
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||||
* Martin Oberhuber (Wind River) - [186773] split ISystemRegistryUI from ISystemRegistry
|
* Martin Oberhuber (Wind River) - [186773] split ISystemRegistryUI from ISystemRegistry
|
||||||
|
* Kevin Doyle (IBM) - [182403] Double Click on an object that can be expanded
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.internal.ui.view.scratchpad;
|
package org.eclipse.rse.internal.ui.view.scratchpad;
|
||||||
|
@ -187,7 +188,14 @@ public class SystemScratchpadViewPart extends ViewPart
|
||||||
{
|
{
|
||||||
if (adapter.hasChildren((IAdaptable)element))
|
if (adapter.hasChildren((IAdaptable)element))
|
||||||
{
|
{
|
||||||
setInput((IAdaptable) element);
|
if (_viewer.getExpandedState(element))
|
||||||
|
{
|
||||||
|
_viewer.collapseToLevel(element, 1);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
_viewer.expandToLevel(element, 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue