indexing description: "Retarget the class tool with the class the execution is stopped in." date: "$Date$" revision: "$Revision$" class CURRENT_CLASS inherit PIXMAP_COMMAND rename init as make end; SHARED_APPLICATION_EXECUTION create make feature -- Properties symbol: PIXMAP is -- Pixmap for the button. once Result := Pixmaps.bm_Current end; name: STRING is -- Command name. do Result := Interface_names.f_Current end; menu_name: STRING is -- Name used in menu entry do Result := Interface_names.m_Current end; accelerator: STRING is -- Accelerator action for menu entry do Result := Interface_names.a_Current end; feature {NONE} -- Implementation work (argument: ANY) is -- Retarget the class tool with the current class if any. local status: APPLICATION_STATUS; st: FEATURE_STONE do status := Application.status; if status = Void then warner (popup_parent).gotcha_call (Warning_messages.w_System_not_running) elseif not status.is_stopped then warner (popup_parent).gotcha_call (Warning_messages.w_System_not_stopped) elseif status.e_feature = Void or status.dynamic_class = Void then -- Should never happen. warner (popup_parent).gotcha_call (Warning_messages.w_Unknown_class) else -- Show the current routine in that class. create st.make (status.e_feature); tool.process_feature (st) end end; end -- class CURRENT_CLASS