Package org.pkl.core.settings
Record Class PklSettings.Editor
java.lang.Object
java.lang.Record
org.pkl.core.settings.PklSettings.Editor
- Enclosing class:
- PklSettings
An editor for viewing and editing Pkl files.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PklSettings.EditorThe Atom editor.static final PklSettings.EditorThe IntelliJ IDEA editor.static final PklSettings.EditorThe Sublime Text editor.static final PklSettings.EditorThe editor associated withfile:URLs ending in.pkl.static final PklSettings.EditorThe TextMate editor.static final PklSettings.EditorThe Visual Studio Code editor. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Deprecated, for removal: This API element is subject to removal in a future version.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Returns the value of theurlSchemerecord component.
-
Field Details
-
SYSTEM
The editor associated withfile:URLs ending in.pkl. -
IDEA
The IntelliJ IDEA editor. -
TEXT_MATE
The TextMate editor. -
SUBLIME
The Sublime Text editor. -
ATOM
The Atom editor. -
VS_CODE
The Visual Studio Code editor.
-
-
Constructor Details
-
Editor
Creates an instance of aEditorrecord class.- Parameters:
urlScheme- the value for theurlSchemerecord component
-
-
Method Details
-
getUrlScheme
Deprecated, for removal: This API element is subject to removal in a future version.Returns the URL scheme for opening files in this editor. The following placeholders are supported:%{url},%{path},%{line},%{column}.This method is deprecated; use
urlScheme()instead. -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
urlScheme
Returns the value of theurlSchemerecord component.- Returns:
- the value of the
urlSchemerecord component
-