mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-06 08:35:26 +02:00
[187335] Remove Search from popup menu on Files. The search page is not prefilled with the parent folder path.
This commit is contained in:
parent
dd1475a718
commit
d74c44458a
1 changed files with 2 additions and 2 deletions
|
@ -877,14 +877,14 @@ public class SystemSearchPage extends DialogPage implements ISearchPage {
|
||||||
boolean supportsArchiveManagement = remoteFile.getParentRemoteFileSubSystem().getParentRemoteFileSubSystemConfiguration().supportsArchiveManagement();
|
boolean supportsArchiveManagement = remoteFile.getParentRemoteFileSubSystem().getParentRemoteFileSubSystemConfiguration().supportsArchiveManagement();
|
||||||
|
|
||||||
// if it's a file, but not an archive, get the file name, connection info, and parent folder name
|
// if it's a file, but not an archive, get the file name, connection info, and parent folder name
|
||||||
if (remoteFile.isFile() && (!remoteFile.isArchive() && !supportsArchiveManagement)) {
|
if (remoteFile.isFile() && !remoteFile.isArchive()) {
|
||||||
fileName = remoteFile.getName();
|
fileName = remoteFile.getName();
|
||||||
IHost conn = remoteFile.getSystemConnection();
|
IHost conn = remoteFile.getSystemConnection();
|
||||||
profileName = conn.getSystemProfileName();
|
profileName = conn.getSystemProfileName();
|
||||||
connectionName = conn.getAliasName();
|
connectionName = conn.getAliasName();
|
||||||
folderName = remoteFile.getParentPath();
|
folderName = remoteFile.getParentPath();
|
||||||
}
|
}
|
||||||
// otherwise if it's a folder or an arvhive, get the connection info and the name
|
// otherwise if it's a folder or an archive, get the connection info and the name
|
||||||
else if (remoteFile.isDirectory() || (remoteFile.isArchive() && supportsArchiveManagement)) {
|
else if (remoteFile.isDirectory() || (remoteFile.isArchive() && supportsArchiveManagement)) {
|
||||||
IHost conn = remoteFile.getSystemConnection();
|
IHost conn = remoteFile.getSystemConnection();
|
||||||
profileName = conn.getSystemProfileName();
|
profileName = conn.getSystemProfileName();
|
||||||
|
|
Loading…
Add table
Reference in a new issue