text stringlengths 0 234 |
|---|
the_Type : in AdaM.a_Type.view) |
is |
use AdaM, |
AdaM.Assist; |
-- full_Name : constant String := package_Name & "." & Now; |
full_Name : constant String := String (the_Type.full_Name); |
begin |
-- recent_Exceptions.register_Usage (+full_Name); |
recent_Exceptions.register_Usage (the_Type); |
Self.build_recent_List; |
Self.Invoked_by.set_Label (String (strip_standard_Prefix (identifier_Suffix (the_Type.full_Name, 2)))); |
Self.Invoked_by.set_Tooltip_Text (full_Name); |
Self.Target.all := the_Type; |
-- Self.Target.my_add_Exception (the_Exception); |
Self.Top.hide; |
end choice_is; |
procedure show (Self : in out Item; Invoked_by : in Gtk.Button.gtk_Button; |
Target : access AdaM.a_Type.view) |
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_types_subpackages.view |
:= aIDE.Palette.of_types_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_Types |
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; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.