How to execute a custom Eclipse Editor - configuration

I have created a graphical editor using Eclipse-GMF. So now I can create diagram files. What I would like to do is execute the diagram files by clicking the green button.
So basically I would like to create a custom run configuration for a plugin that I have created.
I would like the custom run configuration to launch an Eclipse-RCP application that will read the runned diagram. But when i choose my RCP application in the Run as product or Run as application it opens normally for about 20secs then it crashes...
So my question is how do i configure this correctly??

You should extend the org.eclipse.debug.launch* extension points to have your own launch configuration, launchers, launch tabs, etc.

I believe these crashes that you mention are related to this bug. The crash log is identical to the one you posted in your comment. From what I can see, the issue was with Eclipse Helios on Windows 7 when Mylyn is installed on the target platform. The bug report states that it's solved in 3.7 M7. See this comment on how to prevent your plugin from crashing the workbench. Hope that this helps :).

Related

WIndows form GUI editor in Monodevelop

I have written a tool in Visual Studio Community using a C# windows form project. When I started the project I was unaware Microsoft insist on a user signing into an account after 30 days, (even though they offer an offline installation). For security reasons I cannot connect the computer to the internet to login. I have downloaded MonoDevelop and successfully opened and compiled the project. However, I would like to have the ability to "easily" edit the GUI. MonoDevelop's documentation seems to have little in-sight as to if this is possible. I checked out http://www.monodevelop.com/documentation/stetic-gui-designer/ which describes the process for native Mono applications. When I open the Form1.cs file, I am presented only with the option to view the source code. Is it possible to view the GUI designer?
The Stetic GUI Designer is only available for GTK 2.x based applications and not for Windows' Forms.
There is a project called WinForms Designer that might help you, it has not been updated for many years, but it still runs on at least OS-X (that is only OS that I have personally used it on).
http://www.mono-project.com/archived/winforms_designer
Note: For OS-X (or Linux) using the latest Mono, you will need to update the Makefile and replace the references to gmcs to mcs

JavaFx with swing and Java 7

I have a swing application that in a couple of windows I use JavaFX scene to display the content. I deploy my application using Web Start to my clients. If a the client has Java 8 installed on their machine everything is fine but if they have Java 7 installed then the application shuts down as soon as the first JavaFX window appears. The even more weird thinks is that is I have Java Console to open with the application then everything works fine.???
What is there in the Java Console that is helping the application to overcome whatever is the problem?
I have follow the tips here JavaFX CSS Error ( Property Stylesheets does not exist ) and I also followed the jnlp instructions here http://docs.oracle.com/javafx/2/deployment/deploy_swing_apps.htm#BACFDACD
Both helped with other issues I had.
My application has many swing windows that I slowly want to migrate to JavaFX so for a while I want both technologies to be able to run. The fact that when console is showing is making the application run with no problems tells me that there is probably a settings or something that I am missing that could solve my problem.
Any help would be much appreciated.
Thanks

Win 10 UWP App: Unable to upload app package to Windows Store

