Rename ItemView
to Item
This commit is contained in:
parent
aced1e2315
commit
0efce8f70a
11 changed files with 122 additions and 135 deletions
|
@ -8,7 +8,7 @@ use gpui::{
|
|||
use language::OffsetRangeExt;
|
||||
use project::search::SearchQuery;
|
||||
use std::ops::Range;
|
||||
use workspace::{ItemViewHandle, Pane, Settings, Toolbar, Workspace};
|
||||
use workspace::{ItemHandle, Pane, Settings, Toolbar, Workspace};
|
||||
|
||||
action!(Deploy, bool);
|
||||
action!(Dismiss);
|
||||
|
@ -126,7 +126,7 @@ impl View for SearchBar {
|
|||
impl Toolbar for SearchBar {
|
||||
fn active_item_changed(
|
||||
&mut self,
|
||||
item: Option<Box<dyn ItemViewHandle>>,
|
||||
item: Option<Box<dyn ItemHandle>>,
|
||||
cx: &mut ViewContext<Self>,
|
||||
) -> bool {
|
||||
self.active_editor_subscription.take();
|
||||
|
|
|
@ -16,7 +16,7 @@ use std::{
|
|||
path::PathBuf,
|
||||
};
|
||||
use util::ResultExt as _;
|
||||
use workspace::{ItemNavHistory, ItemView, Settings, Workspace};
|
||||
use workspace::{Item, ItemNavHistory, Settings, Workspace};
|
||||
|
||||
action!(Deploy);
|
||||
action!(Search);
|
||||
|
@ -197,7 +197,7 @@ impl View for ProjectSearchView {
|
|||
}
|
||||
}
|
||||
|
||||
impl ItemView for ProjectSearchView {
|
||||
impl Item for ProjectSearchView {
|
||||
fn act_as_type(
|
||||
&self,
|
||||
type_id: TypeId,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue