input
stringlengths 10
828
| output
stringlengths 5
107
|
|---|---|
private void remove selected items int index object removable strings file list get selected values int length removable strings length for int i 0 i length i default list model file list get model remove element string removable strings i
|
description of the method
|
protected string get from project hashtable string prop return string parent app project get prop
|
gets the from hashtable attribute of the ideproject option dialog object
|
public interpreter set interpreter interpreter interpreter this interpreter interpreter return interpreter
|
sets the interpreter
|
public void save to stream buffered writer writer
|
overwritten by subclass
|
public void set project prop string hash string value if project null return project put hash value
|
sets the project prop attribute of the ideproject application object
|
public void save generic variables to stream buffered writer writer try writer write new integer get size width to string writer new line writer write new integer get size height to string writer new line writer write new integer get location x to string writer new line writer write new integer get location y to string writer new line catch ioexception io
|
used by all subclasses
|
public string get project prop string hash if project null return return string project get hash
|
returns string out of project hashtable
|
public extended text area get console return main frame text area
|
gets the console attribute of the ideproject application object
|
public void initialize interpreter interpreter new tree interpreter new java ccparser factory interpreter add library suffix class
|
initializes the default interpreter
|
public void close frame application shutdown
|
called when the frame should be closed
|
public void shutdown boolean do it this check if project has to be saved if do it update window positions this write config file if project null this save project windows super shutdown system exit 0
|
called when main frame is closed
|
protected boolean is dirty return am idirty
|
returns if i am dirty
|
protected string remove indent string bottom text try buffered reader b r new buffered reader new string reader bottom text string line b r read line string buffer new text new string buffer line while line b r read line null new text append n line substring how much times indent return new text to string catch exception e e print stack trace return bottom text
|
description of the method
|
protected void launch doc new exe command application get preference default browser get java help file string null true null
|
description of the method
|
public void update window positions int width main frame get size width int height main frame get size height int posx main frame get location x int posy main frame get location y get preferences get preference extentx set value string value of width get preferences get preference extenty set value string value of height get preferences get preference positionx set value string value of posx get preferences get preference positiony set value string value of posy
|
writes the actual window positions to the preferences
|
public void item state changed item event e if java lfcheck box is selected lst look and feel set enabled true if kdegtk lfcheck box is selected kdegtk lfcheck box set selected false else lst look and feel kde gtk set enabled true if kdegtk lfcheck box is selected kdegtk lfcheck box set selected true
|
description of the method
|
public void item state changed item event e if kdegtk lfcheck box is selected lst look and feel kde gtk set enabled true if java lfcheck box is selected java lfcheck box set selected false else lst look and feel set enabled true if java lfcheck box is selected java lfcheck box set selected true
|
description of the method
|
protected void build tool bar button string file name string key if file name equals tool bar add box create horizontal strut 5 return jbutton b new jbutton new image icon etc system get property file separator images system get property file separator file name public float get alignment y return 0 5f b set action command key b set tool tip text system get property application language dictionary key b set request focus enabled false b set margin new insets 1 1 1 1 b add action listener this tool bar add b
|
description of the method
|
protected boolean execute default class or applet f9 is pressed run application if application project null joption pane show message dialog null system get property application language dictionary no project loaded system get property application lanugage dictionary message joption pane error message return false string to execute application get project prop project run class string tmp to execute to execute to lower case if tmp to execute ends with htm tmp to execute ends with html return execute default applet else return execute class to execute
|
description of the method
|
public void update all frames boolean update theme jooda main frame frame for enumeration e jooda main frame frames keys e has more elements frame jooda main frame e next element frame update content update theme
|
in every frame the method update content is called
|
public void update all editor fonts jooda main frame frame for enumeration e jooda main frame frames keys e has more elements frame jooda main frame e next element frame update editor font
|
description of the method
|
protected void execute individual stuff string execute me if execute me equals new exe command execute me null true null
|
overwritten by subclasses
|
public void update compile menus jooda main frame frame for enumeration e jooda main frame frames keys e has more elements frame jooda main frame e next element frame create compile menu bar
|
updates the compile menu in every frame
|
public void update execute individual menus jooda main frame frame for enumeration e jooda main frame frames keys e has more elements frame jooda main frame e next element frame create execute individual menu bar
|
updates the execute menu in every frame
|
protected void create default config super create default config
|
sets the properties to defaultvalues
|
private void get cookie if get preference cookies enabled equals false return int cookie count 1 string cookie cookie server cookie server new cookie server this get preference cookie file name try cookie count new integer this get preference cookie file count int value catch exception e cookie count 1 cookie cookie server get cookie cookie count if cookie equals main frame text area append cookie get preferences get preference cookie file count set value cookie server new cookie number to string main frame text area set caret position main frame text area get text length
|
gets the cookie attribute of the ideproject application object
|
public void action performed action event ae compile file string m compile associations get ae get action command
|
description of the method
|
private void create jooda directory try new file user directory file separator jooda mkdir catch exception e already there
|
description of the method
|
private string get java compile file string if application get project prop use different stuff equals true return application get project prop different java compiler file else return application get preference default java compiler file
|
gets the java compile file string attribute of the ideproject main frame object
|
private void initialize root class project classes new hashtable root class new ideclass object virtual project classes put object root class
|
reset initialize root class
|
private void add editor option panel editor option panel new editor option pane this tabbed pane add system get property application language dictionary editor options editor option panel
|
adds a feature to the editor option panel attribute of the
|
private string get java help file string if application get project prop use different stuff equals true return application get project prop different java help file else return application get preference default doc
|
gets the java help file string attribute of the ideproject main frame object
|
private string get java classes directory string if application get project prop use different stuff equals true return application get project prop different java classes directory else return application get preference default java classes directory
|
gets the java classes directory string attribute of the ideproject main frame
|
public void read classes file string this file string type of file parse the class file and generate ideclasses file name of parse file this file type of parse file type of file try while this ttype this tt eof until end this parse for comments if slash star slash slash this parse for content this next token fetch next token b r close catch ioexception io this remove virtual classes
|
parses a file for classes and generates them type of file is either
|
private string get java interpreter file string if application get project prop use different stuff to lower case equals true return application get project prop different java interpreter file else return application get preference default java interpreter file
|
gets the java interpreter file string attribute of the ideproject main frame
|
public void parse word class if inside aclass last class depth depth new class flag true tmp probable offset int b r get offset 6
|
class occured in the text
|
public void parse word package if inside aclass new package name flag true
|
description of the method
|
private void initialize runtime properties prop new properties try prop load new file input stream etc file separator extended runtime properties catch exception e extended runtime get runtime set properties prop
|
initializes the extended runtime with properties
|
private boolean execute default applet new exe command application get preference default browser application get project prop project run class null true null return true
|
description of the method
|
public void parse after package package name this sval new package name flag false
|
description of the method
|
private void write editor option panel values editor option panel save
|
description of the method
|
public void parse word extends extends flag true
|
extends occured in the text
|
private string parse for file string in file file all classes file string class name try buffered reader reader string the class file name all classes file to string substring 0 all classes file to string last index of system get property file separator 1 reader new buffered reader new file reader all classes file string line while line reader read line null if line index of class name html 1 the class file name line substring line index of 1 line index of html 5 reader close return the class file name reader close catch exception exception return null
|
description of the method
|
public void parse for comments if this ttype this tt eol slash slash false star false slash false else if this ttype 47 a if slash star slash slash slash slash true else if slash star star slash star false slash false else if slash slash slash slash slash true slash false star false else if this ttype 42 a if slash slash star slash slash slash star true star false else if slash star star true slash false else slash false star false
|
is there a comment default stream tokenizer handled this false
|
public void set begin of method long begin of method this begin of method begin of method
|
sets begin of method
|
public void set end of method long end of method this end of method end of method
|
sets end of method
|
public void set parameter string string parameter string this parameter string parameter string
|
sets my parameter
|
public int set begin line int begin line return this begin line begin line
|
sets the line number where the class begins
|
public int set end line int end line return this end line end line
|
sets the line number where the class ends
|
public ideclass get owner class return owner class
|
gets owner class
|
public long get begin of method return begin of method
|
gets begin of method
|
public long get end of method return end of method
|
gets end of method
|
public boolean get static return is static
|
am i a static one
|
public string set file name string file name this file name file name return file name
|
sets file name
|
public string set type of class string type of class this type of class type of class return type of class
|
sets file name
|
public string set package name string package name this package name package name return package name
|
sets package name
|
private string remove package name from title string title if title last index of 1 return title substring title last index of 1 title length else return title
|
description of the method
|
private vector searching lang file string fs system get property file separator file seeker new file etc fs laps string lang files vector language new vector int array length int string length int i 1 lang files seeker list array length lang files length array length while array length 0 if lang files array length to lower case ends with lap true string length lang files array length length string length string length 4 language add element new string lang files array length substring 0 string length i array length return language
|
this method is searching for available language files no parameter return
|
public void set begin of class long begin of class this begin of class begin of class
|
sets begin of class
|
public void set end of class long end of class this end of class end of class
|
sets end of class
|
public void save to stream buffered writer b w try b w write simple class browser b w new line this save generic variables to stream b w this save browser variables to stream b w catch ioexception io
|
i will save my important values to the buffered writer
|
public void update frame title if selected class null this set title selected class get title system get property application language dictionary m browser class else this set title system get property application language dictionary m browser class
|
generates and sets new title for frame
|
public void save to stream buffered writer b w try b w write standard class browser b w new line this save generic variables to stream b w this save browser variables to stream b w catch ioexception io
|
i will save my important values to the buffered writer
|
public void update frame title if selected class null this set title selected class get title system get property application language dictionary standard class browser else this set title system get property application language dictionary standard class browser
|
generates and sets new title for frame
|
public void save to stream buffered writer b w try b w write simple application browser b w new line this save generic variables to stream b w this save browser variables to stream b w catch ioexception io
|
i will save my important values to the transferred buffered writer
|
public void update frame title if selected class null this set title selected class get title system get property application language dictionary m browser application else this set title system get property application language dictionary m browser application
|
generates and sets new title for frame
|
public string get type of class return type of class
|
gets type of class
|
public long get end of class return end of class
|
gets end of class
|
public long get begin of class return begin of class
|
gets begin of class
|
public idemethod get method for line int line idemethod method for enumeration e methods elements e has more elements method idemethod e next element if line method get begin line line method get end line return method return null
|
return the method for a given line number
|
public hashtable get inner classes return inner classes
|
returns the inner classes
|
public void action performed action event e apply pretty printer on current editor application if text area get document get length 0 text area set caret position 0
|
description of the method
|
public void add method idemethod method to add methods put method to add get title method to add
|
adds a method to the class
|
public void add subclass ideclass class to add subclasses put class to add get title class to add class to add superclass this
|
adds a subclass to the class
|
public void recoursive description ideclass the class string level system out println level the class get title the class get type of class enumeration e the class get subclasses elements while e has more elements ideclass new class ideclass e next element recoursive description new class level
|
description of the method
|
public ideclass add inner class ideclass class to add inner classes put class to add title class to add return class to add
|
adds an inner class
|
public void undoable edit happened undoable edit event e if e get edit is significant am idirty true undo vector add e get edit while undo vector size new integer application get preference undo count int value undo vector remove 0 if undo vector size 0 m edit undo set enabled false else m edit undo set enabled true
|
description of the method
|
public string get preference string name preference pref get preferences get preference name string value system get property application properties name if value null system get properties remove application properties name if pref null get preferences add preference name value return value else if value null pref set value value return string pref get value
|
this method searches for a preference with the given name
|
public string get command name return command name url
|
gets the command name attribute of the http command object
|
public string get command summary return open url
|
gets the command summary attribute of the http command object
|
public void caret update caret event e update line number
|
description of the method
|
public boolean handle command console console string command if command starts with command name boolean err true jext frame parent console get parent frame text area parent create file try url url new url command text area open command new input stream reader url open stream 1024 err false catch malformed urlexception mue utilities show error system get property application language dictionary url malformed catch ioexception ioe utilities show error ioe to string if err parent close text area return true return false
|
description of the method
|
public void action performed action event e open file in editor
|
description of the method
|
public void write char cbuf int off int len append new string cbuf off len output color
|
description of the method
|
public void value changed list selection event e if e get value is adjusting return if dirty stuff tree list right selected else right remove list selection listener this right set selected index actual selected index right right add list selection listener this
|
description of the method
|
public void apply pretty printer on current editor if dirty stuff jooda pretty printer jpp new jooda pretty printer text area jpp pretty print current window
|
description of the method
|
public void update line number line no label set text string value of text area get caret line 1
|
shows actual linenumber s
|
public void value changed tree selection event e if dirty stuff tree list left selected else tree path tmp path e get old lead selection path left remove tree selection listener left tree selection listener if tmp path null left set selection path tmp path left expand path tmp path left make visible tmp path left set selection row left get row for path tmp path left scroll path to visible tmp path left add tree selection listener left tree selection listener
|
description of the method
|
public void write char cbuf int off int len append new string cbuf off len error color
|
description of the method
|
public void open file in editor if text area is editable return exe command exe c new exe command application get preference default editor file name of text null true null
|
launch the default editor with the actual file
|
public void close frame if this dirty stuff frames remove this dispose
|
description of the method
|
public void save to stream buffered writer b w try b w write simple file browser b w new line this save generic variables to stream b w b w write new integer actual selected row to string b w new line b w write 0 b w new line b w write end of editor b w new line catch ioexception e
|
saves my important values to a buffered writer
|
public void mouse released mouse event e if e get modifiers input event button3 mask if e get source right pop up menu right show right e get x e get y if e get source left pop up menu left show left e get x e get y
|
should i show a pop up menu
|
public boolean dirty stuff if am idirty int result joption pane show confirm dialog this system get property application language dictionary it is dirty do you want to save it joption pane yes no cancel option if result joption pane yes option this save text return true else if result joption pane no option am idirty false return true else return false else return true
|
do some dirty stuff
|
public void jump to line int line if line 0 int offset text area get line start offset line if offset 0 offset text area get document length text area set caret position offset
|
jumps to a specific linenumber in the actual file
|
private void read file to extended text area string file name if file name null file name equals return file name of text file name try file fi new file file name last modified fi last modified file input stream fis new file input stream fi long length fi length byte cbuf new byte int length fis read cbuf how much times indent 0 string without msnew line remove indent new string cbuf text area set text without msnew line if fis null fis close am idirty false catch ioexception e
|
loads a file to to the jedit text area
|
private void remove listeners text area get document remove undoable edit listener undo el file tree remove tree selection listener file tree selection listener
|
description of the method
|
private void add listeners text area get document add undoable edit listener undo el file tree add tree selection listener file tree selection listener
|
adds a feature to the listeners attribute of the ideproject file browser
|
public void add classes ideclass the class to add default mutable tree node dmtn
|
overwritten by subclass
|
public void show methods if b public get text compare to system get property application language dictionary protected 0 show methods protected else if b public get text compare to system get property application language dictionary private 0 show methods private else if b public get text compare to system get property application language dictionary public 0 show methods public else if b public get text compare to system get property application language dictionary all 0 show methods null
|
decides which methods to show
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.