Lines 917-923
Link Here
|
917 |
} |
917 |
} |
918 |
}); |
918 |
}); |
919 |
|
919 |
|
920 |
propSets.add(new Node.PropertySet( |
920 |
propSets.add(new TabPropertySet( |
921 |
"events", // NOI18N |
921 |
"events", // NOI18N |
922 |
bundle.getString("CTL_EventsTab"), // NOI18N |
922 |
bundle.getString("CTL_EventsTab"), // NOI18N |
923 |
bundle.getString("CTL_EventsTabHint")) // NOI18N |
923 |
bundle.getString("CTL_EventsTabHint")) // NOI18N |
Lines 927-933
Link Here
|
927 |
} |
927 |
} |
928 |
}); |
928 |
}); |
929 |
|
929 |
|
930 |
propSets.add(new Node.PropertySet( |
930 |
propSets.add(new TabPropertySet( |
931 |
"synthetic", // NOI18N |
931 |
"synthetic", // NOI18N |
932 |
bundle.getString("CTL_SyntheticTab"), // NOI18N |
932 |
bundle.getString("CTL_SyntheticTab"), // NOI18N |
933 |
bundle.getString("CTL_SyntheticTabHint")) // NOI18N |
933 |
bundle.getString("CTL_SyntheticTabHint")) // NOI18N |
Lines 936-941
Link Here
|
936 |
return getSyntheticProperties(); |
936 |
return getSyntheticProperties(); |
937 |
} |
937 |
} |
938 |
}); |
938 |
}); |
|
|
939 |
} |
940 |
|
941 |
/** Property set which the new property sheet in its own tab instead of |
942 |
* in the properties tree. */ |
943 |
private abstract class TabPropertySet extends Node.PropertySet { |
944 |
public TabPropertySet (String a, String b, String c) { |
945 |
super (a,b,c); |
946 |
} |
947 |
public Object getValue (String key) { |
948 |
if ("tabName".equals (key)) { |
949 |
return getDisplayName(); |
950 |
} else { |
951 |
return super.getValue(key); |
952 |
} |
953 |
} |
939 |
} |
954 |
} |
940 |
|
955 |
|
941 |
protected Node.Property[] createSyntheticProperties() { |
956 |
protected Node.Property[] createSyntheticProperties() { |