You can subscribe to this list here.
| 2005 |
Jan
|
Feb
|
Mar
(41) |
Apr
(9) |
May
|
Jun
|
Jul
(39) |
Aug
(38) |
Sep
(135) |
Oct
(220) |
Nov
(75) |
Dec
(74) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2006 |
Jan
(44) |
Feb
(160) |
Mar
(49) |
Apr
(69) |
May
(40) |
Jun
(52) |
Jul
(47) |
Aug
(51) |
Sep
(19) |
Oct
(22) |
Nov
(36) |
Dec
(76) |
| 2007 |
Jan
(154) |
Feb
(165) |
Mar
(186) |
Apr
(143) |
May
(175) |
Jun
(133) |
Jul
(203) |
Aug
(177) |
Sep
(136) |
Oct
|
Nov
|
Dec
|
|
From: Zach D. <zd...@us...> - 2005-09-14 03:28:08
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.core/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25720/lib Modified Files: jruby.jar Log Message: Adds Thomas Enebo's fix to jruby to Parser.newEvStrNode Index: jruby.jar =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.core/lib/jruby.jar,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 Binary files /tmp/cvsItKHY8 and /tmp/cvsxdEhJQ differ |
|
From: Markus B. <mba...@us...> - 2005-09-13 18:32:08
|
Update of /cvsroot/rubyeclipse/org.epic.regexp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32185 Modified Files: plugin.xml .classpath Removed Files: regexp.jar Log Message: changed due to bug in nightly builds. Now the regexp.jar should actually be built nightly. --- regexp.jar DELETED --- Index: .classpath =================================================================== RCS file: /cvsroot/rubyeclipse/org.epic.regexp/.classpath,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** .classpath 19 Nov 2004 04:38:56 -0000 1.1 --- .classpath 13 Sep 2005 18:32:00 -0000 1.2 *************** *** 3,8 **** <classpathentry kind="src" path="src/"/> <classpathentry exported="true" kind="lib" path="gnu-regexp-1.1.4.jar"/> - <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="output" path="bin"/> </classpath> --- 3,8 ---- <classpathentry kind="src" path="src/"/> <classpathentry exported="true" kind="lib" path="gnu-regexp-1.1.4.jar"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> + <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> <classpathentry kind="output" path="bin"/> </classpath> Index: plugin.xml =================================================================== RCS file: /cvsroot/rubyeclipse/org.epic.regexp/plugin.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** plugin.xml 2 Mar 2005 01:56:32 -0000 1.2 --- plugin.xml 13 Sep 2005 18:32:00 -0000 1.3 *************** *** 17,28 **** </runtime> <requires> <import plugin="org.eclipse.core.runtime"/> - <import plugin="org.eclipse.ui.ide"/> - <import plugin="org.eclipse.ui.views"/> - <import plugin="org.eclipse.jface.text"/> - <import plugin="org.eclipse.ui.workbench.texteditor"/> - <import plugin="org.eclipse.ui.editors"/> <import plugin="org.eclipse.core.resources"/> - <import plugin="org.eclipse.ui"/> </requires> --- 17,23 ---- </runtime> <requires> + <import plugin="org.eclipse.ui"/> <import plugin="org.eclipse.core.runtime"/> <import plugin="org.eclipse.core.resources"/> </requires> |
|
From: David C. <dc...@us...> - 2005-09-11 02:14:55
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.core/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16114/lib Modified Files: jruby.jar Log Message: Fixed NullWarnings so that ALL methods 'do nothing' (prevents NullPointerException) Index: jruby.jar =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.core/lib/jruby.jar,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 Binary files /tmp/cvsc7L8i1 and /tmp/cvsjseFPd differ |
|
From: David C. <dc...@us...> - 2005-09-10 12:04:36
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.doc.user/images In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23115/images Modified Files: runTestConfiguration.png Log Message: Updated doc to discuss 0.6.0 upgrade issues, and Ruby perspective changes. New image for runTestConfiguration Index: runTestConfiguration.png =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.doc.user/images/runTestConfiguration.png,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 Binary files /tmp/cvs8jUFB1 and /tmp/cvsDqXma2 differ |
|
From: David C. <dc...@us...> - 2005-09-10 12:04:36
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.doc.user In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23115 Modified Files: docbook.xml Log Message: Updated doc to discuss 0.6.0 upgrade issues, and Ruby perspective changes. New image for runTestConfiguration Index: docbook.xml =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.doc.user/docbook.xml,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** docbook.xml 28 Nov 2004 15:43:18 -0000 1.14 --- docbook.xml 10 Sep 2005 12:04:24 -0000 1.15 *************** *** 3,6 **** --- 3,42 ---- <book> <title>Ruby Development Tools</title> + <chapter id="UpgradingTo0.6.0"> + <title>Upgrading to 0.6.0</title> + <para> + Version 0.6.0 introduces some changes to the way projects and workspace + information is represented. The changes that the user must make, and those that + happen automatically are documented here. + </para> + <sect1> + <title>Ruby Interpreter</title> + <para> + In versions prior to 0.6.0, ruby interpreters were specified in + the preferences page by specifying a the directory that contains + the ruby executable. Now interpreters are specified by providing + the acutal ruby file, not the directory. Until edit these + preferences you will not be able to run or debug ruby applications + and tests. + </para> + </sect1> + <sect1> + <title>Ruby Project file</title> + <para> + RDT now requires a builder in the .project file for ruby projects. + When RDT is loaded, (or when a project is opened, ruby projects will + be automatically upgraded. + </para> + </sect1> + <sect1> + <title>Ruby Perpsective</title> + <para> + The ruby perspective now includes the standard Eclipse views for + Problems and Tasks. Because these were not used by RDT in previous + versions, RDT will automatically show these views if a project is + upgraded. + </para> + </sect1> + </chapter> <chapter id="GettingStarted"> <title>Getting Started</title> *************** *** 79,82 **** --- 115,120 ---- <listitem>Outline </listitem> <listitem>Console </listitem> + <listitem>Task List</listitem> + <listitem>Problems View</listitem> </itemizedlist> </sect2> *************** *** 147,153 **** shown if you have already typed at least one character. If the "token" preceding the cursor does match the beginning ! of any suggestions you will get no suggestions. For RDT ! 0.4.2 an extension is planned which also provides classes ! and modules from required ruby files. </para> </sect2> <sect2 id="CodeFormatting"> --- 185,190 ---- shown if you have already typed at least one character. If the "token" preceding the cursor does match the beginning ! of any suggestions you will get no suggestions. ! </para> </sect2> <sect2 id="CodeFormatting"> *************** *** 180,184 **** tab character in the editor inserts spaces instead of a tabs, too. The number of spaces used to replace the tab is ! equal to the number of characters per indentation level. By configuring the tab replacing settings with the code formatter settings, the difference between rawly entered --- 217,223 ---- tab character in the editor inserts spaces instead of a tabs, too. The number of spaces used to replace the tab is ! dependent on the current cursor position. Spaces will be added ! to move the cursor to a "tabstop", based on the number of characters ! per indentation level. By configuring the tab replacing settings with the code formatter settings, the difference between rawly entered *************** *** 217,220 **** --- 256,273 ---- </figure> </sect1> + <sect1 id="ProblemsView"> + <title>Problems View</title> + <para> + The problems view shows you warnings and errors in your ruby files. + You can read more about this view in the Workbench User Guide + </para> + </sect1> + <sect1 id="TaskList"> + <title>Task List</title> + <para> + The task list shows you a list of tasks in your workspace. + You can read more about this view in the Workbench User Guide + </para> + </sect1> <sect1 id="RunningARubyApplication"> <title>Running a Ruby application</title> |
|
From: Christopher W. <caw...@us...> - 2005-09-10 00:13:33
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/infoviews In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11830/src/org/rubypeople/rdt/internal/ui/infoviews Modified Files: RIView.java Log Message: apply Khaled's path to be case-insensitive on our RI search Index: RIView.java =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/infoviews/RIView.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** RIView.java 10 Sep 2005 00:09:31 -0000 1.6 --- RIView.java 10 Sep 2005 00:13:25 -0000 1.7 *************** *** 247,251 **** for (Iterator iter = possibleMatches.iterator(); iter.hasNext();) { String possibleMatch = (String) iter.next(); ! if (possibleMatch.indexOf(text) > -1 ) { filteredList.add(possibleMatch); } --- 247,251 ---- for (Iterator iter = possibleMatches.iterator(); iter.hasNext();) { String possibleMatch = (String) iter.next(); ! if (possibleMatch.toLowerCase().indexOf(text.toLowerCase()) > -1 ) { filteredList.add(possibleMatch); } |
|
From: Christopher W. <caw...@us...> - 2005-09-10 00:09:41
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/infoviews In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10903/src/org/rubypeople/rdt/internal/ui/infoviews Modified Files: RIView.java Log Message: fix RI view to properly update the view and show the normal "working" contents when a user updates their Ri preferences. (The bug was that the first time a user entere dtheir ri path the RI view still complained that it needed a proper RI path until the user closed and re-opened the RI view or Eclipse). Index: RIView.java =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/infoviews/RIView.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** RIView.java 2 Sep 2005 18:02:31 -0000 1.5 --- RIView.java 10 Sep 2005 00:09:31 -0000 1.6 *************** *** 142,146 **** public void propertyChange(org.eclipse.jface.util.PropertyChangeEvent event) { if (event.getProperty().equals(PreferenceConstants.RI_PATH)) { ! updatePage() ; } } --- 142,146 ---- public void propertyChange(org.eclipse.jface.util.PropertyChangeEvent event) { if (event.getProperty().equals(PreferenceConstants.RI_PATH)) { ! updatePage(); } } *************** *** 212,215 **** --- 212,216 ---- RubyInvoker invoker = new RubyInvoker() { protected void handleOutput(Process process) { + riFound = false; BufferedReader reader = new BufferedReader(new InputStreamReader(process.getInputStream())); String line = null; *************** *** 223,226 **** --- 224,228 ---- // if not matches were found display an error message if( numberOfMatches == 0 ){ + riFound = false; pageBook.showPage( riNotFoundLabel ); } else { *************** *** 338,342 **** public final void invoke() { - riFound = false; IPath rubyPath = RubyRuntime.getDefault().getSelectedInterpreter().getInstallLocation(); --- 340,343 ---- *************** *** 349,352 **** --- 350,354 ---- // If we can't find it ourselves then display an error to the user if (!file.exists() || !file.isFile()) { + riFound = false; pageBook.showPage(riNotFoundLabel); return; |
|
From: Christopher W. <caw...@us...> - 2005-09-09 23:24:45
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/preferences In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2582/src/org/rubypeople/rdt/internal/ui/preferences Modified Files: PreferencesMessages.properties RdocRiPreferencePage.java Log Message: externalize and fix spelling of Ri/RDoc preference page labels Index: RdocRiPreferencePage.java =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/preferences/RdocRiPreferencePage.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** RdocRiPreferencePage.java 17 Aug 2005 17:39:04 -0000 1.2 --- RdocRiPreferencePage.java 9 Sep 2005 23:24:38 -0000 1.3 *************** *** 29,33 **** super(GRID); setPreferenceStore(RubyPlugin.getDefault().getPreferenceStore()); ! setDescription("Settings for Rdoc and Ri."); } --- 29,33 ---- super(GRID); setPreferenceStore(RubyPlugin.getDefault().getPreferenceStore()); ! setDescription(PreferencesMessages.getString("RiPreferencePage.description.label")); //$NON-NLS-1$ } *************** *** 40,65 **** public void createFieldEditors() { addField( new FileFieldEditor( PreferenceConstants.RDOC_PATH, ! "&Rdoc directoy path:", getFieldEditorParent() ) ); addField( new FileFieldEditor( PreferenceConstants.RI_PATH, ! "R&i directoy path:", getFieldEditorParent() ) ); ! // ! // addField(new DirectoryFieldEditor(PreferenceConstants.P_PATH, ! // "&Directory preference:", getFieldEditorParent())); ! // addField( ! // new BooleanFieldEditor( ! // PreferenceConstants.P_BOOLEAN, ! // "&An example of a boolean preference", ! // getFieldEditorParent())); ! // ! // addField(new RadioGroupFieldEditor( ! // PreferenceConstants.P_CHOICE, ! // "An example of a multiple-choice preference", ! // 1, ! // new String[][] { { "&Choice 1", "choice1" }, { ! // "C&hoice 2", "choice2" } ! // }, getFieldEditorParent())); ! // addField( ! // new StringFieldEditor(PreferenceConstants.P_STRING, "A &text preference:", getFieldEditorParent())); } --- 40,47 ---- public void createFieldEditors() { addField( new FileFieldEditor( PreferenceConstants.RDOC_PATH, ! PreferencesMessages.getString("RiPreferencePage.rdocpath.label"), getFieldEditorParent() ) ); //$NON-NLS-1$ addField( new FileFieldEditor( PreferenceConstants.RI_PATH, ! PreferencesMessages.getString("RiPreferencePage.ripath.label"), getFieldEditorParent() ) ); //$NON-NLS-1$ } *************** *** 67,72 **** * @see org.eclipse.ui.IWorkbenchPreferencePage#init(org.eclipse.ui.IWorkbench) */ ! public void init(IWorkbench workbench) { ! } } \ No newline at end of file --- 49,53 ---- * @see org.eclipse.ui.IWorkbenchPreferencePage#init(org.eclipse.ui.IWorkbench) */ ! public void init(IWorkbench workbench) {} } \ No newline at end of file Index: PreferencesMessages.properties =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/preferences/PreferencesMessages.properties,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** PreferencesMessages.properties 2 Mar 2005 00:56:49 -0000 1.2 --- PreferencesMessages.properties 9 Sep 2005 23:24:38 -0000 1.3 *************** *** 325,328 **** --- 325,332 ---- PropertyAndPreferencePage.useprojectsettings.label=Enable pr&oject specific settings + RiPreferencePage.description.label=Settings for RDoc and Ri + RiPreferencePage.ripath.label=R&i directory path: + RiPreferencePage.rdocpath.label=&RDoc directory path: + JavaBuildPreferencePage.title=Builder JavaBuildPreferencePage.description=Options for the Java compiler:\nNote that a full rebuild is required for changes to take effect. |
|
From: Zach D. <zd...@us...> - 2005-09-09 22:03:42
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12353 Modified Files: Changelog.txt Log Message: * Updated jruby.jar (to 1.9). Includes fix for random Syntax Error issues dealing with quotes. * Updated jruby.jar (1.9). Disables the "useless use of literal ... in void context" warning. Index: Changelog.txt =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt/Changelog.txt,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** Changelog.txt 11 Aug 2005 03:39:47 -0000 1.10 --- Changelog.txt 9 Sep 2005 22:03:32 -0000 1.11 *************** *** 1,41 **** ! Changes since Release of 0.5.0 ! * Code folding: ! * Ability to enable/disable ! * Preference page allows you to choose to auto-collapse ! * Inner types ! * Methods ! * RDoc (not really working yet) ! * Much more intelligent parsing ! * Annotations and highlights of syntax errors ! * Annotations and highlights of warnings created by JRuby parser ! * Auto-complete of brackets, parens, and single/double quotes ! * Task tag recognition ! * Ability to set multiple tags ! * Ability to set low, normal or high priorities for tags ! * Early versions from Head (no official releases) would install a TODO marker that ! would not be removed. This bug was fixed, but if you've got "stuck Tasks" that ! don't match actual task tags in your source file, there are two ways to remove them. ! 1) open the file in the text editor (right-click on the file in Resource Navigator, and ! select Open With - Text Editor). You can then right click on the task tag in the left margin ! and select Remove Task ! 2) If this doesn't work, you need to basically delete the file, and create a new one in its place. ! * Added shortcuts for inspection during debug session: ! * Extension to the editor's pop-up menu ! * Preference page ! * Added RI view ! * Fixed bug in Debugger which crashed Eclipse (no more handles) ! * Fixed bug [1078036]: Cursor moves to document start when formatting whole document (i.e. there is no selection) ! * Fixed bug [1090687]: Uncomment broken ! * Fixed bug [1079795]: Warning in variable view ! * Saving an editor in debug session triggers code reload of ruby interpreter ! * Tab jumps to correct position ! * Fixed bug [1098315]: Incorrect formatting if semicolon are used directly attached to keywords, i.e. no separating spaces ! * Test::Unit tests can be launched in debug mode ! * Syntax highlighting (and customization) of regular expressions and commands ! * Committed patch by Khaled Agrama so Eclipse 3.1 would recognize .rb files with Ruby Editor ! * Committed patch for bug 959808. Singleton methods are now recognized correctly in the outlinew view ! * Create commands for launch short cuts so keys could be bound to them. Configured default key bindings. ! * Changed default key bindings for Comment, Uncomment and ToggleComment to be consistent with JDT. Changed the keybinding ! category to "Ruby Source" so it doesn't clash with JDT. ! * Fixed source positioning bug for outline view. ! * Updated RI view w/ patch from Khaled Agrama (Aug. 7, 2005) which allows user to start typing, and matches to show as the user types \ No newline at end of file --- 1,43 ---- ! Changes since Release of 0.5.0 ! * Code folding: ! * Ability to enable/disable ! * Preference page allows you to choose to auto-collapse ! * Inner types ! * Methods ! * RDoc (not really working yet) ! * Much more intelligent parsing ! * Annotations and highlights of syntax errors ! * Annotations and highlights of warnings created by JRuby parser ! * Auto-complete of brackets, parens, and single/double quotes ! * Task tag recognition ! * Ability to set multiple tags ! * Ability to set low, normal or high priorities for tags ! * Early versions from Head (no official releases) would install a TODO marker that ! would not be removed. This bug was fixed, but if you've got "stuck Tasks" that ! don't match actual task tags in your source file, there are two ways to remove them. ! 1) open the file in the text editor (right-click on the file in Resource Navigator, and ! select Open With - Text Editor). You can then right click on the task tag in the left margin ! and select Remove Task ! 2) If this doesn't work, you need to basically delete the file, and create a new one in its place. ! * Added shortcuts for inspection during debug session: ! * Extension to the editor's pop-up menu ! * Preference page ! * Added RI view ! * Fixed bug in Debugger which crashed Eclipse (no more handles) ! * Fixed bug [1078036]: Cursor moves to document start when formatting whole document (i.e. there is no selection) ! * Fixed bug [1090687]: Uncomment broken ! * Fixed bug [1079795]: Warning in variable view ! * Saving an editor in debug session triggers code reload of ruby interpreter ! * Tab jumps to correct position ! * Fixed bug [1098315]: Incorrect formatting if semicolon are used directly attached to keywords, i.e. no separating spaces ! * Test::Unit tests can be launched in debug mode ! * Syntax highlighting (and customization) of regular expressions and commands ! * Committed patch by Khaled Agrama so Eclipse 3.1 would recognize .rb files with Ruby Editor ! * Committed patch for bug 959808. Singleton methods are now recognized correctly in the outlinew view ! * Create commands for launch short cuts so keys could be bound to them. Configured default key bindings. ! * Changed default key bindings for Comment, Uncomment and ToggleComment to be consistent with JDT. Changed the keybinding ! category to "Ruby Source" so it doesn't clash with JDT. ! * Fixed source positioning bug for outline view. ! * Updated RI view w/ patch from Khaled Agrama (Aug. 7, 2005) which allows user to start typing, and matches to show as the user types ! * Updated jruby.jar (to 1.9). Includes fix for random Syntax Error issues dealing with quotes. ! * Updated jruby.jar (1.9). Disables the "useless use of literal ... in void context" warning. \ No newline at end of file |
|
From: Zach D. <zd...@us...> - 2005-09-09 22:00:24
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.core/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10564/lib Modified Files: jruby.jar Log Message: Include Thomas Enebo's fix of the Syntax Error in RDT and comments out the use of the "Useless use of .... in void context." error. Index: jruby.jar =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.core/lib/jruby.jar,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 Binary files /tmp/cvslzUEJM and /tmp/cvsw50O80 differ |
|
From: David C. <dc...@us...> - 2005-09-08 00:13:29
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31231/src/org/rubypeople/rdt/internal/ui Modified Files: RubyPlugin.java Log Message: Treat problem view like task list during 'upgrade'. Index: RubyPlugin.java =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/RubyPlugin.java,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** RubyPlugin.java 4 Sep 2005 17:39:15 -0000 1.12 --- RubyPlugin.java 8 Sep 2005 00:13:21 -0000 1.13 *************** *** 56,59 **** --- 56,60 ---- private static final String ORG_ECLIPSE_UI_VIEWS_TASK_LIST = "org.eclipse.ui.views.TaskList"; + private static final String ORG_ECLIPSE_UI_VIEWS_PROBLEM_VIEW = "org.eclipse.ui.views.ProblemView"; protected static RubyPlugin plugin; public static final String PLUGIN_ID = "org.rubypeople.rdt.ui"; //$NON-NLS-1$ *************** *** 79,83 **** private RubyFoldingStructureProviderRegistry fFoldingStructureProviderRegistry; ! private boolean taskViewAlreadyOpened; public RubyPlugin() { --- 80,84 ---- private RubyFoldingStructureProviderRegistry fFoldingStructureProviderRegistry; ! private boolean new060ViewsOpened; public RubyPlugin() { *************** *** 149,153 **** if (projectUpgraded) { ! openTasksView(); } } catch (CoreException e) { --- 150,154 ---- if (projectUpgraded) { ! openNew060Views(); } } catch (CoreException e) { *************** *** 159,164 **** } ! private void openTasksView() { ! if (taskViewAlreadyOpened) return; WorkbenchJob job = new WorkbenchJob("Show Task View") { --- 160,165 ---- } ! private void openNew060Views() { ! if (new060ViewsOpened) return; WorkbenchJob job = new WorkbenchJob("Show Task View") { *************** *** 170,174 **** if (page != null) { page.showView(ORG_ECLIPSE_UI_VIEWS_TASK_LIST); ! taskViewAlreadyOpened = true; } } --- 171,176 ---- if (page != null) { page.showView(ORG_ECLIPSE_UI_VIEWS_TASK_LIST); ! page.showView(ORG_ECLIPSE_UI_VIEWS_PROBLEM_VIEW); ! new060ViewsOpened = true; } } |
|
From: Markus B. <mba...@us...> - 2005-09-07 22:51:47
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.build/bootstrap In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12986/bootstrap Modified Files: customTargets.xml Log Message: replace updatesite url Index: customTargets.xml =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.build/bootstrap/customTargets.xml,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** customTargets.xml 28 Mar 2005 14:12:36 -0000 1.8 --- customTargets.xml 7 Sep 2005 22:51:40 -0000 1.9 *************** *** 97,100 **** --- 97,101 ---- <include name="org.rubypeople.*/feature.xml"/> <replacefilter token="${baseFeatureVersion}" value="${featureVersion}" /> + <replacefilter token="http://rubyeclipse.sourceforge.net/updatesite" value="http://rubyeclipse.sourceforge.net/nightlyBuild/updateSite" /> </replace> <replace dir="${buildDirectory}/plugins"> |
|
From: Markus B. <mba...@us...> - 2005-09-07 22:02:42
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/ui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv535/src/org/rubypeople/rdt/ui Modified Files: RubyElementLabelProvider.java Log Message: consider SyntaxExceptions in getImage Index: RubyElementLabelProvider.java =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/ui/RubyElementLabelProvider.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** RubyElementLabelProvider.java 7 Sep 2005 21:24:23 -0000 1.6 --- RubyElementLabelProvider.java 7 Sep 2005 22:02:33 -0000 1.7 *************** *** 63,66 **** --- 63,69 ---- } } + if (object instanceof SyntaxException) { + return RubyPluginImages.get(RubyPluginImages.IMG_OBJS_ERROR); + } log("Attempting to get Image for unknown object: " + object); return RubyPluginImages.get(RubyPluginImages.IMG_OBJS_ERROR); |
|
From: Markus B. <mba...@us...> - 2005-09-07 21:24:38
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23417/src/org/rubypeople/rdt/internal/core Modified Files: RubyScriptElementInfo.java RubyScript.java Log Message: show jruby syntaxexeptions in outline view Index: RubyScriptElementInfo.java =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/RubyScriptElementInfo.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** RubyScriptElementInfo.java 2 Mar 2005 00:54:02 -0000 1.2 --- RubyScriptElementInfo.java 7 Sep 2005 21:24:29 -0000 1.3 *************** *** 13,16 **** --- 13,17 ---- import java.util.HashMap; + import org.jruby.lexer.yacc.SyntaxException; import org.rubypeople.rdt.core.IRubyElement; import org.rubypeople.rdt.core.ISourceRange; *************** *** 34,37 **** --- 35,40 ---- */ public HashMap annotationPositions; + + protected SyntaxException syntaxException = null ; public void addAnnotationPositions(IRubyElement handle, long[] positions) { *************** *** 62,64 **** --- 65,77 ---- this.sourceLength = newSourceLength; } + + public SyntaxException getSyntaxException() { + return syntaxException; + } + + public void setSyntaxException(SyntaxException syntaxException) { + this.syntaxException = syntaxException; + } + + } Index: RubyScript.java =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/RubyScript.java,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** RubyScript.java 30 Mar 2005 00:12:30 -0000 1.12 --- RubyScript.java 7 Sep 2005 21:24:29 -0000 1.13 *************** *** 119,122 **** --- 119,123 ---- } catch (SyntaxException e) { unitInfo.setIsStructureKnown(false); + unitInfo.setSyntaxException(e) ; } catch (Exception e) { RubyCore.log(e); |
|
From: Markus B. <mba...@us...> - 2005-09-07 21:24:38
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23417 Modified Files: .classpath Log Message: show jruby syntaxexeptions in outline view Index: .classpath =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.core/.classpath,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** .classpath 23 Aug 2005 19:35:31 -0000 1.25 --- .classpath 7 Sep 2005 21:24:29 -0000 1.26 *************** *** 4,8 **** <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> ! <classpathentry sourcepath="lib/jruby.jar" kind="lib" path="lib/jruby.jar"/> <classpathentry kind="output" path="bin"/> </classpath> --- 4,8 ---- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> ! <classpathentry exported="true" sourcepath="/jruby/src" kind="lib" path="lib/jruby.jar"/> <classpathentry kind="output" path="bin"/> </classpath> |
|
From: Markus B. <mba...@us...> - 2005-09-07 21:24:31
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/ui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23392/src/org/rubypeople/rdt/ui Modified Files: RubyElementLabelProvider.java Log Message: show jruby syntaxexeptions in outline view Index: RubyElementLabelProvider.java =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/ui/RubyElementLabelProvider.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** RubyElementLabelProvider.java 12 Jul 2005 00:05:03 -0000 1.5 --- RubyElementLabelProvider.java 7 Sep 2005 21:24:23 -0000 1.6 *************** *** 4,7 **** --- 4,8 ---- import org.eclipse.jface.viewers.ILabelProviderListener; import org.eclipse.swt.graphics.Image; + import org.jruby.lexer.yacc.SyntaxException; import org.rubypeople.rdt.core.IRubyElement; import org.rubypeople.rdt.core.IMethod; *************** *** 78,81 **** --- 79,91 ---- public String getText(Object obj) { if (obj instanceof IRubyElement) return ((IRubyElement) obj).getElementName(); + if (obj instanceof SyntaxException) { + SyntaxException syntaxException = (SyntaxException) obj ; + StringBuffer sb = new StringBuffer() ; + sb.append("Line ") ; + sb.append(syntaxException.getPosition().getStartLine()) ; + sb.append(": ") ; + sb.append(syntaxException.getMessage()) ; + return sb.toString() ; + } return "Invalid object: " + obj.getClass().getName(); } |
|
From: Markus B. <mba...@us...> - 2005-09-07 21:24:31
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/rubyeditor/outline In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23392/src/org/rubypeople/rdt/internal/ui/rubyeditor/outline Modified Files: RubyOutlineContentProvider.java Log Message: show jruby syntaxexeptions in outline view Index: RubyOutlineContentProvider.java =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/rubyeditor/outline/RubyOutlineContentProvider.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** RubyOutlineContentProvider.java 12 Mar 2005 15:32:32 -0000 1.7 --- RubyOutlineContentProvider.java 7 Sep 2005 21:24:24 -0000 1.8 *************** *** 11,14 **** --- 11,16 ---- import org.rubypeople.rdt.core.IType; import org.rubypeople.rdt.core.RubyModelException; + import org.rubypeople.rdt.internal.core.RubyScript; + import org.rubypeople.rdt.internal.core.RubyScriptElementInfo; import org.rubypeople.rdt.internal.ui.RubyPlugin; *************** *** 21,24 **** --- 23,37 ---- public Object[] getChildren(Object parent) { + if (parent instanceof RubyScript) { + try { + RubyScriptElementInfo elementInfo = (RubyScriptElementInfo) ((RubyScript) parent).getElementInfo() ; + if (elementInfo.getSyntaxException() != null) { + return new Object[] { elementInfo.getSyntaxException() } ; + } + } catch (RubyModelException ex) { + RubyPlugin.log(ex) ; + } + + } if (parent instanceof IParent) { IParent c= (IParent) parent; |
|
From: Markus B. <mba...@us...> - 2005-09-07 21:23:03
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.core/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23105/lib Modified Files: jruby.jar Log Message: contains jruby RDT branch as of sept 07 2005 Index: jruby.jar =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.core/lib/jruby.jar,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 Binary files /tmp/cvsPICLZt and /tmp/cvsjzm3rV differ |
|
From: Markus B. <mba...@us...> - 2005-09-07 21:21:16
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22931 Modified Files: .options Log Message: added modelmanager trace option Index: .options =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.core/.options,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** .options 3 May 2004 17:09:04 -0000 1.2 --- .options 7 Sep 2005 21:21:08 -0000 1.3 *************** *** 4,6 **** org.rubypeople.rdt.core/debug=false org.rubypeople.rdt.core/codeformatter=false ! org.rubypeople.rdt.core/rubyparser=false \ No newline at end of file --- 4,7 ---- org.rubypeople.rdt.core/debug=false org.rubypeople.rdt.core/codeformatter=false ! org.rubypeople.rdt.core/rubyparser=false ! org.rubypeople.rdt.core/modelmanager=false \ No newline at end of file |
|
From: Markus B. <mba...@us...> - 2005-09-07 21:21:16
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.core/src/org/rubypeople/rdt/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22931/src/org/rubypeople/rdt/core Modified Files: RubyCore.java Log Message: added modelmanager trace option Index: RubyCore.java =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.core/src/org/rubypeople/rdt/core/RubyCore.java,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** RubyCore.java 5 Sep 2005 16:44:21 -0000 1.12 --- RubyCore.java 7 Sep 2005 21:21:08 -0000 1.13 *************** *** 188,191 **** --- 188,195 ---- String rubyParserOption = Platform.getDebugOption(RubyCore.PLUGIN_ID + "/rubyparser"); RubyParser.setDebugging(rubyParserOption == null ? false : rubyParserOption.equalsIgnoreCase("true")); + + String modelManagerOption = Platform.getDebugOption(RubyCore.PLUGIN_ID + "/modelmanager"); + RubyModelManager.VERBOSE = modelManagerOption == null ? false : rubyParserOption.equalsIgnoreCase("true"); + } |
|
From: Markus B. <mba...@us...> - 2005-09-06 21:41:03
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.core.tests/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19213/src Modified Files: RubyParserCmd.java Log Message: Added RubyScriptStructureBuilder Index: RubyParserCmd.java =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.core.tests/src/RubyParserCmd.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** RubyParserCmd.java 3 Sep 2005 19:04:58 -0000 1.1 --- RubyParserCmd.java 6 Sep 2005 21:40:56 -0000 1.2 *************** *** 6,13 **** --- 6,22 ---- import java.util.ArrayList; import java.util.Arrays; + import java.util.Hashtable; import java.util.Iterator; import java.util.List; + import java.util.Map; + import org.jruby.ast.Node; import org.jruby.lexer.yacc.SyntaxException; + import org.rubypeople.rdt.internal.core.DefaultWorkingCopyOwner; + import org.rubypeople.rdt.internal.core.RubyProject; + import org.rubypeople.rdt.internal.core.RubyScript; + import org.rubypeople.rdt.internal.core.RubyScriptElementInfo; + import org.rubypeople.rdt.internal.core.RubyScriptStructureBuilder; + import org.rubypeople.rdt.internal.core.parser.RdtWarnings; import org.rubypeople.rdt.internal.core.parser.RubyParser; *************** *** 20,23 **** --- 29,33 ---- private List syntaxErrorFiles = new ArrayList(); private int repeat = 1; + private Map elements = new Hashtable() ; public RubyParserCmd(List args) { *************** *** 58,62 **** } ! public void run() { parseTree(root); if (verbose) { --- 68,73 ---- } ! public void run() throws FileNotFoundException { ! parseTree(root); if (verbose) { *************** *** 68,99 **** System.err.println(syntaxErrorFiles.size() + " Errors; " + okFiles.size()+" OK"); - } - - private void parseTree(File file) { - if (!file.isDirectory()) { - if (file.getName().endsWith(".rb")) - for (int i=0; i<repeat; i++) - parseOneFile(file.getAbsolutePath()); - } else { - File[] files = file.listFiles(); - for (int i=0; i<files.length; i++) { - parseTree(files[i]); - } - } } private void parseOneFile(String file) { ! RubyParser parser = new RubyParser(); try { ! parser.parse(file, new FileReader(file)); ! okFiles.add(file); } catch (SyntaxException e) { syntaxErrorFiles.add(file); } catch (Exception e) { ! System.out.println(e.getMessage()); } } public static void main(String[] args) throws FileNotFoundException { new RubyParserCmd(Arrays.asList(args)).run(); --- 79,130 ---- System.err.println(syntaxErrorFiles.size() + " Errors; " + okFiles.size()+" OK"); + System.err.println("NewElements: " + elements.size()) ; } + + private void parseTree(File file) throws FileNotFoundException { + + if (!file.isDirectory()) { + if (file.getName().endsWith(".rb")) + for (int i = 0; i < repeat; i++) { + parseOneFile(file.getAbsolutePath()); + } + } else { + File[] files = file.listFiles(); + for (int i = 0; i < files.length; i++) { + parseTree(files[i]); + } + } + + } private void parseOneFile(String file) { ! RubyParser parser = new RubyParser(new RdtWarnings()); try { ! Node node = parser.parse(file, new FileReader(file)); ! RubyScriptElementInfo unitInfo = new RubyScriptElementInfo() ; ! RubyScript script = new RubyScript(new RubyProject(), null, file, DefaultWorkingCopyOwner.PRIMARY ) ; ! RubyScriptStructureBuilder visitor = new RubyScriptStructureBuilder(script, unitInfo, elements); ! if (node != null) { ! node.accept(visitor); ! } ! else { ! System.out.println("Node is null for : " + file) ; ! syntaxErrorFiles.add(file); ! return ; ! } } catch (SyntaxException e) { syntaxErrorFiles.add(file); + return ; } catch (Exception e) { ! System.out.println(e.getClass().getName() + "->" + e.getMessage()); ! syntaxErrorFiles.add(file); ! return ; } + okFiles.add(file); } + + public static void main(String[] args) throws FileNotFoundException { new RubyParserCmd(Arrays.asList(args)).run(); |
|
From: Markus B. <mba...@us...> - 2005-09-05 21:33:12
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.webpage/htdocs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31267/htdocs Removed Files: contact.html screenshots.html faq.html index.html download.html features.html welcome.html menu.html banner.html Log Message: html pages replaced with php version with same content --- download.html DELETED --- --- index.html DELETED --- --- banner.html DELETED --- --- welcome.html DELETED --- --- contact.html DELETED --- --- menu.html DELETED --- --- screenshots.html DELETED --- --- faq.html DELETED --- --- features.html DELETED --- |
|
From: David C. <dc...@us...> - 2005-09-05 16:44:32
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/testunit/launcher In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31762/src/org/rubypeople/rdt/testunit/launcher Modified Files: TestUnitRunnerConfiguration.java Log Message: Fixed how we find RemoteTestRunner.rb to use getOSString() Fixed getOSString so that we can find "plugin-ruby files" even when the current directory is NOT the Eclipse install directory (still a bit kludgy). Index: TestUnitRunnerConfiguration.java =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/testunit/launcher/TestUnitRunnerConfiguration.java,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** TestUnitRunnerConfiguration.java 5 Aug 2005 20:47:49 -0000 1.12 --- TestUnitRunnerConfiguration.java 5 Sep 2005 16:44:24 -0000 1.13 *************** *** 7,10 **** --- 7,11 ---- import org.eclipse.core.runtime.Path; import org.eclipse.debug.core.ILaunchConfiguration; + import org.rubypeople.rdt.core.RubyCore; import org.rubypeople.rdt.internal.launching.InterpreterRunnerConfiguration; import org.rubypeople.rdt.internal.launching.RdtLaunchingPlugin; *************** *** 81,94 **** public static String getTestRunnerPath() { ! String location = TestunitPlugin.getDefault().getBundle().getLocation(); ! int prefixLength = location.indexOf('@'); ! if (prefixLength == -1) ! throw new RuntimeException("Location of launching bundle does not contain @: " + location); ! ! String pluginDir = location.substring(prefixLength + 1) + "ruby"; ! File pluginDirFile = new File(pluginDir); if (!pluginDirFile.exists()) ! throw new RuntimeException("Expected directory of RemoteTestRunner.rb does not exist: " + pluginDir); return pluginDirFile.getAbsolutePath() + File.separator + TestUnitLaunchShortcut.TEST_RUNNER_FILE; --- 82,90 ---- public static String getTestRunnerPath() { ! String directory = RubyCore.getOSDirectory(TestunitPlugin.getDefault()); ! File pluginDirFile = new File(directory, "ruby"); if (!pluginDirFile.exists()) ! throw new RuntimeException("Expected directory of RemoteTestRunner.rb does not exist: " + pluginDirFile.getAbsolutePath()); return pluginDirFile.getAbsolutePath() + File.separator + TestUnitLaunchShortcut.TEST_RUNNER_FILE; |
|
From: David C. <dc...@us...> - 2005-09-05 16:44:29
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.core/src/org/rubypeople/rdt/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31754/src/org/rubypeople/rdt/core Modified Files: RubyCore.java Log Message: Fixed how we find RemoteTestRunner.rb to use getOSString() Fixed getOSString so that we can find "plugin-ruby files" even when the current directory is NOT the Eclipse install directory (still a bit kludgy). Index: RubyCore.java =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.core/src/org/rubypeople/rdt/core/RubyCore.java,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** RubyCore.java 4 Sep 2005 17:39:11 -0000 1.11 --- RubyCore.java 5 Sep 2005 16:44:21 -0000 1.12 *************** *** 23,26 **** --- 23,27 ---- import org.eclipse.core.runtime.preferences.IEclipsePreferences; import org.eclipse.core.runtime.preferences.InstanceScope; + import org.osgi.framework.Bundle; import org.osgi.framework.BundleContext; import org.rubypeople.rdt.internal.core.BatchOperation; *************** *** 264,273 **** public static String getOSDirectory(Plugin plugin) { ! String location = plugin.getBundle().getLocation(); int prefixLength = location.indexOf('@'); if (prefixLength == -1) { throw new RuntimeException("Location of launching bundle does not contain @: " + location); } String pluginDir = location.substring(prefixLength + 1); File pluginDirFile = new File(pluginDir); ! if (!pluginDirFile.exists()) { throw new RuntimeException("Expected directory of eclipseDebug.rb does not exist: " + pluginDir); } return pluginDirFile.getAbsolutePath()+"/"; } --- 265,284 ---- public static String getOSDirectory(Plugin plugin) { ! final Bundle bundle = plugin.getBundle(); ! String location = bundle.getLocation(); int prefixLength = location.indexOf('@'); if (prefixLength == -1) { throw new RuntimeException("Location of launching bundle does not contain @: " + location); } String pluginDir = location.substring(prefixLength + 1); File pluginDirFile = new File(pluginDir); ! if (!pluginDirFile.exists()) ! { ! String installArea = System.getProperty("osgi.install.area"); ! if (installArea.startsWith("file:/")) ! installArea = installArea.substring("file:/".length()); ! File installFile = new File(installArea); ! pluginDirFile = new File(installFile, pluginDir); ! if (!pluginDirFile.exists()) ! throw new RuntimeException("Unable to find (" + pluginDirFile + ") directory for " + plugin.getClass()); ! } return pluginDirFile.getAbsolutePath()+"/"; } |
|
From: David C. <dc...@us...> - 2005-09-04 17:39:49
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.core/src/org/rubypeople/rdt/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19333/src/org/rubypeople/rdt/core Modified Files: RubyCore.java Log Message: Improved auto-upgrade of projects to check for newly opened projects. Index: RubyCore.java =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.core/src/org/rubypeople/rdt/core/RubyCore.java,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** RubyCore.java 3 Sep 2005 19:05:02 -0000 1.10 --- RubyCore.java 4 Sep 2005 17:39:11 -0000 1.11 *************** *** 193,198 **** IProject[] projects = RubyCore.getRubyProjects(); for (int i = 0; i < projects.length; i++) { ! IRubyProject rubyProject = RubyModelManager.getRubyModelManager().getRubyModel().getRubyProject(projects[i]); ! if (rubyProject.upgrade()) { projectUpgraded = true; } --- 193,197 ---- IProject[] projects = RubyCore.getRubyProjects(); for (int i = 0; i < projects.length; i++) { ! if (upgradeOldProject(projects[i])) { projectUpgraded = true; } *************** *** 201,204 **** --- 200,210 ---- } + public static boolean upgradeOldProject(IProject project) throws CoreException { + IRubyProject rubyProject = RubyModelManager.getRubyModelManager().getRubyModel().getRubyProject(project); + if (rubyProject != null) + return rubyProject.upgrade(); + return false; + } + /* * Initializes the default preferences settings for this plug-in. |