forked from wocommunity/Golipse
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPreferenceWindowController.m
More file actions
35 lines (26 loc) · 913 Bytes
/
PreferenceWindowController.m
File metadata and controls
35 lines (26 loc) · 913 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//
// PreferenceWindowController.m
// Golipse
//
// Created by David LeBer on 10-10-12.
// Copyright 2010 Align Software Inc. All rights reserved.
//
#import "PreferenceWindowController.h"
#import "NSView-LayoutAdditions.h"
@implementation PreferenceWindowController
@synthesize eclipseUrlLabel;
@synthesize eclipseUrl;
@synthesize resetButton;
- (void) awakeFromNib;
{
self.eclipseUrlLabel.stringValue = NSLocalizedString(@"Eclipse URL", @"Eclipse archive download URL");
self.window.title = NSLocalizedString(@"Preferences", @"Golipse Preferences Window");
[self.eclipseUrlLabel sizeToFit];
[self.eclipseUrl moveNextToView:self.eclipseUrlLabel withSpace:5.0 stretch:YES];
self.resetButton.title = NSLocalizedString(@"Reset", @"Reset URL Button Label");
}
- (IBAction) resetURL:(id)sender;
{
[[NSUserDefaults standardUserDefaults] removeObjectForKey:kEclipseDownloadURLDefaultsKey];
}
@end