Changes

Jump to navigation Jump to search
→‎Focusing Objects: mention full file path
Line 261: Line 261:  
  org.laptop.Journal.ShowObject(object_id)
 
  org.laptop.Journal.ShowObject(object_id)
   −
Switches to the Journal activity and shows the selected object.
+
Switches to the Journal activity and shows the "detail view" of the selected object.
   −
This can be used to, e.g., open a URL (create a URL object in the journal then call this) or to view source code (store the source code as text file in the journal then call ShowObject() on it).
+
This can be used to, e.g., open a URL (create a URL object in the journal then call this) or to view source code (store the source code as text file, then call ShowObject() on it).
 +
 
 +
Note: since Sugar 0.84, you also can give the full path to an existing file instead of an object id. If the user resumes that file, it will be copied to the Journal first and the opened using the chosen activity. <i>This seems to be of limited usefulness and is documented here just for completeness</i>
    
<s>To focus on multiple objects: <code>org.laptop.Journal.FocusSearch(query)</code></s> ''Removed in Sugar 0.83''
 
<s>To focus on multiple objects: <code>org.laptop.Journal.FocusSearch(query)</code></s> ''Removed in Sugar 0.83''
132

edits

Navigation menu