Interface
IdeWorkbenchAddin
Prerequisite
In order to implement WorkbenchAddin, your type must inherit fromGObject
.
Instance methods
ide_workbench_addin_restore_session
Requests that the workbench restore any session state that was saved
into the session object session
.
ide_workbench_addin_vcs_changed
This function notifies an IdeWorkbenchAddin
that the version control
system has changed. This happens when ide_workbench_set_vcs()
is called
or after an addin is loaded.
Interface structure
struct IdeWorkbenchAddinInterface {
GTypeInterface parent;
void (* load) (
IdeWorkbenchAddin* self,
IdeWorkbench* workbench
);
void (* unload) (
IdeWorkbenchAddin* self,
IdeWorkbench* workbench
);
void (* load_project_async) (
IdeWorkbenchAddin* self,
IdeProjectInfo* project_info,
GCancellable* cancellable,
GAsyncReadyCallback callback,
gpointer user_data
);
gboolean (* load_project_finish) (
IdeWorkbenchAddin* self,
GAsyncResult* result,
GError** error
);
void (* unload_project_async) (
IdeWorkbenchAddin* self,
IdeProjectInfo* project_info,
GCancellable* cancellable,
GAsyncReadyCallback callback,
gpointer user_data
);
gboolean (* unload_project_finish) (
IdeWorkbenchAddin* self,
GAsyncResult* result,
GError** error
);
void (* project_loaded) (
IdeWorkbenchAddin* self,
IdeProjectInfo* project_info
);
void (* workspace_added) (
IdeWorkbenchAddin* self,
IdeWorkspace* workspace
);
void (* workspace_removed) (
IdeWorkbenchAddin* self,
IdeWorkspace* workspace
);
gboolean (* can_open) (
IdeWorkbenchAddin* self,
GFile* file,
const gchar* content_type,
gint* priority
);
void (* open_async) (
IdeWorkbenchAddin* self,
GFile* file,
const gchar* content_type,
int at_line,
int at_line_offset,
IdeBufferOpenFlags flags,
PanelPosition* position,
GCancellable* cancellable,
GAsyncReadyCallback callback,
gpointer user_data
);
gboolean (* open_finish) (
IdeWorkbenchAddin* self,
GAsyncResult* result,
GError** error
);
void (* vcs_changed) (
IdeWorkbenchAddin* self,
IdeVcs* vcs
);
GActionGroup* (* ref_action_group) (
IdeWorkbenchAddin* self
);
void (* save_session) (
IdeWorkbenchAddin* self,
IdeSession* session
);
void (* restore_session) (
IdeWorkbenchAddin* self,
IdeSession* session
);
}
No description available.
Interface members
parent |
|
No description available. | |
load |
|
No description available. | |
unload |
|
No description available. | |
load_project_async |
|
No description available. | |
load_project_finish |
|
No description available. | |
unload_project_async |
|
No description available. | |
unload_project_finish |
|
No description available. | |
project_loaded |
|
No description available. | |
workspace_added |
|
No description available. | |
workspace_removed |
|
No description available. | |
can_open |
|
No description available. | |
open_async |
|
No description available. | |
open_finish |
|
No description available. | |
vcs_changed |
|
No description available. | |
ref_action_group |
|
No description available. | |
save_session |
|
No description available. | |
restore_session |
|
No description available. |
Virtual methods
Ide.WorkbenchAddin.restore_session
Requests that the workbench restore any session state that was saved
into the session object session
.
Ide.WorkbenchAddin.vcs_changed
This function notifies an IdeWorkbenchAddin
that the version control
system has changed. This happens when ide_workbench_set_vcs()
is called
or after an addin is loaded.