input
stringlengths 10
828
| output
stringlengths 5
107
|
|---|---|
protected eobject create initial model eclass e class eclass notes package get eclassifier initial object creation page get initial object name eobject root object notes factory create e class return root object
|
create a new model
|
public iproperty sheet page get property sheet page if property sheet page null property sheet page new extended property sheet page editing domain override public void set selection to viewer list selection geo editor this set selection to viewer selection geo editor this set focus override public void set action bars iaction bars action bars super set action bars action bars get action bar contributor share global actions this action bars property sheet page set property source provider new adapter factory content provider adapter factory return property sheet page
|
this accesses a cached version of the property sheet
|
public iproperty sheet page get property sheet page if property sheet page null property sheet page new extended property sheet page editing domain override public void set selection to viewer list selection validity editor this set selection to viewer selection validity editor this set focus override public void set action bars iaction bars action bars super set action bars action bars get action bar contributor share global actions this action bars property sheet page set property source provider new adapter factory content provider adapter factory return property sheet page
|
this accesses a cached version of the property sheet
|
public iproperty sheet page get property sheet page if property sheet page null property sheet page new extended property sheet page editing domain override public void set selection to viewer list selection notes editor this set selection to viewer selection notes editor this set focus override public void set action bars iaction bars action bars super set action bars action bars get action bar contributor share global actions this action bars property sheet page set property source provider new adapter factory content provider adapter factory return property sheet page
|
this accesses a cached version of the property sheet
|
protected void handle activate recompute the read only state if editing domain get resource to read only map null editing domain get resource to read only map clear refresh any actions that may become enabled or disabled set selection get selection if removed resources is empty if handle dirty conflict get site get page close editor sources editor this false else removed resources clear changed resources clear saved resources clear else if changed resources is empty changed resources remove all saved resources handle changed resources changed resources clear saved resources clear
|
handles activation of the editor or its associated views
|
protected eobject create initial model eclass e class eclass sources package get eclassifier initial object creation page get initial object name eobject root object sources factory create e class return root object
|
create a new model
|
public void init iworkbench workbench istructured selection selection this workbench workbench this selection selection set window title enml editor plugin instance get string ui wizard label non nls 1 set default page image descriptor extended image registry instance get image descriptor enml editor plugin instance get image full wizban new work non nls 1
|
this just records the information
|
protected eobject create initial model eclass e class eclass work package get eclassifier initial object creation page get initial object name eobject root object work factory create e class return root object
|
create a new model
|
protected void handle activate recompute the read only state if editing domain get resource to read only map null editing domain get resource to read only map clear refresh any actions that may become enabled or disabled set selection get selection if removed resources is empty if handle dirty conflict get site get page close editor work editor this false else removed resources clear changed resources clear saved resources clear else if changed resources is empty changed resources remove all saved resources handle changed resources changed resources clear saved resources clear
|
handles activation of the editor or its associated views
|
public void init iworkbench workbench istructured selection selection this workbench workbench this selection selection set window title enml editor plugin instance get string ui wizard label non nls 1 set default page image descriptor extended image registry instance get image descriptor enml editor plugin instance get image full wizban new metainfo non nls 1
|
this just records the information
|
public iproperty sheet page get property sheet page if property sheet page null property sheet page new extended property sheet page editing domain override public void set selection to viewer list selection sources editor this set selection to viewer selection sources editor this set focus override public void set action bars iaction bars action bars super set action bars action bars get action bar contributor share global actions this action bars property sheet page set property source provider new adapter factory content provider adapter factory return property sheet page
|
this accesses a cached version of the property sheet
|
protected void handle activate recompute the read only state if editing domain get resource to read only map null editing domain get resource to read only map clear refresh any actions that may become enabled or disabled set selection get selection if removed resources is empty if handle dirty conflict get site get page close editor metainfo editor this false else removed resources clear changed resources clear saved resources clear else if changed resources is empty changed resources remove all saved resources handle changed resources changed resources clear saved resources clear
|
handles activation of the editor or its associated views
|
public iproperty sheet page get property sheet page if property sheet page null property sheet page new extended property sheet page editing domain override public void set selection to viewer list selection work editor this set selection to viewer selection work editor this set focus override public void set action bars iaction bars action bars super set action bars action bars get action bar contributor share global actions this action bars property sheet page set property source provider new adapter factory content provider adapter factory return property sheet page
|
this accesses a cached version of the property sheet
|
public iproperty sheet page get property sheet page if property sheet page null property sheet page new extended property sheet page editing domain override public void set selection to viewer list selection metainfo editor this set selection to viewer selection metainfo editor this set focus override public void set action bars iaction bars action bars super set action bars action bars get action bar contributor share global actions this action bars property sheet page set property source provider new adapter factory content provider adapter factory return property sheet page
|
this accesses a cached version of the property sheet
|
public void run interpreter boolean debug hash map string object settings new hash map string object settings put ide caret pos new integer txt in get caret position settings put interpreter debug on new boolean debug settings put interpreter run extended new boolean use extended brainfuck settings put ide version application version number iinterpreter project new extended bfinterpreter txt out set text byte array output stream out new byte array output stream project init txt in get text out settings executor e new executor txt out project new thread e start
|
runs the a new brainfuck interpreter
|
public void destroy try if conn null conn close catch exception e e print stack trace
|
clean up resources
|
public int document at int index return inverted l index id doc
|
returns the document number at the specified index
|
public void free il i lcompress null
|
free the inverted file list set it code null code
|
public int get ilsize if i lcompress null return i lcompress length return 1
|
get the inverted list size
|
public bit input stream string file throws file not found exception my data new random access file file r my unused bits 0 my current byte 0 my total bytes read 0
|
create an input bit stream from the file code file code
|
public bit input stream file file throws file not found exception my data new random access file file r my unused bits 0 my current byte 0 my total bytes read 0
|
create an input bit stream from the file code file code
|
public void close throws ioexception my data close my unused bits 0
|
close the underlying stream and release resources
|
public void flush my unused bits 0 my current byte 0
|
if a partial byte has been read throw throw it away
|
public boolean read bit throws ioexception if all the bits in the current byte have been used read another if my unused bits 0 my current byte my data read byte my total bytes read my unused bits bytesize boolean bit read my current byte 0 is sign bit set my current byte byte my current byte 1 shift left by 1 to move next bit in my unused bits return bit read
|
read the next bit from the file at the current position
|
public int read int throws ioexception my unused bits 0 if a partial byte was read throw it away int t my data read int get the int my total bytes read 4 if read successful update byte count return t
|
read an code int code at the current position
|
public int get nb document return doc info length
|
p returns the number of document indexed
|
public bit output stream file file try my data new random access file file rw catch ioexception e my unused bits 8 my current byte 0 my total bytes written 0 my position 0
|
create an output sream from the file code file code
|
public void close throws ioexception write partial bits my data close
|
close the underlying data output stream and release system resources
|
public void flush throws ioexception write partial bits
|
force the output of the current byte
|
private void write bit boolean v throws ioexception my current byte byte my current byte 1 shift left by 1 to move next bit in if v my current byte byte my current byte onemask set low bit my unused bits my position if my unused bits 0 current byte is full so output it my data write byte int my current byte my total bytes written my unused bits bytesize my current byte 0
|
write a bit at the current position of the file pointer
|
public void write byte byte v throws ioexception write partial bits my data write byte int v my total bytes written
|
write a byte at the current position of the file pointer
|
public void write int int v throws ioexception write partial bits my data write int v my total bytes written 4
|
write an int at the current position of the file pointer
|
public int size return resultats length
|
p returns the number of results p
|
public resultats set weight double weight for int i 0 i resultats length i resultats i weight document resultats i weight document weight return new resultats resultats
|
set new coefficient weight to all results
|
public void save throws exception for int i 0 i filters size i enregistrement des filtres filter element filter filter element filters element at i filter save
|
sauvegarde des filtres
|
public void close throws exception for int i 0 i filters size i lecture des filtres filter element filter filter element filters element at i filter close
|
cloture des filtres
|
public void ajout position nouvelle position position suivante nouvelle position
|
add a new following position
|
public position lire suivant return position suivante
|
read the following position
|
public string absorb string s char c int index s index of c if index 1 s s substring index 1 s length return s
|
insert the methods description here
|
public void set archive java lang string new archive archive new archive
|
insert the methods description here
|
public void set class name java lang string new class name class name new class name
|
insert the methods description here
|
public void set codebase java lang string new codebase codebase new codebase
|
insert the methods description here
|
public boolean is previous link scanner open return previous open link scanner null
|
gets the dirty
|
public void add directories to vector vector directories string temp int n do n temp index of if n 1 directories add element temp substring 0 n 1 temp temp substring n 1 temp length while n 1 check if remaining value of temp has any htm in it if not add it to the directories if temp length 0 int dot pos temp to upper case index of htm if dot pos 1 directories add element temp
|
parse a string and add all the directories found into a vector
|
public string check if link is relative string link string url if link null return if link index of 1 link index of mailto 1 url null bug fix by karem for relative links that begin with if link char at 0 link process slash is first char link url else link process append relative link link url return link
|
check if a given link is relative if yes add the
|
public string create directory vector directories string dir for enumeration e directories elements e has more elements dir string e next element return dir
|
create the directory by summing all the contents
|
public int get last read position if node null return node element end else return 0
|
this method is useful when designing your own scanners
|
public htmlparser get parser return parser
|
insert the methods description here
|
public htmltag scanner get previous open scanner return previous open scanner
|
gets the previous open scanner
|
public string read line throws ioexception return in read line
|
delegates to the buffered readers read line method
|
public void add scanner htmltag scanner scanner scanners add element scanner
|
add a new tag scanner
|
public void set previous open scanner htmltag scanner previous open scanner this previous open scanner previous open scanner
|
sets the previous open scanner
|
public void flush scanners scanners new vector
|
flush the current scanners registered
|
public int get num scanners return scanners size
|
get the number of scanners registered currently in the scanner
|
public enumeration get scanners return scanners elements
|
get an enumeration of scanners registered currently in the parser
|
public boolean remove scanner htmltag scanner scanner return scanners remove element scanner
|
removes a specified scanner object
|
private connection get connection throws database not available exception if ds null try ds data source service locator locate datasource catch service not found exception exp exp print stack trace throw new database not available exception exp try if conn null conn ds get connection return conn catch sqlexception exp exp print stack trace throw new database not available exception exp
|
locates the data source if needed and obtains a connection to the database
|
private void set operator final int the operator throws data exception switch the operator case greater than set operator op greater than break case greater than equal to set operator op greater than equal to break case less than set operator op less than break case less than equal to set operator op less than equal to break case equal to set operator op equal to break case not equal to set operator op not equal to break default throw new data exception invalid comparison operator operator
|
sets the string version of the specified operator
|
private void init schemas throws data exception iterator i schemas values iterator while i has next schema i next init
|
initialize all schemas
|
private void set default final schema schema if default schema null synchronized default schema default schema set default schema false default schema schema
|
sets the default schema
|
private void range check int index if this list size index throw new index out of bounds exception index index size this list size if this list size index index 0 throw new index out of bounds exception index index size this list size
|
performs a range check on the specified index value
|
private void type check object o if o null class type to check o get class if this component type is assignable from type to check throw new class cast exception type to check get name
|
performs a type check on an object
|
public void add element mapping string element name class element class this element map put element name element class
|
adds a custom mapping for the specified element name and class
|
public string get string string key string cache key prefix string key string ret val string property value cache get cache key if ret val null ret val properties get property key synchronized property value cache property value cache put cache key ret val return ret val
|
returns named property
|
public int get int string key string cache key prefix int key integer ret val integer property value cache get cache key if ret val null ret val integer value of get string key synchronized property value cache property value cache put cache key ret val return ret val int value
|
returns named property
|
public short get short string key string cache key prefix short key short ret val short property value cache get cache key if ret val null ret val short value of get string key synchronized property value cache property value cache put cache key ret val return ret val short value
|
returns named property
|
public long get long string key string cache key prefix long key long ret val long property value cache get cache key if ret val null ret val long value of get string key synchronized property value cache property value cache put cache key ret val return ret val long value
|
returns named property
|
public float get float string key string cache key prefix float key float ret val float property value cache get cache key if ret val null ret val float value of get string key synchronized property value cache property value cache put cache key ret val return ret val float value
|
returns named property
|
public double get double string key string cache key prefix double key double ret val double property value cache get cache key if ret val null ret val double value of get string key synchronized property value cache property value cache put cache key ret val return ret val double value
|
returns named property
|
public boolean get boolean string key string cache key prefix bool key boolean ret val boolean property value cache get cache key if ret val null ret val boolean value of get string key synchronized property value cache property value cache put cache key ret val return ret val boolean value
|
returns named property
|
public char get char string key string cache key prefix char key character ret val character property value cache get cache key if ret val null ret val new character get string key char at 0 synchronized property value cache property value cache put cache key ret val return ret val char value
|
returns named property
|
public byte get byte string key string cache key prefix byte key byte ret val byte property value cache get cache key if ret val null ret val byte decode get string key synchronized property value cache property value cache put cache key ret val return ret val byte value
|
returns named property
|
public list get string list string key string delimiter string cache key prefix list prefix string key delimiter array list ret val array list property value cache get cache key if ret val null delimiter delimiter null delimiter string tokenizer tokenizer new string tokenizer get string key delimiter ret val new array list while tokenizer has more tokens ret val add tokenizer next token synchronized property value cache property value cache put cache key ret val return ret val
|
returns named property
|
public string get label string name return get string prefix label name
|
returns named label
|
public iterator get property names final enumeration e properties keys final properties p this iterator i new iterator private string current null public boolean has next return e has more elements public object next this current string e next element return current public void remove if current null throw new illegal state exception call to remove before call to next p remove current this current null return i
|
returns an iterator for the names of properties stored in this
|
public void remove string key synchronized this properties this properties remove key clean cache key
|
removes the specified property from this collection
|
public string get value record record if record instanceof arecord record instanceof trecord return string value map get record get offset return null
|
if the record is an arecord or trecord return its value
|
public index entry read index entry int index if index inverted util null return null byte entry byte new byte index entry length index entry entry new index entry try entries file seek inverted util get entries file pointer index entries file read fully entry byte catch ioexception e logger error e get message entry build entry byte return entry
|
read only one index entry which is specified
|
public inverted word item read inverted word item int index return null
|
read only one inverted word item which is specified
|
public void set debug output to console boolean debug output m debug output to console debug output
|
set a flag indicating whether debug output is desired
|
public boolean is debug output to console return m debug output to console
|
queries whether the debug output to console flag has been set
|
public boolean is show file indexing return m show file indexing
|
queries whether file indexing progress is to be written to the console
|
public void set show file indexing boolean show file indexing m show file indexing show file indexing
|
query status of file indexing flag
|
public void set min indexable word length int length m min indexable length length
|
set the minimum length of word to index
|
public long get total file length return m total file len
|
return the aggregate file length of all files in the index
|
public int get num documents return m indexer get num documents
|
get the number of documents in the index
|
public jtree get arborescence return arborescence
|
acc s larborescence
|
public void add format string format formats add format
|
ajout dun format
|
public void remove format string format for string s formats if s compare to format 0 formats remove s return
|
suppression dun format
|
public void xml transformer string xsl file throws ioexception transformer exception stream source stylesource new stream source xsl file stream source source new stream source liste sites xml transformer factory factory transformer factory new instance transformer transformer factory new transformer stylesource file copy file new file substitue xml file file new file liste sites xml copy file create new file stream result result new stream result substitue xml transformer transform source result file delete copy file rename to new file liste sites xml
|
transformation dufichier xml
|
public int get time out return this timout
|
get timeout times
|
protected string get service name return server name
|
get concrete service name
|
protected processor new processor return new rdp processor this sequence
|
create a new processor class
|
public linked list get free processor return this free
|
for manager trace information
|
public void show error dialog string msg dialog d new okdialog this elusiva everywhere error msg d show
|
display an error dialog with the title proper java rdp error
|
public string get service name return server name
|
get concrete service name
|
public processor new processor return new bridge processor this sequence
|
create a new processor class
|
public void process socket socket throws exception user login authentication recognize a request or response socket peer context factory factory peer context factory get factory peer context peer context factory get context fuwei peer context set rdp request socket socket socket rdp socket new socket 192 168 11 130 3389 peer context set rdp response socket rdp socket peer context start if peer context get status 3 client and server have been ready assign a new task to execute queue peer context start
|
when accept process a socket
|
private void init throws exception worker instance instance new worker instance input stream in new file input stream instance config file worker instance config instance init in this add worker instancs config in close
|
user instance config file init the factory
|
public boolean execute throws exception throw new illegal state exception no task implementation specified
|
the sub class should override do user defined implementation
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.