This repository has been archived by the owner on Feb 9, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dialog to define the addr for neovim
- Loading branch information
1 parent
45f1a89
commit 73469e7
Showing
2 changed files
with
55 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import com.intellij.openapi.ui.DialogWrapper; | ||
import com.siyeh.ig.ui.TextField; | ||
import org.jetbrains.annotations.Nullable; | ||
|
||
import javax.swing.*; | ||
|
||
/** | ||
* Created by ville on 4/14/16. | ||
*/ | ||
public class NeovimDialog extends DialogWrapper { | ||
|
||
private JTextField mComponent; | ||
|
||
public NeovimDialog(boolean canBeParent) { | ||
super(canBeParent); | ||
|
||
this.setTitle("Connect to Neovim"); | ||
mComponent = new JTextField(); | ||
mComponent.setToolTipText("Neovim TCP address"); | ||
|
||
this.init(); | ||
} | ||
|
||
@Nullable | ||
@Override | ||
protected JComponent createCenterPanel() { | ||
return mComponent; | ||
} | ||
|
||
public String getAddr() { | ||
return mComponent.getText(); | ||
} | ||
} |
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