blob: f45fb561b19cd6197b099ddfae53f2f8386437c0 [file] [log] [blame]
package org.eclipse.jface.tests.viewers.interactive;
/*
* Licensed Materials - Property of IBM,
* WebSphere Studio Workbench
* (c) Copyright IBM Corp 1999, 2000
*/
import org.eclipse.jface.tests.viewers.*;
import org.eclipse.jface.viewers.*;
public class AddSiblingAction extends TestSelectionAction {
int fEventKind;
public AddSiblingAction(String label, TestBrowser browser) {
this(label, browser, TestModelChange.INSERT);
}
public AddSiblingAction(String label, TestBrowser browser, int eventKind) {
super(label, browser);
fEventKind= eventKind;
}
public void run(TestElement element) {
element.getContainer().addChild(fEventKind);
}
}