Questions tagged [auto-close]
64 questions
21
votes
1 answer
Any risk in a AutoCloseable wrapper for java.util.concurrent.locks.Lock?
With try-with-resource introduced in Java 7, I was surprised to see that that the Lock has not been retrofitted to be an AutoCloseable. It seemed fairly simple, so I have added it myself as follows:
class Lock implements AutoCloseable {
private…

Miserable Variable
- 28,432
- 15
- 72
- 133
14
votes
5 answers
Autoclose alert
Is there any way to close a javascript alert() automatically?
I have an alert
alert("Error found");
I want to close it after a few second. Is that possible or shall I go for jQuery dialogue

Okky
- 10,338
- 15
- 75
- 122
13
votes
5 answers
Is there an auto-close curly brackets plugin for the Geany IDE?
Geany is the closest thing I can find to the perfect web development IDE. However, I can't find a way to automatically close curly brackets ({).
For example, typing:
function test()
{
..and pressing RETURN should cause this to happen:
function…

xLite
- 1,441
- 3
- 15
- 28
8
votes
5 answers
How do you disable auto-closing single quotations inside strings?
I like the functionality of autoclosing brackets, quotations, etc... but when you're inside a string for instance: "" and you start typing a single quote or if the quotes are inverted it'll try to auto pair quotations inside the…

exts
- 9,788
- 4
- 19
- 21
7
votes
5 answers
Chrome extension development: auto close the notification box
After doing something I run this code:
var notification = webkitNotifications.createNotification(
'icon.png', // icon url - can be relative
'Done!', // notification title
'Just updated your list!' // notification body text
);
…

Ryan
- 9,821
- 22
- 66
- 101
6
votes
3 answers
Custom bracket auto-closing in Sublime Text
I'm trying to auto-close the asterisk (*) character in Markdown files.
I've been looking through all the language setting files, and am turning up nothing to use as an example. I've also tried writing a snippet, but found it inefficient (it doesn't…

Albert Xing
- 5,620
- 3
- 21
- 40
4
votes
4 answers
How make fancybox auto close when youtube video id done?
How i can make fancybox auto close when youtube video ended?

napalias
- 1,145
- 1
- 10
- 21
4
votes
2 answers
wxMessageBox with an auto-close timer in wxPython
Platforms: Windows, OS X
Python Version: Active State Python 2.7
wxPython Version: Version 2.9
Here is a sample code in which I use a wxMessageBox:
import wx,os
class Frame(wx.Frame):
def __init__(self, parent, id, title):
…

user699540
- 819
- 2
- 12
- 18
4
votes
0 answers
How to enable tag auto closing in LightTable?
By tag auto closing I mean that when I add the
tag for instance, the editor should automatically put
after it, leaving the cursor between them so I can add text. Ideally, in case of some tags like, upon completing the opening
…

jakub
- 4,774
- 4
- 29
- 46
4
votes
0 answers
How to make WebStorm not auto-close the tabs of temorarily removed files
Let's say I create a new branch then create newFile.js, then commit and switch back to the previous branch. This makes WebStorm auto-close the tab of newFile.js. This is very irritating when often switching between branches and making small…

László Monda
- 1,647
- 1
- 16
- 29
3
votes
3 answers
Auto closing tags in gedit -- can a man dream?
Top of the morning to y'all.
I recently switched to Debian and I'm finding gedit 3 to be a worthy replacement for notepad++.
I have one complaint though: I can't find a plugin which will close tags for me.
Example:
When I type the following
As…

F. P.
- 5,018
- 10
- 55
- 80
3
votes
2 answers
Do Struts2 close the "InputStream" after they have got the result?
I have an action in struts 2 where it opens an FileInputStream, reads an image and shows it in a jsp.
The question is that when struts is finished with getting the image, will it automatically take care of the FileInputStream and close() it or the…

Panos
- 7,227
- 13
- 60
- 95
3
votes
3 answers
Auto closing curly quotation marks in Vim
I'd like to set up Vim to auto close the pair of ‘ and ’ (curly quotation marks).
I've tried to configure all the five plugins I could find (two autoclose's, surround, closepairs and delimitmate) but with no success. I don't even seem to be able to…

Kamil S.
- 406
- 3
- 10
3
votes
2 answers
Auto Close Message Box
I have this program wherein I use timer to redirect to another page. It do work but the problem is when I click cancel button a messagebox will appear and when the user will not click on it and the timer ticks, messagebox didn't close. How can I…

Kuriyama Mirai
- 867
- 5
- 17
- 37
2
votes
3 answers
GWT, disable autoclose MenuBar when clicking on MenuItem?
I want to if it is possible to disable the auto-close MenuBar when I click on a MenuItem?
I have several MenuItem that are like checkboxes, so I can check more than one MenuItem and don't want my menu close everytime I checked one.
Thanks.

TiGi
- 115
- 2
- 9