mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-14 03:35:37 +02:00
[433696] RSE profile merge does not handle property sets
This commit is contained in:
parent
e525bf1b19
commit
159fbdb61e
1 changed files with 12 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*********************************************************************************
|
/*********************************************************************************
|
||||||
* Copyright (c) 2008 IBM Corporation. All rights reserved.
|
* Copyright (c) 2008, 2014 IBM Corporation. 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
|
||||||
|
@ -9,6 +9,7 @@
|
||||||
* David Dykstal (IBM) - [189274] provide import and export operations for profiles
|
* David Dykstal (IBM) - [189274] provide import and export operations for profiles
|
||||||
* David Dykstal (IBM) - [216858] Need the ability to Import/Export RSE connections for sharing
|
* David Dykstal (IBM) - [216858] Need the ability to Import/Export RSE connections for sharing
|
||||||
* David Dykstal (IBM) - [233876] Filters lost after restart
|
* David Dykstal (IBM) - [233876] Filters lost after restart
|
||||||
|
* David McKnight (IBM)- [433696] RSE profile merge does not handle property sets
|
||||||
*********************************************************************************/
|
*********************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.internal.persistence;
|
package org.eclipse.rse.internal.persistence;
|
||||||
|
@ -272,7 +273,11 @@ public class RSEEnvelope {
|
||||||
mergeFilterPool(profile, filterPoolNode);
|
mergeFilterPool(profile, filterPoolNode);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// TODO create the property sets
|
// create the property sets
|
||||||
|
for (Iterator z = propertySetNodes.iterator(); z.hasNext();){
|
||||||
|
RSEDOMNode propertySetNode = (RSEDOMNode) z.next();
|
||||||
|
mergePropertySet(profile, propertySetNode);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -304,6 +309,11 @@ public class RSEEnvelope {
|
||||||
ISystemFilterPool filterPool = importer.restoreFilterPool(profile, filterPoolNode);
|
ISystemFilterPool filterPool = importer.restoreFilterPool(profile, filterPoolNode);
|
||||||
filterPool.setOwningParentName(hostName);
|
filterPool.setOwningParentName(hostName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private IPropertySet mergePropertySet(ISystemProfile profile, RSEDOMNode propertySetNode) {
|
||||||
|
RSEDOMImporter importer = RSEDOMImporter.getInstance();
|
||||||
|
return importer.restorePropertySet(profile, propertySetNode);
|
||||||
|
}
|
||||||
|
|
||||||
private ISystemFilterPool mergeFilterPool(ISystemProfile profile, RSEDOMNode filterPoolNode) {
|
private ISystemFilterPool mergeFilterPool(ISystemProfile profile, RSEDOMNode filterPoolNode) {
|
||||||
ISystemFilterPool filterPool = getMatchingFilterPool(profile, filterPoolNode);
|
ISystemFilterPool filterPool = getMatchingFilterPool(profile, filterPoolNode);
|
||||||
|
|
Loading…
Add table
Reference in a new issue