text
stringlengths
0
234
Self.build_recent_List;
Self.Invoked_by.set_Label (String (strip_standard_Prefix (identifier_Suffix (the_Exception.full_Name, 2))));
Self.Invoked_by.set_Tooltip_Text (full_Name);
Self.Target.my_Exception_is (Self.Slot, the_Exception);
-- Self.Target.my_add_Exception (the_Exception);
Self.Top.hide;
end choice_is;
procedure show (Self : in out Item; Invoked_by : in gtk_Button;
Target : in adam.exception_Handler.view;
Slot : in Positive)
is
begin
Self.Invoked_by := Invoked_by;
Self.Target := Target;
Self.Slot := Slot;
Self.Top.show_All;
end show;
procedure freshen (Self : in out Item)
is
use Adam;
-- type a_Package;
-- type Package_view is access all a_Package;
--
-- package package_Vectors is new ada.Containers.Vectors (Positive, Package_view);
-- subtype Package_vector is package_Vectors.Vector;
--
-- type a_Package is
-- record
-- Name : adam.Text;
-- Parent : Package_view;
-- Children : Package_vector;
--
-- Exceptions : adam.text_Lines;
-- end record;
-- the_Exceptions : constant adam.text_Lines := adam.Assist.known_Exceptions;
-- Root : aliased a_Package;
begin
-- Root.Name := +"Root";
-- Clear out old notebook pages.
--
while Self.all_Notebook.Get_N_Pages > 0
loop
Self.all_Notebook.Get_Nth_Page (0).Destroy;
end loop;
-- Build the Gui tree.
--
build_Gui_Tree:
declare
procedure build_Gui_for (the_Package : in AdaM.a_Package.view;
children_Notebook : in gtk_Notebook)
is
the_Children : AdaM.a_Package.Vector renames the_Package.child_Packages;
the_exceptions_Palette_package : constant Palette.of_exceptions_subpackages.view
:= aIDE.Palette.of_exceptions_subpackages.to_exceptions_Palette_package;
begin
-- Build the package pane.
--
the_exceptions_Palette_package.Parent_is (Self'unchecked_Access);
the_exceptions_Palette_package.top_Widget.Reparent (children_Notebook);
children_Notebook.set_Tab_Label_Text (the_exceptions_Palette_package.top_Widget,
+the_Package.Name);
-- Build the exceptions sub-pane.
--
for Each of the_Package.all_Exceptions
loop
the_exceptions_Palette_package.add_Exception (Each, the_Package);
-- the_exceptions_Palette_package.add_Exception (named => Each.Name,
-- package_Name => the_Package.Name);
-- -- package_Name => full_Name (the_Package));
end loop;
-- Configure event handling.
--
-- declare
-- use gtk.Label;
-- the_tab_Label : constant gtk_Label
-- := gtk_Label (children_Notebook.get_tab_Label (the_exceptions_Palette_package.top_Widget));
-- begin
-- the_tab_Label.set_Selectable (True);
-- label_return_Callbacks.connect (the_tab_Label,