mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-14 12:35:22 +02:00
[230001] Property page contains invalid values
This commit is contained in:
parent
77b9605526
commit
c0816cd2bd
1 changed files with 8 additions and 1 deletions
|
@ -26,6 +26,7 @@
|
||||||
* 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
|
||||||
* Martin Oberhuber (Wind River) - [226574][api] Add ISubSystemConfiguration#supportsEncoding()
|
* Martin Oberhuber (Wind River) - [226574][api] Add ISubSystemConfiguration#supportsEncoding()
|
||||||
* Xuan Chen (IBM) - [228707] get NPE when click ok on the properties page of an I5/OS IFS file
|
* Xuan Chen (IBM) - [228707] get NPE when click ok on the properties page of an I5/OS IFS file
|
||||||
|
* David McKnight (IBM) - [230001] Property page contains invalid values
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.internal.files.ui.propertypages;
|
package org.eclipse.rse.internal.files.ui.propertypages;
|
||||||
|
@ -229,7 +230,13 @@ public class SystemFilePropertyPage extends SystemBasePropertyPage
|
||||||
};
|
};
|
||||||
|
|
||||||
// default encoding field
|
// default encoding field
|
||||||
defaultEncoding = file.getParentRemoteFile().getEncoding();
|
IRemoteFile parentFile = file.getParentRemoteFile();
|
||||||
|
if (parentFile == null){
|
||||||
|
defaultEncoding = file.getParentRemoteFileSubSystem().getRemoteEncoding();
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
defaultEncoding = parentFile.getEncoding();
|
||||||
|
}
|
||||||
|
|
||||||
String defaultEncodingLabel = SystemFileResources.RESID_PP_FILE_ENCODING_DEFAULT_LABEL;
|
String defaultEncodingLabel = SystemFileResources.RESID_PP_FILE_ENCODING_DEFAULT_LABEL;
|
||||||
int idx = defaultEncodingLabel.indexOf('%');
|
int idx = defaultEncodingLabel.indexOf('%');
|
||||||
|
|
Loading…
Add table
Reference in a new issue