Getting Eclipse's Progress View - eclipse-plugin

Is there a way to capture Eclipse's Progress View? I want to know if the Progress View displays No operations to display at this time. or if there is a running progress.
Thanks.

The progress view id is org.eclipse.ui.views.ProgressView and it is implemented by org.eclipse.ui.internal.progress.ProgressView. Since this is an internal class it is not part of the Eclipse API and you should not attempt to use it. In any case it does not provide a way to see what is currently being displayed.
You can find out if the job manager is currently idle using:
boolean idle = Job.getJobManager().isIdle();

Eclipse 4 now has the ProgressView officially made available, see
https://wiki.eclipse.org/Eclipse4/ProgressView

Related

Angular 14 carbon design system how to use single progress indicator

I am new to using carbon design system with angular.
i would like to use the progress indicator but not with steps but display the progress with single indicator. Can anyone help me how to achieve this?
<ibm-progress-indicator [steps]="skeletonSteps" [orientation]="orientation" skeleton="true">
</ibm-progress-indicator>
Thanks

Editing Video Effects panel on VLC for Mac

Ok so this question is actually in two parts.
I coded a video filter for VLC and I would like to add a control to the Video Effects panel on the OS X UI. So far I've been able to link my plugin the the UI by hijacking one of the existing controls, but this isn't ideal.
Now, if I open up the Xcode project (I'm running Xcode 6.3.1) and try to open the VideoEffect.xib file, I get the following error:
I tried to google this but it sounds like the only alternative would be to play archaeologist and dig up an old copy of Xcode 3. Is there any other way to be able to open this file and edit it somehow? I tried to look at the XML code but if I started to change that I'd do more damage than good.
The second thing I'd like to do is sending back values from the effect module to the UI. At the moment (by hijacking one of the existing sliders), all I can do is read a value from the panel with
config_ChainParse(p_filter, FILTER_PREFIX, ppsz_filter_options, p_filter->p_cfg);
p_filter->p_sys->i_factor = var_CreateGetIntegerCommand(p_filter, FILTER_PREFIX "factor");
and then, inside the callback function:
p_sys->i_factor = VLC_CLIP( newval.i_int, 0, 255 );
However, I haven't been able to write back the value. I'd like the filter to set p_sys->i_factor to a random value at start. This works (using var_SetInteger()), but it isn't reflected in the position of the slider in the Video Effect panel. I suspect I need to hack a bit deeper for that. Any ideas?
Regarding your first question with the xib-file. Consider downloading and using our forthcoming 3.0 code from git://git.videolan.org/vlc.git - it allows editing of said file without Xcode 3.
Regarding your second question, why would you want your video filter to interfere with the UI? This is not how the architecture of VLC works and there is no correct way to do it at this point. You would need to edit the core to do another global variable callback to ask the UI to reload the presented filter configuration.
Perhaps, if you give details about what your filter does and what you want to achieve, we find a more supported way :)

How to detect whether my app is loading data, and if so, showing a loading screen

I want to implement into my cocos2d project (ipad) a loading screen, whenever data is being fetched. Is there a convenient way to do this without hard-coding it ?
Add a flag/start an activity indicator/etc. that indicates that the loading has begun at the beginning of the computational process and stop it after the end. Update in the meantime if you intend to add a progress bar.
Check out this github project. It gives you a framework for detecting when a task that you want to happen is in progress. It also lets you decide what happens when the task is completed.

Getting the screen position of a non-view based NSStatusItem

My application makes use of an NSStatusItem. I need to grab the screen coordinates for the status item, but since I have no need for the functionality offered by setting a custom view for the item I am using a standard icon-based one instead.
Is there a way to get the status item's position without having to resort to setting a custom view to it?
Unless you find a better way, you could use some undocumented API: - (id)_window of NSStatusItem probably returns the window enclosing the item itself. Maybe you can get some interesting information out of that?
Beware: Some fundamentalists might actually try to break your neck for using undocumented API. Just make sure you check regularly if this portion of your code works with newer OS versions (either by hand or using some unit tests).

iphone progress view

i m trying to make progress view that shows progress according to same speed as receiving data from internet......somebody suggest me....?
thanks in advance
Get a look at ASIHttpRequest!
There's plenty of classes that can help you download data from internet, atomically or queued with progress tracking!
http://allseeing-i.com/ASIHTTPRequest/