mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-06 17:26:01 +00:00
eclipse plugin: initialize the the loggers at startup
This commit is contained in:
parent
b2e2f03545
commit
1614ab2346
@ -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);
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user