Esempio n. 1
0
 /**
  * Return the path associated with the given reference file.
  *
  * @param refString the file name.
  * @param sDefault the default file name.
  * @param bSmallIcon true to return the small version of the node icon, false to return the
  *     standard size
  * @return a String representing relevant file path.
  * @see IUIConstants
  */
 public static String getReferencePath(String refString, String sDefault, boolean bSmallIcon) {
   if (bSmallIcon) {
     return UIReferenceNodeManager.getSmallReferenceIconPath(refString, sDefault);
   } else {
     return UIReferenceNodeManager.getReferenceIconPath(refString, sDefault);
   }
 }
Esempio n. 2
0
 /**
  * Used to get the reference icons for right-click menus.
  *
  * @param refString, the name of the image to return the icon for.
  * @return ImageIcon, the icon for the given image exctension type.
  */
 public static ImageIcon getSmallReferenceIcon(String refString) {
   return UIReferenceNodeManager.getSmallReferenceIcon(refString);
 }
Esempio n. 3
0
 /**
  * Return the small ImageIcon associated with the given reference file.
  *
  * @param String refString, the file name.
  * @param String sDefault, the default file name.
  * @return a String representing relevant file path.
  * @see IUIConstants
  */
 public static String getReferenceSmallPath(String refString, String sDefault) {
   return UIReferenceNodeManager.getSmallReferenceIconPath(refString, sDefault);
 }