input stringlengths 10 828 | output stringlengths 5 107 |
|---|---|
protected void do add to ilaunch configuration working copy working copy | hook method for any further processing by subclasses |
private string get fixture project name return application and fixture project reference page get fixture project name | fixture project name if known as obtained from project reference page |
protected void set other working directory text string dir if dir null f resource base text set text dir | sets the other dir text |
protected void create options add option key package name package name project wizards messages client project template package name string null 0 application project name option add option application project name com mycompany myapp string null 2 fixture project name option add option fixture project name com mycompany myapp fixtures string null 2 | sets up tt package name tt tt application project name tt and |
private void hook project name field listener final text project name text get project name text if project name text null get logger warn unable to generate any warning messages on project name return project name text add verify listener new force lower case listener project name text add modify listener new modify listener public void modify text modify event e if get suggested project name null return string project name project name text get text if project name equals get suggested project name set message string format suggest project name is s get suggested project name imessage provider warning | watch the inherited project name field and make sure follows any |
protected text get project name text try return text reflection utils get field wizard new project creation page class this project name field catch exception e get logger warn unable to obtain project name field e return null | returns the project name |
protected void set enabled boolean enabled if is include resource working block return f resource base text set enabled enabled f workspace button set enabled enabled f variables button set enabled enabled f file system button set enabled enabled | allows this entire block to be enabled disabled |
private string split on comma string value if value length maxline value index of line separator 0 return value assume the line is already split string values manifest element get array from list value if values null values length 0 return value string buffer sb new string buffer value length values length 1 list separator length for int i 0 i values length 1 i sb append values i append list separator sb append values values length 1 return sb to string | ripped off from |
public string icon name return order | use tt order |
protected isuggested project name provider do add pages first return null | hook method allowing subclasses to optionally add additional |
public string icon name return customer | use tt customer |
public string icon name return product | use tt product |
public string title title buffer t new title buffer t append get product get code append x get quantity return t to string | defines the title that will be displayed on the user |
public package admin get package admin assert package admin null return package admin | accessor to platform utility class |
protected void do additional pages update data | hook method to allow subclasses that have installed additional pages |
private void derive bundle and configuration elements if possible if configuration element id null return iextension point extension point platform get extension registry get extension point configuration element id for iconfiguration element element extension point get configuration elements if id null id equals element get attribute id configuration elements add element if bundle null bundle platform get bundle element get contributor get name | looks for a plugin that extends the configuration element as identified |
static public void center final shell shell display display shell get display rectangle bounds display get bounds rectangle rect shell get bounds int x bounds x bounds width rect width 2 int y bounds y bounds height rect height 3 shell set location x y | centers a shell on its display |
private void hook project name field listener final text project name text get project name text if project name text null get logger warn unable to generate any warning messages on project name return project name text add modify listener new modify listener public void modify text modify event e if get suggested project name null return string project name project name text get text if project name equals get suggested project name set message string format suggest project name is s get suggested project name imessage provider warning | watch the inherited project name field and make sure follows any |
public text get project name text try return text reflection utils get field wizard new project creation page class this project name field catch exception e get logger warn unable to obtain project name field e return null | returns the project name |
protected isuggested project name provider do add pages return null | hook method allowing subclasses to optionally add additional |
private int find first content final char sequence content int prefix end int lenght content length for int i prefix end i lenght i if character is unicode identifier part content char at i return i return 0 | finds the offset of the first identifier part within code content code |
public void create part control composite parent get logger info create part control started try super create part control parent finally get logger info create part control completed | create the gui and actions set up providers and initial input |
public icompilation unit get compilation unit if openable instanceof icompilation unit return icompilation unit openable return null | the currently opened type as a |
public compilation unit get parsed compilation unit return parsed compilation unit | initially tt null tt but is updateable |
public void add imetadata descriptors provider metadata descriptors provider list metadata descriptor descriptors metadata descriptors provider get descriptors for metadata descriptor descriptor descriptors add descriptor | adds the descriptors provided by the supplied |
protected void do hook listeners final text text | subclasses are expected to hook listeners such as |
public ievaluated label provider get default label provider return default label provider | populated only after the object has been added to a |
public void set verify regex string regex this regex regex | a regex to be verified during verification ie as each character |
protected void set validator icell editor validator validator this validator validator | install an cell validator possibly in addition to a |
protected void set length int length this column length length | override the default column length associated with the |
public void create part control composite parent sash form sash new sash form parent swt vertical swt smooth get logger info create part control started try super create part control sash create params viewer sash configure params viewer params viewer set content provider new naked object action parameters content provider finally get logger info create part control completed | create the gui and actions set up providers and initial input |
public object next throws no such element exception if has next throw new no such element exception return elements index | returns the next element of this enumeration |
public boolean includes int index return this start index index this end | return whether the range includes the specified |
protected boolean reject object next return this accept next | return whether the the specified object should be rejected |
public boolean accept object next return this reject next | return whether the the specified object should be accepted |
public method declaration get declaration return method declaration | the significant lead method for the member |
public string get return type name if get method binding null return null itype binding return type get method binding get return type return return type null return type get name null | the unqualified name of the return type of the |
public boolean is boolean member return kind metadata descriptor kind boolean | alters behaviour for evaluating boolean members |
public boolean contains object o entry tab this table if o null for entry e tab 0 e null e e next if e object null return true else int hash o hash code int index hash 0x7 fffffff tab length for entry e tab index e null e e next if e hash hash o equals e object return true return false | this implementation searches for the object in the hash table by calculating |
protected metadata descriptor get metadata descriptor string property return metadata descriptor set get by name property | for use by |
public boolean can modify object element string property metadata descriptor metadata descriptor get metadata descriptor property return metadata descriptor is modifiable | subclasses that deal with nodes that have a type eg properties and |
public int count object o entry tab this table if o null for entry e tab 0 e null e e next if e object null return e count else int hash o hash code int index hash 0x7 fffffff tab length for entry e tab index e null e e next if e hash hash o equals e object return e count return 0 | return the number of times the specified object occurs in the bag |
private void rehash entry old map this table int old capacity old map length int new capacity old capacity 2 1 entry new map new entry new capacity this mod count this threshold int new capacity this load factor this table new map for int i old capacity i 0 for entry old old map i old null entry e old old old next int index e hash 0x7 fffffff new capacity e next new map index new map index e | rehashes the contents of this bag into a new hash table |
public metadata descriptor set get property descriptor set return metadata descriptor set | populated only after |
protected void select in editor ieditor part active editor editor util get active editor if active editor instanceof itext editor return itext editor text editor itext editor active editor ieditor input editor input text editor get editor input ijava element editor java el java ui get editor input java element editor input if editor java el get compilation unit editor util select in editor text editor get method offset 0 | attempts to re select method in the active editor |
public method declaration get method declaration return method declaration | populated if ast is requested via constructor |
public astparser get parser return parser | populated if ast is requested via constructor |
public void clear entry tab this table this mod count for int i tab length i 0 tab i null this count 0 this unique count 0 | this implementation simply clears out all of the hash table buckets |
public void create part control composite parent get logger info create part control started try internal create part control parent finally get logger info create part control completed | create the gui and actions set up providers and initial input |
public object clone try hash bag clone hash bag super clone clone table new entry this table length for int i this table length i 0 clone table i this table i null null entry this table i clone clone mod count 0 return clone catch clone not supported exception e throw new internal error | returns a shallow copy of this bag the elements |
private void check clear prefix throws java model exception core exception if found property or collection if method get parameter names length 0 create problem marker method marker constants id number parameters incorrect clear method clear method for property or collection is property type should have zero parameters else create problem marker method marker constants id orphaned clear method orphaned clear method for property no corresponding accessor method | applies to properties only |
public void set view abstract node view view iworkbench page page view get page view map view map view map by page get page if view map null view map new view map view map by page put page view map get editor tracker page install listeners view map put view view | registers this view and moreover installs the |
public iterator unique iterator if this count 0 return empty iterator return new unique iterator | return an iterator that returns each item in the bag |
public boolean has modify if this member type member type property return false string method candidate name method utils modify method name for get member name return method exists parent method candidate name | has a modify properties only |
public boolean has clear if this member type member type property return false string method candidate name method utils clear method name for get member name return method exists parent method candidate name | has a modify properties only |
public boolean has validate if this member type member type collection return false string method candidate name method utils validate method name for get member name return method exists parent method candidate name | has a validate properties and actions only |
public boolean has add to if this member type member type collection return false string method candidate name method utils add to method name for get member name return method exists parent method candidate name | has an add to collections only |
public boolean has remove from if this member type member type collection return false string method candidate name method utils remove from method name for get member name return method exists parent method candidate name | has an remove from collections only |
public boolean has validate add to if this member type member type collection return false string method candidate name method utils validate add to method name for get member name return method exists parent method candidate name | has an validate add to collections only |
public string get property name upper case first return method utils property name upper case first get property name | property name corresponding to the |
public string get accessor method name return method utils accessor method name for get property name | accessor name corresponding to the |
public string get mutator method name return method utils mutator method name for get property name | mutator name corresponding to the |
public boolean has validate remove from if this member type member type collection return false string method candidate name method utils validate remove from method name for get member name return method exists parent method candidate name | has an validate remove from collections only |
public boolean has hide string method candidate name method utils hide method name for get member name return method exists parent method candidate name | has a hide |
public boolean has disable string method candidate name method utils disable method name for get member name return method exists parent method candidate name | has a disabled |
public boolean has default if this member type member type collection return false string method candidate name method utils default method name for get member name return method exists parent method candidate name | has a default properties and actions only |
public boolean has choices if this member type member type collection return false string method candidate name method utils choices method name for get member name return method exists parent method candidate name | has a choices properties and actions only |
public imethod get action method return method utils check exists get declaring type get method get action method name get parameter types | the action method itself |
public string get action method name return method utils action method name for get member name | the name of the action method itself |
public imethod get accessor method return method utils check exists get declaring type get method get accessor method name new string | accessor corresponding to the |
public string get disable method name return method utils disable method name for get action method name | disable method corresponding to the action represented by |
public string get validate method name return method utils validate method name for get action method name | validate method corresponding to the action represented by |
public imethod get mutator method return method utils check exists get declaring type get method get mutator method name new string get collection type sig | mutator corresponding to the |
public string get add to method name return method utils add to method name for get property name | add to method name corresponding to the |
public string get hide method name return method utils hide method name for get action method name | hide method corresponding to the action represented by |
public string get default method name return method utils default method name for get action method name | default name corresponding to the action represented by |
public imethod get add to method return method utils check exists get declaring type get method get add to method name param type sigs | add to method corresponding to the |
public imethod get default method imethod method with args get declaring type get method get default method name get parameter types imethod method no args get declaring type get method get default method name get no arg parameters return method utils coalesce method with args method no args | defaults corresponding to the action represented by |
public string get remove from method name return method utils remove from method name for get property name | remove from method name corresponding to the |
public string get choices method name return method utils choices method name for get action method name | choices name corresponding to the action represented by |
public imethod get choices method imethod method with args get declaring type get method get choices method name get parameter types imethod method no args get declaring type get method get choices method name get no arg parameters return method utils coalesce method with args method no args | choices corresponding to the action represented by |
public imethod get remove from method return method utils check exists get declaring type get method get remove from method name param type sigs | remove from method corresponding to the |
public string get disable method name return method utils disable method name for get property name | disable method name corresponding to the |
public imethod get mutator method return method utils check exists get declaring type get method get mutator method name new string get property type | mutator corresponding to the |
public imethod get disable method return method utils check exists get declaring type get method get disable method name new string | disable method corresponding to the |
public string get modify method name return method utils modify method name for get property name | modify name corresponding to the |
public imethod get modify method return method utils check exists get declaring type get method get modify method name new string get property type | modify corresponding to the |
public string get validate add to method name return method utils validate add to method name for get property name | validate add to method name corresponding to the |
public string get clear method name return method utils clear method name for get property name | clear name corresponding to the |
public imethod get clear method return method utils check exists get declaring type get method get clear method name new string | clear corresponding to the |
public imethod get validate add to method return method utils check exists get declaring type get method get validate add to method name param type sigs | validate add to method corresponding to the |
public string get validate remove from method name return method utils validate remove from method name for get property name | validate remove from method name corresponding to the |
public string get validate method name return method utils validate method name for get property name | validate method corresponding to the |
public imethod get validate remove from method return method utils check exists get declaring type get method get validate remove from method name param type sigs | validate remove from method corresponding to the |
public string get hide method name return method utils hide method name for get property name | hide method corresponding to the |
public string get default method name return method utils default method name for get property name | default method corresponding to the |
public imethod get hide method return method utils check exists get declaring type get method get hide method name new string | hide method corresponding to the |
public string get choices method name return method utils choices method name for get property name | choices method corresponding to the |
public string get collection type sig if get accessor method null return null try return get accessor method get return type catch java model exception e return null | the type of the collection if known as a signature |
public string get property type if get accessor method null return null try return get accessor method get return type catch java model exception e return null | type if known requires accessor method to be derivable |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.