input
stringlengths
10
828
output
stringlengths
5
107
public void set icon ceimage icon icon this icon icon
setter for property icon
public int get image text alignment return text layout
getter for property text layout
public void set image text alignment int text layout this text layout text layout
setter for property text layout
public void remove last level modlet context context key lev new key level cebutton but cebutton instance level2 but get lev only remove if the correct context has called this if but get resource manager get resource modlet context impl modlet context resource context level 0 remove levels level 1 true
removes the last level and goes back to the previous level
public void set black org limmbo ui vtbutton black this black black
setter for property black
public void set blue org limmbo ui vtbutton blue this blue blue
setter for property blue
public void set green org limmbo ui vtbutton green this green green
setter for property green
public void set red org limmbo ui vtbutton red this red red
setter for property red
public void set yellow org limmbo ui vtbutton yellow this yellow yellow
setter for property yellow
public void add level listener level listener l level listener limmbo event multicaster add level listener l
adds the specified level listener to receive action events
protected void set black ce ui cebutton black this black black
setter for property black
protected void set blue ce ui cebutton blue this blue blue
setter for property blue
protected void set green ce ui cebutton green this green green
setter for property green
protected void set red ce ui cebutton red this red red
setter for property red
protected void set yellow ce ui cebutton yellow this yellow yellow
setter for property yellow
public cecomponent get module panel throws unavailable resource exception resource request denied exception if module panel null module panel new cecomponent module panel set size gui get instance get module panel get size ceutilities invoke later new add thread base module panel module panel class name base module panel add module panel modlet get module name return module panel
returns the panel the modlet can use for its own gui
public void set vtcontrol org limmbo ui vtcontrol control throws unavailable resource exception resource request denied exception if modlet state modlet started in background this control control gui get instance get vtpanel set vtcontrol control else throw new resource request denied exception modlet has no access to the vt resource in its current state state modlet state in background in background
sets the behaviour of the vtpanel
public cecomponent get menu panel throws unavailable resource exception resource request denied exception if menu panel null if modlet is menu panel needed menu panel new cecomponent menu panel set layout new border layout menu panel set size gui get instance get menu panel get size ceutilities invoke later new add thread base menu panel menu panel class name base menu panel add menu panel modlet get module name return menu panel throw new unavailable resource exception modlet has no access to the vt resource in its current state state modlet state in background in background
returns the component where the modlet can display a list
public modlet get modlet return modlet
getter for property modlet
public object find object key int identifier we are sure that only searchable items are in the list see add so we do not check instanceof isn t one of the fastes methods so we try to avoid it iterator iter iterator searchable item item while iter has next item searchable item iter next if key equals item get identifier identifier return item return null
at the moment we are only doing a simple linear search
public object find searchable item key int identifier searchable item item iterator iter iterator boolean found true while iter has next item searchable item iter next found true for int i 0 i identifier length found i object a key get identifier identifier i object b item get identifier identifier i if a null b null found false return null found a equals b if found return item return null
at the moment we are only doing a simple linear search
public int get modlet state return modlet state
getter for property modlet state
protected void set modlet state int modlet state this modlet state modlet state
setter for property modlet state
public safe thread group get thread group return thread group
getter for property thread group
protected void set thread group safe thread group thread group this thread group thread group
setter for property thread group
public boolean is in background return in background
getter for property in background
protected void set in background boolean in background this in background in background
setter for property in background
public void enter level level event e level listener a enter level e level listener b enter level e
handles the level event event by invoking the
public void cd event cdevent e cdevent listener a cd event e cdevent listener b cd event e
handles the cdevent event by invoking the
public void menu state changed menu event e menu event listener a menu state changed e menu event listener b menu state changed e
handles the menu event event by invoking the
public void resource state changed resource event e resource listener a resource state changed e resource listener b resource state changed e
handles the resource event event by invoking the
public void progress report progress event e progress listener a progress report e progress listener b progress report e
handles the progress event event by invoking the
public void wake up timer listener a wake up timer listener b wake up
handles the timer event event by invoking the
public object get resource int resource throws unavailable resource exception resource request denied exception throw new unavailable resource exception
returns the specified resource if available
public void request new layout int layout throws unavailable resource exception resource request denied exception switch layout case normal layout gui layout normal break case wide layout gui layout wide break case fullscreen layout gui layout full break
request a new layout
public void remove controller listener javax media controller listener l if controller listener null controller listener controller listener controller event multicaster remove controller listener l
removes the specified action listener so it no longer receives
public void set position javax media time time if state controller started xine play int float time get nanoseconds 1000000 0
this is not an official jmf method
public void interpret byte response todo do error checking with error object from mxit response mxit response mxit response new mxit response response mxit command types command type mxit response get command type if command type null switch command type case login mxit login response mxit login response new mxit login response mxit response mxit client handler on login mxit login response break case logout mxit client handler on logout break
interprets the mxit response
public void add feature client features client feature client features add client feature
adds a feature the client supports
public void set species string species this species species
setter for species member
public void set common name string common name this common name common name
setter for common name member
public string to string return pet name the common name
returns a multi line string with key value pairs
public boolean equals object o if this o return true if o instanceof pet return false final pet pet pet o return pet name null pet name equals pet get pet name pet get pet name null
compares object equality
public int hash code return pet name null pet name hash code 0
when you override equals you should override hash code
public string get from if id null get parameter edit user add null list equals get parameter from return list return
convenience method to determine if the user came from the list screen
protected http servlet request get request return http servlet request get faces context get external context get request
servlet api convenience method
protected map get configuration map config hash map get servlet context get attribute constants config so unit tests don t puke when nothing s been set if config null return new hash map return config
convenience method to get the configuration hash map
protected void activate final component context context this context context
called when this service is going to be activated
protected void deactivate final component context context this context null
called when this service is going to be deactivated
private void validate initializable final iinitializable initializable throws digitalcure exception if initializable null return if initializable get sequence number iinitializable minimum sequence nr initializable get sequence number iinitializable maximum sequence nr throw new digitalcure exception initializable provdes invalid sequence number initializable get sequence number non nls 1
validates the given
private void prepare initializables throws digitalcure exception examine all extension point extensions final iextension extensions platform get extension registry get extension point extension point namespace extension point name get extensions for int i 0 i extensions length i examine all configuration elements final iconfiguration element config elements extensions i get configuration elements for int j 0 j config elements length j final iconfiguration element config element config elements j if element tag name equals config element get name try initializables add iinitializable config element create executable extension attribute class catch final core exception exception throw new digitalcure exception exception
creates the list of registered
protected void fire property change final string property name final object old value final object new value property change support fire property change property name old value new value
fires a property change event
protected void fire property change final string property name final int old value final int new value property change support fire property change property name old value new value
fires a property change event
protected void fire property change final string property name final boolean old value final boolean new value property change support fire property change property name old value new value
fires a property change event
public void set tooltip provider final itooltip label provider tooltip label provider synchronized lock assert util a tooltip label provider null tooltip label provider must not be null non nls 1 provider tooltip label provider
sets the tooltip label provider to be used
private void set tooltip location final shell shell final point position final rectangle display bounds shell get display get bounds final rectangle shell bounds shell get bounds shell bounds x math max math min position x 4 display bounds width shell bounds width 0 shell bounds y math max math min position y 16 display bounds height shell bounds height 0 shell set bounds shell bounds
sets the location for a tooltip shell
public int get priority return prio
returns the priority of the editor
private void dispose tooltip shell if tooltip shell null tooltip shell set visible false if tooltip label texts null for int i 0 i tooltip label texts length i tooltip label texts i dispose tooltip label texts null if tooltip label images null for int i 0 i tooltip label images length i tooltip label images i dispose tooltip label images null if tooltip shell null tooltip shell dispose tooltip shell null
disposes the internal tooltip shell
public ieditor launcher2 get launcher throws digitalcure exception if launcher null lazy loading try launcher ieditor launcher2 config element create executable extension attribute launcher catch final core exception exception logger error editor launch manager2 registered editor get launcher non nls 1 an exception occured while reading the extension registry exception non nls 1 throw new digitalcure exception an exception occured while reading the extension registry for registered editors non nls 1 exception return launcher
returns the related launcher of this editor
public void dispose synchronized lock parent shell null provider null iterator control ctrl iter new array list control mouse listener map key set iterator while ctrl iter has next deactivate tooltips ctrl iter next ctrl iter new array list control mouse track listener map key set iterator while ctrl iter has next deactivate tooltips ctrl iter next dispose tooltip shell
disposes the whole tooltip handler
public void handle final throwable exception delegate the call uncaught exception thread current thread exception
this special method is called by the awt event dispatch thread
public void bind service final t service final list object new list new array list object get services new list add service service map put get class get name new list to avoid a concurrent modification exception
binds a new service implementation to this component
public void unbind service final t service final list object new list new array list object get services new list remove service service map put get class get name new list to avoid a concurrent modification exception
unbinds an existing service implementation from this component
protected image registry create image registry if display get current null current thread is a gui thread return new image registry display get current if platform ui is workbench running use display of the workbench return new image registry platform ui get workbench get display good luck return new image registry
creates a new image registry for this plug in
protected string get icon file name with folders final string icon id final int size final string icon file name icon file names get icon id return icon file name null null icons size x size icon file name non nls 1 non nls 2 non nls 3
returns the file name of the icon with the given id including all
public void dispose if image provider null image provider dispose image provider null icon file names clear
disposes this icon set provider
public int start application final list string args final file directory delegate the call return start application args directory null
starts an external application
protected string get wizard title return to do override default inner wizard node get wizard title non nls 1
returns the title of the wizard
public void dispose platform get extension registry remove registry change listener this synchronized proxies proxies clear icon sets clear if image provider null image provider dispose image provider null is initialized false
disposes the contents of this icon provider
protected tree viewer create tree viewer final composite parent return new tree viewer parent swt multi swt h scroll swt v scroll
creates the tree viewer
private void hook context menu final menu manager menu mgr new menu manager popup menu non nls 1 menu mgr set remove all when shown true menu mgr add menu listener new imenu listener override public void menu about to show final imenu manager manager abstract navigator this fill context menu manager final menu menu menu mgr create context menu viewer get control viewer get control set menu menu register context menu menu mgr
initializes the context menu
protected void register context menu final menu manager menu mgr get site register context menu menu mgr viewer
registers the context menu of the navigator tree
protected void fill context menu final imenu manager manager if drill down adapter enabled drill down adapter add navigation actions manager other plug ins may contribute their actions here manager add new separator iworkbench action constants mb additions
fills the context menu
private void hook double click action final idouble click listener listener create double click listener if listener null viewer add double click listener listener
initializes the double click listener
protected void fill local tool bar final itool bar manager manager if drill down adapter enabled drill down adapter add navigation actions manager
fills the local tool bar
public iconfiguration element get configuration element return config element
returns the configuration element of the extension
public void refresh get site get shell get display sync exec new runnable override public void run final tree path expanded paths get visible expanded tree paths viewer refresh restore expanded tree paths expanded paths
refreshes the navigator
public iicon set provider get icon set provider return provider
returns the created icon set provider if any
protected void set drill down adapter enabled final boolean mode drill down adapter enabled mode
enables or disables the drill down adapter
protected boolean is drill down adapter enabled return drill down adapter enabled
returns whether the drill down adapter is enabled or disabled
protected tree viewer get tree viewer return viewer
returns the current tree viewer instance
protected icontent provider get content provider return content provider
returns the current content provider instance
protected inavigator content provider get navigator content provider return core content provider
returns the current navigator content provider instance
protected void set navigator content provider final inavigator content provider ncc core content provider ncc
sets the current navigator content provider instance
public int get value return type
returns the type value
public string get text return messages get string resource key
returns the human readable text for the type
public void check for updates try final progress monitor dialog progress dialog new progress monitor dialog null progress dialog run true true new irunnable with progress override public void run final iprogress monitor monitor throws invocation target exception interrupted exception do check for updates new accumulating progress monitor monitor display get default catch final invocation target exception exception logger error p2 util check for updates exception get message exception non nls 1 catch final interrupted exception exception logger error p2 util check for updates exception get message exception non nls 1
checks for updates and performs the update operation if there are any
private string get zip file entry name final int index final string name switch index case 1 name folder name1 file name1 break non nls 1 case 2 name folder name1 folder name2 file name2 break non nls 1 non nls 2 case 3 name file name3 break case 4 name file name4 break case 5 name file name5 break default assert fail invalid entry index index non nls 1 name null return name
returns the name of the zip entry with the given index
public void worked final double worked increment worked worked worked increment
add worked to the work
public void sub task final string sub task name sub task sub task name
set the sub task name
private file get extracted test file final int index final file temp folder get temp folder final string entry name get zip file entry name index return new file temp folder entry name
returns the extracted file for the given index
private file get extracted test folder final int index final file temp folder get temp folder final file file switch index case 1 file new file temp folder folder name1 break non nls 1 case 2 file new file temp folder folder name1 folder name2 break non nls 1 non nls 2 default assert fail invalid folder index index non nls 1 file null return file
returns the extracted folder for the given index
private void create collector final string sub task final double work collector new collector sub task work get wrapped progress monitor display async exec collector
creates a collector object to accumulate work and subtask calls
private file get test archive file final file temp folder get temp folder return new file temp folder temp archive name
returns the test archive inside the temporary folder of the system
private file get special extraction folder final file temp folder get temp folder return new file temp folder special extraction folder
returns the special folder for the extraction and later packing
private file get zip file for packing final file temp folder get temp folder return new file temp folder packing zip file name
returns the zip file to be packed
private file get temp folder final string temp folder name system get property java io tmpdir non nls 1 return new file temp folder name
returns the temporary folder of the system
protected boolean preload repositories return true
preloads the repositories
protected boolean wait for preload return true
returns whether or not to wait for the preloading of the repositories
protected void set load job properties final job load job load job set property load metadata repository job accumulate load errors boolean to string true
sets the properties of the given load job