eclipse plugin: Return a null EditorCallback instead...

...of creating just a plain class for supressing the xtext nature
adding callback
This commit is contained in:
Timotei Dolean 2011-08-17 21:17:25 +00:00
parent 683d1ea41a
commit 0d0ae8f6ba
2 changed files with 2 additions and 29 deletions

View file

@ -1,6 +1,6 @@
/*******************************************************************************
* Copyright (c) 2010 - 2011 by Timotei Dolean <timotei21@gmail.com>
*
*
* This program and the accompanying materials are made available
* under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@ -33,7 +33,6 @@ import org.eclipse.xtext.ui.editor.syntaxcoloring.ISemanticHighlightingCalculato
import org.wesnoth.ui.autoedit.WMLAutoEditStrategy;
import org.wesnoth.ui.contentassist.WMLContentAssistContext;
import org.wesnoth.ui.contentassist.WMLProposalComparator;
import org.wesnoth.ui.editor.WMLAbstractDirtyEditorCallback;
import org.wesnoth.ui.editor.WMLEditor;
import org.wesnoth.ui.editor.WMLHighlightingHelper;
import org.wesnoth.ui.folding.WMLFoldingRegionProvider;
@ -140,7 +139,7 @@ public class WMLUiModule extends org.wesnoth.ui.AbstractWMLUiModule
@Override
public Class< ? extends IXtextEditorCallback > bindIXtextEditorCallback( )
{
return WMLAbstractDirtyEditorCallback.class;
return null;
}
public Class< ? extends DefaultFoldingRegionProvider > bindDefaultFoldingRegionProvider( )

View file

@ -1,26 +0,0 @@
/*******************************************************************************
* Copyright (c) 2010 - 2011 by Timotei Dolean <timotei21@gmail.com>
*
* This program and the accompanying materials are made available
* under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*******************************************************************************/
package org.wesnoth.ui.editor;
import org.eclipse.xtext.ui.editor.AbstractDirtyStateAwareEditorCallback;
import org.eclipse.xtext.ui.editor.XtextEditor;
/**
* We use this class to suppress the default one which asks for adding
* a xtext nature on non-xtext project. We don't want that (yet)
*/
public class WMLAbstractDirtyEditorCallback extends
AbstractDirtyStateAwareEditorCallback
{
@Override
public void afterCreatePartControl( XtextEditor editor )
{
super.afterCreatePartControl( editor );
}
}