// // MPT_CERT3_3_Weights.m // // Created by Andrew Salamon on 9/25/06. // Copyright 2006 __MyCompanyName__. All rights reserved. // #import "MPT_CERT3_3_Weights.h" @implementation MPT_CERT3_3_Weights - (id)initWithBundle:(NSBundle *)_bundle { if( self = [super initWithBundle:_bundle] ) { tooltips = NULL; } return self; } - (void)dealloc { [tooltips release]; [super dealloc]; } - (NSString *)pluginID { NSString *ident = [super pluginID]; if( [ident length] > 0 ) return ident; return @"edu.ucsd.mplab.plugins.CERT3_3_Weights"; } - (NSString *)localizedName { return NSLocalizedStringFromTableInBundle(@"FACS Codes 3.3", nil, [self bundle], @""); } - (NSString *)internalName { return @"CERT3_3_Weights"; } - (NSString *)step { return MPT_PluginStep_SVM; } - (NSString *)weightsDirectory { return [[[self bundle] resourcePath] stringByAppendingPathComponent:@"Weights"]; } - (void)setView:(MPT_AUView *)newView forLabel:(NSString *)label { [super setView:newView forLabel:label]; if( !tooltips ) [self loadTooltips]; NSString *tip = [tooltips objectForKey:label]; if( tip ) [newView setToolTip:tip]; } @end