input
stringlengths 10
828
| output
stringlengths 5
107
|
|---|---|
public boolean perform ok solar eclipse plugin get default set bad words preference bad word list get items return super perform ok
|
method declared on ipreference page
|
public boolean perform ok ui plugin get default get preference store set value new jsppage wizard page jsp page template content f template viewer get document get return super perform ok
|
method declared on ipreference page
|
protected boolean is supported embeded content type string content type if content type null for int i 0 i legal embed content types length i if legal embed content types i equals content type return true return false
|
returns whether the given type is one of the legal content types
|
public abstract scanner icolor manager manager ipreference store store super f color manager manager f preference store store background color store get boolean ijspcolor constants jsp background default null f color manager get color preference converter get color f preference store ijspcolor constants jsp background
|
creates an abstract java scanner
|
public boolean is jsppartition int offset try position jsp category f document get positions content types jsp category if jsp category length 0 int i 0 while i jsp category length jsp category i get offset offset i if i 0 i return jsp category i includes offset catch bad position category exception e return false
|
returns whether an offset is in a jsp shadow partition
|
public transform thread controller get controller return controller
|
returns the controller
|
public void set controller transform thread controller controller this controller controller
|
sets the controller
|
public void set suspended boolean suspended need to send event for all items in the launch or they are not marked as suspended in the interface this suspended suspended debug event d evt new debug event 2 if suspended d evt 0 new debug event d target debug event suspend d evt 1 new debug event this debug event suspend else d evt 0 new debug event d target debug event resume d evt 1 new debug event this debug event resume debug plugin get default fire debug event set d evt
|
sets the suspended property
|
public ifile get output file return output file
|
returns the output file
|
public byte array output stream get out bytes return out bytes
|
returns the out bytes
|
public int get tracer count return tracer count
|
returns the number of trace events started
|
public image get image object element if element instanceof breakpoint return debug uitools get image idebug uiconstants img objs breakpoint return null
|
insert the methods description here
|
private void initialize viewer colors isource viewer viewer ipreference store store f overlay store if store null styled text styled text viewer get text widget background color color color store get boolean abstract text editor preference color background system default null create color store abstract text editor preference color background styled text get display styled text set background color if f background color null f background color dispose f background color color
|
initializes the given viewers colors
|
public string get text object element if element instanceof breakpoint imarker marker breakpoint element get marker string description marker get resource get name try description line marker get attribute imarker line number catch core exception c ex return description return null
|
insert the methods description here
|
public ieditor input get editor input object element if element instanceof breakpoint iresource res breakpoint element get marker get resource return new file editor input ifile res if element instanceof trace stack frame trace stack frame s frame trace stack frame element ipath path new path s frame get source filename iworkspace root ws root resources plugin get workspace get root if ws root exists path return new file editor input ws root get file for location path return null
|
insert the methods description here
|
public string get editor id ieditor input input object element if element instanceof breakpoint element instanceof trace stack frame return sf se editor return null
|
insert the methods description here
|
public void set attribute string attribute object value
|
insert the methods description here
|
public void compute detail ivalue value ivalue detail listener listener
|
insert the methods description here
|
public string get model identifier return net sf solareclipse xslt debug debug model presentation non nls 1
|
insert the methods description here
|
public void set debug target idebug target d target this d target d target
|
sets the d target
|
public object get style element return selection event
|
returns the style element
|
public transform thread get tthread return t thread
|
returns the t thread
|
public void set done boolean done this done done if done debug event d evt new debug event 1 d evt 0 new debug event d target debug event terminate debug plugin get default fire debug event set d evt
|
sets the done
|
public void set tthread transform thread t thread this t thread t thread
|
sets the t thread
|
public transform thread get the thread return the thread
|
returns the the thread
|
public void set the thread transform thread the thread this the thread the thread
|
sets the the thread
|
public object get current event return current event
|
returns the current event
|
public void set current event object current event this current event current event
|
sets the current event
|
public boolean is break on next return break on next
|
returns the break on next
|
public void set break on next boolean break on next this break on next break on next
|
sets the break on next
|
public object get style element return style element
|
returns the style element
|
public csstext tools get csstext tools if css text tools null css text tools new csstext tools get preference store return css text tools
|
returns instance of text tools for dtd
|
public boolean get value return my value
|
get the value of this param
|
public void clear params clear param list clear redundant clear
|
clear known params from the hashtable
|
override public string to string return my name
|
get the name of this log level
|
public boolean is loggable final log level o return this get level o get level 0
|
check if this level is displayable at the given log level
|
public boolean add final cliparam param boolean valid char param get chr 0 params contains key param get chr boolean valid string param get string length 0 params contains key param get string if valid char valid string if param get chr 0 params put param get chr param logger debug2 added param param get chr if param get string length 0 params put param get string to lower case param logger debug2 added param param get string param list add param return true else return false
|
add a cliparam to the cliparser
|
public void set case sensitivity final boolean value set all existing values to lowercase if value for object property this key set if property instanceof string final string property name string property if property name equals property name to lower case super set property property name to lower case get property property name super remove property name case sensitive value
|
set case sensitivity of this properties file
|
public int get param number final string flag string check flag if flag length 1 check flag to lower case if params contains key check return params get check get number else return 1
|
get the number of times a param was given
|
public cliparam get param final string flag string check flag if flag length 1 check flag to lower case if params contains key check return params get check else return null
|
get a cliparam object for a given flag
|
public void run my bnc shutdown
|
what todo when shutting down
|
public void set help final cliparam param help param param
|
set the help command
|
public void init add server types add server type new string irc new ircserver type this
|
initialise the server type manager with the default server types
|
public boolean wants help string args if help param null return false for string arg args if arg length 1 arg char at 0 string name arg substring 1 if name equals return false else cliparam param get param name if param help param return true return false
|
check if the help parameter has been passed to the cli
|
public void empty known server types clear
|
remove all server types
|
public void show help final string title final string usage system out println title system out println system out println usage system out println for cliparam param this get param list if param get chr 0 system out print param get chr else system out print if param get string length 0 system out print param get string else system out print t t system out println t param get description
|
show the help
|
public void add server type final string names final server type server type logger debug adding server type server type get name try for int i 0 i names length i if known server types contains key names i to lower case known server types remove names i to lower case logger debug2 t added server type for names i known server types put names i to lower case server type catch exception e logger error error adding server type server type to string e get message del server type server type
|
add a server type type
|
public void del server type final server type server type server type test server type logger debug deleting server type server type get name for string element name known server types key set logger debug2 t checking handler for element name test server type known server types get element name if test server type get name equals ignore case server type get name logger debug2 t removed handler for element name known server types remove element name
|
remove a server type type
|
public server type get server type final string name throws server type not found if known server types contains key name to lower case return known server types get name to lower case else throw new server type not found no server type is known by name
|
get the server type type of a given name
|
public ircserver type final server type manager manager super manager my command manager add command new server list command my command manager my command manager add command new ircset command my command manager my command manager add command new connect command my command manager my command manager add command new perform command my command manager
|
create a new instance of the server type object
|
public boolean has property final string key return get property key null
|
check if a property exists
|
override public boolean can add final string command return true
|
can this list be added to
|
public byte get byte property final string key final byte fallback try return byte parse byte get property key byte to string fallback catch number format exception nfe return fallback
|
get a byte property from the config
|
public void set byte property final string key final byte value set property key byte to string value
|
set a byte property in the config
|
public short get short property final string key final short fallback try return short parse short get property key short to string fallback catch number format exception nfe return fallback
|
get a short property from the config
|
public void reprocess final ircconnection handler connection handler if user is open connection handler process data recieved user line ircparser tokenise line line times 1
|
resend this line through the processor
|
public void set short property final string key final short value set property key short to string value
|
set a short property in the config
|
public int get int property final string key final int fallback try return integer parse int get property key integer to string fallback catch number format exception nfe return fallback
|
get an integer property from the config
|
public ircset command final command manager manager super manager add the valid params valid params put nickname new param info nickname to use on irc param type word valid params put altnickname new param info alternative nickname to use if nickname is taken param type word valid params put realname new param info realname to use on irc param type string valid params put username new param info username to use on irc param type word valid params put bindip new param info ip address to bind to for new connections param type word
|
create a new instance of the command object
|
public void set int property final string key final int value set property key integer to string value
|
set an integer property in the config
|
public long get long property final string key final long fallback try return long parse long get property key long to string fallback catch number format exception nfe return fallback
|
get a long property from the config
|
public requeue timer task final ircconnection handler connection handler this connection handler connection handler
|
create a new requeue timer task
|
override public string get property name final string command return irc serverlist
|
get the name of the property to store the list in
|
override public string get list name final string command return server list
|
get the name of the list
|
public void set long property final string key final long value set property key long to string value
|
set a long property in the config
|
public float get float property final string key final float fallback try return float parse float get property key float to string fallback catch number format exception nfe return fallback
|
get a float property from the config
|
public void set float property final string key final float value set property key float to string value
|
set a float property in the config
|
public void run list requeue line list connection handler get requeue list for requeue line line list line reprocess connection handler
|
actually do stuff
|
public double get double property final string key final double fallback try return double parse double get property key double to string fallback catch number format exception nfe return fallback
|
get a double property from the config
|
public void set double property final string key final double value set property key double to string value
|
set a double property in the config
|
public boolean get bool property final string key final boolean fallback return boolean parse boolean get property key boolean to string fallback
|
get a boolean property from the config
|
public void set bool property final string key final boolean value set property key boolean to string value
|
set a boolean property in the config
|
public char get char property final string key final char fallback final string res get property key character to string fallback if res null res is empty return fallback else return res char at 0
|
get a char property from the config
|
public server type get server type final string current type get properties get property servertype if current type is empty try return dfbnc get server type manager get server type current type catch server type not found stnf return null else return null
|
get the server type for this account
|
public void set char property final string key final char value set property key character to string value
|
set a char property in the config
|
public command manager get command manager return my command manager
|
get the command manager for this account
|
public void set list property final string key final list string value final string builder val new string builder final string lf n boolean first true for string bit value if first first false else val append lf val append bit set property key val to string
|
set a list property in the config
|
public string get my host if my parser null my parser get local client null return my parser get local client to string else if my parser null return string format s my parser get local client get nickname else return null
|
get the users host on this connection
|
public connection handler get connection handler return my connection handler
|
get the connection handler for this account
|
public void set connection handler final connection handler handler my connection handler handler
|
set the connection handler for this account
|
public void save final string config name user my name replace store settings in main config for object obj account options key set string name string obj logger debug2 saving property config name name account options get property name config set option config name name account options get property name
|
save the account settings for this account to the config file
|
public boolean check password final string password string buffer hashed password new string buffer my name to lower case if case sensitive passwords hashed password append password else hashed password append password to lower case hashed password append salt return functions md5 hashed password to string equals account options get property password
|
check if a password matches this account password
|
public void set password final string password string buffer hashed password new string buffer my name to lower case if case sensitive passwords hashed password append password else hashed password append password to lower case hashed password append salt account options set property password functions md5 hashed password to string
|
change the password of this account
|
public list option final boolean is valid final string param final string output this is valid is valid this param param this output output
|
create a new list option
|
public string get delete code return delete code
|
get the delete code for this account
|
public list option check item final string command final string input return new list option true input null
|
check an item
|
public void set delete code final string delete code this delete code delete code
|
set the delete code for this account
|
public void empty known commands clear
|
remove all commands
|
public void on nick changed final parser t parser final client info c client final string s old nick if c client t parser get local client for user socket socket my account get user sockets socket set nickname t parser get local client get nickname
|
called when we or another user change nickname
|
public boolean add sub command manager final command manager manager check that we don t have this already its not us and it doesn t have us if has sub command manager manager manager this manager has sub command manager this now check that this doesn t have any of our sub managers available for command manager sub manager sub managers if manager has sub command manager sub manager return false sub managers add manager return true return false
|
add new sub command manager
|
public boolean del sub command manager final command manager manager if sub managers contains manager sub managers remove manager return true return false
|
delete sub command manager
|
public void delete accounts remove my name config set int option users count accounts size for user socket socket my user sockets socket send line s notice connection terminating account deleted functions get server name socket get account socket close my connection handler shutdown account deleted
|
delete this account
|
public void add command final command command handles returns a string array of all the namess that this command will handle add command command handles command
|
add new command
|
public command add command final string handles final command command logger debug adding command command get name try for int i 0 i handles length i if known commands contains key handles i to lower case new commands take priority over old ones known commands remove handles i to lower case logger debug2 t added handler for handles i known commands put handles i to lower case command catch exception e logger error error adding command command to string e get message del command command return null return command
|
add a command using given handles for the command
|
public void del command final command command command test command logger debug deleting command command get name for string element name known commands key set logger debug2 t checking handler for element name test command known commands get element name if test command get name equals ignore case command get name logger debug2 t removed handler for element name known commands remove element name
|
remove a command type
|
public command get command final string name throws command not found exception return get command name 0
|
get the command used for a specified name
|
public void set suspended final boolean value final string reason account options set bool property suspended value if value final string suspend reason reason null reason is empty reason no reason specified account options set property suspend reason suspend reason for user socket socket my user sockets socket send line s notice connection terminating account suspended s functions get server name socket get account suspend reason socket close my connection handler shutdown account suspended
|
change the suspended setting for this account
|
protected command get command final string name final int nesting throws command not found exception if known commands contains key name to lower case return known commands get name to lower case else if nesting nesting limit for command manager manager sub managers try return manager get command name nesting 1 catch command not found exception cnf ignore it might be in other managers command was not found in any manager throw new command not found exception no command is known by name
|
get the command used for a specified name
|
public void handle final user socket user final string params throws command not found exception command command handler null try command handler get command params 0 if command handler is admin only user get account is admin throw new command not found exception no command is known by params 0 else command handler handle user params catch command not found exception p throw p catch exception e string builder line new string builder for int i 0 i token length i line append append token i logger error there has been an error with the command params 0
|
handle a command
|
public boolean is open return is closed
|
is this socket still open
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.