protected void bindInTabs( @NotNull @NonNls String attributes, @NotNull TableFormBuilder builder, @NotNull @NonNls String tabId, @NotNull @NonNls String... properties ) {
if ( properties.length == 0 ) {
throw new IllegalStateException( "Need at least one property" );
}
TabbedDialogPage tabbedDialogPage = new TabbedDialogPage( tabId );
for ( final String property : properties ) {
tabbedDialogPage.addPage( new AbstractDialogPage( property, false ) {
@Override
protected JComponent createControl() {
return getBindingFactory().createBinding( property ).getControl();
}
} );
}
builder.getLayoutBuilder().cell( tabbedDialogPage.getControl(), attributes );
}