input
stringlengths 10
828
| output
stringlengths 5
107
|
---|---|
protected void set selection istructured selection selection selection provider set selection selection | set the selection of the receiver |
public void save selection iselection selection preserved selection clear if selection instanceof istructured selection istructured selection structured istructured selection selection iterator iterator structured iterator while iterator has next marker node next marker node iterator next if next is concrete preserved selection add new marker descriptor next get concrete representative | preserve the selection for reselection after the next update |
public string get default grouping entry return default grouping entry | return the id of the default grouping |
public boolean is info selected return info button get selection | return whether or not the info button is selected |
public string get marker type return marker type | return the id of the marker type for this type |
public iconfiguration element get element return element | return the iconfiguration element for the receiver |
private void set limit editor enablement composite control boolean checked limit editor set enabled checked control | enable the limit editor based on checked |
public void set info selected boolean selected info button set selection selected | set whether or not the erinforor button is selected |
public void run frame parent frame get parent frame iframe source full context if parent frame null get frame list goto frame parent frame | calls code goto frame code on the frame list with a frame |
public void update super update frame parent frame get parent frame 0 set enabled parent frame null set tool tip text get tool tip text parent frame | updates this actions enabled state and tool tip text |
protected void regenerate layout table layout layout new table layout get viewer get tree set layout layout column layout data column widths get default column layouts for int i 0 i column widths length i layout add column data column widths i get viewer get tree layout true | resize the category column in the table |
public void add property change listener iproperty change listener listener add listener object listener | adds a property change listener |
public void update enablement boolean enabled boolean showing severity is severity selected enablement button set enabled enabled error button set enabled showing severity enabled warning button set enabled showing severity enabled info button set enabled showing severity enabled | update enablement based on the enabled flag |
public void back if current 0 set current current 1 | moves the frame pointer back by one |
public frame list get parent return parent | returns the frame list |
protected void fire property change property change event event object listeners get listeners for int i 0 i listeners length i iproperty change listener listeners i property change event | notifies any property change listeners that a property has changed |
public void forward if current frames size 1 set current current 1 | moves the frame pointer forward by one |
public void set parent frame list parent this parent parent | sets the frame list |
public frame get current frame return get frame current | returns the current frame |
public void connect to frame list frame list frame list add property change listener new iproperty change listener public void property change property change event event tree viewer frame source this handle property change event | connects this source as a listener on the frame list |
public int get current index return current | returns the index of the current frame |
public abstract tree viewer get viewer return viewer | returns the tree viewer |
public frame get frame int index if index 0 index frames size return null return frame frames get index | returns the frame at the given index or code null code |
protected tree frame create frame object input return new tree frame viewer input | returns a new tree frame capturing the specified input element |
public iframe source get source return source | returns the frame source |
private list restore elements imemento memento imemento element mem memento get children tag element list elements new array list element mem length for int i 0 i element mem length i string factory id element mem i get string tag factory id if factory id null ielement factory factory platform ui get workbench get element factory factory id if factory null elements add factory create element element mem i return elements | restore ipersistable elements from the specified memento |
protected void frame changed tree frame frame viewer get control set redraw false viewer set input frame get input viewer set expanded elements frame get expanded elements viewer set selection frame get selection true viewer get control set redraw true | updates the viewer in response to the current frame changing |
public object get marker type return type | return the marker type this is wrapping |
private void create activity manager listener activity manager listener new iactivity manager listener non javadoc see org eclipse ui activities iactivity manager listener activity manager changed org eclipse ui activities activity manager event public void activity manager changed activity manager event activity manager event clear enabled filters refresh viewer | create a new listener for activity changes |
public void goto frame frame frame for int i frames size i current frames remove i frame set parent this int index frames size frame set index index frames add frame set current index | adds the given frame after the current frame |
protected frame get current frame int flags object input viewer get input tree frame frame create frame input if flags iframe source full context 0 frame set selection viewer get selection frame set expanded elements viewer get expanded elements return frame | returns the current frame |
public void remove property change listener iproperty change listener listener remove listener object listener | removes a property change listener |
private void save elements object elements imemento memento for int i 0 i elements length i if elements i instanceof iadaptable ipersistable element persistable ipersistable element iadaptable elements i get adapter ipersistable element class if persistable null imemento element mem memento create child tag element element mem put string tag factory id persistable get factory id persistable save state element mem | save the specified elements to the given memento |
public void set current index int index if index 1 index current set current index | sets the current frame to the frame with the given index |
public void update current frame assert is true current 0 frame frame source get frame iframe source current frame iframe source full context frame set parent this frame set index current frames set current frame | replaces the current frame in this list with the current frame |
public void set input object input this input input | sets the input element |
protected void handle property change property change event event if frame list p current frame equals event get property frame changed tree frame event get new value | handles a property change event from the frame list |
public void run frame selection frame get selection frame iframe source full context if selection frame null get frame list goto frame selection frame | calls code goto frame code on the frame list with a frame |
public void dispose frame list remove property change listener property change listener | disposes this frame action |
public void update super update frame selection frame get selection frame 0 set enabled selection frame null | updates this actions enabled state |
public frame list get frame list return frame list | returns the frame list |
public void set expanded elements object expanded elements this expanded elements expanded elements | sets the expanded elements |
protected void handle property change property change event event update | handles a property change event from the frame list |
public void run get frame list forward | calls code forward code on the frame list |
public ifield find field string description ifield fields get sorting fields for int i 0 i fields length i if fields i get description equals description return fields i return null | return the field whose description matches description |
public void update super update frame next frame get next frame set enabled next frame null set tool tip text get tool tip text next frame | updates this actions enabled state and tool tip text |
public void run get frame list back | calls code back code on the frame list |
public void update super update frame previous frame get previous frame set enabled previous frame null set tool tip text get tool tip text previous frame | updates this actions enabled state and tool tip text |
public void run icontainer container icontainer get viewer get input goto resource dialog dialog new goto resource dialog get shell container iresource file iresource folder iresource project dialog open object result dialog get result if result null result length 0 result 0 instanceof iresource false return iresource selection iresource result 0 get viewer set selection new structured selection selection true | collect all resources in the workbench open a dialog asking |
public marker filter make clone throws clone not supported exception return marker filter this clone | make a clone of the receiver |
public void handle key released key event event if event key code swt f2 event state mask 0 is enabled run | handle the key release |
public void add marker type node marker type types add marker type marker type set category this | add marker type to the list of types |
public void run list v get resources get structured selection if v is empty return try iview part view page show view ipage layout id res nav if view instanceof iset selection target iselection selection new structured selection v iset selection target view select reveal selection catch part init exception e error dialog open error page get workbench window get shell resource navigator messages show in navigator error message e get message e get status | shows the navigator view and sets its selection to the resources |
public void set selected types list selected types this selected types selected types | set the selected types |
protected image descriptor get image descriptor string relative path return ideworkbench plugin get ideimage descriptor relative path | returns the image descriptor with the given relative path |
public iresource navigator get navigator return navigator | returns the resource navigator |
public void select category string description category sorter sorter if description null select category field null sorter iterator defined groups marker support registry get instance get marker groups iterator while defined groups has next field marker group group field marker group defined groups next if group get description equals description select category field group sorter return select category field null sorter | select the category for the receiver |
public void handle key pressed key event event | handles a key pressed event by invoking the appropriate action |
public void run default action istructured selection selection | runs the default action in the group |
public void run get navigator set linking enabled is checked | runs the action |
public void run default action istructured selection selection object element selection get first element if element instanceof ifile open file action selection changed selection open file action run | runs the default action open file |
private concrete marker get selected concrete marker istructured selection selection istructured selection get viewer get selection if selection is empty return null if selection get first element instanceof concrete marker return concrete marker selection get first element return null | return the currently selected concrete marker or code null code |
public void set context action context context super set context context goto group set context context open group set context context refactor group set context context sort and filter group set context context workspace group set context context undo redo group set context context | extends the superclass implementation to set the context in the subgroups |
public void handle key pressed key event event if event character swt del event state mask 0 if delete action is enabled delete action run swallow the event event doit false else if event key code swt f2 event state mask 0 if rename action is enabled rename action run swallow the event event doit false | handles a key pressed event by invoking the appropriate action |
private void set filters marker filter initial filters marker filter new markers new marker filter initial filters length for int i 0 i initial filters length i marker filter new filter try new filter initial filters i make clone catch clone not supported exception exception error dialog open error get shell marker messages marker filter dialog error title marker messages marker filter dialog failed filter message util error status exception return new markers i new filter filters new markers | set the filters in the filters list by copying them |
protected int compare types iresource resource1 iresource resource2 string ext1 get extension for resource1 string ext2 get extension for resource2 compare extensions if they re different then return a value that indicates correct extension ordering if they re the same then return a value that indicates the correct name ordering int result collator compare ext1 ext2 if result 0 return result return compare names resource1 resource2 | returns a number reflecting the collation order of the given resources |
public void update action bars istructured selection selection istructured selection get context get selection property dialog action set enabled selection size 1 add bookmark action selection changed selection add task action selection changed selection goto group update action bars open group update action bars refactor group update action bars working set group update action bars sort and filter group update action bars workspace group update action bars undo redo group update action bars | updates the actions which were added to the action bars |
public void handle key pressed key event event refactor group handle key pressed event workspace group handle key pressed event | handles a key pressed event by invoking the appropriate action |
protected viewer get viewer return get navigator get viewer | returns the resource viewer |
protected shell get shell return get navigator get site get shell | returns the shell to use within actions |
protected iworkbench get workbench return platform ui get workbench | returns the workbench |
protected iworkbench window get workbench window return get navigator get site get workbench window | returns the workbench window |
public void dispose resources plugin get workspace remove resource change listener resource change listener new wizard menu dispose collapse all action dispose import action dispose export action dispose property dialog action dispose toggle linking action dispose goto group dispose open group dispose refactor group dispose sort and filter group dispose working set group dispose workspace group dispose undo redo group dispose super dispose | extends the superclass implementation to dispose the |
protected void frame changed tree frame frame iresource resource iresource frame get input iproject project resource get project if project null project is open false message dialog open information navigator get view site get shell resource navigator messages navigator frame source closed project title nls bind resource navigator messages navigator frame source closed project message project get name navigator get frame list back else super frame changed frame navigator update title | also updates the navigators title |
public void set patterns string new patterns this patterns new patterns this matchers new string matcher new patterns length for int i 0 i new patterns length i reset the matchers to prevent constructor overhead matchers i new string matcher new patterns i true false | sets the patterns to filter out for the receiver |
public void handle key pressed key event event if event key code swt f5 event state mask 0 if refresh action is enabled refresh action refresh all swallow the event event doit false | handles a key pressed event by invoking the appropriate action |
public void run get task list cancel editing table viewer viewer get task list get table viewer viewer get table select all force viewer selection change viewer set selection viewer get selection | selects all resources in the view |
protected void configure shell shell new shell super configure shell new shell new shell set text marker messages filters dialog title | method declared on window |
public void run istructured selection sel istructured selection get task list get selection object o sel get first element if o instanceof imarker task properties dialog dialog new task properties dialog get shell dialog set marker imarker o dialog open | performs this action |
protected shell get shell return task list get site get shell | returns the shell to use within actions |
protected task list get task list return task list | returns the task list viewer |
protected void store value idialog settings workbench settings task list get plugin get dialog settings idialog settings settings workbench settings get section task action non nls 1 if settings null settings workbench settings add new section task action non nls 1 settings put get id is checked | stores the current state value of this toggle action |
private void open error istatus status if status null return string generic title resource navigator messages drop adapter title int codes istatus error istatus warning simple case one error not a multistatus if status is multi status error dialog open error get shell generic title null status codes return one error single child of multistatus istatus children status get children if children length 1 error dialog open error get shell status get message null children 0 codes return several problems error dialog open error get shell generic title null status codes | opens an error dialog if necessary |
private structured selection convert selection iselection selection array list list new array list if selection instanceof istructured selection istructured selection ssel istructured selection selection for iterator i ssel iterator i has next object o i next iresource resource null if o instanceof iresource resource iresource o else if o instanceof iadaptable resource iresource iadaptable o get adapter iresource class if resource null list add resource return new structured selection list | converts the given selection into a form usable by the viewer |
private void restore working set string working set name if working set name null iworking set manager working set manager platform ui get workbench get working set manager iworking set working set working set manager get working set working set name if working set null this working set working set | restores the saved working set if any |
public marker list get current markers return get marker adapter get current markers | get the current markers for the receiver |
private string get problem types string problem filter filter list types filter get selected types if types size get root entries filter length return marker messages problem filter dialog all problems string buffer types buffer new string buffer iterator types iterator types iterator types buffer append marker messages problem filter dialog selected types while types iterator has next types buffer append util line feed and tab types buffer append marker type types iterator next get label return types buffer to string | get the problem types string for filter |
protected marker adapter get marker adapter return adapter | get the marker adapter for the receiver |
private string get severity string problem filter filter if filter get select by severity switch filter get severity case problem filter severity info return marker messages problem filter dialog info severity case problem filter severity warning return marker messages problem filter dialog warning severity case problem filter severity error return marker messages problem filter dialog error severity default return null return null | return the string for severity if there is one |
protected string get help context id return inavigator help context ids resource view | returns the help context id to use for this view |
private string get description string problem filter filter if filter get description length 0 return null if filter get contains return nls bind marker messages problem filter dialog contains description filter get description return nls bind marker messages problem filter dialog does not contain description filter get description | return the string for the description if there is one |
public void update for contents refresh iprogress monitor monitor update job cancel get marker adapter build all markers monitor get progress service schedule update job | update for the change in the contents |
public boolean should enable istructured selection selection if selection size 1 return false imarker marker imarker selection get first element if marker null return false return ide get marker help registry has resolutions marker | returns whether this action should be enabled given the selection |
public void run imarker marker get marker if marker null return get task list cancel editing imarker resolution resolutions get resolutions marker if resolutions length 0 message dialog open information get shell task list messages resolve title task list messages resolve no resolutions label return marker resolution selection dialog d new marker resolution selection dialog get shell resolutions if d open window ok return object result d get result if result null result length 0 imarker resolution result 0 run marker | displays a list of resolutions and performs the selection |
private imarker get marker istructured selection selection istructured selection get task list get selection only enable for single selection if selection size 1 return null return imarker selection get first element | returns the selected marker may be code null code |
public void run istructured selection selection istructured selection get task list get selection object o selection get first element if o instanceof imarker return imarker marker imarker o iresource resource marker get resource if marker exists resource instanceof ifile iworkbench page page get task list get site get page try ide open editor page marker open strategy activate on open catch part init exception e dialog util open error page get workbench window get shell task list messages goto task error message e get message e | performs this action |
protected void init context menu 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 public void menu about to show imenu manager manager resource navigator this fill context menu manager tree viewer viewer get tree viewer menu menu menu mgr create context menu viewer get tree viewer get tree set menu menu get site register context menu menu mgr viewer | initializes and registers the context menu |
private string get scope string problem filter filter switch filter on resource case marker filter on any return marker messages problem filter dialog any case marker filter on any in same container return marker messages problem filter dialog same container case marker filter on selected and children return marker messages problem filter dialog selected and children case marker filter on selected only return marker messages problem filter dialog selected case marker filter on working set return nls bind marker messages problem filter dialog working set filter get working set default return null | return the string that describes the scope |
static public image get image imarker marker if is marker type marker imarker problem switch get severity marker case imarker severity error return get image error non nls 1 case imarker severity warning return get image warn non nls 1 case imarker severity info return get image info non nls 1 else if is marker type marker imarker task return get image task non nls 1 return null | returns the image that should be used to visually represent |
public void check state changed check state changed event event marker type type marker type event get element types viewer set subtree checked type event get checked marker type all supertypes type get all supertypes for int i 0 i all supertypes length i types viewer set checked all supertypes i false update enabled state | check state change |
Subsets and Splits