texeclipse-cvs Mailing List for TeXeclipse
Status: Planning
Brought to you by:
sba
You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(21) |
Oct
|
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(4) |
Sep
|
Oct
|
Nov
|
Dec
|
From: Sebastian B. <sb...@us...> - 2004-08-28 11:36:37
|
Update of /cvsroot/texeclipse/net.sourceforge.texeclipse In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18742 Modified Files: .project Log Message: Updated to 3.0 Index: .project =================================================================== RCS file: /cvsroot/texeclipse/net.sourceforge.texeclipse/.project,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- .project 19 Sep 2003 11:49:40 -0000 1.3 +++ .project 28 Aug 2004 11:36:28 -0000 1.4 @@ -3,8 +3,6 @@ <name>net.sourceforge.texeclipse</name> <comment></comment> <projects> - <project>org.eclipse.swt</project> - <project>org.eclipse.swt.win32</project> </projects> <buildSpec> <buildCommand> |
From: Sebastian B. <sb...@us...> - 2004-08-28 11:36:16
|
Update of /cvsroot/texeclipse/net.sourceforge.texeclipse In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18693 Modified Files: plugin.xml Log Message: Updated to 3.0 Index: plugin.xml =================================================================== RCS file: /cvsroot/texeclipse/net.sourceforge.texeclipse/plugin.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- plugin.xml 19 Sep 2003 11:49:40 -0000 1.2 +++ plugin.xml 28 Aug 2004 11:36:07 -0000 1.3 @@ -1,4 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> +<?eclipse version="3.0"?> <plugin id="net.sourceforge.texeclipse" name="Texeclipse Plug-in" @@ -10,6 +11,12 @@ <library name="texeclipse.jar"/> </runtime> <requires> + <import plugin="org.eclipse.core.runtime.compatibility"/> + <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"/> <import plugin="org.eclipse.team.core"/> |
From: Sebastian B. <sb...@us...> - 2004-08-28 11:35:55
|
Update of /cvsroot/texeclipse/net.sourceforge.texeclipse In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18591 Removed Files: .classpath-win32-2.1.1 Log Message: No longer needed --- .classpath-win32-2.1.1 DELETED --- |
From: Sebastian B. <sb...@us...> - 2004-08-28 11:35:32
|
Update of /cvsroot/texeclipse/net.sourceforge.texeclipse In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18572 Added Files: .classpath Log Message: Updated to 3.0 --- NEW FILE: .classpath --- <?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> |
From: <sb...@us...> - 2003-09-29 19:54:32
|
Update of /cvsroot/texeclipse/net.sourceforge.texeclipse/src/net/sourceforge/texeclipse/builders In directory sc8-pr-cvs1:/tmp/cvs-serv23529/src/net/sourceforge/texeclipse/builders Modified Files: TexBuilder.java Added Files: TexVisitor.java Log Message: Added template for a TeX Verifier --- NEW FILE: TexVisitor.java --- /* * Created on 29.09.2003 * * To change the template for this generated file go to * Window>Preferences>Java>Code Generation>Code and Comments */ package net.sourceforge.texeclipse.builders; import org.eclipse.core.resources.IResource; import org.eclipse.core.resources.IResourceDelta; import org.eclipse.core.resources.IResourceDeltaVisitor; import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IProgressMonitor; /** * @author sba * * To change the template for this generated type comment go to * Window>Preferences>Java>Code Generation>Code and Comments */ public class TexVisitor implements IResourceDeltaVisitor { IProgressMonitor monitor; public TexVisitor(IProgressMonitor monitor) { this.monitor = monitor; } /* (non-Javadoc) * @see org.eclipse.core.resources.IResourceDeltaVisitor#visit(org.eclipse.core.resources.IResourceDelta) */ public boolean visit(IResourceDelta delta) throws CoreException { IResource resource = delta.getResource(); int resourceType = resource.getType(); switch (delta.getKind()) { case IResourceDelta.ADDED: if (resourceType == IResource.FILE) { monitor.worked(1); monitor.subTask("Adding: " + resource.getFullPath()); } break; case IResourceDelta.CHANGED : if (resourceType == IResource.FILE) { monitor.worked(1); monitor.subTask("Changing: " + resource.getFullPath()); } break; case IResourceDelta.REMOVED: if (resourceType == IResource.FILE) { monitor.worked(1); monitor.subTask("Removing: " + resource.getFullPath()); } break; } return true; } } Index: TexBuilder.java =================================================================== RCS file: /cvsroot/texeclipse/net.sourceforge.texeclipse/src/net/sourceforge/texeclipse/builders/TexBuilder.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- TexBuilder.java 19 Sep 2003 11:49:39 -0000 1.1 +++ TexBuilder.java 29 Sep 2003 19:54:28 -0000 1.2 @@ -1,6 +1,8 @@ package net.sourceforge.texeclipse.builders; import org.eclipse.core.resources.IProject; +import org.eclipse.core.resources.IResourceDelta; + import java.util.Map; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.CoreException; @@ -10,18 +12,31 @@ * TODO: Provide description for "TexBuilder". * @see IncrementalProjectBuilder */ -public class TexBuilder extends IncrementalProjectBuilder { +public class TexBuilder extends IncrementalProjectBuilder +{ /** - * TODO: Implement the "TexBuilder" constructor. */ - public TexBuilder() { + public TexBuilder() + { } /** - * TODO: Implement "build". * @see IncrementalProjectBuilder#build */ - protected IProject [] build(int kind, Map args, IProgressMonitor monitor) throws CoreException { + protected IProject [] build(int kind, Map args, IProgressMonitor monitor) throws CoreException + { + if (kind == IncrementalProjectBuilder.FULL_BUILD) + { + } else { // INCREMENTAL_BUILD or AUTO_BUILD + + IResourceDelta delta = getDelta(getProject()); + if (delta != null) + { + delta.accept(new TexVisitor(monitor)); + } + + } + monitor.done(); return null; } } |
From: <sb...@us...> - 2003-09-19 20:25:48
|
Update of /cvsroot/texeclipse/net.sourceforge.texeclipse In directory sc8-pr-cvs1:/tmp/cvs-serv24629/net.sourceforge.texeclipse Removed Files: .classpath Log Message: Removed...must be copied from a .classpath-* file --- .classpath DELETED --- |
From: <sb...@us...> - 2003-09-19 20:14:48
|
Update of /cvsroot/texeclipse/net.sourceforge.texeclipse In directory sc8-pr-cvs1:/tmp/cvs-serv23756 Added Files: .classpath-win32-2.1.1 Log Message: Added win32 eclipse 2.1.1 classpath --- NEW FILE: .classpath-win32-2.1.1 --- <?xml version="1.0" encoding="UTF-8"?> <classpath> <classpathentry kind="src" path="src/"/> <classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.core.resources_2.1.1/resources.jar" sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.core.resources_2.1.1/resourcessrc.zip"/> <classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.ui_2.1.1/ui.jar" sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.ui_2.1.1/uisrc.zip"/> <classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.text_2.1.0/text.jar" sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.text_2.1.0/textsrc.zip"/> <classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.jface_2.1.1/jface.jar" sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.jface_2.1.1/jfacesrc.zip"/> <classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.jface.text_2.1.0/jfacetext.jar" sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.jface.text_2.1.0/jfacetextsrc.zip"/> <classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.ui.views_2.1.0/views.jar" sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.ui.views_2.1.0/viewssrc.zip"/> <classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.ui.workbench_2.1.1/workbench.jar" sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.ui.workbench_2.1.1/workbenchsrc.zip"/> <classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.ui.win32_2.1.0/workbenchwin32.jar" sourcepath="ORG_ECLIPSE_PLATFORM_WIN32_SOURCE_SRC/org.eclipse.ui.win32_2.1.0/workbenchwin32src.zip"/> <classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.ui.workbench.texteditor_2.1.0/texteditor.jar" sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.ui.workbench.texteditor_2.1.0/texteditorsrc.zip"/> <classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.ui.editors_2.1.0/editors.jar" sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.ui.editors_2.1.0/editorssrc.zip"/> <classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.core.boot_2.1.1/boot.jar" sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.core.boot_2.1.1/bootsrc.zip"/> <classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.core.runtime_2.1.1/runtime.jar" sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.core.runtime_2.1.1/runtimesrc.zip"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> <classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.swt.win32_2.1.1/ws/win32/swt.jar"/> <classpathentry kind="output" path="bin"/> </classpath> |
From: <sb...@us...> - 2003-09-19 20:01:39
|
Update of /cvsroot/texeclipse/net.sourceforge.texeclipse In directory sc8-pr-cvs1:/tmp/cvs-serv24006 Modified Files: .project Log Message: Dont reference any projects Index: .project =================================================================== RCS file: /cvsroot/texeclipse/net.sourceforge.texeclipse/.project,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- .project 14 Sep 2003 22:49:52 -0000 1.1 +++ .project 19 Sep 2003 09:09:30 -0000 1.2 @@ -2,6 +2,8 @@ <projectDescription> <name>net.sourceforge.texeclipse</name> <comment></comment> + <projects> + </projects> <buildSpec> <buildCommand> <name>org.eclipse.jdt.core.javabuilder</name> |
From: <sb...@us...> - 2003-09-19 19:53:50
|
Update of /cvsroot/texeclipse/net.sourceforge.texeclipse/src/net/sourceforge/texeclipse In directory sc8-pr-cvs1:/tmp/cvs-serv19998/src/net/sourceforge/texeclipse Modified Files: TexProjectNature.java TexeclipsePlugin.java Log Message: Added a dummy Tex Builder class. Added tex and latex files to be known as ascii text as a team extension Index: TexProjectNature.java =================================================================== RCS file: /cvsroot/texeclipse/net.sourceforge.texeclipse/src/net/sourceforge/texeclipse/TexProjectNature.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- TexProjectNature.java 14 Sep 2003 22:49:52 -0000 1.1 +++ TexProjectNature.java 19 Sep 2003 11:49:40 -0000 1.2 @@ -1,7 +1,9 @@ package net.sourceforge.texeclipse; import org.eclipse.core.runtime.CoreException; +import org.eclipse.core.resources.ICommand; import org.eclipse.core.resources.IProject; +import org.eclipse.core.resources.IProjectDescription; import org.eclipse.core.resources.IProjectNature; /** @@ -13,27 +15,52 @@ IProject project; /** - * TODO: Implement the "TexProjectNature" constructor. */ public TexProjectNature() { } /** - * TODO: Implement "configure". * @see IProjectNature#configure */ - public void configure() throws CoreException { + public void configure() throws CoreException + { + // get project description and then the associated build commands + IProjectDescription desc = project.getDescription(); + ICommand[] commands = desc.getBuildSpec(); + + // determine if builder already associated + boolean found = false; + for (int i = 0; i < commands.length; ++i) { + if (commands[i].getBuilderName().equals(TexeclipsePlugin.TEX_BUILDER_ID)) + { + found = true; + break; + } + } + + // add builder if not already in project + if (!found) { + ICommand command = desc.newCommand(); + command.setBuilderName(TexeclipsePlugin.TEX_BUILDER_ID); + ICommand[] newCommands = new ICommand[commands.length + 1]; + + // Add it before other builders. + System.arraycopy(commands, 0, newCommands, 1, commands.length); + newCommands[0] = command; + desc.setBuildSpec(newCommands); + project.setDescription(desc, null); + } } /** - * TODO: Implement "deconfigure". * @see IProjectNature#deconfigure */ - public void deconfigure() throws CoreException { + public void deconfigure() throws CoreException + { + } /** - * TODO: Implement "getProject". * @see IProjectNature#getProject */ public IProject getProject() @@ -42,7 +69,6 @@ } /** - * TODO: Implement "setProject". * @see IProjectNature#setProject */ public void setProject(IProject project) Index: TexeclipsePlugin.java =================================================================== RCS file: /cvsroot/texeclipse/net.sourceforge.texeclipse/src/net/sourceforge/texeclipse/TexeclipsePlugin.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- TexeclipsePlugin.java 14 Sep 2003 22:49:52 -0000 1.1 +++ TexeclipsePlugin.java 19 Sep 2003 11:49:40 -0000 1.2 @@ -13,6 +13,8 @@ // Constants public static final String PLUGIN_ID = "net.sourceforge.texeclipse"; public static final String TEX_NATURE_ID = PLUGIN_ID + ".texNature"; + public static final String TEX_BUILDER_ID = PLUGIN_ID + ".texbuilder"; + //The shared instance. private static TexeclipsePlugin plugin; |
From: <sb...@us...> - 2003-09-19 19:53:49
|
Update of /cvsroot/texeclipse/net.sourceforge.texeclipse In directory sc8-pr-cvs1:/tmp/cvs-serv19998 Modified Files: .project plugin.xml Log Message: Added a dummy Tex Builder class. Added tex and latex files to be known as ascii text as a team extension Index: .project =================================================================== RCS file: /cvsroot/texeclipse/net.sourceforge.texeclipse/.project,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- .project 19 Sep 2003 09:09:30 -0000 1.2 +++ .project 19 Sep 2003 11:49:40 -0000 1.3 @@ -3,6 +3,8 @@ <name>net.sourceforge.texeclipse</name> <comment></comment> <projects> + <project>org.eclipse.swt</project> + <project>org.eclipse.swt.win32</project> </projects> <buildSpec> <buildCommand> Index: plugin.xml =================================================================== RCS file: /cvsroot/texeclipse/net.sourceforge.texeclipse/plugin.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- plugin.xml 14 Sep 2003 22:49:52 -0000 1.1 +++ plugin.xml 19 Sep 2003 11:49:40 -0000 1.2 @@ -12,6 +12,7 @@ <requires> <import plugin="org.eclipse.core.resources"/> <import plugin="org.eclipse.ui"/> + <import plugin="org.eclipse.team.core"/> </requires> @@ -57,6 +58,31 @@ class="net.sourceforge.texeclipse.TexProjectNature"> </run> </runtime> + <builder + id="net.sourceforge.texeclipse.texbuilder"> + </builder> + </extension> + <extension + id="texbuilder" + name="Tex Builder" + point="org.eclipse.core.resources.builders"> + <builder + hasNature="true"> + <run + class="net.sourceforge.texeclipse.builders.TexBuilder"> + </run> + </builder> + </extension> + <extension + point="org.eclipse.team.core.fileTypes"> + <fileTypes + type="text" + extension="tex"> + </fileTypes> + <fileTypes + type="text" + extension="latex"> + </fileTypes> </extension> </plugin> |
From: <sb...@us...> - 2003-09-19 19:53:49
|
Update of /cvsroot/texeclipse/net.sourceforge.texeclipse/src/net/sourceforge/texeclipse/builders In directory sc8-pr-cvs1:/tmp/cvs-serv19998/src/net/sourceforge/texeclipse/builders Added Files: TexBuilder.java Log Message: Added a dummy Tex Builder class. Added tex and latex files to be known as ascii text as a team extension --- NEW FILE: TexBuilder.java --- package net.sourceforge.texeclipse.builders; import org.eclipse.core.resources.IProject; import java.util.Map; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.CoreException; import org.eclipse.core.resources.IncrementalProjectBuilder; /** * TODO: Provide description for "TexBuilder". * @see IncrementalProjectBuilder */ public class TexBuilder extends IncrementalProjectBuilder { /** * TODO: Implement the "TexBuilder" constructor. */ public TexBuilder() { } /** * TODO: Implement "build". * @see IncrementalProjectBuilder#build */ protected IProject [] build(int kind, Map args, IProgressMonitor monitor) throws CoreException { return null; } } |
From: <sb...@us...> - 2003-09-19 19:52:14
|
Update of /cvsroot/texeclipse/net.sourceforge.texeclipse In directory sc8-pr-cvs1:/tmp/cvs-serv24756 Modified Files: .cvsignore Log Message: Ignore .classpath Index: .cvsignore =================================================================== RCS file: /cvsroot/texeclipse/net.sourceforge.texeclipse/.cvsignore,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- .cvsignore 14 Sep 2003 22:49:52 -0000 1.1 +++ .cvsignore 19 Sep 2003 09:13:29 -0000 1.2 @@ -1 +1,2 @@ bin +.classpath |
From: <sb...@us...> - 2003-09-19 19:33:49
|
Update of /cvsroot/texeclipse/net.sourceforge.texeclipse/src/net/sourceforge/texeclipse/builders In directory sc8-pr-cvs1:/tmp/cvs-serv19779/src/net/sourceforge/texeclipse/builders Log Message: Directory /cvsroot/texeclipse/net.sourceforge.texeclipse/src/net/sourceforge/texeclipse/builders added to the repository |
From: <sb...@us...> - 2003-09-14 22:49:56
|
Update of /cvsroot/texeclipse/net.sourceforge.texeclipse In directory sc8-pr-cvs1:/tmp/cvs-serv16922 Added Files: plugin.xml .project .cvsignore .classpath build.properties Log Message: Initial commit. Nothing more then simple syntax highlighting is supported, a new tex project wizard and a new tex file wizard. --- NEW FILE: plugin.xml --- <?xml version="1.0" encoding="UTF-8"?> <plugin id="net.sourceforge.texeclipse" name="Texeclipse Plug-in" version="1.0.0" provider-name="" class="net.sourceforge.texeclipse.TexeclipsePlugin"> <runtime> <library name="texeclipse.jar"/> </runtime> <requires> <import plugin="org.eclipse.core.resources"/> <import plugin="org.eclipse.ui"/> </requires> <extension point="org.eclipse.ui.editors"> <editor name="Tex Editor" icon="icons/texfile.gif" extensions="tex" contributorClass="org.eclipse.ui.texteditor.BasicTextEditorActionContributor" class="net.sourceforge.texeclipse.editors.TexEditor" id="net.sourceforge.texeclipse.editors.TexEditor"> </editor> </extension> <extension point="org.eclipse.ui.newWizards"> <category name="Tex" id="net.sourceforge.texeclipse.texcategory"> </category> <wizard name="Tex Project" icon="icons/texproject.gif" category="net.sourceforge.texeclipse.texcategory" class="net.sourceforge.texeclipse.wizards.NewTexProjectWizard" project="true" id="net.sourceforge.texeclipse.texprojectwizard"> </wizard> <wizard name="Tex File" icon="icons/texfile.gif" category="net.sourceforge.texeclipse.texcategory" class="net.sourceforge.texeclipse.wizards.NewTexFileWizard" id="net.sourceforge.texeclipse.wizard1"> </wizard> </extension> <extension id="texNature" name="Tex Nature" point="org.eclipse.core.resources.natures"> <runtime> <run class="net.sourceforge.texeclipse.TexProjectNature"> </run> </runtime> </extension> </plugin> --- NEW FILE: .project --- <?xml version="1.0" encoding="UTF-8"?> <projectDescription> <name>net.sourceforge.texeclipse</name> <comment></comment> <buildSpec> <buildCommand> <name>org.eclipse.jdt.core.javabuilder</name> <arguments> </arguments> </buildCommand> <buildCommand> <name>org.eclipse.pde.ManifestBuilder</name> <arguments> </arguments> </buildCommand> <buildCommand> <name>org.eclipse.pde.SchemaBuilder</name> <arguments> </arguments> </buildCommand> </buildSpec> <natures> <nature>org.eclipse.pde.PluginNature</nature> <nature>org.eclipse.jdt.core.javanature</nature> </natures> </projectDescription> --- NEW FILE: .cvsignore --- bin --- NEW FILE: .classpath --- <?xml version="1.0" encoding="UTF-8"?> <classpath> <classpathentry kind="src" path="src/"/> <classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.core.resources_2.1.1/resources.jar" sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.core.resources_2.1.1/resourcessrc.zip"/> <classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.ui_2.1.1/ui.jar" sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.ui_2.1.1/uisrc.zip"/> <classpathentry kind="src" path="/org.eclipse.swt"/> <classpathentry kind="src" path="/org.eclipse.swt.win32"/> <classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.text_2.1.0/text.jar" sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.text_2.1.0/textsrc.zip"/> <classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.jface_2.1.1/jface.jar" sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.jface_2.1.1/jfacesrc.zip"/> <classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.jface.text_2.1.0/jfacetext.jar" sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.jface.text_2.1.0/jfacetextsrc.zip"/> <classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.ui.views_2.1.0/views.jar" sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.ui.views_2.1.0/viewssrc.zip"/> <classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.ui.workbench_2.1.1/workbench.jar" sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.ui.workbench_2.1.1/workbenchsrc.zip"/> <classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.ui.win32_2.1.0/workbenchwin32.jar" sourcepath="ORG_ECLIPSE_PLATFORM_WIN32_SOURCE_SRC/org.eclipse.ui.win32_2.1.0/workbenchwin32src.zip"/> <classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.ui.workbench.texteditor_2.1.0/texteditor.jar" sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.ui.workbench.texteditor_2.1.0/texteditorsrc.zip"/> <classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.ui.editors_2.1.0/editors.jar" sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.ui.editors_2.1.0/editorssrc.zip"/> <classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.core.boot_2.1.1/boot.jar" sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.core.boot_2.1.1/bootsrc.zip"/> <classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.core.runtime_2.1.1/runtime.jar" sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.core.runtime_2.1.1/runtimesrc.zip"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="output" path="bin"/> </classpath> --- NEW FILE: build.properties --- source.texeclipse.jar = src/ bin.includes = plugin.xml,\ *.jar,\ texeclipse.jar |
From: <sb...@us...> - 2003-09-14 22:49:56
|
Update of /cvsroot/texeclipse/net.sourceforge.texeclipse/src/net/sourceforge/texeclipse In directory sc8-pr-cvs1:/tmp/cvs-serv16922/src/net/sourceforge/texeclipse Added Files: TexProjectNature.java TexeclipsePlugin.java Log Message: Initial commit. Nothing more then simple syntax highlighting is supported, a new tex project wizard and a new tex file wizard. --- NEW FILE: TexProjectNature.java --- package net.sourceforge.texeclipse; import org.eclipse.core.runtime.CoreException; import org.eclipse.core.resources.IProject; import org.eclipse.core.resources.IProjectNature; /** * TODO: Provide description for "TexProjectNature". * @see IProjectNature */ public class TexProjectNature implements IProjectNature { IProject project; /** * TODO: Implement the "TexProjectNature" constructor. */ public TexProjectNature() { } /** * TODO: Implement "configure". * @see IProjectNature#configure */ public void configure() throws CoreException { } /** * TODO: Implement "deconfigure". * @see IProjectNature#deconfigure */ public void deconfigure() throws CoreException { } /** * TODO: Implement "getProject". * @see IProjectNature#getProject */ public IProject getProject() { return project; } /** * TODO: Implement "setProject". * @see IProjectNature#setProject */ public void setProject(IProject project) { this.project = project; } } --- NEW FILE: TexeclipsePlugin.java --- package net.sourceforge.texeclipse; import org.eclipse.ui.plugin.*; import org.eclipse.core.runtime.*; import org.eclipse.core.resources.*; import java.util.*; /** * The main plugin class to be used in the desktop. */ public class TexeclipsePlugin extends AbstractUIPlugin { // Constants public static final String PLUGIN_ID = "net.sourceforge.texeclipse"; public static final String TEX_NATURE_ID = PLUGIN_ID + ".texNature"; //The shared instance. private static TexeclipsePlugin plugin; //Resource bundle. private ResourceBundle resourceBundle; /** * The constructor. */ public TexeclipsePlugin(IPluginDescriptor descriptor) { super(descriptor); plugin = this; try { resourceBundle= ResourceBundle.getBundle("org.sourceforge.texeclipse.TexeclipsePluginResources"); } catch (MissingResourceException x) { resourceBundle = null; } } /** * Returns the shared instance. */ public static TexeclipsePlugin getDefault() { return plugin; } /** * Returns the workspace instance. */ public static IWorkspace getWorkspace() { return ResourcesPlugin.getWorkspace(); } /** * Returns the string from the plugin's resource bundle, * or 'key' if not found. */ public static String getResourceString(String key) { ResourceBundle bundle= TexeclipsePlugin.getDefault().getResourceBundle(); try { return bundle.getString(key); } catch (MissingResourceException e) { return key; } } /** * Returns the plugin's resource bundle, */ public ResourceBundle getResourceBundle() { return resourceBundle; } } |
From: <sb...@us...> - 2003-09-14 22:49:56
|
Update of /cvsroot/texeclipse/net.sourceforge.texeclipse/src/net/sourceforge/texeclipse/editors In directory sc8-pr-cvs1:/tmp/cvs-serv16922/src/net/sourceforge/texeclipse/editors Added Files: TexConfiguration.java TexDocumentProvider.java ColorManager.java TexPartitionScanner.java ColorConstants.java TexEditor.java Log Message: Initial commit. Nothing more then simple syntax highlighting is supported, a new tex project wizard and a new tex file wizard. --- NEW FILE: TexConfiguration.java --- /* * Created on 12.09.2003 * * To change the template for this generated file go to * Window>Preferences>Java>Code Generation>Code and Comments */ package net.sourceforge.texeclipse.editors; import org.eclipse.jface.text.IDocument; import org.eclipse.jface.text.TextAttribute; import org.eclipse.jface.text.presentation.IPresentationReconciler; import org.eclipse.jface.text.presentation.PresentationReconciler; import org.eclipse.jface.text.rules.DefaultDamagerRepairer; import org.eclipse.jface.text.rules.EndOfLineRule; import org.eclipse.jface.text.rules.IRule; import org.eclipse.jface.text.rules.IToken; import org.eclipse.jface.text.rules.IWordDetector; import org.eclipse.jface.text.rules.MultiLineRule; import org.eclipse.jface.text.rules.RuleBasedScanner; import org.eclipse.jface.text.rules.Token; import org.eclipse.jface.text.rules.WordRule; import org.eclipse.jface.text.source.ISourceViewer; import org.eclipse.jface.text.source.SourceViewerConfiguration; /** * @author sba * * To change the template for this generated type comment go to * Window>Preferences>Java>Code Generation>Code and Comments */ public class TexConfiguration extends SourceViewerConfiguration { private ColorManager colorManager; private RuleBasedScanner defaultScanner; private RuleBasedScanner mathScanner; /** * @param colorManager */ public TexConfiguration(ColorManager colorManager) { this.colorManager = colorManager; } public RuleBasedScanner getDefaultScanner() { if (defaultScanner != null) return defaultScanner; defaultScanner = new RuleBasedScanner() {{ IToken comment = new Token(new TextAttribute(colorManager.getColor(ColorConstants.COMMENT))); IToken tag = new Token(new TextAttribute(colorManager.getColor(ColorConstants.TAG))); IToken command = new Token(new TextAttribute(colorManager.getColor(ColorConstants.COMMAND))); IRule rules[] = new IRule[4]; rules[0] = new EndOfLineRule("%",comment); rules[1] = new MultiLineRule("\\begin{","}",tag,'\\',true); rules[2] = new MultiLineRule("\\end{","}",tag,'\\',true); rules[3] = new WordRule(new IWordDetector() { public boolean isWordStart(char c) { return c == '\\'; } public boolean isWordPart(char c) { return Character.isLetterOrDigit(c); } },command); setRules(rules); }}; defaultScanner.setDefaultReturnToken(new Token(new TextAttribute( colorManager.getColor(ColorConstants.DEFAULT)))); return defaultScanner; } public RuleBasedScanner getMathScanner() { if (mathScanner != null) return mathScanner; mathScanner = new RuleBasedScanner() {{ IToken comment = new Token(new TextAttribute(colorManager.getColor(ColorConstants.COMMENT))); IRule rules[] = new IRule[1]; rules[0] = new EndOfLineRule("%",comment); setRules(rules); }}; mathScanner.setDefaultReturnToken(new Token(new TextAttribute( colorManager.getColor(ColorConstants.MATH)))); return mathScanner; } /* (non-Javadoc) * @see org.eclipse.jface.text.source.SourceViewerConfiguration#getPresentationReconciler(org.eclipse.jface.text.source.ISourceViewer) */ public IPresentationReconciler getPresentationReconciler(ISourceViewer sourceViewer) { PresentationReconciler reconciler = new PresentationReconciler(); DefaultDamagerRepairer dr = new DefaultDamagerRepairer(getDefaultScanner()); reconciler.setDamager(dr, IDocument.DEFAULT_CONTENT_TYPE); reconciler.setRepairer(dr, IDocument.DEFAULT_CONTENT_TYPE); dr = new DefaultDamagerRepairer(getMathScanner()); reconciler.setDamager(dr, TexPartitionScanner.TEX_MATH); reconciler.setRepairer(dr, TexPartitionScanner.TEX_MATH); return reconciler; } public String[] getConfiguredContentTypes(ISourceViewer sourceViewer) { return new String[] { IDocument.DEFAULT_CONTENT_TYPE, TexPartitionScanner.TEX_MATH }; } } --- NEW FILE: TexDocumentProvider.java --- /* * Created on 12.09.2003 * * To change the template for this generated file go to * Window>Preferences>Java>Code Generation>Code and Comments */ package net.sourceforge.texeclipse.editors; import org.eclipse.core.runtime.CoreException; import org.eclipse.jface.text.IDocument; import org.eclipse.jface.text.IDocumentPartitioner; import org.eclipse.jface.text.rules.DefaultPartitioner; import org.eclipse.ui.editors.text.FileDocumentProvider; public class TexDocumentProvider extends FileDocumentProvider { protected IDocument createDocument(Object element) throws CoreException { IDocument document = super.createDocument(element); if (document != null) { IDocumentPartitioner partitioner = new DefaultPartitioner(new TexPartitionScanner(), TexPartitionScanner.getLegalContentTypes()); partitioner.connect(document); document.setDocumentPartitioner(partitioner); } return document; } } --- NEW FILE: ColorManager.java --- /******************************************************************************* * Copyright (c) 2000, 2003 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Common Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/cpl-v10.html * * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/ package net.sourceforge.texeclipse.editors; import java.util.HashMap; import java.util.Iterator; import java.util.Map; import org.eclipse.swt.graphics.Color; import org.eclipse.swt.graphics.RGB; import org.eclipse.swt.widgets.Display; public class ColorManager { protected Map fColorTable = new HashMap(10); public void dispose() { Iterator e = fColorTable.values().iterator(); while (e.hasNext()) ((Color) e.next()).dispose(); } public Color getColor(RGB rgb) { Color color = (Color) fColorTable.get(rgb); if (color == null) { color = new Color(Display.getCurrent(), rgb); fColorTable.put(rgb, color); } return color; } } --- NEW FILE: TexPartitionScanner.java --- /* * Created on 12.09.2003 * * To change the template for this generated file go to * Window>Preferences>Java>Code Generation>Code and Comments */ package net.sourceforge.texeclipse.editors; import org.eclipse.jface.text.rules.*; public class TexPartitionScanner extends RuleBasedPartitionScanner { public final static String TEX_DEFAULT = "__tex_default"; public final static String TEX_MATH = "__tex_math"; public final static String TEX_TAG = "__tex_tag"; public final static String[] legalContentTypes = new String[] { TEX_MATH, TEX_TAG }; public TexPartitionScanner() { IToken math = new Token(TEX_MATH); IToken tag = new Token(TEX_TAG); IPredicateRule[] rules = new IPredicateRule[1]; rules[0] = new MultiLineRule("$", "$", math, '\\', true); // rules[1] = new TagRule(tag); setPredicateRules(rules); } /** * */ public static String[] getLegalContentTypes() { return legalContentTypes; } } --- NEW FILE: ColorConstants.java --- /* * Created on 12.09.2003 * * To change the template for this generated file go to * Window>Preferences>Java>Code Generation>Code and Comments */ package net.sourceforge.texeclipse.editors; import org.eclipse.swt.graphics.RGB; /** * @author sba * * To change the template for this generated type comment go to * Window>Preferences>Java>Code Generation>Code and Comments */ public class ColorConstants { static RGB DEFAULT = new RGB(0, 0, 0); static RGB COMMENT = new RGB(0, 128, 0); static RGB TAG = new RGB(128, 0, 128); static RGB COMMAND = new RGB(0,0,160); static RGB MATH = new RGB(0,0,255); } --- NEW FILE: TexEditor.java --- /******************************************************************************* * Copyright (c) 2000, 2003 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Common Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/cpl-v10.html * * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/ package net.sourceforge.texeclipse.editors; import org.eclipse.ui.editors.text.TextEditor; public class TexEditor extends TextEditor { private ColorManager colorManager; public TexEditor() { super(); colorManager = new ColorManager(); setSourceViewerConfiguration(new TexConfiguration(colorManager)); setDocumentProvider(new TexDocumentProvider()); } public void dispose() { colorManager.dispose(); super.dispose(); } } |
From: <sb...@us...> - 2003-09-14 22:49:56
|
Update of /cvsroot/texeclipse/net.sourceforge.texeclipse/icons In directory sc8-pr-cvs1:/tmp/cvs-serv16922/icons Added Files: texproject.gif texfile.gif Log Message: Initial commit. Nothing more then simple syntax highlighting is supported, a new tex project wizard and a new tex file wizard. --- NEW FILE: texproject.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: texfile.gif --- (This appears to be a binary file; contents omitted.) |
From: <sb...@us...> - 2003-09-14 22:49:56
|
Update of /cvsroot/texeclipse/net.sourceforge.texeclipse/src/net/sourceforge/texeclipse/wizards In directory sc8-pr-cvs1:/tmp/cvs-serv16922/src/net/sourceforge/texeclipse/wizards Added Files: NewTexFileWizard.java NewTexProjectWizard.java Log Message: Initial commit. Nothing more then simple syntax highlighting is supported, a new tex project wizard and a new tex file wizard. --- NEW FILE: NewTexFileWizard.java --- package net.sourceforge.texeclipse.wizards; import org.eclipse.ui.IWorkbench; import org.eclipse.jface.viewers.IStructuredSelection; import org.eclipse.jface.wizard.Wizard; import org.eclipse.ui.INewWizard; import org.eclipse.ui.dialogs.WizardNewFileCreationPage; /** * @see Wizard */ public class NewTexFileWizard extends Wizard implements INewWizard { private IStructuredSelection selection; private WizardNewFileCreationPage page; /** */ public NewTexFileWizard() { } /** * Adding the page to the wizard. */ public void addPages() { page = new WizardNewFileCreationPage("newTexFile",selection); page.setTitle("New TeX File"); page.setDescription("Create a TeX file."); page.setFileName("new.tex"); addPage(page); } /** * @see Wizard#performFinish */ public boolean performFinish() { page.createNewFile(); return true; } /** * @see Wizard#init */ public void init(IWorkbench workbench, IStructuredSelection selection) { this.selection = selection; } } --- NEW FILE: NewTexProjectWizard.java --- package net.sourceforge.texeclipse.wizards; import java.lang.reflect.InvocationTargetException; import net.sourceforge.texeclipse.TexeclipsePlugin; import org.eclipse.core.resources.IProject; import org.eclipse.core.resources.IProjectDescription; import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.SubProgressMonitor; import org.eclipse.jface.dialogs.MessageDialog; import org.eclipse.jface.operation.IRunnableWithProgress; import org.eclipse.jface.viewers.IStructuredSelection; import org.eclipse.jface.wizard.Wizard; import org.eclipse.ui.INewWizard; import org.eclipse.ui.IWorkbench; import org.eclipse.jface.viewers.ISelection; import org.eclipse.ui.actions.WorkspaceModifyDelegatingOperation; import org.eclipse.ui.dialogs.WizardNewProjectCreationPage; public class NewTexProjectWizard extends Wizard implements INewWizard { private WizardNewProjectCreationPage page; private ISelection selection; private IProject newProject; /** * Constructor for NewTexProjectWizard. */ public NewTexProjectWizard() { super(); setNeedsProgressMonitor(true); } /** * Adding the page to the wizard. */ public void addPages() { page = new WizardNewProjectCreationPage("newTexProject"); page.setTitle("New TeX Project"); page.setDescription("Create a TeX project."); addPage(page); } /** * This method is called when 'Finish' button is pressed in * the wizard. We will create an operation and run it * using wizard as execution context. */ public boolean performFinish() { IRunnableWithProgress projectCreationOperation = new WorkspaceModifyDelegatingOperation( new IRunnableWithProgress() { public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException { int remaining = 10; monitor.beginTask("Creating TeX Project",remaining); newProject = page.getProjectHandle(); try { if (!newProject.exists()) { newProject.create(new SubProgressMonitor(monitor, 1)); remaining--; } if (!newProject.isOpen()) { newProject.open(new SubProgressMonitor(monitor, 1)); remaining--; } if (!newProject.hasNature(TexeclipsePlugin.TEX_NATURE_ID)) { IProjectDescription description = newProject.getDescription(); String[] prevNatures = description.getNatureIds(); String[] newNatures = new String[prevNatures.length + 1]; System.arraycopy(prevNatures, 0, newNatures, 0, prevNatures.length); newNatures[prevNatures.length] = TexeclipsePlugin.TEX_NATURE_ID; description.setNatureIds(newNatures); newProject.setDescription(description, monitor); } } catch (CoreException e) { throw new InvocationTargetException(e); } finally { monitor.done(); } } }); try { getContainer().run(false, true, projectCreationOperation); } catch (Exception e) { MessageDialog.openError(getShell(), "Error", e.getMessage()); return false; } return true; } /** * We will accept the selection in the workbench to see if * we can initialize from it. * @see IWorkbenchWizard#init(IWorkbench, IStructuredSelection) */ public void init(IWorkbench workbench, IStructuredSelection selection) { this.selection = selection; } } |
From: <sb...@us...> - 2003-09-14 22:47:50
|
Update of /cvsroot/texeclipse/net.sourceforge.texeclipse/src/net/sourceforge/texeclipse/wizards In directory sc8-pr-cvs1:/tmp/cvs-serv16569/src/net/sourceforge/texeclipse/wizards Log Message: Directory /cvsroot/texeclipse/net.sourceforge.texeclipse/src/net/sourceforge/texeclipse/wizards added to the repository |
From: <sb...@us...> - 2003-09-14 22:46:14
|
Update of /cvsroot/texeclipse/net.sourceforge.texeclipse/src/net/sourceforge In directory sc8-pr-cvs1:/tmp/cvs-serv16200/src/net/sourceforge Log Message: Directory /cvsroot/texeclipse/net.sourceforge.texeclipse/src/net/sourceforge added to the repository |
From: <sb...@us...> - 2003-09-14 22:46:14
|
Update of /cvsroot/texeclipse/net.sourceforge.texeclipse/src/net/sourceforge/texeclipse In directory sc8-pr-cvs1:/tmp/cvs-serv16200/src/net/sourceforge/texeclipse Log Message: Directory /cvsroot/texeclipse/net.sourceforge.texeclipse/src/net/sourceforge/texeclipse added to the repository |
From: <sb...@us...> - 2003-09-14 22:46:14
|
Update of /cvsroot/texeclipse/net.sourceforge.texeclipse/src/net/sourceforge/texeclipse/editors In directory sc8-pr-cvs1:/tmp/cvs-serv16200/src/net/sourceforge/texeclipse/editors Log Message: Directory /cvsroot/texeclipse/net.sourceforge.texeclipse/src/net/sourceforge/texeclipse/editors added to the repository |
From: <sb...@us...> - 2003-09-14 22:46:14
|
Update of /cvsroot/texeclipse/net.sourceforge.texeclipse/src/net In directory sc8-pr-cvs1:/tmp/cvs-serv16200/src/net Log Message: Directory /cvsroot/texeclipse/net.sourceforge.texeclipse/src/net added to the repository |
From: <sb...@us...> - 2003-09-14 22:46:14
|
Update of /cvsroot/texeclipse/net.sourceforge.texeclipse/src In directory sc8-pr-cvs1:/tmp/cvs-serv16200/src Log Message: Directory /cvsroot/texeclipse/net.sourceforge.texeclipse/src added to the repository |
From: <sb...@us...> - 2003-09-14 22:45:58
|
Update of /cvsroot/texeclipse/net.sourceforge.texeclipse/icons In directory sc8-pr-cvs1:/tmp/cvs-serv16089/icons Log Message: Directory /cvsroot/texeclipse/net.sourceforge.texeclipse/icons added to the repository |