• Views
  • Iteration Report
  • My Iteration Report
  •  
OMERO.clients
  • Login
  • Help/Guide
  • About Trac
  • Preferences
  • Wiki
  • Timeline
  • Roadmap
  • Browse Source
  • View Tickets
  • Search

Context Navigation

  • ← Previous Change
  • Next Change →

Changeset 5543 for branches/OmeroEditor/src/treeModel/ContiguousChildSelectionModel.java

Show
Ignore:
Timestamp:
07/17/08 16:32:21 (4 months ago)
Author:
will
Message:

Basically working JTree, with custom Rendering, Editing and Selection behavior

Files:
1 modified

  • branches/OmeroEditor/src/treeModel/ContiguousChildSelectionModel.java (modified) (2 diffs)

Legend:

Unmodified
Added
Removed
  • branches/OmeroEditor/src/treeModel/ContiguousChildSelectionModel.java

    r5527 r5543  
    8080   public void setSelectionPaths(TreePath[] pPaths) {  
    8181            
     82           //System.out.println("ContiguousChildSelectionModel   setSelectionPaths" + 
     83                //              "length = " + pPaths.length); 
    8284            
    8385           if (pPaths.length > 0) { 
    … …  
    184186           System.out.println("ContiguousChildSelectionModel   addSelectionPaths" + 
    185187                        "length = " + paths.length); 
     188            
    186189           /* 
    187190            * Check if any new paths have different parent  
    188191            */ 
    189192           TreePath[] currentPaths = this.getSelectionPaths(); 
     193           // if no selection, simple set the selection paths to the new paths 
     194           if ((currentPaths == null) || (currentPaths.length == 0)) { 
     195                   setSelectionPaths(paths); 
     196                   return; 
     197           } 
    190198           TreePath currentParent = currentPaths[0].getParentPath(); 
    191199            

Download in other formats:

  • Unified Diff
  • Zip Archive

Trac Powered

Powered by Trac 0.11
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/