I am trying to deploy my windows 10 uwp app to the windows store. I got a validated developer account and everything set up. My app packages have been built and passed all tests of the testing kit. Now I am trying to perform the last step: uploading to the store.
The problem is, that the "Upload App Packages..." is greyed out! I tryed to clean the project, selected the project to no avail.
Has anyone got an idea what the problem might be or how to further debug it? As there is not error message I am not certain what is wrong in the first place...
Thank you!
According to the documentation, this option merely opens the Dev center dashboard. Save yourself the trouble and open it directly in your web browser: https://dev.windows.com
To be honest, for some reason I don't even have this option in my Visual Studio (maybe it was removed in VS 2015?). I've always generated the packages from VS then uploaded them with the web browser, without any trouble.
Goto in Release Configuration and Check .net native tool chain and optimize code then create app package again (Don't forget to associate app to store first)

Why is my IsolatedStorage whiped when I rebuild my Windows Phone 8 project?

There are several questions on StackOverflow about the same topic, but I haven't found the solution.
In my Windows Phone 8 App I store user settings in the IsolatedStorage.ApplicationSettings.
This works great, I use IsolatedStorage.ApplicationSettings[key] = value to set my values and ofcourse use IsolatedStorage.ApplicationSettings.Save() to save them.
I have also created a database using a .sdf file to save local data.
When I use the Deploy function in VS2013(Visual Studio 2013) to update my app, the isolated storage settings will remain.
However, when I have used the Rebuild or Clean function in VS2013, the isolated storage will be whiped on the next deploy! Resulting in the deletion of all local data and usersettings.
Why does this behavior occur?
A work-around would be to not use these functions, I could basically do all my work from development to deployment without using Rebuild or Clean. But when I would (accidentally) use these functions I would be unable to deploy without whiping all local data on the devices.
This behavior also occurs when I upload my App to the Windows Phone Beta Store. (I haven't used the live store yet)
UPDATE:
Thanks to robwirving I have some new insight: XapDeployCmd.exe
This is a tool that can perform all the deployment tasks that Visual Studio normally does for you, in command prompt. The relevant actions are installlaunch and update.
I think VS performs an installlaunch action when the deployment process detects the project has been rebuild. However, if I use the update action with XapDeployCmd on a Xap build by Visual Studio, which has been Cleaned and Rebuild, the isolated storage is NOT whiped.
Could it be that the Windows Phone Beta Store mimics this behavior?
The default behavior of Visual Studio is to do a fresh install instead of an update when it has detected a rebuild. As far as I know this is not configurable.
You could do a rebuild and then update your XAP without deploying through Visual Studio however. Here is the documentation for XapDeployCmd, a command line tool included in the Windows Phone Dev tools that allows you to install or update a XAP from the command line. http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff402565%28v=vs.105%29.aspx
When You perform Clean Solution Visual Studio Cleans all the data related to Project and all related linking to the .dlls and other linked data. It serves as cleaning of all Generated files and data so Ultimately you loss your local data.
In the Case of Rebuild Solution Visual Studio Regenerates files and data that you are using with that Solution so In the Process of Regenerating your data and linking of .dlls also get cleared and new solution for that Project is Created so here you also loss Your data
In Short, The Process of Clean Cleans the Whole Solution linking and data while Rebuild regenrates the new solution after cleaning the data and linkings.

Using Xdebug with Netbeans or Komodo fails when connecting to Mysql

I am trying to get either NetBeans or Komodo IDE to remotely debug PHP. I have a remote website installed on the development machine which is a Mac running Mountain Lion. Xdebug is installed. The website on the local machine runs normally in a browser.
However, for both NetBeans and Komodo IDE, when single stepping through the code, the attempt to execute mysqli_connect fails. In NetBeans there is the following error message:
Socket Exception occured If you have any Watches, try to remove them and restart debugger. If removing Watches does not help or you
don't have any Watches, please file an issue and provide the exact
steps to reproduce your problem. Please attach the IDE log. Attaching
your project would also be very helpful.
I have seen other people reporting this error message, but no help has been provided.
In Komodo IDE, the failure occurs at the same location, but there is no error information provided at all.
The funny thing in NetBeans is that after some single stepping through the first page of the site, if I then run the code from that point, it executes without failure and the web page is displayed in the browser! This means that the problem only occurs while single stepping.
I have seen something somewhere about a bug in NetBeans. But it seems pretty blatant that NetBeans should not be able to single step through code that tries to connect to mysql. Rather I am thinking it would be some configuration issue on my system.
Komodo IDE has the same failure whether single stepping or running any other way. It just does not get past that point.
However, please keep in mind that just running the site in a browser works fine. So what is missing that prevents the Xdebug single stepping from connecting to mysql?
** Additional information **
I have found two instances of xdebug.so on my system.
-rwxr-xr-x 1 root admin 274508 Oct 6 2011 /opt/local/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so
-rwxr-xr-x 1 root wheel 202672 Sep 20 20:01 /usr/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so
Also, there is an /opt/local/var/db/php5/xdebug.ini which references the xdebug.so in the /opt/local path. The xdebug.so in the /usr/lib path is the one that I thought was in use and which corresponds to instructions as to where it should be installed.
These are apparently two different versions of xdebug.so. Could that be related to my problem?
You need to make sure that you are running one version of Xdebug - and also make sure that this is the latest version (2.2.1 at the moment). If you can still reproduce this issue, please file a bug report at http://bugs.xdebug.org with a short sample script (that contains all the code + data!) and a remote debugging log for a debugging session using that script (see http://xdebug.org/docs/all_settings#remote_log on how to make such a log).