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: David C. <dc...@us...> - 2005-10-16 23:52:52
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.core.tests/src/org/rubypeople/rdt/internal/formatter In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24494/src/org/rubypeople/rdt/internal/formatter Added Files: TS_InternalFormatter.java Log Message: Organize tests for consistency. Found a few TCs that weren't being called for the main suite. --- NEW FILE: TS_InternalFormatter.java --- package org.rubypeople.rdt.internal.formatter; import junit.framework.Test; import junit.framework.TestSuite; public class TS_InternalFormatter { public static Test suite() { TestSuite suite = new TestSuite(); suite.addTestSuite(TC_CodeFormatter.class); return suite; } } |
|
From: David C. <dc...@us...> - 2005-10-16 23:52:52
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.core.tests/src/org/rubypeople/rdt/internal/core/parser In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24494/src/org/rubypeople/rdt/internal/core/parser Added Files: TS_InternalCoreParser.java Removed Files: TS_CoreParser.java Log Message: Organize tests for consistency. Found a few TCs that weren't being called for the main suite. --- TS_CoreParser.java DELETED --- --- NEW FILE: TS_InternalCoreParser.java --- package org.rubypeople.rdt.internal.core.parser; import junit.framework.Test; import junit.framework.TestSuite; public class TS_InternalCoreParser { public static Test suite() { TestSuite suite = new TestSuite(); suite.addTestSuite(TC_TaskParser.class); suite.addTestSuite(TC_ImmediateWarnings.class); suite.addTestSuite(TC_RubyParser.class); return suite; } } |
|
From: David C. <dc...@us...> - 2005-10-16 23:52:48
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.ui.tests/src/org/rubypeople/rdt/internal/ui/text In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24462/src/org/rubypeople/rdt/internal/ui/text Added Files: TS_InternalUiText.java Log Message: Organize tests for consistency. Found a few TCs that weren't being called for the main suite. --- NEW FILE: TS_InternalUiText.java --- package org.rubypeople.rdt.internal.ui.text; import junit.framework.Test; import junit.framework.TestSuite; public class TS_InternalUiText { public static Test suite() { TestSuite suite = new TestSuite("org.rubypeople.rdt.internal.ui.text"); suite.addTestSuite(TC_RubyPartitionScanner.class); return suite; } } |
|
From: David C. <dc...@us...> - 2005-10-16 23:52:48
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.ui.tests/src/org/rubypeople/rdt/internal/ui/rubyeditor In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24462/src/org/rubypeople/rdt/internal/ui/rubyeditor Added Files: TS_InternalUiRubyEditor.java Log Message: Organize tests for consistency. Found a few TCs that weren't being called for the main suite. --- NEW FILE: TS_InternalUiRubyEditor.java --- package org.rubypeople.rdt.internal.ui.rubyeditor; import junit.framework.TestSuite; public class TS_InternalUiRubyEditor { public static TestSuite suite() { TestSuite suite = new TestSuite("org.rubypeople.rdt.internal.ui.rubyeditor"); suite.addTestSuite(TC_TabExpander.class); return suite; } } |
|
From: David C. <dc...@us...> - 2005-10-16 23:52:48
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.ui.tests/src/org/rubypeople/rdt/internal/ui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24462/src/org/rubypeople/rdt/internal/ui Added Files: TS_InternalUi.java Removed Files: TS_UiTests.java Log Message: Organize tests for consistency. Found a few TCs that weren't being called for the main suite. --- TS_UiTests.java DELETED --- --- NEW FILE: TS_InternalUi.java --- package org.rubypeople.rdt.internal.ui; import junit.framework.Test; import junit.framework.TestSuite; public class TS_InternalUi { public static Test suite() { TestSuite suite = new TestSuite("org.rubypeople.rdt.internal.ui"); suite.addTestSuite(TC_RubyViewerFilter.class); suite.addTestSuite(TC_StackTraceLine.class); suite.addTestSuite(TC_ResourceAdapterFactory.class); suite.addTestSuite(TC_RubyFileMatcher.class); return suite; } } |
|
From: David C. <dc...@us...> - 2005-10-16 23:52:47
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.ui.tests/src/org/rubypeople/rdt/ui/tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24462/src/org/rubypeople/rdt/ui/tests Added Files: TS_Ui.java Log Message: Organize tests for consistency. Found a few TCs that weren't being called for the main suite. --- NEW FILE: TS_Ui.java --- package org.rubypeople.rdt.ui.tests; import junit.framework.Test; import junit.framework.TestSuite; import org.rubypeople.rdt.internal.ui.TS_InternalUi; import org.rubypeople.rdt.internal.ui.rubyeditor.TS_InternalUiRubyEditor; import org.rubypeople.rdt.internal.ui.text.TS_InternalUiText; public class TS_Ui { public static Test suite() { TestSuite suite = new TestSuite("org.rubypeople.rdt.ui.tests"); suite.addTest(TS_InternalUi.suite()); suite.addTest(TS_InternalUiRubyEditor.suite()); suite.addTest(TS_InternalUiText.suite()); return suite; } } |
|
From: David C. <dc...@us...> - 2005-10-16 23:52:43
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.launching.tests/src/org/rubypeople/rdt/launching In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24446/src/org/rubypeople/rdt/launching Log Message: Directory /cvsroot/rubyeclipse/org.rubypeople.rdt.launching.tests/src/org/rubypeople/rdt/launching added to the repository |
|
From: David C. <dc...@us...> - 2005-10-16 23:52:43
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.launching.tests/src/org/rubypeople/rdt/launching/tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24446/src/org/rubypeople/rdt/launching/tests Log Message: Directory /cvsroot/rubyeclipse/org.rubypeople.rdt.launching.tests/src/org/rubypeople/rdt/launching/tests added to the repository |
|
From: David C. <dc...@us...> - 2005-10-16 23:52:39
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.debug.ui.tests/src/org/rubypeople/rdt/internal/debug/ui/launcher In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24415/src/org/rubypeople/rdt/internal/debug/ui/launcher Log Message: Directory /cvsroot/rubyeclipse/org.rubypeople.rdt.debug.ui.tests/src/org/rubypeople/rdt/internal/debug/ui/launcher added to the repository |
|
From: David C. <dc...@us...> - 2005-10-16 23:52:39
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.debug.ui.tests/src/org/rubypeople/rdt/debug/ui/tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24415/src/org/rubypeople/rdt/debug/ui/tests Log Message: Directory /cvsroot/rubyeclipse/org.rubypeople.rdt.debug.ui.tests/src/org/rubypeople/rdt/debug/ui/tests added to the repository |
|
From: David C. <dc...@us...> - 2005-10-16 23:52:38
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.debug.ui.tests/src/org/rubypeople/rdt/debug/ui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24415/src/org/rubypeople/rdt/debug/ui Log Message: Directory /cvsroot/rubyeclipse/org.rubypeople.rdt.debug.ui.tests/src/org/rubypeople/rdt/debug/ui added to the repository |
|
From: David C. <dc...@us...> - 2005-10-16 23:52:38
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.debug.ui.tests/src/org/rubypeople/rdt/debug In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24415/src/org/rubypeople/rdt/debug Log Message: Directory /cvsroot/rubyeclipse/org.rubypeople.rdt.debug.ui.tests/src/org/rubypeople/rdt/debug added to the repository |
|
From: David C. <dc...@us...> - 2005-10-16 23:52:33
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.ui.tests/src/org/rubypeople/rdt/ui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24391/src/org/rubypeople/rdt/ui Log Message: Directory /cvsroot/rubyeclipse/org.rubypeople.rdt.ui.tests/src/org/rubypeople/rdt/ui added to the repository |
|
From: David C. <dc...@us...> - 2005-10-16 23:52:33
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.ui.tests/src/org/rubypeople/rdt/ui/tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24391/src/org/rubypeople/rdt/ui/tests Log Message: Directory /cvsroot/rubyeclipse/org.rubypeople.rdt.ui.tests/src/org/rubypeople/rdt/ui/tests added to the repository |
|
From: David C. <dc...@us...> - 2005-10-16 21:02:26
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/symbols In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23517/src/org/rubypeople/rdt/internal/core/symbols Modified Files: SymbolIndex.java Log Message: Refactored setting debug flags. Index: SymbolIndex.java =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/symbols/SymbolIndex.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** SymbolIndex.java 16 Oct 2005 19:05:45 -0000 1.4 --- SymbolIndex.java 16 Oct 2005 21:02:16 -0000 1.5 *************** *** 26,29 **** --- 26,30 ---- private Map index = Collections.synchronizedMap(new HashMap()); + private static boolean verbose; public void add(ClassSymbol symbol, Location location) { *************** *** 65,68 **** --- 66,77 ---- } + public static void setVerbose(boolean verbose) { + SymbolIndex.verbose = verbose; + } + + public static boolean isVerbose() { + return verbose; + } + } |
|
From: David C. <dc...@us...> - 2005-10-16 21:02:24
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.core/src/org/rubypeople/rdt/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23517/src/org/rubypeople/rdt/core Modified Files: RubyCore.java Log Message: Refactored setting debug flags. Index: RubyCore.java =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.core/src/org/rubypeople/rdt/core/RubyCore.java,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** RubyCore.java 16 Oct 2005 19:03:41 -0000 1.18 --- RubyCore.java 16 Oct 2005 21:02:16 -0000 1.19 *************** *** 53,56 **** --- 53,62 ---- public final static String PLUGIN_ID = "org.rubypeople.rdt.core"; + + private static final String RUBY_PARSER_DEBUG_OPTION = RubyCore.PLUGIN_ID + "/rubyparser"; + + private static final String MODEL_MANAGER_VERBOSE_OPTION = RubyCore.PLUGIN_ID + "/modelmanager"; + + private static final String SYMBOL_INDEX_VERBOSE_OPTION = RubyCore.PLUGIN_ID + "/symbolIndex"; public final static String NATURE_ID = PLUGIN_ID + ".rubynature"; *************** *** 204,213 **** ((IEclipsePreferences) getDefaultPreferences().parent()).addNodeChangeListener(listener); ! 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"); IndexUpdater indexUpdater = new IndexUpdater(symbolIndex); --- 210,216 ---- ((IEclipsePreferences) getDefaultPreferences().parent()).addNodeChangeListener(listener); ! RubyParser.setDebugging(isDebugOptionTrue(RUBY_PARSER_DEBUG_OPTION)); ! RubyModelManager.setVerbose(isDebugOptionTrue(MODEL_MANAGER_VERBOSE_OPTION)); ! SymbolIndex.setVerbose(isDebugOptionTrue(SYMBOL_INDEX_VERBOSE_OPTION)); IndexUpdater indexUpdater = new IndexUpdater(symbolIndex); *************** *** 216,219 **** --- 219,228 ---- } + private boolean isDebugOptionTrue(String option) { + String optionText = Platform.getDebugOption(option); + return optionText == null + ? false : optionText.equalsIgnoreCase("true"); + } + public static boolean upgradeOldProjects() throws CoreException { boolean projectUpgraded = false; |
|
From: David C. <dc...@us...> - 2005-10-16 21:02:24
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23517/src/org/rubypeople/rdt/internal/core Modified Files: RubyModelManager.java Openable.java Log Message: Refactored setting debug flags. Index: Openable.java =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/Openable.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** Openable.java 11 Mar 2005 03:09:26 -0000 1.5 --- Openable.java 16 Oct 2005 21:02:16 -0000 1.6 *************** *** 220,224 **** protected void generateInfos(Object info, HashMap newElements, IProgressMonitor monitor) throws RubyModelException { ! if (RubyModelManager.VERBOSE) { String element; switch (getElementType()) { --- 220,224 ---- protected void generateInfos(Object info, HashMap newElements, IProgressMonitor monitor) throws RubyModelException { ! if (RubyModelManager.isVerbose()) { String element; switch (getElementType()) { *************** *** 258,262 **** RubyModelManager.getRubyModelManager().getElementsOutOfSynchWithBuffers().remove(this); ! if (RubyModelManager.VERBOSE) { System.out.println(RubyModelManager.getRubyModelManager().cache.toStringFillingRation("-> ")); //$NON-NLS-1$ } --- 258,262 ---- RubyModelManager.getRubyModelManager().getElementsOutOfSynchWithBuffers().remove(this); ! if (RubyModelManager.isVerbose()) { System.out.println(RubyModelManager.getRubyModelManager().cache.toStringFillingRation("-> ")); //$NON-NLS-1$ } Index: RubyModelManager.java =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/RubyModelManager.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** RubyModelManager.java 4 Mar 2005 13:54:47 -0000 1.3 --- RubyModelManager.java 16 Oct 2005 21:02:16 -0000 1.4 *************** *** 74,78 **** protected Map perWorkingCopyInfos = new HashMap(5); ! public static boolean VERBOSE = false; public static boolean CP_RESOLVE_VERBOSE = false; --- 74,78 ---- protected Map perWorkingCopyInfos = new HashMap(5); ! private static boolean verbose = false; public static boolean CP_RESOLVE_VERBOSE = false; *************** *** 448,450 **** --- 448,458 ---- } } + + public static void setVerbose(boolean verbose) { + RubyModelManager.verbose = verbose; + } + + public static boolean isVerbose() { + return verbose; + } } |
|
From: David C. <dc...@us...> - 2005-10-16 21:02:21
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23501/src/org/rubypeople/rdt/internal/ui Modified Files: ProjectUpgradeListener.java Log Message: Refactored setting debug flags. Index: ProjectUpgradeListener.java =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/ProjectUpgradeListener.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ProjectUpgradeListener.java 16 Oct 2005 19:03:37 -0000 1.1 --- ProjectUpgradeListener.java 16 Oct 2005 21:02:11 -0000 1.2 *************** *** 59,68 **** private boolean isProject(IResourceDelta child) { Object project = child.getResource().getAdapter(IProject.class); ! boolean isProject = project != null; ! return isProject; } - private boolean isRootPath(IResourceChangeEvent event) { - return event.getDelta().getFullPath().equals(new Path("/")); - } - } \ No newline at end of file --- 59,64 ---- private boolean isProject(IResourceDelta child) { Object project = child.getResource().getAdapter(IProject.class); ! return project != null; } + } |
|
From: David C. <dc...@us...> - 2005-10-16 19:06:02
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/symbols In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31743/src/org/rubypeople/rdt/internal/core/symbols Modified Files: SymbolIndex.java Log Message: Synchronize SymbolIndex for safety. Index: SymbolIndex.java =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/symbols/SymbolIndex.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** SymbolIndex.java 13 Oct 2005 23:56:07 -0000 1.3 --- SymbolIndex.java 16 Oct 2005 19:05:45 -0000 1.4 *************** *** 25,29 **** public class SymbolIndex { ! private Map index = new HashMap(); public void add(ClassSymbol symbol, Location location) { Set locations = (Set) index.get(symbol); --- 25,30 ---- public class SymbolIndex { ! private Map index = Collections.synchronizedMap(new HashMap()); ! public void add(ClassSymbol symbol, Location location) { Set locations = (Set) index.get(symbol); *************** *** 48,62 **** public void flush(IPath foo_path) { // flush only relevant bits ! for (Iterator indexIter = index.entrySet().iterator(); indexIter.hasNext();) { ! Map.Entry entry = (Map.Entry) indexIter.next(); ! Set locations = (Set) entry.getValue(); ! ! for (Iterator locationIter = locations.iterator(); locationIter.hasNext();) { ! Location location = (Location) locationIter.next(); ! locationIter.remove(); } - - if (locations.isEmpty()) - indexIter.remove(); } } --- 49,65 ---- public void flush(IPath foo_path) { // flush only relevant bits ! synchronized (index) { ! for (Iterator indexIter = index.entrySet().iterator(); indexIter.hasNext();) { ! Map.Entry entry = (Map.Entry) indexIter.next(); ! Set locations = (Set) entry.getValue(); ! ! for (Iterator locationIter = locations.iterator(); locationIter.hasNext();) { ! Location location = (Location) locationIter.next(); ! locationIter.remove(); ! } ! ! if (locations.isEmpty()) ! indexIter.remove(); } } } |
|
From: David C. <dc...@us...> - 2005-10-16 19:03:50
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.core/src/org/rubypeople/rdt/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31086/src/org/rubypeople/rdt/core Modified Files: RubyCore.java Log Message: Refactored Listener for project opener. Index: RubyCore.java =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.core/src/org/rubypeople/rdt/core/RubyCore.java,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** RubyCore.java 16 Oct 2005 17:29:21 -0000 1.17 --- RubyCore.java 16 Oct 2005 19:03:41 -0000 1.18 *************** *** 1,6 **** /* ! * Author: David Corbin * ! * Copyright (c) 2005 RubyPeople. * * This file is part of the Ruby Development Tools (RDT) plugin for eclipse. --- 1,6 ---- /* ! * Author: * ! * Copyright (c) 2003-2005 RubyPeople. * * This file is part of the Ruby Development Tools (RDT) plugin for eclipse. *************** *** 208,212 **** String modelManagerOption = Platform.getDebugOption(RubyCore.PLUGIN_ID + "/modelmanager"); ! RubyModelManager.VERBOSE = modelManagerOption == null ? false : rubyParserOption.equalsIgnoreCase("true"); IndexUpdater indexUpdater = new IndexUpdater(symbolIndex); --- 208,213 ---- String modelManagerOption = Platform.getDebugOption(RubyCore.PLUGIN_ID + "/modelmanager"); ! RubyModelManager.VERBOSE = modelManagerOption == null ! ? false : rubyParserOption.equalsIgnoreCase("true"); IndexUpdater indexUpdater = new IndexUpdater(symbolIndex); *************** *** 227,231 **** public static boolean upgradeOldProject(IProject project) throws CoreException { ! IRubyProject rubyProject = RubyModelManager.getRubyModelManager().getRubyModel().getRubyProject(project); if (rubyProject != null) return rubyProject.upgrade(); --- 228,234 ---- public static boolean upgradeOldProject(IProject project) throws CoreException { ! RubyModelManager rubyModelManager = RubyModelManager.getRubyModelManager(); ! RubyModel rubyModel = rubyModelManager.getRubyModel(); ! IRubyProject rubyProject = rubyModel.getRubyProject(project); if (rubyProject != null) return rubyProject.upgrade(); |
|
From: David C. <dc...@us...> - 2005-10-16 19:03:46
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31047/src/org/rubypeople/rdt/internal/ui Modified Files: RubyPlugin.java Added Files: ProjectUpgradeListener.java Log Message: Refactored Listener for project opener. Index: RubyPlugin.java =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/RubyPlugin.java,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** RubyPlugin.java 1 Oct 2005 23:10:44 -0000 1.15 --- RubyPlugin.java 16 Oct 2005 19:03:37 -0000 1.16 *************** *** 1,10 **** package org.rubypeople.rdt.internal.ui; - import org.eclipse.core.internal.events.ResourceChangeEvent; import org.eclipse.core.resources.IFile; import org.eclipse.core.resources.IResource; - import org.eclipse.core.resources.IResourceChangeEvent; - import org.eclipse.core.resources.IResourceChangeListener; - import org.eclipse.core.resources.IResourceDelta; import org.eclipse.core.resources.IWorkspace; import org.eclipse.core.resources.ResourcesPlugin; --- 1,14 ---- + /* + * Copyright (c) 2003-2005 RubyPeople. + * + * This file is part of the Ruby Development Tools (RDT) plugin for eclipse. + * RDT is subject to the "Common Public License (CPL) v 1.0". You may not use + * RDT except in compliance with the License. For further information see + * org.rubypeople.rdt/rdt.license. + */ package org.rubypeople.rdt.internal.ui; import org.eclipse.core.resources.IFile; import org.eclipse.core.resources.IResource; import org.eclipse.core.resources.IWorkspace; import org.eclipse.core.resources.ResourcesPlugin; *************** *** 12,16 **** import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.IStatus; - import org.eclipse.core.runtime.Path; import org.eclipse.core.runtime.Platform; import org.eclipse.core.runtime.Status; --- 16,19 ---- *************** *** 128,149 **** }); ! ResourcesPlugin.getWorkspace().addResourceChangeListener(new IResourceChangeListener() { ! ! public void resourceChanged(IResourceChangeEvent event) { ! int eventType = event.getType(); ! if (eventType == ResourceChangeEvent.POST_CHANGE) { ! IResourceDelta delta = event.getDelta(); ! int deltaKind = delta.getKind(); ! if (deltaKind == IResourceDelta.CHANGED && event.getResource() == null && event.getDelta().getFullPath().equals(new Path("/"))) ! upgradeOldProjects(); ! } ! ! }}); upgradeOldProjects(); String generateRdocOption = Platform.getDebugOption(RubyPlugin.PLUGIN_ID + "/generaterdoc"); RDocUtility.setDebugging(generateRdocOption == null ? false : generateRdocOption.equalsIgnoreCase("true")); } ! private void upgradeOldProjects() { Job job = new Job("Upgrade Old Ruby Projects") { --- 131,145 ---- }); ! listenForNewProjects(); upgradeOldProjects(); String generateRdocOption = Platform.getDebugOption(RubyPlugin.PLUGIN_ID + "/generaterdoc"); RDocUtility.setDebugging(generateRdocOption == null ? false : generateRdocOption.equalsIgnoreCase("true")); } + + private void listenForNewProjects() { + ResourcesPlugin.getWorkspace().addResourceChangeListener(new ProjectUpgradeListener(this)); + } ! void upgradeOldProjects() { Job job = new Job("Upgrade Old Ruby Projects") { --- NEW FILE: ProjectUpgradeListener.java --- /* * Author: David Corbin * * Copyright (c) 2005 RubyPeople. * * This file is part of the Ruby Development Tools (RDT) plugin for eclipse. * RDT is subject to the "Common Public License (CPL) v 1.0". You may not use * RDT except in compliance with the License. For further information see * org.rubypeople.rdt/rdt.license. */ package org.rubypeople.rdt.internal.ui; import org.eclipse.core.internal.events.ResourceChangeEvent; import org.eclipse.core.resources.IProject; import org.eclipse.core.resources.IResourceChangeEvent; import org.eclipse.core.resources.IResourceChangeListener; import org.eclipse.core.resources.IResourceDelta; import org.eclipse.core.runtime.Path; final class ProjectUpgradeListener implements IResourceChangeListener { private final RubyPlugin plugin; public ProjectUpgradeListener(RubyPlugin plugin) { this.plugin = plugin; } public void resourceChanged(IResourceChangeEvent event) { if (event.getType() == ResourceChangeEvent.POST_CHANGE) { handlePostChangeEvent(event); } } private void handlePostChangeEvent(IResourceChangeEvent event) { IResourceDelta delta = event.getDelta(); // System.out.println(delta.getKind()+"; prp=" // + delta.getProjectRelativePath()+"; res=" // +delta.getResource() + "; fullpath"+ // delta.getFullPath() ); // IResourceDelta[] children = delta.getAffectedChildren(); // for (int i=0; i < children.length; i++) { // System.out.println(" "+children[i].getResource()); // } if ((delta.getKind() == IResourceDelta.CHANGED)) { handleDeltaChange(delta); } } private void handleDeltaChange(IResourceDelta delta) { IResourceDelta[] deltas = delta.getAffectedChildren(); for (int i=0; i<deltas.length; i++) { if (isProject(deltas[i])) { plugin.upgradeOldProjects(); return; } } } private boolean isProject(IResourceDelta child) { Object project = child.getResource().getAdapter(IProject.class); boolean isProject = project != null; return isProject; } private boolean isRootPath(IResourceChangeEvent event) { return event.getDelta().getFullPath().equals(new Path("/")); } } |
|
From: David C. <dc...@us...> - 2005-10-16 17:29:34
|
Update of /cvsroot/rubyeclipse/org.rubypeople.eclipse.shams/src/org/rubypeople/eclipse/shams/resources In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12845/src/org/rubypeople/eclipse/shams/resources Modified Files: ShamResource.java ShamProject.java Added Files: ShamResourceProxy.java Log Message: Index all projects on plugin (eclipse) start. Index: ShamProject.java =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.eclipse.shams/src/org/rubypeople/eclipse/shams/resources/ShamProject.java,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** ShamProject.java 13 Jul 2005 14:29:45 -0000 1.10 --- ShamProject.java 16 Oct 2005 17:29:26 -0000 1.11 *************** *** 1,2 **** --- 1,12 ---- + /* + * Author: David Corbin + * + * Copyright (c) 2005 RubyPeople. + * + * This file is part of the Ruby Development Tools (RDT) plugin for eclipse. + * RDT is subject to the "Common Public License (CPL) v 1.0". You may not use + * RDT except in compliance with the License. For further information see + * org.rubypeople.rdt/rdt.license. + */ package org.rubypeople.eclipse.shams.resources; *************** *** 342,344 **** --- 352,355 ---- + } Index: ShamResource.java =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.eclipse.shams/src/org/rubypeople/eclipse/shams/resources/ShamResource.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** ShamResource.java 13 Jul 2005 14:29:45 -0000 1.7 --- ShamResource.java 16 Oct 2005 17:29:26 -0000 1.8 *************** *** 1,4 **** --- 1,19 ---- + /* + * Author: David Corbin + * + * Copyright (c) 2005 RubyPeople. + * + * This file is part of the Ruby Development Tools (RDT) plugin for eclipse. + * RDT is subject to the "Common Public License (CPL) v 1.0". You may not use + * RDT except in compliance with the License. For further information see + * org.rubypeople.rdt/rdt.license. + */ package org.rubypeople.eclipse.shams.resources; + import java.util.Collection; + import java.util.Iterator; + + import junit.framework.Assert; + import org.eclipse.core.resources.IContainer; import org.eclipse.core.resources.IMarker; *************** *** 18,21 **** --- 33,40 ---- public class ShamResource implements IResource { protected IPath path; + private boolean acceptCalled; + private IResourceProxyVisitor proxyVisitorArg; + private int flagsArg; + private Collection resourcesToVisit; public ShamResource(IPath aPath) { *************** *** 223,231 **** throw new RuntimeException("Need to implement on sham."); } ! /* (non-Javadoc) ! * @see org.eclipse.core.resources.IResource#accept(org.eclipse.core.resources.IResourceProxyVisitor, int) ! */ ! public void accept(IResourceProxyVisitor arg0, int arg1) throws CoreException { ! throw new RuntimeException("Need to implement on sham."); } --- 242,265 ---- throw new RuntimeException("Need to implement on sham."); } ! ! public void setResourcesToVisit(Collection resourcesToVisit) { ! this.resourcesToVisit = resourcesToVisit; ! } ! ! public void assertAcceptCalled(IResourceProxyVisitor expectedVisitor, int expectedFlags) { ! Assert.assertTrue("expected call to accept", acceptCalled); ! Assert.assertEquals("visitor", expectedVisitor, proxyVisitorArg); ! Assert.assertEquals("flags", expectedFlags, flagsArg); ! } ! ! public void accept(IResourceProxyVisitor visitor, int flags) throws CoreException { ! proxyVisitorArg = visitor; ! flagsArg = flags; ! for (Iterator iter = resourcesToVisit.iterator(); iter.hasNext();) { ! IResource resource = (IResource) iter.next(); ! visitor.visit(new ShamResourceProxy(resource)); ! ! } ! acceptCalled = true; } *************** *** 258,263 **** public void setResourceAttributes(ResourceAttributes attributes) throws CoreException { // TODO Auto-generated method stub - } } --- 292,300 ---- public void setResourceAttributes(ResourceAttributes attributes) throws CoreException { // TODO Auto-generated method stub } + + public String toString() { + return "Resource [" + path + "]"; + } } --- NEW FILE: ShamResourceProxy.java --- /* * Author: David Corbin * * Copyright (c) 2005 RubyPeople. * * This file is part of the Ruby Development Tools (RDT) plugin for eclipse. * RDT is subject to the "Common Public License (CPL) v 1.0". You may not use * RDT except in compliance with the License. For further information see * org.rubypeople.rdt/rdt.license. */ package org.rubypeople.eclipse.shams.resources; import org.eclipse.core.resources.IResource; import org.eclipse.core.resources.IResourceProxy; import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IPath; import org.eclipse.core.runtime.QualifiedName; public class ShamResourceProxy implements IResourceProxy { private IResource resource; public ShamResourceProxy(IResource resource) { this.resource = resource; } public long getModificationStamp() { return resource.getModificationStamp(); } public boolean isAccessible() { return resource.isAccessible(); } public boolean isDerived() { return resource.isDerived(); } public boolean isLinked() { return resource.isLinked(); } public boolean isPhantom() { return resource.isPhantom(); } public boolean isTeamPrivateMember() { return resource.isTeamPrivateMember(); } public String getName() { return resource.getName(); } public Object getSessionProperty(QualifiedName key) { try { return resource.getSessionProperty(key); } catch (CoreException e) { throw new RuntimeException(e); } } public int getType() { return resource.getType(); } public IPath requestFullPath() { return resource.getFullPath(); } public IResource requestResource() { return resource; } } |
|
From: David C. <dc...@us...> - 2005-10-16 17:29:32
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.core/src/org/rubypeople/rdt/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12800/src/org/rubypeople/rdt/core Modified Files: RubyCore.java Log Message: Index all projects on plugin (eclipse) start. Index: RubyCore.java =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.core/src/org/rubypeople/rdt/core/RubyCore.java,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** RubyCore.java 13 Oct 2005 01:00:35 -0000 1.16 --- RubyCore.java 16 Oct 2005 17:29:21 -0000 1.17 *************** *** 1,6 **** --- 1,17 ---- + /* + * Author: David Corbin + * + * Copyright (c) 2005 RubyPeople. + * + * This file is part of the Ruby Development Tools (RDT) plugin for eclipse. + * RDT is subject to the "Common Public License (CPL) v 1.0". You may not use + * RDT except in compliance with the License. For further information see + * org.rubypeople.rdt/rdt.license. + */ package org.rubypeople.rdt.core; import java.io.File; import java.util.ArrayList; + import java.util.Arrays; import java.util.List; *************** *** 32,35 **** --- 43,48 ---- import org.rubypeople.rdt.internal.core.RubyProject; import org.rubypeople.rdt.internal.core.RubyScript; + import org.rubypeople.rdt.internal.core.builder.IndexUpdater; + import org.rubypeople.rdt.internal.core.builder.MassIndexUpdater; import org.rubypeople.rdt.internal.core.parser.RubyParser; import org.rubypeople.rdt.internal.core.symbols.SymbolIndex; *************** *** 197,200 **** --- 210,216 ---- RubyModelManager.VERBOSE = modelManagerOption == null ? false : rubyParserOption.equalsIgnoreCase("true"); + IndexUpdater indexUpdater = new IndexUpdater(symbolIndex); + MassIndexUpdater massUpdater = new MassIndexUpdater(indexUpdater); + massUpdater.update(Arrays.asList(getRubyProjects())); } |
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/builder In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12800/src/org/rubypeople/rdt/internal/core/builder Modified Files: ProjectFileFinder.java IndexUpdater.java IoUtils.java Added Files: MassIndexUpdater.java RubySourceFileCollectingVisitor.java Log Message: Index all projects on plugin (eclipse) start. Index: IoUtils.java =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/builder/IoUtils.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** IoUtils.java 13 Oct 2005 23:56:07 -0000 1.2 --- IoUtils.java 16 Oct 2005 17:29:21 -0000 1.3 *************** *** 1,12 **** /* ! ?* Author: David Corbin ! ?* ! ?* Copyright (c) 2005 RubyPeople. ! ?* ! ?* This file is part of the Ruby Development Tools (RDT) plugin for eclipse. * RDT is subject to the "Common Public License (CPL) v 1.0". You may not use * RDT except in compliance with the License. For further information see * org.rubypeople.rdt/rdt.license. ! ?*/ package org.rubypeople.rdt.internal.core.builder; --- 1,12 ---- /* ! * Author: David Corbin ! * ! * Copyright (c) 2005 RubyPeople. ! * ! * This file is part of the Ruby Development Tools (RDT) plugin for eclipse. * RDT is subject to the "Common Public License (CPL) v 1.0". You may not use * RDT except in compliance with the License. For further information see * org.rubypeople.rdt/rdt.license. ! */ package org.rubypeople.rdt.internal.core.builder; *************** *** 28,32 **** } ! static void closeQuietly(InputStream contents) { try { contents.close(); --- 28,32 ---- } ! public static void closeQuietly(InputStream contents) { try { contents.close(); Index: IndexUpdater.java =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/builder/IndexUpdater.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** IndexUpdater.java 13 Oct 2005 23:56:06 -0000 1.4 --- IndexUpdater.java 16 Oct 2005 17:29:21 -0000 1.5 *************** *** 1,12 **** /* ! ?* Author: David Corbin ! ?* ! ?* Copyright (c) 2005 RubyPeople. ! ?* ! ?* This file is part of the Ruby Development Tools (RDT) plugin for eclipse. * RDT is subject to the "Common Public License (CPL) v 1.0". You may not use * RDT except in compliance with the License. For further information see * org.rubypeople.rdt/rdt.license. ! ?*/ package org.rubypeople.rdt.internal.core.builder; --- 1,12 ---- /* ! * Author: David Corbin ! * ! * Copyright (c) 2005 RubyPeople. ! * ! * This file is part of the Ruby Development Tools (RDT) plugin for eclipse. * RDT is subject to the "Common Public License (CPL) v 1.0". You may not use * RDT except in compliance with the License. For further information see * org.rubypeople.rdt/rdt.license. ! */ package org.rubypeople.rdt.internal.core.builder; Index: ProjectFileFinder.java =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/builder/ProjectFileFinder.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ProjectFileFinder.java 13 Oct 2005 23:56:07 -0000 1.2 --- ProjectFileFinder.java 16 Oct 2005 17:29:21 -0000 1.3 *************** *** 1,12 **** /* ! ?* Author: David Corbin ! ?* ! ?* Copyright (c) 2005 RubyPeople. ! ?* ! ?* This file is part of the Ruby Development Tools (RDT) plugin for eclipse. * RDT is subject to the "Common Public License (CPL) v 1.0". You may not use * RDT except in compliance with the License. For further information see * org.rubypeople.rdt/rdt.license. ! ?*/ --- 1,12 ---- /* ! * Author: David Corbin ! * ! * Copyright (c) 2005 RubyPeople. ! * ! * This file is part of the Ruby Development Tools (RDT) plugin for eclipse. * RDT is subject to the "Common Public License (CPL) v 1.0". You may not use * RDT except in compliance with the License. For further information see * org.rubypeople.rdt/rdt.license. ! */ *************** *** 18,23 **** import org.eclipse.core.resources.IProject; import org.eclipse.core.resources.IResource; - import org.eclipse.core.resources.IResourceProxy; - import org.eclipse.core.resources.IResourceProxyVisitor; import org.eclipse.core.runtime.CoreException; --- 18,21 ---- *************** *** 36,54 **** protected void addAllSourceFiles(final List sourceFiles) throws CoreException { ! project.accept(new IResourceProxyVisitor() { ! ! public boolean visit(IResourceProxy proxy) throws CoreException { ! IResource resource = null; ! switch (proxy.getType()) { ! case IResource.FILE: ! if (org.rubypeople.rdt.internal.core.util.Util.isRubyLikeFileName(proxy.getName())) { ! if (resource == null) resource = proxy.requestResource(); ! sourceFiles.add(resource); ! } ! return false; ! } ! return true; ! } ! }, IResource.NONE); } --- 34,38 ---- protected void addAllSourceFiles(final List sourceFiles) throws CoreException { ! project.accept(new RubySourceFileCollectingVisitor(sourceFiles), IResource.NONE); } --- NEW FILE: MassIndexUpdater.java --- /* * Author: David Corbin * * Copyright (c) 2005 RubyPeople. * * This file is part of the Ruby Development Tools (RDT) plugin for eclipse. * RDT is subject to the "Common Public License (CPL) v 1.0". You may not use * RDT except in compliance with the License. For further information see * org.rubypeople.rdt/rdt.license. */ package org.rubypeople.rdt.internal.core.builder; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import org.eclipse.core.resources.IFile; import org.eclipse.core.resources.IProject; import org.eclipse.core.runtime.CoreException; import org.jruby.ast.Node; import org.rubypeople.rdt.core.RubyCore; import org.rubypeople.rdt.internal.core.parser.RubyParser; public class MassIndexUpdater { private final IndexUpdater updater; private final RubyParser parser; public MassIndexUpdater(IndexUpdater updater, RubyParser parser) { this.updater = updater; this.parser = parser; } public MassIndexUpdater(IndexUpdater indexUpdater) { this(indexUpdater, new RubyParser()); } public void update(List projects) { try { List files = findFiles(projects); processFiles(files); } catch (CoreException e) { RubyCore.log(e); } } private void processFiles(List files) { for (Iterator iter = files.iterator(); iter.hasNext();) { IFile file = (IFile) iter.next(); processFile(file); } } private void processFile(IFile file) { try { Node node = parser.parse(file); updater.update(file, node); } catch (CoreException e) { RubyCore.log(e); } } private List findFiles(List projects) throws CoreException { List files = new ArrayList(); RubySourceFileCollectingVisitor visitor = new RubySourceFileCollectingVisitor(files); for (Iterator iter = projects.iterator(); iter.hasNext();) { IProject project = (IProject) iter.next(); project.accept(visitor, 0); } return files; } } --- NEW FILE: RubySourceFileCollectingVisitor.java --- /* * Author: David Corbin * * Copyright (c) 2005 RubyPeople. * * This file is part of the Ruby Development Tools (RDT) plugin for eclipse. * RDT is subject to the "Common Public License (CPL) v 1.0". You may not use * RDT except in compliance with the License. For further information see * org.rubypeople.rdt/rdt.license. */ package org.rubypeople.rdt.internal.core.builder; import java.util.List; import org.eclipse.core.resources.IResource; import org.eclipse.core.resources.IResourceProxy; import org.eclipse.core.resources.IResourceProxyVisitor; import org.eclipse.core.runtime.CoreException; public final class RubySourceFileCollectingVisitor implements IResourceProxyVisitor { private final List files; public RubySourceFileCollectingVisitor(List files) { this.files = files; } public boolean visit(IResourceProxy proxy) throws CoreException { IResource resource = null; switch (proxy.getType()) { case IResource.FILE: if (org.rubypeople.rdt.internal.core.util.Util.isRubyLikeFileName(proxy.getName())) { if (resource == null) resource = proxy.requestResource(); files.add(resource); } return false; } return true; } public boolean equals(Object obj) { return obj.getClass().equals(getClass()); } public int hashCode() { return 0; } } |
|
From: David C. <dc...@us...> - 2005-10-16 17:29:29
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/util In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12800/src/org/rubypeople/rdt/internal/core/util Added Files: ListUtil.java Log Message: Index all projects on plugin (eclipse) start. --- NEW FILE: ListUtil.java --- /* * Author: David Corbin * * Copyright (c) 2005 RubyPeople. * * This file is part of the Ruby Development Tools (RDT) plugin for eclipse. * RDT is subject to the "Common Public License (CPL) v 1.0". You may not use * RDT except in compliance with the License. For further information see * org.rubypeople.rdt/rdt.license. */ package org.rubypeople.rdt.internal.core.util; import java.util.ArrayList; import java.util.List; public class ListUtil { public static List create(Object obj1, Object obj2) { ArrayList list = create(obj1); list.add(obj2); return list; } public static ArrayList create(Object obj1) { ArrayList list = new ArrayList(); list.add(obj1); return list; } } |