public static final String IMG_INFO_ST_OBJ="IMG_INFO_ST_OBJ";
public static final String IMG_ERROR_STACK_OBJ="IMG_ERROR_STACK_OBJ";
+ public static final String IMG_FIELD_PUBLIC = "IMG_FIELD_PUBLIC";
+ public static final String IMG_FIELD_PROTECTED = "IMG_FIELD_PROTECTED";
+ public static final String IMG_FIELD_PRIVATE = "IMG_FIELD_PRIVATE";
public static final String IMG_PROPERTIES = "IMG_PROPERTIES";
// public static final String IMG_PROPERTIES_DISABLED = "IMG_PROPERTIES_DISABLED";
}
private static void declareImages() {
+ declareRegistryImage(IMG_FIELD_PUBLIC, T_OBJ + "methpub_obj.gif");
+ declareRegistryImage(IMG_FIELD_PROTECTED, T_OBJ + "methpro_obj.gif");
+ declareRegistryImage(IMG_FIELD_PRIVATE, T_OBJ + "methpri_obj.gif");
+
declareRegistryImage(IMG_EVIEW_ARGUMENTS_TAB, T_EVIEW + "arguments_tab.gif"); //$NON-NLS-1$
declareRegistryImage(IMG_EVIEW_ENVIROMENT_TAB, T_EVIEW + "environment_tab.gif"); //$NON-NLS-1$
import net.sourceforge.phpeclipse.xdebug.php.model.XDebugStackFrame;
import net.sourceforge.phpeclipse.xdebug.php.model.XDebugVariable;
import net.sourceforge.phpeclipse.xdebug.php.model.XDebugValue;
+import net.sourceforge.phpeclipse.xdebug.ui.XDebugUIPluginImages;
//import net.sourceforge.phpeclipse.xdebug.ui.XDebugUIPlugin;
//import net.sourceforge.phpeclipse.xdebug.ui.php.launching.CopyOfPHPDebugModelPresentation.StorageEditorInput;
return DebugUITools.getImage(IDebugUIConstants.IMG_OBJS_BREAKPOINT);
}
- private Image getVariableImage(XDebugVariable phpVar) {
+// private Image getVariableImage(XDebugVariable phpVar) {
/*
* if (phpVar != null) { if (phpVar.isLocal()) return
* DebugUITools.getImage(IDebugUIConstants.IMG_OBJS_VARIABLE); if
* (phpVar.isHashValue()) return
* DebugUITools.getImage(IDebugUIConstants.IMG_OBJS_VARIABLE); }
*/
- return DebugUITools.getImage(IDebugUIConstants.IMG_OBJS_VARIABLE);
- }
+ // return DebugUITools.getImage(IDebugUIConstants.IMG_OBJS_VARIABLE);
+ //}
+
+ private Image getVariableImage(XDebugVariable phpVar) {
+ if (phpVar.getVisibility().equals("protected")) {
+ return XDebugUIPluginImages.get(XDebugUIPluginImages.IMG_FIELD_PROTECTED);
+ } else if (phpVar.getVisibility().equals("private")) {
+ return (XDebugUIPluginImages.get(XDebugUIPluginImages.IMG_FIELD_PRIVATE));
+ }
+ return XDebugUIPluginImages.get(XDebugUIPluginImages.IMG_FIELD_PUBLIC);
+ }
private Image getValueImage(XDebugValue phpVar) {
if (phpVar != null) {
return DebugUITools.getImage(IDebugUIConstants.IMG_OBJS_VARIABLE);