Can't open Javafx window until I open Javafx viewpart - eclipse-plugin

I am using e(fx)clipse in an eclipse plugin. I'd like to have all my viewparts in SWT, but popup a fullscreen video in Javafx. When I do this I get a
"java.lang.IllegalStateException: Toolkit not initialized".
If, however, I open a Javafx viewpart first then my SWT panel pops up a fullscreen Javafx window, I don't get an error.
A workaround to my problem is temporarily open and close a Javafx viewpart, then open the video, but then I get an annoying flicker of a window before the video plays. Any ideas?

Related

Safari Web Extension icon does not open popup from the overflow (>>) menu

Video showing the bug: https://www.youtube.com/watch?v=tQoOYWe0jfE
Install any Safari Web Extension from the Mac App Store (e.g. DuckDuckGo Privacy Essentials, Bitwarden Password Manager).
Resize the Safari window until the extension browser_action icon is forced into the overflow menu (>> at the far right of the toolbar).
Open the overflow menu and click the menu item for the extension. Nothing happens.
This even occurs when using the sample extension "Sea Creator" developed by Apple. You can build it and try it out by following the instructions on this page: https://developer.apple.com/documentation/safariservices/safari_web_extensions/developing_a_safari_web_extension
I have filed a Feedback Assitant report for this issue: FB9495287 / http://www.openradar.me/radar?id=5035732439662592
Anyone know what's going on here? Or does anyone have a workaround to get the extension popup to appear when invoked from this menu?

Debugging background scripts in safari extension

I am working on a custom Safari extension and would like to debug the Background scripts. I am not certain how to do this? Ideally, if there was a way to step into the background scripts, that would be great. But when I try to step into a background call, the Safari debugger just steps to the next line. The console.log within the background scripts do not get printed to the console (This is the console I launched from right clicking a popover that is part of the extension and then hitting inspect).
Any help on this would be great. Thank you.
This is an old question that asks about a different type of Safari extensions but I figured it could be helpful to add an updated answer now that Safari (v14) supports the Web Extensions API (similar to the API that all other major browsers use).
Debugging background scripts is now built into the Safari menu in the toolbar: "Develop" => "Web Extension Background Pages" => select your (enabled) extension. That should open the dev tools with all your background scripts where you can set breakpoints, check the network tab, etc..
As a side note, you can debug your extension's popup by opening it, right clicking the popup and clicking "Inspect Element".
In case this comes useful for someone - I figured out a way to view console statements in the background scripts. Open the extension builder and click on Inspect Global Page. Go to the console tab and the console.log messages in the background scripts will be printed in that console.
Now you can use Safari Preview to debug your Safari App Extension. There is a control to select the extension container at the lower-right corner of the console.

How to make MobileFirst preview in chrome MobileBrowserSimulator to open Android tablet as default device

When I preview any one of the MaximoAnywhere applications eg. Inspection app (Android version), by default the BrowserSimulator is opening Android Phone device view. Is there a way to open Android tablet device view by default ?
This feature is not available as part of the MBS tool.
What you can do instead is have it load the preview as usual the first time.
But after that first time, keep the browser window opened the way you set it up with the device skin that you prefer and from there on just build your changes, and then in the browser simply click on the refresh button. The end result would be what you're looking for - to preview with the tablet skin that is already opened infront of you.

Cannot set application icon for a GTK# application in Monodevelop 3.1.1

I set the icon as described in https://stackoverflow.com/a/12491626/67824 but it still shows as a generic app icon (grey screen with green "exec" text) in the dock and in the ⌘+tab application switcher (both when I run it from MonoDevelop and when I run it using mono foo.exe). I know it can be done, because when I run a mono-compliant version of LINQPad I'm seeing the LINQPad application icon.
I also use the SetIconFromFile method in the main window's class. Example below where my icon is copied to an Images folder at the root of my application:
this.SetIconFromFile(string.Format("{0}{1}Images{2}Logo.ico",
System.IO.Path.GetDirectoryName(Assembly.GetEntryAssembly().Location),
System.IO.Path.DirectorySeparatorChar,
System.IO.Path.DirectorySeparatorChar));

Handling the application in dock

I'm using Mac OSX 10.9. I made the settings in system preferences->Dock->select "Minimise windows into application icon". The desktop application(objective c) which i created opens a popup window on clicking a button. Once minimised that popup window to the dock i'm unable to maximise it again. Even i tried the function - (BOOL)applicationShouldHandleReopen. But its not responding.
Please help me to resolve it.
Thanks in advance