blob: 4a8135e7f51dd87c4fe840f4e00ddae1ae194b28 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2003 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.ui.internal.commands;
import java.io.IOException;
import java.util.List;
abstract class AbstractMutableRegistry extends AbstractRegistry {
protected AbstractMutableRegistry() {
super();
}
public abstract void save()
throws IOException;
public void setActiveGestureConfigurations(List activeGestureConfigurations)
throws IllegalArgumentException {
this.activeGestureConfigurations = Util.safeCopy(activeGestureConfigurations, ActiveConfiguration.class);
}
public void setActiveKeyConfigurations(List activeKeyConfigurations)
throws IllegalArgumentException {
this.activeKeyConfigurations = Util.safeCopy(activeKeyConfigurations, ActiveConfiguration.class);
}
public void setCategories(List categories)
throws IllegalArgumentException {
this.categories = Util.safeCopy(categories, Category.class);
}
public void setCommands(List commands)
throws IllegalArgumentException {
this.commands = Util.safeCopy(commands, Command.class);
}
public void setGestureBindings(List gestureBindings)
throws IllegalArgumentException {
this.gestureBindings = Util.safeCopy(gestureBindings, SequenceBinding.class);
}
public void setGestureConfigurations(List gestureConfigurations)
throws IllegalArgumentException {
this.gestureConfigurations = Util.safeCopy(gestureConfigurations, Configuration.class);
}
public void setKeyBindings(List keyBindings)
throws IllegalArgumentException {
this.keyBindings = Util.safeCopy(keyBindings, SequenceBinding.class);
}
public void setKeyConfigurations(List keyConfigurations)
throws IllegalArgumentException {
this.keyConfigurations = Util.safeCopy(keyConfigurations, Configuration.class);
}
public void setScopes(List scopes)
throws IllegalArgumentException {
this.scopes = Util.safeCopy(scopes, Scope.class);
}
}