public abstract class BaseSystemNdi extends AbstractSystemNdi
| Modifier and Type | Field and Description |
|---|---|
static ReplaceString |
COMMENT_LINE_CONFIG_HEADER |
| Constructor and Description |
|---|
BaseSystemNdi() |
| Modifier and Type | Method and Description |
|---|---|
PathInfo |
addFileLine(String type,
net.thevpc.nuts.NId id,
net.thevpc.nuts.io.NPath filePath,
ReplaceString commentLine,
String contentToAdd,
ReplaceString header,
net.thevpc.nuts.NShellFamily shellFamily) |
PathInfo[] |
addScript(NdiScriptOptions options,
String[] all) |
protected int |
compareIconExtensions(String a,
String b) |
protected int |
compareIconPaths(String a,
String b) |
PathInfo[] |
createArtifactScript(NdiScriptOptions options) |
PathInfo[] |
createBootScripts(NdiScriptOptions options) |
protected abstract FreeDesktopEntryWriter |
createFreeDesktopEntryWriter() |
PathInfo[] |
createLaunchTermShortcut(net.thevpc.nuts.NDesktopIntegrationItem nDesktopIntegrationItem,
NdiScriptOptions options,
String fileName,
String name) |
PathInfo[] |
createLaunchTermShortcutGlobal(net.thevpc.nuts.NDesktopIntegrationItem nDesktopIntegrationItem,
NdiScriptOptions options) |
protected abstract String |
createNutsScriptContent(net.thevpc.nuts.NId fnutsId,
NdiScriptOptions options,
net.thevpc.nuts.NShellFamily shellFamily) |
PathInfo[] |
createShortcut(net.thevpc.nuts.NDesktopIntegrationItem nDesktopIntegrationItem,
NdiScriptOptions options) |
PathInfo[] |
createShortcut(net.thevpc.nuts.NDesktopIntegrationItem nDesktopIntegrationItem,
net.thevpc.nuts.NId id,
String path,
FreeDesktopEntry.Group shortcut) |
net.thevpc.nuts.io.NPath |
getBinScriptFile(String name,
NdiScriptOptions options) |
ReplaceString |
getCommentLineConfigHeader() |
protected String |
getDefaultIconPath() |
net.thevpc.nuts.util.NSupportMode |
getDesktopIntegrationSupport(net.thevpc.nuts.NDesktopIntegrationItem target) |
protected abstract String |
getExecFileName(String name) |
NdiScriptInfo[] |
getIncludeNutsEnv(NdiScriptOptions options) |
abstract NdiScriptInfo |
getIncludeNutsEnv(NdiScriptOptions options,
net.thevpc.nuts.NShellFamily shellFamily) |
NdiScriptInfo[] |
getIncludeNutsInit(NdiScriptOptions options) |
NdiScriptInfo |
getIncludeNutsInit(NdiScriptOptions options,
net.thevpc.nuts.NShellFamily shellFamily) |
NdiScriptInfo[] |
getIncludeNutsTermInit(NdiScriptOptions options) |
abstract NdiScriptInfo |
getIncludeNutsTermInit(NdiScriptOptions options,
net.thevpc.nuts.NShellFamily shellFamily) |
NdiScriptInfo |
getNutsStart(NdiScriptOptions options) |
NdiScriptInfo[] |
getNutsTerm(NdiScriptOptions options) |
abstract NdiScriptInfo |
getNutsTerm(NdiScriptOptions options,
net.thevpc.nuts.NShellFamily shellFamily) |
String |
getPreferredIconPath(net.thevpc.nuts.NId appId) |
protected abstract net.thevpc.nuts.NShellFamily[] |
getShellGroups() |
Path |
getShortcutPath(NdiScriptOptions options) |
NdiScriptInfo[] |
getSysRC(NdiScriptOptions options) |
abstract String |
getTemplateName(String name,
net.thevpc.nuts.NShellFamily shellFamily) |
boolean |
isNutsBootId(net.thevpc.nuts.NId nid) |
abstract boolean |
isShortcutFileNameUserFriendly() |
net.thevpc.nuts.NWorkspaceBootConfig |
loadSwitchWorkspaceLocationConfig(String switchWorkspaceLocation) |
protected boolean |
matchCondition(net.thevpc.nuts.util.NSupportMode createDesktop,
net.thevpc.nuts.util.NSupportMode desktopIntegrationSupport) |
void |
onPostGlobal(NdiScriptOptions options,
PathInfo[] updatedPaths) |
PathInfo |
removeFileCommented2Lines(String type,
net.thevpc.nuts.NId id,
net.thevpc.nuts.io.NPath filePath,
String commentLine,
boolean force,
net.thevpc.nuts.NShellFamily shellFamily) |
void |
removeNutsScript(String id,
String switchWorkspaceLocation) |
protected String |
resolveBestIcon(net.thevpc.nuts.NId appId,
List<String> iconPaths) |
String |
resolveIcon(String iconPath,
net.thevpc.nuts.NId appId) |
protected int |
resolveIconExtensionPriority(String extension)
bigger is better
|
String |
resolveShortcutFileName(net.thevpc.nuts.NId id,
net.thevpc.nuts.NDescriptor descriptor,
String fileName,
String name) |
boolean |
saveFile(Path filePath,
String content,
boolean force) |
SimpleScriptBuilder |
scriptBuilderSimple(net.thevpc.nuts.NShellFamily shellFamily,
String type,
net.thevpc.nuts.NId anyId,
NdiScriptOptions options) |
FromTemplateScriptBuilder |
scriptBuilderTemplate(String templateName,
net.thevpc.nuts.NShellFamily shellFamily,
String type,
net.thevpc.nuts.NId anyId,
NdiScriptOptions options) |
List<String> |
splitLines(String text) |
PathInfo[] |
switchWorkspace(NdiScriptOptions options) |
String |
toAbsoluteIconPath(net.thevpc.nuts.NId appId,
String iconPath) |
List<String> |
toAbsoluteIconPaths(net.thevpc.nuts.NId appId,
List<String> iconPaths) |
public static final ReplaceString COMMENT_LINE_CONFIG_HEADER
public NdiScriptInfo[] getSysRC(NdiScriptOptions options)
public NdiScriptInfo[] getIncludeNutsInit(NdiScriptOptions options)
public NdiScriptInfo getIncludeNutsInit(NdiScriptOptions options, net.thevpc.nuts.NShellFamily shellFamily)
public NdiScriptInfo[] getIncludeNutsTermInit(NdiScriptOptions options)
protected abstract net.thevpc.nuts.NShellFamily[] getShellGroups()
public abstract NdiScriptInfo getIncludeNutsTermInit(NdiScriptOptions options, net.thevpc.nuts.NShellFamily shellFamily)
public FromTemplateScriptBuilder scriptBuilderTemplate(String templateName, net.thevpc.nuts.NShellFamily shellFamily, String type, net.thevpc.nuts.NId anyId, NdiScriptOptions options)
public SimpleScriptBuilder scriptBuilderSimple(net.thevpc.nuts.NShellFamily shellFamily, String type, net.thevpc.nuts.NId anyId, NdiScriptOptions options)
public NdiScriptInfo[] getNutsTerm(NdiScriptOptions options)
public abstract NdiScriptInfo getNutsTerm(NdiScriptOptions options, net.thevpc.nuts.NShellFamily shellFamily)
public NdiScriptInfo[] getIncludeNutsEnv(NdiScriptOptions options)
public abstract NdiScriptInfo getIncludeNutsEnv(NdiScriptOptions options, net.thevpc.nuts.NShellFamily shellFamily)
public NdiScriptInfo getNutsStart(NdiScriptOptions options)
public net.thevpc.nuts.io.NPath getBinScriptFile(String name, NdiScriptOptions options)
protected abstract String createNutsScriptContent(net.thevpc.nuts.NId fnutsId, NdiScriptOptions options, net.thevpc.nuts.NShellFamily shellFamily)
public PathInfo[] createArtifactScript(NdiScriptOptions options)
public PathInfo[] switchWorkspace(NdiScriptOptions options)
public boolean isNutsBootId(net.thevpc.nuts.NId nid)
public PathInfo[] addScript(NdiScriptOptions options, String[] all)
public PathInfo[] createBootScripts(NdiScriptOptions options)
public net.thevpc.nuts.util.NSupportMode getDesktopIntegrationSupport(net.thevpc.nuts.NDesktopIntegrationItem target)
protected boolean matchCondition(net.thevpc.nuts.util.NSupportMode createDesktop,
net.thevpc.nuts.util.NSupportMode desktopIntegrationSupport)
public void onPostGlobal(NdiScriptOptions options, PathInfo[] updatedPaths)
public net.thevpc.nuts.NWorkspaceBootConfig loadSwitchWorkspaceLocationConfig(String switchWorkspaceLocation)
public PathInfo addFileLine(String type, net.thevpc.nuts.NId id, net.thevpc.nuts.io.NPath filePath, ReplaceString commentLine, String contentToAdd, ReplaceString header, net.thevpc.nuts.NShellFamily shellFamily)
public PathInfo removeFileCommented2Lines(String type, net.thevpc.nuts.NId id, net.thevpc.nuts.io.NPath filePath, String commentLine, boolean force, net.thevpc.nuts.NShellFamily shellFamily)
protected abstract FreeDesktopEntryWriter createFreeDesktopEntryWriter()
public PathInfo[] createShortcut(net.thevpc.nuts.NDesktopIntegrationItem nDesktopIntegrationItem, net.thevpc.nuts.NId id, String path, FreeDesktopEntry.Group shortcut)
protected int resolveIconExtensionPriority(String extension)
extension - extensionpublic List<String> toAbsoluteIconPaths(net.thevpc.nuts.NId appId, List<String> iconPaths)
public String getPreferredIconPath(net.thevpc.nuts.NId appId)
public Path getShortcutPath(NdiScriptOptions options)
public PathInfo[] createShortcut(net.thevpc.nuts.NDesktopIntegrationItem nDesktopIntegrationItem, NdiScriptOptions options)
protected String getDefaultIconPath()
public PathInfo[] createLaunchTermShortcutGlobal(net.thevpc.nuts.NDesktopIntegrationItem nDesktopIntegrationItem, NdiScriptOptions options)
public abstract boolean isShortcutFileNameUserFriendly()
public String resolveShortcutFileName(net.thevpc.nuts.NId id, net.thevpc.nuts.NDescriptor descriptor, String fileName, String name)
public PathInfo[] createLaunchTermShortcut(net.thevpc.nuts.NDesktopIntegrationItem nDesktopIntegrationItem, NdiScriptOptions options, String fileName, String name)
public ReplaceString getCommentLineConfigHeader()
Copyright © 2025 vpc open source initiative. All rights reserved.