1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-06 07:45:50 +02:00

[190445] Move Up/ Move Down actions on filters are not enabled and disabled correctly

This commit is contained in:
Kushal Munir 2007-06-04 22:43:23 +00:00
parent 9aedb11c6d
commit 78c2c9053f
2 changed files with 6 additions and 3 deletions

View file

@ -1,5 +1,5 @@
/******************************************************************************** /********************************************************************************
* Copyright (c) 2002, 2006 IBM Corporation. All rights reserved. * Copyright (c) 2002, 2007 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
@ -11,7 +11,7 @@
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley. * Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
* *
* Contributors: * Contributors:
* {Name} (company) - description of contribution. * Kevin Doyle (IBM) - [190445] moveSystemFilter now reorganizes the list of filters
********************************************************************************/ ********************************************************************************/
package org.eclipse.rse.internal.core.filters; package org.eclipse.rse.internal.core.filters;
@ -552,7 +552,8 @@ public class SystemFilterContainerCommonMethods
*/ */
public void moveSystemFilter(java.util.List filters, int pos, ISystemFilter filter) public void moveSystemFilter(java.util.List filters, int pos, ISystemFilter filter)
{ {
//FIXME filters.move(pos,filter); filters.remove(filter);
filters.add(pos, filter);
invalidateCache(); invalidateCache();
} }
/** /**

View file

@ -23,6 +23,7 @@
* Martin Oberhuber (Wind River) - [189123] Move renameSubSystemProfile() from UI to Core * Martin Oberhuber (Wind River) - [189123] Move renameSubSystemProfile() from UI to Core
* Martin Oberhuber (Wind River) - [190231] Remove UI-only code from SubSystemConfiguration * Martin Oberhuber (Wind River) - [190231] Remove UI-only code from SubSystemConfiguration
* Rupen Mardirossian (IBM) - [189434] Move Up/Down on Filters Error * Rupen Mardirossian (IBM) - [189434] Move Up/Down on Filters Error
* Kevin Doyle (IBM) - [190445] Set Position of cloned event in cloneEvent()
********************************************************************************/ ********************************************************************************/
package org.eclipse.rse.core.subsystems; package org.eclipse.rse.core.subsystems;
@ -2000,6 +2001,7 @@ public abstract class SubSystemConfiguration implements ISubSystemConfiguration
{ {
result = new SystemResourceChangeEvent(event.getSource(), event.getType(), parent); result = new SystemResourceChangeEvent(event.getSource(), event.getType(), parent);
} }
result.setPosition(event.getPosition());
return result; return result;
} }