org.kde.koala

Class KShellCompletion

public class KShellCompletion extends KURLCompletion

This class does shell-like completion of file names. A string passed to makeCompletion() will be interpreted as a shell command line. Completion will be done on the last argument on the line. Returned matches consist of the first arguments (uncompleted) plus the completed last argument.

Author: David Smith

UNKNOWN: Shell-like completion of file names.

Constructor Summary
protected KShellCompletion(Class dummy)
KShellCompletion()
Constructs a KShellCompletion object.
Method Summary
StringclassName()
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
protected voidfinalize()
Deletes the wrapped C++ instance
booleanisDisposed()
Has the wrapped C++ instance been deleted?
StringmakeCompletion(String text)
Finds completions to the given text.
QMetaObjectmetaObject()
protected voidpostProcessMatch(StringBuffer match)
protected voidpostProcessMatches(String[] matches)

Constructor Detail

KShellCompletion

protected KShellCompletion(Class dummy)

KShellCompletion

public KShellCompletion()
Constructs a KShellCompletion object.

UNKNOWN: Constructs a KShellCompletion object.

Method Detail

className

public String className()

dispose

public void dispose()
Delete the wrapped C++ instance ahead of finalize()

finalize

protected void finalize()
Deletes the wrapped C++ instance

isDisposed

public boolean isDisposed()
Has the wrapped C++ instance been deleted?

makeCompletion

public String makeCompletion(String text)
Finds completions to the given text. The first match is returned and emitted in the signal match().

Parameters: text the text to complete

Returns: the first match, or null if not found

UNKNOWN: Finds completions to the given text.

metaObject

public QMetaObject metaObject()

postProcessMatch

protected void postProcessMatch(StringBuffer match)

postProcessMatches

protected void postProcessMatches(String[] matches)