Bug 194217 - refactored ruby debugger preference page
Summary: refactored ruby debugger preference page
Status: RESOLVED FIXED
Alias: None
Product: DLTK
Classification: Technology
Component: Common (show other bugs)
Version: 0.95   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Dmitriy Kovalev CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on: 193638
Blocks:
  Show dependency tree
 
Reported: 2007-06-25 10:47 EDT by Jae Gangemi CLA
Modified: 2008-05-26 02:49 EDT (History)
0 users

See Also:


Attachments
patch w/ refactorings (37.45 KB, text/plain)
2007-06-25 10:52 EDT, Jae Gangemi CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jae Gangemi CLA 2007-06-25 10:47:46 EDT
the soon-to-be-attached patch contains refactoring work that refactors the ruby debugger preference page to use the AbstractConfigurationBlock and AbstractConfigurationBlockPreferencePage framework classes, in addition to providing bases classes that other dltk languages can use to achieve the 'drop down' engine selector.

i've also added a 'link' that will enable navigation to the generic dltk debugging options as well. the 'SWTFactory' class is a cut and paste out of the jdt (i wish this was part of eclipse core) - if you don't wish to use it, you'd need to replace the guts of the calls in AbstractConfigurationBlock w/ the proper impls since it just delegates to keep the model consistent.

i was going to hold off on submitting this until i had finished up integrating w/ active state's ruby debug (and the perl impl i'm working on) - but i noticed changes to the classes this morning, and figured it best just to get this submitted.
Comment 1 Jae Gangemi CLA 2007-06-25 10:49:33 EDT
marking as dependency of bug 193638 b/c the plugin.xml in the diff references the pulled up ScriptSourceLookupDirector 
Comment 2 Jae Gangemi CLA 2007-06-25 10:52:54 EDT
Created attachment 72361 [details]
patch w/ refactorings
Comment 3 Dmitriy Kovalev CLA 2007-06-28 03:42:33 EDT
Thank you for patch, I've applied it with several modifications.
Comment 4 Jae Gangemi CLA 2007-06-28 07:53:28 EDT
cool - one thing i noticed is that RubyDebugPreferencePage implements performOk, which makes a call to save the plugin preferences.

i thought was handled automatically by the OverlayPreferenceStore that wraps the plugin preferences (at least it seemed to work that way when i tested it).

is that not really the case?
Comment 5 Dmitriy Kovalev CLA 2007-06-28 08:03:26 EDT
As I understand correctly, it's required. You can see the implementation of performOk in AbstractConfigurationBlockPreferencePage class. By default it saves preferences to DLTKUIPlugin but the debugger preferences should be saved to another plugin. Perhaps more refactoring is required on configuration blocks infrastructure. 
Comment 6 Eclipse Webmaster CLA 2007-07-29 09:23:13 EDT
Changing OS from Mac OS to Mac OS X as per bug 185991
Comment 7 Andrey Platov CLA 2008-05-26 02:49:10 EDT
bulk change: fixed in 0.95