{
public BuildToolsPackagePanel()
{
RStudioGinjector.INSTANCE.injectMembers(this);
ProjectPreferencesDialogResources RES =
ProjectPreferencesDialogResources.INSTANCE;
pathSelector_ = new DirectorySelector("Package directory:");
pathSelector_.getElement().getStyle().setMarginBottom(10, Unit.PX);
add(pathSelector_);
pathSelector_.addValueChangeHandler(new ValueChangeHandler<String>() {
@Override
public void onValueChange(ValueChangeEvent<String> event)
{
if (pathSelector_.getText().equals(
workbenchContext_.getActiveProjectDir().getPath()))
{
pathSelector_.setText("");
}
}
});
chkUseDevtools_ = checkBox(
"Use devtools package functions if available");
chkUseDevtools_.addStyleName(RES.styles().buildToolsDevtools());
add(chkUseDevtools_);
roxygenizePanel_ = new VerticalPanel();
roxygenizePanel_.addStyleName(RES.styles().buildToolsRoxygenize());
HorizontalPanel rocletPanel = new HorizontalPanel();
chkUseRoxygen_ = checkBox("Generate documentation with Roxygen");
rocletPanel.add(chkUseRoxygen_);
btnConfigureRoxygen_ = new ThemedButton("Configure...");
btnConfigureRoxygen_.addClickHandler(new ClickHandler() {