[Pydev-cvs] org.python.pydev .project,1.3,1.4 plugin.xml,1.18,1.19 .classpath,1.6,1.7
Brought to you by:
fabioz
From: Parhaum T. <dre...@us...> - 2004-06-21 21:36:38
|
Update of /cvsroot/pydev/org.python.pydev In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21826 Modified Files: .project plugin.xml .classpath Log Message: - Added JUnit test for editor actions that I've made or are related to ones I've made. This is something I need for my project that this is for, and in order to test things out like adding block comments, I had to revamp how they functioned to allow them to accept a mock Document as opposed to grabbing it from the Active Editor. This created the PySelection entity, which was basically being used anyway by many of the actions, which serves to accept a document input and make the proper selection given passed criteria. Since I didn't get a 'no' when I asked if the JUnit testing was ok, I assumed it wasn't a problem to put them in. I can revert them all back to their original form, if desired. - 2 new actions - ConvertTabToSpace and ConvertSpaceToTab, basically the user can select lines or none at all (to affect whole document) and convert tabs and tab-width-spaces back and forth - Plugin.xml adjusted to account for the new action - Skeleton help files added for new actions, TOC modified Index: .project =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/.project,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** .project 7 May 2004 02:07:18 -0000 1.3 --- .project 21 Jun 2004 21:36:29 -0000 1.4 *************** *** 4,13 **** <comment></comment> <projects> - <project>org.eclipse.core.boot</project> <project>org.eclipse.core.resources</project> - <project>org.eclipse.core.runtime</project> <project>org.eclipse.jdt.ui</project> <project>org.eclipse.ui</project> <project>org.eclipse.ui.views</project> </projects> <buildSpec> --- 4,12 ---- <comment></comment> <projects> <project>org.eclipse.core.resources</project> <project>org.eclipse.jdt.ui</project> <project>org.eclipse.ui</project> <project>org.eclipse.ui.views</project> + <project>org.pydev.jython</project> </projects> <buildSpec> Index: plugin.xml =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/plugin.xml,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** plugin.xml 11 Jun 2004 21:28:04 -0000 1.18 --- plugin.xml 21 Jun 2004 21:36:29 -0000 1.19 *************** *** 113,116 **** --- 113,130 ---- </action> <action + definitionId="org.python.pydev.editor.actions.convertSpaceToTab" + label="Convert space-tabs to tabs" + class="org.python.pydev.editor.actions.PyConvertSpaceToTab" + menubarPath="org.python.pydev.editor.actions.sourceMenu/whitespaceGroup" + id="org.python.pydev.editor.actions.convertSpaceToTab"> + </action> + <action + definitionId="org.python.pydev.editor.actions.convertTabToSpace" + label="Convert tabs to space-tabs" + class="org.python.pydev.editor.actions.PyConvertTabToSpace" + menubarPath="org.python.pydev.editor.actions.sourceMenu/whitespaceGroup" + id="org.python.pydev.editor.actions.convertTabToSpace"> + </action> + <action definitionId="org.python.pydev.editor.actions.stripTrailingWhitespace" label="Strip trailing whitespace" *************** *** 191,194 **** --- 205,220 ---- </menu> <action + label="Convert space-tabs to tabs" + class="org.python.pydev.editor.actions.PyConvertSpaceToTab" + menubarPath="org.python.pydev.editor.actions.editorPopup/whitespaceGroup" + id="org.python.pydev.editor.actions.convertSpaceToTab"> + </action> + <action + label="Convert tabs to space-tabs" + class="org.python.pydev.editor.actions.PyConvertTabToSpace" + menubarPath="org.python.pydev.editor.actions.editorPopup/whitespaceGroup" + id="org.python.pydev.editor.actions.convertTabToSpace"> + </action> + <action label="Strip trailing whitespace" class="org.python.pydev.editor.actions.PyStripTrailingWhitespace" *************** *** 288,291 **** --- 314,343 ---- configuration="org.eclipse.ui.defaultAcceleratorConfiguration"> </keyBinding> + <!-- command: space to tab--> + <command + name="Convert space-tabs to tabs" + description="Converts tab-width space groups to tabs from selected region or whole document if nothing selected" + category="org.python.pydev.ui.category.source" + id="org.python.pydev.editor.actions.convertSpaceToTab"> + </command> + <keyBinding + string="Shift+Ctrl+Tab" + scope="org.python.pydev.ui.editor.scope" + command="org.python.pydev.editor.actions.convertSpaceToTab" + configuration="org.eclipse.ui.defaultAcceleratorConfiguration"> + </keyBinding> + <!-- command: tab to space--> + <command + name="Convert tabs to space-tabs" + description="Converts tabs to tab-width space groups from selected region or whole document if nothing selected" + category="org.python.pydev.ui.category.source" + id="org.python.pydev.editor.actions.convertTabToSpace"> + </command> + <keyBinding + string="Ctrl+Tab" + scope="org.python.pydev.ui.editor.scope" + command="org.python.pydev.editor.actions.convertTabToSpace" + configuration="org.eclipse.ui.defaultAcceleratorConfiguration"> + </keyBinding> <!-- command: whitespace--> <command Index: .classpath =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/.classpath,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** .classpath 10 Apr 2004 02:06:27 -0000 1.6 --- .classpath 21 Jun 2004 21:36:29 -0000 1.7 *************** *** 1,7 **** <?xml version="1.0" encoding="UTF-8"?> <classpath> ! <classpathentry kind="src" path="src/"/> ! <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> --- 1,8 ---- <?xml version="1.0" encoding="UTF-8"?> <classpath> ! <classpathentry exported="true" kind="con" path="org.eclipse.pde.core.requiredPlugins"/> ! <classpathentry kind="src" path="src/"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> + <classpathentry kind="lib" path="C:/eclipse2.1.3/plugins/org.junit_3.8.1/junit.jar"/> <classpathentry kind="output" path="bin"/> </classpath> |