OpenAPI, VCS ChangeProvider#getChanges and status bar

For the Mks pplugin, collecting the changes may take a noticeable time, so I'd like to provide a visual feedback about the progress of the operation, but there is no need to display a modal dialog.

I've currently implemented it using
JLabel statusLabel = new JLabel();
WindowManager.getInstance().getStatusBar(myProject).addCustomIndicationComponent(statusLabel);

and then changing the label text.

This works, but the status bar belongs to the main IDEA window, I was wondering if it was possible to put some feedback text in the changes view itself.

More precisely, on the attached screenshot my status is "collecting change packages" and displayed next to the memory status. I'd like it to go after the "Updating: MKS". Is this possible ?



Attachment(s):
vcsfeedback.jpg
2 comments

Hello Thibaut,

For the Mks pplugin, collecting the changes may take a noticeable
time, so I'd like to provide a visual feedback about the progress of
the operation, but there is no need to display a modal dialog.

I've currently implemented it using
JLabel statusLabel = new JLabel();
WindowManager.getInstance().getStatusBar(myProject).addCustomIndicatio
nComponent(statusLabel);
and then changing the label text.

This works, but the status bar belongs to the main IDEA window, I was
wondering if it was possible to put some feedback text in the changes
view itself.

More precisely, on the attached screenshot my status is "collecting
change packages" and displayed next to the memory status. I'd like it
to go after the "Updating: MKS". Is this possible ?


This is not currently possible. What you can do is use the ChangeListDecorator
API to display progress information next to changelist names.

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


0

Thanks for the reply, but this is not appropriate, i'll keep using the status bar until a better solution becomes available

0

Please sign in to leave a comment.