mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-18 14:35:23 +02:00
[351435] org.eclipse.rse.subsystems.files.core.SystemIFileProperties.getBIDILogical() should default to true
This commit is contained in:
parent
4036bce68c
commit
2bbb18f14a
1 changed files with 12 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* Copyright (c) 2006, 2007 IBM Corporation and others. All rights reserved.
|
* Copyright (c) 2006, 2011 IBM Corporation and others. All rights reserved.
|
||||||
* This program and the accompanying materials are made available under the terms
|
* This program and the accompanying materials are made available under the terms
|
||||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||||
|
@ -12,6 +12,7 @@
|
||||||
*
|
*
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* 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) - [351435] org.eclipse.rse.subsystems.files.core.SystemIFileProperties.getBIDILogical() should default to true
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.subsystems.files.core;
|
package org.eclipse.rse.subsystems.files.core;
|
||||||
|
@ -352,7 +353,16 @@ public class SystemIFileProperties {
|
||||||
* visual format.
|
* visual format.
|
||||||
*/
|
*/
|
||||||
public boolean getBIDILogical() {
|
public boolean getBIDILogical() {
|
||||||
return getPropertyBoolean(_nameRemoteBIDILogical);
|
try{ // not using getPropertyBoolean() because true should be the default
|
||||||
|
String strValue = _resource.getPersistentProperty(_nameRemoteBIDILogical);
|
||||||
|
if( strValue == null )
|
||||||
|
return true;
|
||||||
|
|
||||||
|
return strValue.equals( "true" ); //$NON-NLS-1$
|
||||||
|
}
|
||||||
|
catch( CoreException ex ){
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue