Closed Bug 381685 Opened 18 years ago Closed 18 years ago

Clean up status and separator interface on Bookmark

Categories

(Camino Graveyard :: Bookmarks, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: stuart.morgan+bugzilla, Assigned: stuart.morgan+bugzilla)

Details

(Keywords: fixed1.8.1.5)

Attachments

(1 file)

Attached patch clean upSplinter Review
The Bookmark class has a bunch of messiness left over from the old automatic bookmark checking and the shoe-horning-in of separator as a status field. This is an incremental patch to substantially improve things. There is a lot left to do to improve things here, and I'll follow up with more later on, but I want to keep the change easy to review. - creates a new utility method for clients to use to create separators - removes status and setStatus:, since they are no longer meaningful, as well as the status parameter of a bookmark-adding method (the value it always used is already the default) - makes setIsSeparator: private, since no-one should ever change a bookmark after it's created (removing this entirely requires more surgery that I'll do later) - makes the safe-accessors that are only needed internally private (again, savedStatus will be removed later)
Attachment #265766 - Flags: review?
I forgot: - pushes the remnant of status into the bookmark reading/writing (eliminating is later), so the internal class state no longer has the status concept. (This may need bug 380586's patch applied to compile/run correctly; I didn't want to mess with code we are removing)
Attachment #265766 - Flags: review? → review+
Attachment #265766 - Flags: superreview?(mikepinkerton)
Comment on attachment 265766 [details] [diff] [review] clean up + [self setTitle:NSLocalizedString(@"<Menu Spacer>", nil)]; why is this localized? Is it ever shown to the user? sr=pink
Attachment #265766 - Flags: superreview?(mikepinkerton) → superreview+
Yes, unfortunately. It's one of those things that we really need to fix about the way the bookmark inspector panel works.
Checked in on trunk and MOZILLA_1_8_BRANCH
Status: NEW → RESOLVED
Closed: 18 years ago
Keywords: fixed1.8.1.5
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: