Interface

IdeWorkbenchAddin

Description

interface Ide.WorkbenchAddin : GObject.Object
No description available.

Prerequisite

In order to implement WorkbenchAddin, your type must inherit fromGObject.

Instance methods

ide_workbench_addin_can_open
No description available.

ide_workbench_addin_load
No description available.

ide_workbench_addin_load_project_async
No description available.

ide_workbench_addin_load_project_finish
No description available.

ide_workbench_addin_open_async
No description available.

ide_workbench_addin_open_finish
No description available.

ide_workbench_addin_project_loaded

This function is called after the project has been loaded.

ide_workbench_addin_ref_action_group

Gets the action group for the addin.

ide_workbench_addin_restore_session

Requests that the workbench restore any session state that was saved into the session object session.

ide_workbench_addin_save_session

Saves session state from self into session.

ide_workbench_addin_unload
No description available.

ide_workbench_addin_unload_project_async
No description available.

ide_workbench_addin_unload_project_finish
No description available.

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.

ide_workbench_addin_workspace_added
No description available.

ide_workbench_addin_workspace_removed
No description available.

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
GTypeInterface
 No description available.
load
void (* load) (
    IdeWorkbenchAddin* self,
    IdeWorkbench* workbench
  )
 No description available.
unload
void (* unload) (
    IdeWorkbenchAddin* self,
    IdeWorkbench* workbench
  )
 No description available.
load_project_async
void (* load_project_async) (
    IdeWorkbenchAddin* self,
    IdeProjectInfo* project_info,
    GCancellable* cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data
  )
 No description available.
load_project_finish
gboolean (* load_project_finish) (
    IdeWorkbenchAddin* self,
    GAsyncResult* result,
    GError** error
  )
 No description available.
unload_project_async
void (* unload_project_async) (
    IdeWorkbenchAddin* self,
    IdeProjectInfo* project_info,
    GCancellable* cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data
  )
 No description available.
unload_project_finish
gboolean (* unload_project_finish) (
    IdeWorkbenchAddin* self,
    GAsyncResult* result,
    GError** error
  )
 No description available.
project_loaded
void (* project_loaded) (
    IdeWorkbenchAddin* self,
    IdeProjectInfo* project_info
  )
 No description available.
workspace_added
void (* workspace_added) (
    IdeWorkbenchAddin* self,
    IdeWorkspace* workspace
  )
 No description available.
workspace_removed
void (* workspace_removed) (
    IdeWorkbenchAddin* self,
    IdeWorkspace* workspace
  )
 No description available.
can_open
gboolean (* can_open) (
    IdeWorkbenchAddin* self,
    GFile* file,
    const gchar* content_type,
    gint* priority
  )
 No description available.
open_async
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
  )
 No description available.
open_finish
gboolean (* open_finish) (
    IdeWorkbenchAddin* self,
    GAsyncResult* result,
    GError** error
  )
 No description available.
vcs_changed
void (* vcs_changed) (
    IdeWorkbenchAddin* self,
    IdeVcs* vcs
  )
 No description available.
ref_action_group
GActionGroup* (* ref_action_group) (
    IdeWorkbenchAddin* self
  )
 No description available.
save_session
void (* save_session) (
    IdeWorkbenchAddin* self,
    IdeSession* session
  )
 No description available.
restore_session
void (* restore_session) (
    IdeWorkbenchAddin* self,
    IdeSession* session
  )
 No description available.

Virtual methods

Ide.WorkbenchAddin.can_open
No description available.

Ide.WorkbenchAddin.load
No description available.

Ide.WorkbenchAddin.load_project_async
No description available.

Ide.WorkbenchAddin.load_project_finish
No description available.

Ide.WorkbenchAddin.open_async
No description available.

Ide.WorkbenchAddin.open_finish
No description available.

Ide.WorkbenchAddin.project_loaded

This function is called after the project has been loaded.

Ide.WorkbenchAddin.ref_action_group

Gets the action group for the addin.

Ide.WorkbenchAddin.restore_session

Requests that the workbench restore any session state that was saved into the session object session.

Ide.WorkbenchAddin.save_session

Saves session state from self into session.

Ide.WorkbenchAddin.unload
No description available.

Ide.WorkbenchAddin.unload_project_async
No description available.

Ide.WorkbenchAddin.unload_project_finish
No description available.

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.

Ide.WorkbenchAddin.workspace_added
No description available.

Ide.WorkbenchAddin.workspace_removed
No description available.