input stringlengths 10 828 | output stringlengths 5 107 |
|---|---|
public response collection remove file collection files message clear message command id internal message type remove message files files transfer message return message response | forwards a remove call to the server |
public void set missing file shared file file this missing file file | sets the file collection containing information about the missing files |
public shared file get file int index shared file retval null try retval files get index catch exception e retval null return retval | returns a specified file |
public int get type return sharpster common response type accessable files | returns the type of this response |
public file collection getfiles return files | returns the file collection containing information about accessible files |
public void set files file collection files this files files | sets the file collection containing information about accessible files |
public shared file get file return file | returns the file which has caused the error |
public void set file shared file file this file file | sets the file which has caused the error |
public int get type return sharpster common response type scm output | returns the type of this response |
public response collection list file collection files message clear message command id internal message type list message files files transfer message if message files null files remove all files files append collection message files return message response | forwards a list call to the server |
public int get type return sharpster common response type missing access | returns the type of this response |
public part of file plugin get plugin from name string plugin name int number of plugins plugins size for int i 0 i number of plugins i if plugin name equals plugins get i get plugin name return plugins get i return null | returns a plug in object given a specific plug in name |
public string get plugin description string name part of file plugin plugin get plugin from name name if plugin null return plugin get plugin description return new string | returns a description about the given plug in name |
public boolean load scmplugins string directory file path new file directory if path is directory return false file files path list files scm plugins clear for file file files if file get name matches manager class file parent file get parent file string name versioncontrol file get name name name substring 0 name length 6 try version control interface vc plugin version control interface plugin loader load name parent get parent if vc plugin null scm plugins add vc plugin catch exception e return true | load all scm plug ins from specified directory that ends with code manager |
public int get type return sharpster common response type shared files | returns the type of this response |
public file collection get files return files | returns the file collection of the response |
public version control interface get scmplugin from name string plugin name for version control interface vc scm plugins if plugin name equals vc get plugin name return vc return new missing scmmanager | returns a version control plug in object given a specific plug in name |
public string get scmplugin description string name version control interface plugin get scmplugin from name name if plugin null return plugin get plugin description return new string | returns a description about the given scm plug in name |
public int get type return sharpster common response type file | returns the type of this response |
public response collection scmtype string scmtype message clear message command id internal message type scmtype message scmtype scmtype transfer message return message response | tells the server to use a new type of scm |
public void set origin string origin this origin new string origin | set the name of the module which has created this response |
public response collection shutdown message clear message command id internal message type shutdown transfer message return message response | forwards a shutdown call to the daemon |
public void set file name string name file name new string name | sets the name of a file |
public string get path in scm return path in scm | returns the path of the file in the cvs tree |
public void set path in scm string path path in scm new string path | sets the path of the file in the cvs tree |
public void set full path string path this full path path | sets the full path |
public void create part control composite parent make actions create the actions and the buttons hook context menu set hooks to be able to display pop up menu contribute to action bars do something add myself as a global selection listener get site get page add selection listener this prime the selection selection changed null get site get page get selection create and init the textbox console text box new text parent swt v scroll swt wrap swt read only swt multi text box set text hello sharp devil user r n | this is a callback that will allow us |
public void set version string ver version new string ver | sets the version of the file in the cvs |
public plugin data get plugin data return plugin data | returns the plug in information associated with the file share |
public void set plugin data plugin data data plugin data data | sets the plug in information associated with the file share |
private void hook context menu menu manager menu mgr new menu manager popup menu menu mgr set remove all when shown true menu mgr add menu listener new imenu listener public void menu about to show imenu manager manager sharp view this fill context menu manager | here we create a menu listener for displaying of popup menues |
public string get role return eclipse plugin get preference store get string preference constants role string | this method returns the current role as a string |
public string get working dir string work dir no dir found open if necessary try if my project exists my project is open my project open null work dir my project get location to string ipreference store store eclipse plugin get preference store return store get string preference constants project name string catch exception ce system out println error trying to find project return work dir | gets the path to the working directory |
private void fill local pull down imenu manager manager manager add act commit manager add act checkout manager add new separator manager add act adm com | populate the pull down menu |
public void set project name string project name my project my workspace root get project project name | when a project or a file belonging to a project is selected |
private void fill context menu imenu manager manager manager add act commit manager add act checkout manager add new separator manager add act adm com other plug ins can contribute there actions here manager add new separator iworkbench action constants mb additions | populate the context menu |
private void fill local tool bar itool bar manager manager manager add act commit manager add act checkout manager add act revert manager add new separator manager add act diff manager add act overview manager add act mark sel manager add new separator manager add act adm com | populate the views main toolbar |
public response collection diff string plugin method string role file collection files response collection collection new response collection message response response new message response response set origin devil client com response set message diff stub response set error false collection add response response return collection | stub method for future implentation of the cvs diff command |
private void show message string message message dialog open information text box get shell sharpster view message | this method displays a simple dialog |
public response collection save config config data conf data return files config save config conf data | save config saves the configuration data for sharpster |
public void set focus text box set focus | passing the focus request to the viewers control |
public config data get config return files config get config | get config fetches data from the configuration file |
public void display dialog string message int type if 0 type message dialog open information text box get shell message n message message else if 1 type message message replace n r n text box set text text box get text r n message else system out println error in view wrong type of dialog | displays a dialog to the user |
public void set server name string name this name name | sets the name of the server |
public void set ip string server ip this ip server ip | sets the ip of the server |
public void set server type string server type this server type server type | sets the name of the server |
public void set user name string user name this username user name | sets the username |
public string get sharing method return sharing method | get sharing method returns the current sharing method |
public void add logic i devil guito logic logic views logic logic | this method is called from the initialization class and |
public void set java doc sharing method javadoc | set java doc sets the current sharing method to java doc |
public void set xml sharing method xml | set xml sets the current sharing method to xml |
public share method get sharing method return share method | gets the sharing method used |
public string to string return sharing method | a string representation of the share method |
public void set sharing method share method sharing method this share method sharing method | sets the sharing method to be used |
public string get plugin name return default | returns the name of the plug in which has created this data |
public plugin data parse arguments linked list args return new default plugin data | parse a commandline argument and convert it to a specific plugin data |
public plugin data set role string role return new default plugin data | sets the role to use |
public response collection extract parts shared file original file string role file collection retval new file collection file response respval new file response response collection resp new response collection retval add file original file respval set files retval resp add response respval return resp | extract the shared parts from a file collection |
public string get plugin name return new string javarole | returns the name of the plug in which has created this data |
public string get plugin description return new string java role plugin a plugin for extracting parts of files depending on tags | retrns a description of this plug in |
public plugin data parse arguments linked list args return new java role plugin data | parse a commandline argument and convert it to a specific plugin data |
public plugin data set role string role return new java role plugin data | sets the role to use when parsing |
public response collection extract parts shared file original file string role if original file get file name ends with java role null response collection return response collection new response collection file response res new file response file collection fc new file collection fc add file original file res set files fc return response collection add response res return return response collection system out println jrp extracting response collection resp if role equals doc resp extractor extract parts for doc original file else resp extractor extract parts for role original file role return resp | extract the shared parts from a file collection |
public string to string return name name n ip ip n server type server type n username username n sharemethod share method to string n password password n role role n module name module name n | string representation of config data |
public entity get next skip head and body if current null if current type entity classbody current type entity semicolon entity parent current get parent current parent get next child else if current type entity classhead current type entity methodhead entity parent current get parent parent get next child body or semicolon current parent get next child else get next if current type entity classhead current type entity methodhead entity parent current get parent parent get next child body or semicolon current parent get next child return current | this method skips the first instance of a class |
public void property changed object o int i text box set text text box get text r n object o get class get name i | the class must implement a property changed event |
public string to string string buffer sb new string buffer get first child of file while current null sb append current get content and whitespace get next return sb to string | generates a file from the parsetree |
public void add child entity sub entity sub entity set parent this children add sub entity | adds a child to current entitys child vector |
public void insert child before entity sub entity sub entity set parent this children add current child sub entity current child | sets the parent of this entity |
public entity remove current child and get previous children remove current child current child if current child 0 return children element at current child else return null | removes current child and sets current to point at the previous entity |
public entity remove current child and get next children remove current child if current child children size return children element at current child else return null | removes current child and sets current to point at the next entity |
public entity get first child current child 0 if current child children size return children element at current child else return null | gets the first child of this entity |
public entity get last child current child children size 1 if current child 0 return children element at current child else return null | gets the last child of this entity |
public entity get next child current child if current child children size return children element at current child else return null | gets the next child of this entity |
public entity get previous child current child if current child 0 return children element at current child else return null | gets the previous child of this entity |
public string get content if type semicolon return else return file substring content start pos end pos | gets a string with the content represented by the entity |
public string get content and whitespace if type semicolon return file substring start pos content start pos else return file substring start pos end pos | gets a string with the content and whitespaces represented by the entity |
public string get plugin name return general | returns the name of the plug in which has created this data |
public string get plugin description return a plugin used to share parts of a text file | returns a brief description of the plugin |
public plugin data parse arguments linked list args for int i 0 i args size i tags add new string string args get i general plugin data pd new general plugin data pd set tags tags return pd | parse a commandline argument and convert it to a specific plugin data |
private void insert console text string txt string text text box get text txt int text len text length text box set text text text box set selection text len text len | inserts text in command window without line break |
public plugin data set role string role tags add role general plugin data pd new general plugin data pd set tags tags return pd | sets the role to use when parsing |
private string end tag string start tag string retval retval start tag substring 1 start tag length return retval | returns the corresponding endtag for start tag |
private boolean line contains tag string line string tag return line index of tag 1 | returns true if line contains the tag |
private string line contains atag string line for int i 0 i tags size i string tag tags get i if line contains tag line tag return tag return null | iterates through all tags and checks if the line contains one of them |
private string remove until include tag string line string tag int index line index of tag string retval line substring index tag length return retval | remove the line upto and including tag |
private string remove until tag string line string tag int index line index of tag string retval line substring index return retval | remove the line upto the tag |
private string get until tag string line string tag int index line index of tag string retval line substring 0 index return retval | gets the contents of line upto the tag |
private string get user input string dialog message input dialog input new input dialog text box get shell sharpster view dialog message null input open return input get value | prompts the user for input into a modal input dialog |
private string get until include tag string line string tag int index line index of tag string retval line substring 0 index tag length return retval | gets the contents of line upto and including the tag |
private void eat whitespace while pos file length if character is whitespace file char at pos pos else return | moves beyond whitespace |
private void backtrack while whitespace pos while pos 0 if character is whitespace file char at pos pos else pos return | backtrack until non whitespace is found |
private boolean find end of comment int next pos file index of pos 2 if next pos 0 pos next pos 2 return true else return false | assumes start of comment is at current position |
private boolean find end of string pos while pos file length if file char at pos pos 2 continue else if file char at pos pos return true else pos return false | assumes an at current position and searches from next position |
private char find first char chars char c while pos file length c file char at pos switch c case if find end of string return 0 break case if find end of char return 0 break case if is comment if eat comment return 0 else pos break default for int i 0 i chars length i if c chars i pos return c pos break eof so return the error char return 0 | searches after the first occurance of any of the characters |
private boolean eat comment if pos 1 file length if file char at pos 1 if find line end current entity end pos pos current entity type entity extra return true else return false else if file char at pos 1 if pos 2 file length file char at pos 2 if find end of comment current entity end pos pos current entity type entity doccomment return true else return false else if find end of comment current entity end pos pos current entity type entity extra return true else return false return false current entity type entity syntaxerror | assumes that the char at the current position is |
private boolean is comment if pos 1 file length if file char at pos 1 file char at pos 1 return true return false | is there a comment at the current position |
private boolean find end of char pos while pos file length if file char at pos pos 2 continue else if file char at pos pos return true else pos return false | assumes that the char is at current position |
private void print response response res null system out println responses from the daemon n for int i 0 i response get response count i res response get response i if res null system out println res to string | function prints response that comes back from daemon |
public entity remove current child and get previous children remove current child current child if current child 0 return entity children element at current child else return null | removes current child and sets current to point at the previous entity |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.