From: Jarek C. <jar...@us...> - 2012-04-21 09:06:37
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "ProjectViewer jEdit plugin". The branch, master has been updated via d8cd9e7c71d03e8b263bd7961fbdb98fd45d1307 (commit) from 8be42931b0ab7e474775c7bf5131a0ed2b2ab5f1 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit: http://jedit.git.sourceforge.net/git/gitweb.cgi?p=jedit/ProjectViewer;a=commit;h=d8cd9e7c71d03e8b263bd7961fbdb98fd45d1307 commitdiff: http://jedit.git.sourceforge.net/git/gitweb.cgi?p=jedit/ProjectViewer;a=commitdiff;h=d8cd9e7c71d03e8b263bd7961fbdb98fd45d1307 tree: http://jedit.git.sourceforge.net/git/gitweb.cgi?p=jedit/ProjectViewer;a=tree;h=d8cd9e7c71d03e8b263bd7961fbdb98fd45d1307;hb=d8cd9e7c71d03e8b263bd7961fbdb98fd45d1307 commit d8cd9e7c71d03e8b263bd7961fbdb98fd45d1307 Author: Jarek Czekalski <jar...@po...> Date: Sat Apr 21 11:05:09 2012 +0200 Added public method runNow to AutoReimport class, for testing purposes. diff --git a/projectviewer/importer/AutoReimporter.java b/projectviewer/importer/AutoReimporter.java index 0c0197e..b19c5eb 100644 --- a/projectviewer/importer/AutoReimporter.java +++ b/projectviewer/importer/AutoReimporter.java @@ -2,6 +2,9 @@ * :tabSize=4:indentSize=4:noTabs=false: * :folding=explicit:collapseFolds=1: * + * Copyright (C) 2002-2011 Marcelo Vanzin <va...@us...> + * Copyright (C) 2012 Jarek Czekalski <jar...@po...> + * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 @@ -36,6 +39,7 @@ import org.gjt.sp.jedit.io.VFSManager; import org.gjt.sp.util.Log; import org.gjt.sp.util.PropertiesBean; +import projectviewer.ProjectViewer; import projectviewer.VFSHelper; import projectviewer.vpt.VPTDirectory; import projectviewer.vpt.VPTFile; @@ -107,6 +111,20 @@ public class AutoReimporter implements ActionListener } + /** For testing purposes, run auto-reimport now, for the current + project. */ + public static void runNow() + { + VPTProject p = ProjectViewer.getActiveProject( + jEdit.getActiveView(), ProjectViewer.WARN); + if (p == null) return; + Options o = new Options(p); + o.load(p.getProperties()); + AutoReimporter ar = new AutoReimporter(p, o); + ar.actionPerformed(null); + } + + /* Fields. */ private final VPTProject project; private final Options options; ----------------------------------------------------------------------- Summary of changes: projectviewer/importer/AutoReimporter.java | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+), 0 deletions(-) hooks/post-receive -- ProjectViewer jEdit plugin |