Changeset 843


Ignore:
Timestamp:
09/20/12 17:14:49 (12 years ago)
Author:
pharms
Message:
  • added special handling for correcting org.tigris.toolbar.toolbutton.PopupToolBoxButton? occurrences as they contain an object reference to another object in their toString representation each time they occur. Creating a name for them without this reference is much more correct and reduces the number of distinct elements in the condensed GUI model extremely.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/quest-plugin-jfc/src/main/java/de/ugoe/cs/quest/plugin/jfc/JFCTraceCorrector.java

    r840 r843  
    624624            } 
    625625            else { 
    626                 title = icon; 
     626                // to be able to distinguish some elements, that usually have no name but an icon, 
     627                // try to include some of their specific identifying information in their name. 
     628                if ("org.tigris.toolbar.toolbutton.PopupToolBoxButton".equals(clazz)) 
     629                { 
     630                    icon = icon.substring(0, icon.lastIndexOf('@')); 
     631                    title = clazz.substring(clazz.lastIndexOf('.') + 1) + "(position " + 
     632                        component.getX() + ")"; 
     633                } 
     634                else { 
     635                    title = icon; 
     636                } 
    627637            } 
    628638        } 
Note: See TracChangeset for help on using the changeset viewer.