1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-09 18:56:02 +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:
Kushal Munir 2007-05-18 03:06:57 +00:00
parent dd1475a718
commit d74c44458a

View file

@ -877,14 +877,14 @@ public class SystemSearchPage extends DialogPage implements ISearchPage {
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 (remoteFile.isFile() && (!remoteFile.isArchive() && !supportsArchiveManagement)) {
if (remoteFile.isFile() && !remoteFile.isArchive()) {
fileName = remoteFile.getName();
IHost conn = remoteFile.getSystemConnection();
profileName = conn.getSystemProfileName();
connectionName = conn.getAliasName();
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)) {
IHost conn = remoteFile.getSystemConnection();
profileName = conn.getSystemProfileName();