Mantis Bugtracker
  

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  Workspace-openFile.1.cs [^] (9,257 bytes) 12-13-08 04:41
 Workspace-openFile.2.cs [^] (8,662 bytes) 12-15-08 20:11
 M5669-Workspace-openFile.1.cs [^] (8,616 bytes) 12-16-08 13:03
 M5669-Workspace-openFile.2.cs [^] (8,662 bytes) 12-18-08 02:00

- Relationships

SYSTEM WARNING: Creating default object from empty value

SYSTEM WARNING: Creating default object from empty value

related to 0002993closed MarcusDenker [Bug] UIManager opening Workspace window w/o the proper model. 
related to 0004654closed KenCausey In 7054 the workspace bug reported in Mantis 0002993 has reappeared. 

- Notes
(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
 

- Issue History
Date Modified Username Field Change
12-23-06 06:21 Keith_Hodges New Issue
12-23-06 06:21 Keith_Hodges Status new => assigned
12-23-06 06:21 Keith_Hodges Assigned To  => KenCausey
12-24-06 21:16 KenCausey Assigned To KenCausey =>
12-24-06 21:16 KenCausey Status assigned => new
12-24-06 21:16 KenCausey Category Any => Tools
12-25-06 08:46 wiz Note Added: 0008755
12-25-06 22:21 Keith_Hodges Note Added: 0008756
12-26-06 01:51 wiz Note Added: 0008757
10-10-07 23:03 Keith_Hodges Note Added: 0011294
10-12-07 04:39 wiz Note Added: 0011305
11-20-07 00:14 matthewf Relationship added related to 0002993
04-10-08 05:04 kbrown Note Added: 0011988
12-11-08 16:48 Keith_Hodges File Added: Workspace-openFile.1.cs
12-11-08 16:49 Keith_Hodges Note Added: 0012842
12-11-08 16:49 Keith_Hodges Summary Workspace has no convenience methods => Workspace openFile:
12-11-08 16:50 Keith_Hodges Summary Workspace openFile: => Workspace openFile: convenience method
12-11-08 16:50 Keith_Hodges Description Updated
12-11-08 17:20 Keith_Hodges File Deleted: Workspace-openFile.1.cs
12-11-08 17:20 Keith_Hodges File Added: Workspace-openFile.1.cs
12-11-08 17:40 Keith_Hodges File Deleted: Workspace-openFile.1.cs
12-11-08 17:41 Keith_Hodges File Added: Workspace-openFile.1.cs
12-11-08 17:42 Keith_Hodges Note Added: 0012843
12-11-08 18:15 Keith_Hodges File Deleted: Workspace-openFile.1.cs
12-11-08 18:15 Keith_Hodges File Added: Workspace-openFile.1.cs
12-11-08 18:17 Keith_Hodges Relationship added related to 0004654
12-11-08 18:25 Keith_Hodges File Deleted: Workspace-openFile.1.cs
12-11-08 18:26 Keith_Hodges File Added: Workspace-openFile.1.cs
12-13-08 01:47 Keith_Hodges Note Added: 0012846
12-13-08 01:47 Keith_Hodges Status new => confirmed
12-13-08 03:00 Keith_Hodges ETA none => > 1 month
12-13-08 03:00 Keith_Hodges Fixed in Version  => 3.10.2
12-13-08 04:39 Keith_Hodges File Deleted: Workspace-openFile.1.cs
12-13-08 04:41 Keith_Hodges File Added: Workspace-openFile.1.cs
12-15-08 20:11 Keith_Hodges File Added: Workspace-openFile.2.cs
12-15-08 20:12 Keith_Hodges Note Edited: 0012842
12-15-08 20:31 Keith_Hodges Note Edited: 0012846
12-16-08 12:42 Keith_Hodges File Added: M5669-Workspace-openFile.1.cs
12-16-08 13:03 Keith_Hodges File Deleted: M5669-Workspace-openFile.1.cs
12-16-08 13:03 Keith_Hodges File Added: M5669-Workspace-openFile.1.cs
12-16-08 13:04 Keith_Hodges Note Edited: 0012842
12-16-08 17:33 Keith_Hodges Fixed in Version 3.10.2 => 3.10.2bc
12-16-08 19:28 Keith_Hodges Severity tweak => feature
12-18-08 02:00 Keith_Hodges File Added: M5669-Workspace-openFile.2.cs
12-18-08 02:00 Keith_Hodges Note Added: 0012862
12-18-08 02:01 Keith_Hodges Note Edited: 0012842
01-07-09 21:12 Keith_Hodges Resolution open => fixed
01-09-09 23:29 Keith_Hodges Status confirmed => resolved
04-18-10 22:06 andreas Status resolved => closed


Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
144 total queries executed.
63 unique queries executed.
Powered by Mantis Bugtracker