mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-16 21:45:22 +02:00
[222827] Treeview is collapsed after creating new user action
This commit is contained in:
parent
2b5e8782e0
commit
080e8dbbc3
1 changed files with 5 additions and 2 deletions
|
@ -13,6 +13,7 @@
|
||||||
* API to the user actions plugin
|
* API to the user actions plugin
|
||||||
* David McKnight (IBM) - [220547] [api][breaking] SimpleSystemMessage needs to specify a message id and some messages should be shared
|
* David McKnight (IBM) - [220547] [api][breaking] SimpleSystemMessage needs to specify a message id and some messages should be shared
|
||||||
* Kevin Doyle (IBM) - [222831] Can't Delete User Actions/Named Types
|
* Kevin Doyle (IBM) - [222831] Can't Delete User Actions/Named Types
|
||||||
|
* Kevin Doyle (IBM) - [222827] Treeview is collapsed after creating new user action
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.internal.useractions.ui.uda;
|
package org.eclipse.rse.internal.useractions.ui.uda;
|
||||||
|
@ -636,7 +637,9 @@ public class SystemUDBaseTreeView extends TreeViewer implements IMenuListener, I
|
||||||
* If it is not currently shown in the tree, or there is no parent, returns null.
|
* If it is not currently shown in the tree, or there is no parent, returns null.
|
||||||
*/
|
*/
|
||||||
public TreeItem findParentItem(SystemXMLElementWrapper element) {
|
public TreeItem findParentItem(SystemXMLElementWrapper element) {
|
||||||
IPropertySet parentElement = element.getParentDomainElement();
|
// IPropertySet parentElement = element.getParentDomainElement();
|
||||||
|
// Since we use PropertySet's now we don't want the parent domain element, just the parent element
|
||||||
|
IPropertySet parentElement = element.getParentElement();
|
||||||
TreeItem parentItem = null;
|
TreeItem parentItem = null;
|
||||||
if (parentElement != null)
|
if (parentElement != null)
|
||||||
parentItem = findElement(parentElement);
|
parentItem = findElement(parentElement);
|
||||||
|
|
Loading…
Add table
Reference in a new issue