Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion com.avaloq.tools.ddk.xtext.format.ui/.classpath
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
</accessrules>
</classpathentry>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="xtend-gen"/>
<classpathentry kind="src" path="src-gen">
<attributes>
<attribute name="ignore_optional_problems" value="true"/>
Expand Down
6 changes: 0 additions & 6 deletions com.avaloq.tools.ddk.xtext.format.ui/.project
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.xtext.ui.shared.xtextBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>net.sf.eclipsecs.core.CheckstyleBuilder</name>
<arguments>
Expand All @@ -44,7 +39,6 @@
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.xtext.ui.shared.xtextNature</nature>
<nature>net.sourceforge.pmd.eclipse.plugin.pmdNature</nature>
<nature>net.sf.eclipsecs.core.CheckstyleNature</nature>
<nature>edu.umd.cs.findbugs.plugin.eclipse.findbugsNature</nature>
Expand Down
4 changes: 1 addition & 3 deletions com.avaloq.tools.ddk.xtext.format.ui/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ Require-Bundle: com.avaloq.tools.ddk.xtext.format;visibility:=reexport,
org.eclipse.xtext,
org.eclipse.xtext.xbase.ui,
org.eclipse.jdt.debug.ui,
org.eclipse.xtext.xbase.lib,
org.eclipse.xtext.ui.codetemplates.ui,
org.eclipse.xtend.lib;resolution:=optional
org.eclipse.xtext.ui.codetemplates.ui
Import-Package: org.apache.log4j
Bundle-RequiredExecutionEnvironment: JavaSE-21
Export-Package: com.avaloq.tools.ddk.xtext.format.ui.builder,
Expand Down
3 changes: 1 addition & 2 deletions com.avaloq.tools.ddk.xtext.format.ui/build.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
source.. = src/,\
src-gen/,\
xtend-gen/
src-gen/
bin.includes = META-INF/,\
.,\
plugin.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
/*******************************************************************************
* Copyright (c) 2016 Avaloq Group AG and others.
* All rights reserved. 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
*
* Contributors:
* Avaloq Group AG - initial API and implementation
*******************************************************************************/
package com.avaloq.tools.ddk.xtext.format.ui;

import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.eclipse.xtext.builder.IXtextBuilderParticipant;
import org.eclipse.xtext.ui.editor.hyperlinking.IHyperlinkHelper;
import org.eclipse.xtext.ui.editor.templates.CrossReferenceTemplateVariableResolver;
import org.eclipse.xtext.xtext.generator.model.project.IXtextProjectConfig;
import org.eclipse.xtext.xtext.generator.model.project.XtextProjectConfig;

import com.avaloq.tools.ddk.xtext.format.ui.builder.FormatBuilderParticipant;
import com.avaloq.tools.ddk.xtext.format.ui.hyperlinking.FormatHyperlinkHelper;
import com.avaloq.tools.ddk.xtext.ui.templates.KeywordAwareCrossReferenceTemplateVariableResolver;
import com.google.inject.Binder;

/**
* Use this class to register components to be used within the Eclipse IDE.
*/
public class FormatUiModule extends AbstractFormatUiModule {

public FormatUiModule(final AbstractUIPlugin plugin) {
super(plugin);
}

/**
* Binds a {@link CrossReferenceTemplateVariableResolver} which prefixes keywords with escape characters.
*
* @return {@link KeywordAwareCrossReferenceTemplateVariableResolver}
*/
public Class<? extends CrossReferenceTemplateVariableResolver> bindCrossReferenceTemplateVariableResolver() {
return KeywordAwareCrossReferenceTemplateVariableResolver.class;
}

/**
* Bind hyperlink helper to provide hyperlinking from "override" keyword to extended rule.
*
* @return FormatHyperlinkHelper.class
*/
@Override
public Class<? extends IHyperlinkHelper> bindIHyperlinkHelper() {
return FormatHyperlinkHelper.class;
}

@Override
public Class<? extends IXtextBuilderParticipant> bindIXtextBuilderParticipant() {
return FormatBuilderParticipant.class;
}

@Override
public void configure(final Binder binder) {
super.configure(binder);
binder.bind(IXtextProjectConfig.class).to(XtextProjectConfig.class);
}
}

This file was deleted.

Empty file.