mail[Wesnoth-commits] r44297 - in /trunk/utils/java/eclipse_plugin/src/wesnoth_eclipse_plugin: action/ globalactions/


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by timotei_cluj on July 18, 2010 - 16:50:
Author: timotei
Date: Sun Jul 18 16:50:59 2010
New Revision: 44297

URL: http://svn.gna.org/viewcvs/wesnoth?rev=44297&view=rev
Log:
eclipse plugin: fix the 'run wmllintonpreprocfile' action. now it will 
preprocess first the file if it doesn't exist

Modified:
    
trunk/utils/java/eclipse_plugin/src/wesnoth_eclipse_plugin/action/RunWMLLintOnPreprocFile.java
    
trunk/utils/java/eclipse_plugin/src/wesnoth_eclipse_plugin/globalactions/PreprocessorActions.java

Modified: 
trunk/utils/java/eclipse_plugin/src/wesnoth_eclipse_plugin/action/RunWMLLintOnPreprocFile.java
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/utils/java/eclipse_plugin/src/wesnoth_eclipse_plugin/action/RunWMLLintOnPreprocFile.java?rev=44297&r1=44296&r2=44297&view=diff
==============================================================================
--- 
trunk/utils/java/eclipse_plugin/src/wesnoth_eclipse_plugin/action/RunWMLLintOnPreprocFile.java
 (original)
+++ 
trunk/utils/java/eclipse_plugin/src/wesnoth_eclipse_plugin/action/RunWMLLintOnPreprocFile.java
 Sun Jul 18 16:50:59 2010
@@ -30,7 +30,7 @@
        {
                PreprocessorActions.preprocessIfNotExists(
                                
WorkspaceUtils.getSelectedFile(WorkspaceUtils.getWorkbenchWindow()),
-                               false,true);
+                               true);
 
                WMLTools.runWMLToolAsWorkspaceJob(Tools.WMLLINT,
                                PreprocessorActions.getPreprocessedFilePath(

Modified: 
trunk/utils/java/eclipse_plugin/src/wesnoth_eclipse_plugin/globalactions/PreprocessorActions.java
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/utils/java/eclipse_plugin/src/wesnoth_eclipse_plugin/globalactions/PreprocessorActions.java?rev=44297&r1=44296&r2=44297&view=diff
==============================================================================
--- 
trunk/utils/java/eclipse_plugin/src/wesnoth_eclipse_plugin/globalactions/PreprocessorActions.java
 (original)
+++ 
trunk/utils/java/eclipse_plugin/src/wesnoth_eclipse_plugin/globalactions/PreprocessorActions.java
 Sun Jul 18 16:50:59 2010
@@ -87,6 +87,8 @@
                        return;
                }
 
+               preprocessIfNotExists(file, true);
+
                IFileStore preprocFile =
                        EFS.getLocalFileSystem().getStore(new 
Path(WorkspaceUtils.getTemporaryFolder()));
                preprocFile = preprocFile.getChild(file.getName() +
@@ -110,7 +112,7 @@
                return preprocFile.toString();
        }
 
-       public static void preprocessIfNotExists(IFile file, boolean 
useThread, boolean waitForIt)
+       public static void preprocessIfNotExists(IFile file, boolean 
waitForIt)
        {
                if (new File(WorkspaceUtils.getTemporaryFolder() + 
file.getName()).exists())
                        return;




Related Messages


Powered by MHonArc, Updated Sun Jul 18 17:00:12 2010