mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-15 04:55:22 +02:00
[196842] Don't have open menu for folders
This commit is contained in:
parent
1fc6d8594e
commit
5c4e5d6b25
2 changed files with 11 additions and 3 deletions
|
@ -121,9 +121,12 @@ public class SystemRemoteFileLineOpenWithMenu extends SystemRemoteFileOpenWithMe
|
||||||
if (obj != null && obj instanceof IRemoteFile)
|
if (obj != null && obj instanceof IRemoteFile)
|
||||||
{
|
{
|
||||||
file = (IRemoteFile) obj;
|
file = (IRemoteFile) obj;
|
||||||
|
if (file.isFile())
|
||||||
|
{
|
||||||
return file;
|
return file;
|
||||||
}
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
* Martin Oberhuber (Wind River) - [186748] Move ISubSystemConfigurationAdapter from UI/rse.core.subsystems.util
|
* Martin Oberhuber (Wind River) - [186748] Move ISubSystemConfigurationAdapter from UI/rse.core.subsystems.util
|
||||||
* Martin Oberhuber (Wind River) - [186773] split ISystemRegistryUI from ISystemRegistry
|
* Martin Oberhuber (Wind River) - [186773] split ISystemRegistryUI from ISystemRegistry
|
||||||
* Martin Oberhuber (Wind River) - [189130] Move SystemIFileProperties from UI to Core
|
* Martin Oberhuber (Wind River) - [189130] Move SystemIFileProperties from UI to Core
|
||||||
|
* David McKnight (IBM) - [196842] Don't have open menu for folders
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.shells.ui.view;
|
package org.eclipse.rse.shells.ui.view;
|
||||||
|
@ -160,7 +161,11 @@ implements ISystemViewElementAdapter, ISystemRemoteElementAdapter
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
IRemoteOutput output = (IRemoteOutput)firstSelection;
|
IRemoteOutput output = (IRemoteOutput)firstSelection;
|
||||||
|
|
||||||
if (output.getAbsolutePath() != null)
|
if (output.getAbsolutePath() != null)
|
||||||
|
{
|
||||||
|
IRemoteFile rfile = SystemRemoteFileLineOpenWithMenu.outputToFile(output);
|
||||||
|
if (rfile != null && rfile.isFile()) // for 196842
|
||||||
{
|
{
|
||||||
//SystemCreateEditLineActions createActions = new SystemCreateEditLineActions();
|
//SystemCreateEditLineActions createActions = new SystemCreateEditLineActions();
|
||||||
//createActions.create(menu, selection, shell, menuGroup);
|
//createActions.create(menu, selection, shell, menuGroup);
|
||||||
|
@ -173,7 +178,7 @@ implements ISystemViewElementAdapter, ISystemRemoteElementAdapter
|
||||||
openWithMenu.updateSelection(selection);
|
openWithMenu.updateSelection(selection);
|
||||||
submenu.add(openWithMenu);
|
submenu.add(openWithMenu);
|
||||||
menu.getMenuManager().appendToGroup(ISystemContextMenuConstants.GROUP_OPENWITH, submenu);
|
menu.getMenuManager().appendToGroup(ISystemContextMenuConstants.GROUP_OPENWITH, submenu);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue