Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit68ff70c

Browse files
authored
Use delegated properties with recent connections (#337)
From what I understand when you use BaseState you are supposed to usedelegation. Something must have changed because this code used to workjust as it was, but now it seems without delegation the properties areignored and we were getting recent entries that were blank (looked likethis: `<RecentWorkspaceConnection />`).
1 parent71086c9 commit68ff70c

File tree

1 file changed

+35
-11
lines changed

1 file changed

+35
-11
lines changed

‎src/main/kotlin/com/coder/gateway/models/RecentWorkspaceConnection.kt

Lines changed: 35 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,51 @@ import com.intellij.openapi.components.BaseState
44
importcom.intellij.util.xmlb.annotations.Attribute
55

66
classRecentWorkspaceConnection(
7+
coderWorkspaceHostname:String? =null,
8+
projectPath:String? =null,
9+
lastOpened:String? =null,
10+
ideProductCode:String? =null,
11+
ideBuildNumber:String? =null,
12+
downloadSource:String? =null,
13+
idePathOnHost:String? =null,
14+
webTerminalLink:String? =null,
15+
configDirectory:String? =null,
16+
name:String? =null,
17+
) : BaseState(), Comparable<RecentWorkspaceConnection> {
718
@get:Attribute
8-
varcoderWorkspaceHostname:String? =null,
19+
var coderWorkspaceHostname by string()
920
@get:Attribute
10-
varprojectPath:String? =null,
21+
var projectPath by string()
1122
@get:Attribute
12-
varlastOpened:String? =null,
23+
var lastOpened by string()
1324
@get:Attribute
14-
varideProductCode:String? =null,
25+
var ideProductCode by string()
1526
@get:Attribute
16-
varideBuildNumber:String? =null,
27+
var ideBuildNumber by string()
1728
@get:Attribute
18-
vardownloadSource:String? =null,
29+
var downloadSource by string()
1930
@get:Attribute
20-
varidePathOnHost:String? =null,
31+
var idePathOnHost by string()
2132
@get:Attribute
22-
varwebTerminalLink:String? =null,
33+
var webTerminalLink by string()
2334
@get:Attribute
24-
varconfigDirectory:String? =null,
35+
var configDirectory by string()
2536
@get:Attribute
26-
varname:String? =null,
27-
) : BaseState(), Comparable<RecentWorkspaceConnection> {
37+
var name by string()
38+
39+
init {
40+
this.coderWorkspaceHostname= coderWorkspaceHostname
41+
this.projectPath= projectPath
42+
this.lastOpened= lastOpened
43+
this.ideProductCode= ideProductCode
44+
this.ideBuildNumber= ideBuildNumber
45+
this.downloadSource= downloadSource
46+
this.idePathOnHost= idePathOnHost
47+
this.webTerminalLink= webTerminalLink
48+
this.configDirectory= configDirectory
49+
this.name= name
50+
}
51+
2852
overridefunequals(other:Any?):Boolean {
2953
if (this=== other)returntrue
3054
if (javaClass!= other?.javaClass)returnfalse

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp