-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
416 additions
and
416 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package io.questdb.desktop.ui.editor; | ||
|
||
import io.questdb.desktop.GTk; | ||
import io.questdb.desktop.model.StoreEntry; | ||
|
||
public class Content extends StoreEntry { | ||
private static final String ATTR_NAME = "content"; | ||
|
||
public Content() { | ||
this("default"); | ||
} | ||
|
||
public Content(String name) { | ||
super(name); | ||
setAttr(ATTR_NAME, GTk.BANNER); | ||
} | ||
|
||
@SuppressWarnings("unused") | ||
public Content(StoreEntry other) { | ||
super(other); | ||
} | ||
|
||
@Override | ||
public final String getUniqueId() { | ||
return getName(); | ||
} | ||
|
||
public String getContent() { | ||
return getAttr(ATTR_NAME); | ||
} | ||
|
||
public void setContent(String content) { | ||
setAttr(ATTR_NAME, content); | ||
} | ||
} |
Oops, something went wrong.