|
From: <mba...@us...> - 2006-10-08 13:29:25
|
Revision: 1617
http://svn.sourceforge.net/rubyeclipse/?rev=1617&view=rev
Author: mbarchfe
Date: 2006-10-08 06:29:10 -0700 (Sun, 08 Oct 2006)
Log Message:
-----------
added debugger preference page
Modified Paths:
--------------
trunk/org.rubypeople.rdt.ui/plugin.properties
trunk/org.rubypeople.rdt.ui/plugin.xml
trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/preferences/PreferencesMessages.java
trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/preferences/PreferencesMessages.properties
trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/util/RubyFileSelector.java
Added Paths:
-----------
trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/preferences/DebuggerPreferencePage.java
Modified: trunk/org.rubypeople.rdt.ui/plugin.properties
===================================================================
--- trunk/org.rubypeople.rdt.ui/plugin.properties 2006-09-22 00:00:16 UTC (rev 1616)
+++ trunk/org.rubypeople.rdt.ui/plugin.properties 2006-10-08 13:29:10 UTC (rev 1617)
@@ -26,6 +26,7 @@
PreferencePage.rdtTemplatePreferences=Templates
PreferencePage.rdtTaskPreferences=Task Tags
PreferencePage.rdtRiPreferences=Ri/rdoc
+PreferencePage.rdtDebuggerPreferences=Debugger
viewCategoryName=Ruby
Modified: trunk/org.rubypeople.rdt.ui/plugin.xml
===================================================================
--- trunk/org.rubypeople.rdt.ui/plugin.xml 2006-09-22 00:00:16 UTC (rev 1616)
+++ trunk/org.rubypeople.rdt.ui/plugin.xml 2006-10-08 13:29:10 UTC (rev 1617)
@@ -90,10 +90,15 @@
<page
name="%problemSeveritiesPrefName"
category="org.rubypeople.rdt.ui.preferences.PreferencePageRubyBase"
- class="org.rubypeople.rdt.internal.ui.preferences.ProblemSeveritiesPreferencePage"
+ class="org.rubypeople.rdt.internal.ui.preferences.DebuggerPreferencePage"
id="org.rubypeople.rdt.ui.preferences.ProblemSeveritiesPreferencePage">
<keywordReference id="org.rubypeople.rdt.ui.severities"/>
</page>
+ <page
+ category="org.rubypeople.rdt.ui.preferences.PreferencePageRubyBase"
+ class="org.rubypeople.rdt.internal.ui.preferences.DebuggerPreferencePage"
+ id="org.rubypeople.rdt.ui.preferences.debugger"
+ name="%PreferencePage.rdtDebuggerPreferences"/>
</extension>
<!-- =========================================================================== -->
<!-- Ruby Perspective -->
Added: trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/preferences/DebuggerPreferencePage.java
===================================================================
--- trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/preferences/DebuggerPreferencePage.java (rev 0)
+++ trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/preferences/DebuggerPreferencePage.java 2006-10-08 13:29:10 UTC (rev 1617)
@@ -0,0 +1,37 @@
+package org.rubypeople.rdt.internal.ui.preferences;
+
+import org.eclipse.core.runtime.Preferences;
+import org.eclipse.jface.preference.BooleanFieldEditor;
+import org.eclipse.jface.preference.FieldEditorPreferencePage;
+import org.eclipse.jface.preference.FileFieldEditor;
+import org.eclipse.ui.IWorkbench;
+import org.eclipse.ui.IWorkbenchPreferencePage;
+import org.rubypeople.rdt.core.RubyCore;
+import org.rubypeople.rdt.internal.launching.RdtLaunchingPlugin;
+import org.rubypeople.rdt.internal.ui.RubyPlugin;
+import org.rubypeople.rdt.internal.ui.text.PreferencesAdapter;
+import org.rubypeople.rdt.ui.PreferenceConstants;
+
+
+public class DebuggerPreferencePage
+ extends FieldEditorPreferencePage
+ implements IWorkbenchPreferencePage {
+
+ public DebuggerPreferencePage() {
+ super(GRID);
+ Preferences launchingPreferences = RdtLaunchingPlugin.getDefault().getPluginPreferences() ;
+ setPreferenceStore(new PreferencesAdapter(launchingPreferences)) ;
+ setDescription(PreferencesMessages.DebuggerPreferencePage_description_label);
+ }
+
+ public void createFieldEditors() {
+ addField( new BooleanFieldEditor( PreferenceConstants.DEBUGGER_USE_RUBY_DEBUG,
+ PreferencesMessages.DebuggerPreferencePage_useRubyDebug_label, getFieldEditorParent() ) );
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.ui.IWorkbenchPreferencePage#init(org.eclipse.ui.IWorkbench)
+ */
+ public void init(IWorkbench workbench) {}
+
+}
\ No newline at end of file
Modified: trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/preferences/PreferencesMessages.java
===================================================================
--- trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/preferences/PreferencesMessages.java 2006-09-22 00:00:16 UTC (rev 1616)
+++ trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/preferences/PreferencesMessages.java 2006-10-08 13:29:10 UTC (rev 1617)
@@ -20,6 +20,7 @@
}
public static String RiPreferencePage_description_label;
+ public static String DebuggerPreferencePage_description_label;
public static String CodeFormatterPreferencePage_title;
public static String CodeFormatterPreferencePage_description;
public static String MembersOrderPreferencePage_category_button_up;
@@ -54,6 +55,7 @@
public static String RubyEditorPreferencePage_link;
public static String RiPreferencePage_ripath_label;
public static String RiPreferencePage_rdocpath_label;
+ public static String DebuggerPreferencePage_useRubyDebug_label;
public static String TodoTaskConfigurationBlock_tasks_default;
public static String TodoTaskConfigurationBlock_markers_tasks_high_priority;
public static String TodoTaskConfigurationBlock_markers_tasks_normal_priority;
Modified: trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/preferences/PreferencesMessages.properties
===================================================================
--- trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/preferences/PreferencesMessages.properties 2006-09-22 00:00:16 UTC (rev 1616)
+++ trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/preferences/PreferencesMessages.properties 2006-10-08 13:29:10 UTC (rev 1617)
@@ -168,3 +168,5 @@
MarkOccurrencesConfigurationBlock_markMethodExitPoints= Method &exits
MarkOccurrencesConfigurationBlock_stickyOccurrences= &Keep marks when the selection changes
+DebuggerPreferencePage_description_label=Debugger preferences
+DebuggerPreferencePage_useRubyDebug_label=Use ruby-debug library (ruby >= 1.8.4, gem install ruby-debug)
Modified: trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/util/RubyFileSelector.java
===================================================================
--- trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/util/RubyFileSelector.java 2006-09-22 00:00:16 UTC (rev 1616)
+++ trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/util/RubyFileSelector.java 2006-10-08 13:29:10 UTC (rev 1617)
@@ -62,7 +62,8 @@
}
protected String validateResourceSelection() {
- IFile selection = getSelection();
- return selection == null ? EMPTY_STRING : selection.getProjectRelativePath().toString();
+ return getSelectionText() ;
+// IFile selection = getSelection();
+// return selection == null ? EMPTY_STRING : selection.getProjectRelativePath().toString();
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|