Foundry.RenameProvider¶
- Subclasses:
None
Methods¶
- Inherited:
Foundry.Contextual (4), GObject.Object (37), Json.Serializable (8)
- Structs:
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w/co |
|||
r/w/co |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent_instance |
r |
Class Details¶
- class Foundry.RenameProvider(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
- dup_buffer()¶
- Return type:
- dup_document()¶
- Return type:
- rename(iter, new_name)¶
- Parameters:
iter (
Foundry.TextIter) – the location of the item to semantically renamenew_name (
str) – the replacement name
- Returns:
a [class`Dex`.Future] that resolves to a [iface`Gio`.ListModel] of [class`Foundry`.TextEdit].
- Return type:
Determines the list of changes that need to be made to the code-base to rename the word found at iter.
A consuming interface should display these edits to the user for validation and approval before applying them using [method`Foundry`.TextManager.apply_edits] to apply the approved edits.
- do_rename(iter, new_name) virtual¶
- Parameters:
iter (
Foundry.TextIter) – the location of the item to semantically renamenew_name (
str) – the replacement name
- Returns:
a [class`Dex`.Future] that resolves to a [iface`Gio`.ListModel] of [class`Foundry`.TextEdit].
- Return type:
Determines the list of changes that need to be made to the code-base to rename the word found at iter.
A consuming interface should display these edits to the user for validation and approval before applying them using [method`Foundry`.TextManager.apply_edits] to apply the approved edits.
Property Details¶
- Foundry.RenameProvider.props.buffer¶
- Name:
buffer- Type:
- Default Value:
- Flags:
- Foundry.RenameProvider.props.document¶
- Name:
document- Type:
- Default Value:
- Flags: