How to invoke the "New Changelist" dialog?

Hi,

I would like to invoke the "New Changelist" dialog. Is this possible? If yes, is it possible to pre-fill it with some text in the title and comment fields?

Regards
Janusz



Attachment(s):
New Changelist.png
6 comments
Comment actions Permalink

Just create a new instance of com.intellij.openapi.vcs.changes.ui.NewChangelistDialog and show it.
I don't think there's an API for setting values on it though.

0
Comment actions Permalink

com.intellij.openapi.vcs.changes.ui does not seem to exist.

0
Comment actions Permalink

It's in idea.jar.
You'll have to add it to your IDEA JDK.

0
Comment actions Permalink

Yes, it's totally legal. The only additional constraint is that you can't distribute idea.jar in a product of yours.
But if your just implementing a plugin to run in IDEA you have no problems, you can use all the classes in idea.jar.

0
Comment actions Permalink

Hello Janusz,

I would like to invoke the "New Changelist" dialog. Is this possible?
If yes, is it possible to pre-fill it with some text in the title and
comment fields?


The dialog is called NewChangelistDialog. There's no API for prefilling its
title/comment.

You can also implement the dialog by yourself and use EditChangelistPanel
inside it, which will let you set the title/comment.

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Please sign in to leave a comment.