Menu

[7cef54]: / src / staticResources / AbstractNativeLanguageBootstrapResource.java  Maximize  Restore  History

Download this file

30 lines (22 with data), 758 Bytes

 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
package staticResources;
import java.io.File;
import java.io.IOException;
import java.util.logging.Logger;
import core.languageHandler.Language;
public abstract class AbstractNativeLanguageBootstrapResource extends AbstractBootstrapResource {
private static final Logger LOGGER = Logger.getLogger(AbstractNativeLanguageBootstrapResource.class.getName());
@Override
public final void extractResources() throws IOException {
super.extractResources();
if (!generateKeyCode()) {
LOGGER.warning("Unable to generate key code");
}
}
@Override
protected final String getName() {
return getLanguage().name();
}
protected abstract Language getLanguage();
protected abstract boolean generateKeyCode();
public abstract File getIPCClient();
}
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.