eclipse plugin: Use qualified class names so Eclipse...
...won't import those classes to trigger "unused import" when compiling the plugin. Also move the syntax adapter class to a better syntax
This commit is contained in:
parent
31207eb4d2
commit
87a9b8b801
4 changed files with 3 additions and 7 deletions
|
@ -19,7 +19,6 @@ import org.eclipse.xtext.resource.XtextResource;
|
|||
import org.eclipse.xtext.ui.editor.model.XtextDocument;
|
||||
import org.eclipse.xtext.ui.editor.utils.EditorUtils;
|
||||
import org.eclipse.xtext.util.concurrent.IUnitOfWork;
|
||||
import org.wesnoth.ui.WMLSyntaxColoringAdapter;
|
||||
import org.wesnoth.ui.editor.WMLEditor;
|
||||
import org.wesnoth.utils.WMLUtils;
|
||||
import org.wesnoth.wml.WMLTag;
|
||||
|
|
|
@ -22,7 +22,6 @@ import org.eclipse.xtext.nodemodel.util.NodeModelUtils;
|
|||
import org.eclipse.xtext.resource.XtextResource;
|
||||
import org.eclipse.xtext.ui.editor.syntaxcoloring.IHighlightedPositionAcceptor;
|
||||
import org.eclipse.xtext.ui.editor.syntaxcoloring.ISemanticHighlightingCalculator;
|
||||
import org.wesnoth.ui.WMLSyntaxColoringAdapter;
|
||||
import org.wesnoth.utils.Pair;
|
||||
import org.wesnoth.wml.WMLKey;
|
||||
import org.wesnoth.wml.WMLMacroCall;
|
||||
|
|
|
@ -6,11 +6,10 @@
|
|||
* which accompanies this distribution, and is available at
|
||||
* http://www.eclipse.org/legal/epl-v10.html
|
||||
*******************************************************************************/
|
||||
package org.wesnoth.ui;
|
||||
package org.wesnoth.ui.syntax;
|
||||
|
||||
import org.eclipse.emf.common.notify.impl.AdapterImpl;
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
import org.wesnoth.ui.syntax.WMLHighlightingConfiguration;
|
||||
|
||||
/**
|
||||
* A simple WML adapter that holds a coloring id on the specified resource
|
||||
|
@ -18,7 +17,7 @@ import org.wesnoth.ui.syntax.WMLHighlightingConfiguration;
|
|||
public class WMLSyntaxColoringAdapter extends AdapterImpl
|
||||
{
|
||||
/**
|
||||
* A color id from the {@link WMLHighlightingConfiguration}
|
||||
* A color id from the {@link org.wesnoth.ui.syntax.WMLHighlightingConfiguration}
|
||||
*/
|
||||
public String ColorId;
|
||||
|
|
@ -33,7 +33,6 @@ import org.wesnoth.Logger;
|
|||
import org.wesnoth.Messages;
|
||||
import org.wesnoth.builder.DependencyListNode;
|
||||
import org.wesnoth.preferences.Preferences.Paths;
|
||||
import org.wesnoth.projects.ProjectUtils;
|
||||
import org.wesnoth.templates.ReplaceableParameter;
|
||||
import org.wesnoth.templates.TemplateProvider;
|
||||
import org.wesnoth.wml.SimpleWMLParser;
|
||||
|
@ -464,7 +463,7 @@ public class ResourceUtils
|
|||
/**
|
||||
* Gets the campaign id from the specified resource, or null
|
||||
* If the resource is not a '_main.cfg' it will search for it
|
||||
* with {@link ProjectUtils#getMainConfigLocation(IResource)}
|
||||
* with {@link org.wesnoth.projects.ProjectUtils#getMainConfigLocation(IResource)}
|
||||
* @param resource The resource where to search the id
|
||||
* @return
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue