Anonymous | Login | 01-26-2021 03:30 UTC |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0005669 | [Squeak] Tools | feature | always | 12-23-06 06:21 | 04-18-10 22:06 | ||||
Reporter | Keith_Hodges | View Status | public | ||||||
Assigned To | |||||||||
Priority | normal | Resolution | fixed | ||||||
Status | closed | Product Version | |||||||
Summary | 0005669: Workspace openFile: convenience method | ||||||||
Description |
There is no convenience method for opening a workspace on text. Nor is there a way of saving a file such that it opens a workspace. And Workspace always adds '.text' to the name even if it already has it |
||||||||
Additional Information | |||||||||
Attached Files |
![]() ![]() ![]() ![]() |
||||||||
|
![]() |
|||||||||||
SYSTEM WARNING: Creating default object from empty value SYSTEM WARNING: Creating default object from empty value
|
![]() |
|
(0008755 - 397 - 469 - 469 - 697 - 697 - 697) wiz 12-25-06 08:46 |
See 0002993 and the recomplaint #4656. You can actually ask to put a file in a workspace thusly: In a file list read a text file. Using the menu (from the text pane) select read text into workspace. The problem is in 3.9 it doesn't quite work. and the fix in 0002993 never got in nor was a substitute fix ever created. The fix AFAIK works quite well. Yours in service, --Jerome Peace |
(0008756 - 43 - 43 - 43 - 43 - 43 - 43) Keith_Hodges 12-25-06 22:21 |
But there are STILL no convenience methods. |
(0008757 - 631 - 719 - 719 - 719 - 719 - 719) wiz 12-26-06 01:51 |
Cool, I piped up because I knew some things that were relevant. What do you mean by convenience methods? What do you see. And where do you see it being? In other words, in positive terms, what is the users story? The complaint here may make perfect sense to you. But how is the reader to understand what you mean? Please don't assume I have the same body of knowledge or vocabulary as you. In truth this is the first time I've come across the term "convenience methods" and I am totally at sea (i.e. pretty dang ignorant) as to what special meaning that has in this context. Yours in curiosity, -- Jerome Peace |
(0011294 - 163 - 205 - 205 - 205 - 205 - 205) Keith_Hodges 10-10-07 23:03 |
ok example A := Workspace open. is A useful for addressing the workspace? A := Workspace withContents: 'test'. A := Workspace fromFile: 'test.txt'. etc |
(0011305 - 430 - 496 - 496 - 496 - 496 - 496) wiz 10-12-07 04:39 |
Hi Keith, Your examples start to get there. What I really want to see is the user story in the form context: I wanted to do this( where you descirbe this generally and specifially enough that you give the reader of what you want) problem: Why this can't be done yet solution: Add these methods to here and its done. (Be inclusive of most all you want done.) Then later you or others can upload the solution code. |
(0011988 - 344 - 356 - 356 - 356 - 356 - 356) kbrown 04-10-08 05:04 |
Here's an example of how to read text from a file into an appropriately named Workspace so you can use the Workspace windowbar menu to save the contents of the Workspace back into the same file easily. (SHWorkspace new openLabel: 'myWorkspace') contents: ((FileStream fileNamed: 'myWorkspace.text') contentsOfEntireFile); changed: #contents. |
(0012842 - 90 - 134 - 134 - 134 - 134 - 134) Keith_Hodges 12-11-08 16:49 edited on: 12-18-08 02:01 |
"fix begin" Installer mantis bug: 5669 fix: 'M5669-Workspace-openFile.2.cs'. "fix end" |
(0012843 - 65 - 71 - 71 - 71 - 71 - 71) Keith_Hodges 12-11-08 17:42 |
w := Workspace openFile: 'Readme.txt'. w label: 'Welcome to...'. |
(0012846 - 153 - 187 - 187 - 187 - 187 - 187) Keith_Hodges 12-13-08 01:47 edited on: 12-15-08 20:31 |
Included Workspace-openFile.1.cs in 081214-0249-Squeak3.10.2bc-beta Workspace-openFile.2.cs - adds "open..." menu item to provide a file opening UI. |
(0012862 - 37 - 37 - 37 - 37 - 37 - 37) Keith_Hodges 12-18-08 02:00 |
allow to cancel out of opening a file |
Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
144 total queries executed. 63 unique queries executed. |