Skip to main content
summaryrefslogtreecommitdiffstats
blob: e5e9bf90d6d8c1a7256687f72866d4727eb8c39d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package org.eclipse.fx.testcases.l10n.app;

import org.eclipse.fx.core.di.text.AbstractMessageRegistry;
import org.eclipse.fx.core.text.Formatter;

import org.eclipse.e4.core.di.annotations.Creatable;

import java.util.function.Supplier;

import javax.inject.Inject;

import org.eclipse.e4.core.services.nls.Translation;

@Creatable
public class BasicMessagesRegistry extends AbstractMessageRegistry<BasicMessages> {




	@Inject
	public void updateMessages(@Translation BasicMessages messages) {
		super.updateMessages(messages);
	}

	public String BasicYes() {
		return getMessages().BasicYes;
	}


	public String BasicDyn() {
		return getMessages().BasicDyn;
	}

	public String BasicDyn(Object val) {
		java.util.Map<String,Object> dataMap = new java.util.HashMap<>();
		dataMap.put("val",val);
		return org.apache.commons.lang.text.StrSubstitutor.replace( BasicDyn(), dataMap);
	}

	public Supplier<String> BasicDyn_supplier(Object val) {
		return () -> BasicDyn(val);
	}

}

Back to the top