eclipse plugin: initialize the the loggers at startup

This commit is contained in:
Timotei Dolean 2010-08-01 18:52:26 +00:00
parent b2e2f03545
commit 1614ab2346
2 changed files with 10 additions and 1 deletions

View File

@ -95,7 +95,7 @@ public class Activator extends AbstractUIPlugin
* Checks if the user has set some needed preferences and if the workspace
* is setup (there exists the "User Addons" project)
*/
private static boolean checkConditions()
public static boolean checkConditions()
{
String execDir = Preferences.getString(Constants.P_WESNOTH_EXEC_PATH);
String userDir = Preferences.getString(Constants.P_WESNOTH_USER_DIR);

View File

@ -8,6 +8,7 @@
*******************************************************************************/
package org.wesnoth.ui;
import org.apache.log4j.Level;
import org.eclipse.jface.text.source.ISourceViewer;
import org.eclipse.swt.custom.StyledText;
import org.eclipse.swt.widgets.Composite;
@ -21,6 +22,14 @@ public class WMLEditor extends XtextEditor
protected IHighlightingHelper highlightingHelper_;
protected LeafNode currentHighlightedNode_;
public WMLEditor()
{
super();
org.apache.log4j.Logger.getLogger(XtextEditor.class).setLevel(Level.DEBUG);
// activate the wesnoth plugin
Activator.getDefault();
}
@Override
public void createPartControl(Composite parent)
{