use of gov.sandia.n2a.parms.ParameterBundle in project n2a by frothga.
the class FixedParameterSpacePanel method dropIntoGroup.
private void dropIntoGroup(List<ParameterBundle> bundles, RoundedSpecPanel pnlRounded) {
ParameterSpecGroupPanel pnlDropGroup = (ParameterSpecGroupPanel) pnlRounded;
ParameterSpecPanel pnlSpec = null;
for (ParameterBundle bundle : bundles) {
ParameterSpecGroupPanel pnlExistingGroup = pnlGroups.getGroupPanelForParam(bundle);
if (pnlExistingGroup != null) {
if (pnlExistingGroup == pnlDropGroup) {
Dialogs.showWarning(FixedParameterSpacePanel.this, "The parameter already exists in the target group (" + pnlDropGroup.getGroupLabel() + ").");
} else {
Dialogs.showWarning(FixedParameterSpacePanel.this, "The parameter already exists in another group (" + pnlExistingGroup.getGroupLabel() + ").");
}
continue;
}
pnlSpec = pnlDropGroup.addParam(bundle);
}
popScrollPane(pnlSpec);
}
Aggregations