((sets.length == 1) && (!NbBundle.getMessage(PropertySetModelImpl.class, "CTL_PropertiesNoMnemonic").equals( sets[0].getDisplayName() ))) p = sets[i].getProperties();
public static PropertySet[] merge(PropertySet[] overridingSets, PropertySet[] baseSets) { java.util.Map ret = new java.util.HashMap(); for (int i=0; i<baseSets.length; i++) { ret.put(baseSets[i].getName(), baseSets[i]); } for (int j=0; j<overridingSets.length; j++) { PropertySet base = (PropertySet) ret.get(overridingSets[j].getName()); if (base == null) { ret.put(overridingSets[j].getName(), overridingSets[j]); } else { base = merge(overridingSets[j], base); ret.put(base.getName(), base); } } PropertySet top = (PropertySet) ret.remove(Sheet.PROPERTIES); List retList = new ArrayList(); if (top != null) retList.add(top); retList.addAll(ret.values()); return (PropertySet[]) retList.toArray(new PropertySet[retList.size()]); } }
String currTab = (String) sets[i].getValue("tabName"); //NOI18N if (currTab == null) { currTab = PropUtils.basicPropsTabName();
id = (String) ps[0].getValue("helpID"); //NOI18N if ((ps[i] == fd) || Arrays.asList(ps[i].getProperties()).contains(fd)) { id = (String) ps[i].getValue("helpID"); //NOI18N
if (! sheets.contains(firstSet[i]) || firstSet[i].isHidden ()) { continue; res.setName(current.getName()); res.setDisplayName(current.getDisplayName()); res.setShortDescription(current.getShortDescription()); String tabName = (String) current.getValue("tabName"); //NOI18N if (tabName != null) { res.setValue ("tabName", tabName); //NOI18N Arrays.asList(current.getProperties())); Node.PropertySet[] p = original[j].getPropertySets(); for (int k = 0; k < p.length; k++) { if (current.getName().equals(p[k].getName())) { props.retainAll(new HashSet( Arrays.asList(p[k].getProperties()))); Node.Property []p = current.getProperties(); for (int j = 0; j < p.length; j++) { if (! props.contains(p[j])) {
Sheet sheet = PropertiesNodesManager.getInstance(view).getSheet(component); for (PropertySet propertySet : sheet.toArray()) { for (Property property : propertySet.getProperties()) { if(propertyName.equals(property.getName())) { PropertyPanel propertyPanel = new PropertyPanel(property, PropertyPanel.PREF_CUSTOM_EDITOR);
boolean exists = false; for (int i = 0; i < pss.length; i++) { Node.Property[] ps = pss[i].getProperties(); for (int j = 0; j < ps.length; j++) { if (ps[j].getName().equals(name)) {
PropertySet ps = (PropertySet) value; String txt = ps.getHtmlDisplayName(); boolean isHtml = txt != null; txt = ps.getDisplayName();
PropertySet ps = (PropertySet) value; String txt = ps.getHtmlDisplayName(); boolean isHtml = txt != null; if (!isHtml) { txt = ps.getDisplayName();
if (! sheets.contains(firstSet[i]) || firstSet[i].isHidden ()) { continue; res.setName(current.getName()); res.setDisplayName(current.getDisplayName()); res.setShortDescription(current.getShortDescription()); String tabName = (String) current.getValue("tabName"); //NOI18N if (tabName != null) { res.setValue ("tabName", tabName); //NOI18N Arrays.asList(current.getProperties())); Node.PropertySet[] p = original[j].getPropertySets(); for (int k = 0; k < p.length; k++) { if (current.getName().equals(p[k].getName())) { props.retainAll(new HashSet( Arrays.asList(p[k].getProperties()))); Node.Property []p = current.getProperties(); for (int j = 0; j < p.length; j++) { if (! props.contains(p[j])) {
id = (String) ps[0].getValue("helpID"); //NOI18N if (fd != null && ps != null && ps.length > 0) { for (int i=0; i < ps.length; i++) { if (ps[i] == fd || Arrays.asList(ps[i].getProperties()).contains(fd)) { id = (String) ps[i].getValue("helpID"); //NOI18N break;
id = (String) ps[0].getValue("helpID"); //NOI18N if (fd != null && ps != null && ps.length > 0) { for (int i=0; i < ps.length; i++) { if (ps[i] == fd || Arrays.asList(ps[i].getProperties()).contains(fd)) { id = (String) ps[i].getValue("helpID"); //NOI18N break;
table.getPropertySetModel().setPropertySets(sets); if (sets.length > 0 && !psheet.isAdjusting()) { String tab = (String) sets[0].getValue("tabName"); //NOI18N tab = tab == null ? PropUtils.basicPropsTabName() : tab;
boolean exists = false; for (int i = 0; i < pss.length; i++) { Node.Property[] ps = pss[i].getProperties(); for (int j = 0; j < ps.length; j++) { if (ps[j].getName().equals(name)) {
PropertySet ps = (PropertySet) value; String txt = ps.getHtmlDisplayName(); boolean isHtml = txt != null; if (!isHtml) { txt = ps.getDisplayName();
if (!sheets.contains(firstSet[i]) || firstSet[i].isHidden()) { continue; res.setName(current.getName()); res.setDisplayName(current.getDisplayName()); res.setShortDescription(current.getShortDescription()); String tabName = (String) current.getValue("tabName"); //NOI18N java.util.Set<Property> props = new HashSet<Property>(Arrays.asList(current.getProperties())); final String cn = current == null ? null : current.getName(); final String pkn = p[k] == null ? null : p[k].getName(); if (cn != null && cn.equals(pkn)) { props.retainAll(new HashSet<Property>(Arrays.asList(p[k].getProperties()))); Node.Property[] p = current.getProperties();
table.getPropertySetModel().setPropertySets(sets); if (sets.length > 0 && !psheet.isAdjusting()) { String tab = (String) sets[0].getValue("tabName"); //NOI18N tab = tab == null ? PropUtils.basicPropsTabName() : tab;
String tab = (String) sets[0].getValue("tabName"); //NOI18N tab = (tab == null) ? PropUtils.basicPropsTabName() : tab; psheet.manager().storeLastSelectedGroup(tab);