blob: 5f4ea9faccde17f89e9553e418aeb129cedd30bf [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2016 Anton Tanasenko
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Anton Tanasenko - initial API and implementation
*******************************************************************************/
package org.eclipse.m2e.editor.pom;
import org.eclipse.jface.text.templates.Template;
import org.eclipse.swt.graphics.Image;
/**
* PomTemplate
*
* @author atanasenko
*/
public class PomTemplate extends Template {
private Image image;
private int relevance;
private String matchValue;
private boolean retriggerOnApply;
public PomTemplate(String name, String description, String contextTypeId, String pattern, boolean isAutoInsertable) {
super(name, description, contextTypeId, pattern, isAutoInsertable);
}
public Image getImage() {
return this.image;
}
public PomTemplate image(Image image) {
this.image = image;
return this;
}
public int getRelevance() {
return this.relevance;
}
public PomTemplate relevance(int relevance) {
this.relevance = relevance;
return this;
}
public String getMatchValue() {
return this.matchValue;
}
public PomTemplate matchValue(String matchValue) {
this.matchValue = matchValue;
return this;
}
public boolean isRetriggerOnApply() {
return this.retriggerOnApply;
}
public PomTemplate retriggerOnApply(boolean retriggerOnApply) {
this.retriggerOnApply = retriggerOnApply;
return this;
}
}