return containers.length == 1;
}
public ISourceContainer[] editSourceContainers(Shell shell, ISourceLookupDirector director,
ISourceContainer[] containers) {
final SourceNameMapperContainer originalContainer = (SourceNameMapperContainer) containers[0];
SourceNameMapperContainerDialog.PresetFieldValues params =
new SourceNameMapperContainerDialog.PresetFieldValues() {
public ISourceContainer getContainer() {
return originalContainer.getTargetContainer();
}
public String getPrefix() {
return originalContainer.getPrefix();
}
};
return openDialog(shell, director, params);
}