What does this netbeans icon mean? - netbeans

After creating a web service client in a web application on NetBeans 7.0, the icon of the project shows a warning sign and then the label turns red. Now the web service client does not work as its supposed to and does not give me any messages as regards its failure. So i was wondering if the icon could point me in the right direction but unfortunately I dont know what it means. this is the Icon:
If anyone knows one or two things about this icon would be great to share. Thanks...

Normally when a project's icon turns red it means that there are unresolved external dependencies. If you right click on the project and look at the bottom of the context menu, you will see an item called Resolve Reference Problems (corrected based on comment). Clicking on that will open up a list of external dependencies that are unresolved and give you an opportunity to show NetBeans where they are located; perhaps pointing NetBeans to a .jar file or a library.

Related

How to set an app icon in JavaFX

I am programming a JavaFX app for windows and want to see an app icon in these situations
shortcut icon (on desktop, windows start menu)
taskbar icon (even when the app is pinned to the task-bar)
(optional) the .exe-icon
The following code seems to do its job quite nice, but when the app is running and I press right to the taskbar to choose "pin this program" the default coffee cup is shown again. The cup is shown in the moment when the taskbar-item is right-clicked -.-
visibleStage.getIcons().add(new Image(this.getClass().getResourceAsStream("JavaFXApp.png")));
I tried to build the app by configuring the Artifact in IntelliJ (JavaFX-plugin) and I also deployed the app with the javafx-maven-plugin...
I also followed some instructions I found in the net and here on stackoverflow, but nothing really helps (see here to get an idea, what I tried).
Building the app by Ant doensnt work right now, IntelliJ gives a lot of errors using this build tool.
Thanks in advance.
EDIT:
It's getting silly.. After zooming in the output folder the correct .ico of the .exe will be shown. Inconstancy at it's best.
Here the half-working config:
Well, to add an icon to the app, you just need as you said to .add() an icon as:
primaryStage.getIcons().add(new Image(getClass().getResourceAsStream("icon.png")));
For your installer, and all, I can't really help, but the way I do it works, I'm using innosetup to generate my exe packages, and it's really easy to set it an icon. You can find informations about it on that site I learned about inno setup:
http://code.makery.ch/library/javafx-8-tutorial/part7/
The whole page is about deployment using ant and inno setup to build the exe

Google Plugin for Eclipse gone

This is the second time this has happened to me, and the first time I chalked it up to some "user error". It happened again so I will post in here for any ideas / thoughts.
Here is a picture of the installed software I have.
I have no option to create a web application project, I can't show the Development Mode View, doesn't recognize GAE or GWT library folders, JSNI methods don't have auto-complete, etc.
The only thing that appears to be working, is the "Google" properties inside the project, I can edit those.
Everything appears to be installed, is there something I am missing?, or any way that I can see why some stuff is missing?
I have found 2 good methods to handle Eclipse breaking.
Start from Scratch
a. Download or Locate an Eclipse Archive and place the contents in a new folder.
b. Launch the New install.
c. Perform Updates.
d. Re-install all necessary addons.
Rollback your install/updates to a working version.
a. Select the Help Menu
b. Select About Eclipse (Usually at the Bottom)
c. Click the "Installation Details" Button (Lower Left Hand Corner)
d. Select the 2nd Tab "Installation History"
e. Select one of the Available options
f. Follow the wizard instruction to "Revert"
Neither of these options have ever failed in getting me back to work. They are not the most expedient, but they work every time.

sync custom entities using force.com ide?

right now we are using svn to share code for our force.com/visualforce project. It works great controllers, components, pages and static resources.
The problem is it seems the salesforce.schema file is not really a local file, its a placeholder that checks your server and tells you your current schema.
We want to baseline our schema changes/updates to a file so we can share in svn.
I found this:
http://boards.developerforce.com/t5/General-Development/Custom-Objects-in-Force-com-IDE/td-p/445363
But we cant seem to figure out what do do/how to get it to work.
So in a nutshell, we are looking for a way for Developer A to create a custom schema object in their own SF Sandbox, somehow get this info into a file in svn (ideally through the force.com ide), then check it in so developer B can check it out and apply it to their server. (the same way we do for code).
Any help would be great!
thanks
Joel
Ok, we finally figured this out through trial and error:
To make this work:
right click on project, click "Force.com/Add Remove Metadata Components"
go down to custom ojbjects, open that up, make sure all your custom objects are checked, click apply, then say "NO" to dialog
then right click on src and click "Force.com/Syncronize with Server, find your objects, and click "Apply Server to Project"
now your files will be local, check them into SVN and you are golden.

Error launching Eclipse Application from Vogella Tutorial

I try to convert multiple Eclipse plugins into a single RCP-Application as described in Vogellas Tutorial (http://www.vogella.com/articles/EclipseRCP/article.html#plugin_creatinge4).
But when i launch the application i get the following error "java.lang.RuntimeException: No application id has been found".
Where is my mistake ?
"No application id has been found" almost always means that you're missing some required plug-ins. Go to the Run Configurations dialog, move over to the Plug-ins tab, and push the Validate Plug-ins button. You'll be presented with a small dialog showing the names of plugins whose constraints aren't being satisfed, often because on the aforementioned Plug-ins tab, those plugins don't have their check boxes selected.
The Add Required Plug-ins button on the Plug-ins tab will often fix the problems for you. If that doesn't work, take a closer look at the plugins that are listed and see if anything looks wonky; maybe a plugin that you know your application needs isn't on the list at all, because you forgot to add it to your workspace or your target platform?
If you still can't puzzle it out, search SO for [eclipse-rcp] "no application id" for more debugging ideas.

Developing an Eclipse Plugin and adding a submenu item to navigator

This is my first attempt at an Eclipse plugin- the plugin architecture is vast and a little overwhelming, but I've found a number of tutorials and how-to's online which is helping, but trying to do the following is driving me nuts:
I want to add a submenu item that is available in the navigator context menu when you right click on an Eclipse project.
I can get a submenu to appear on a project file or folder, but absolutely no idea how to have it appear on a project.
Would someone be so kind as to provide me with step by step instructions, starting with creating a new plugin-project? This is probably a lot to ask, but I can't seem to find an online guide that has just the right amount of detail. I specifically want to use the plugin-project wizard rather than hand code a plugin.xml file as I am not very familiar with the Eclipse plugin architecture.
Ok- I got it- it was simple, but I got lost in the noise of the API-
Create a new Plug-in Project using the Plugin-Project Wizard and when the wizard has launched...
1.
On the Plug-in Project page, use anything as the project name and 3.5 as target platform eclipse version
2.
On the Content page, skip ahead and just press next
3.
On the Templates page, select "plug-in with a popup menu" and press next
4.
On the Sample Popup Menu page, you will see that eclipse has prefilled the field
"Target Object's Class" with a value of "org.eclipse.core.resources.IFile".
This means that when your popup menu will only appear when you right-click on a file in
a project. As we want the menu to appear when we right click on a Project when
we are using the Navigator view, simply use "org.eclipse.core.resources.IProject" instead
5.
Finish
You can validate that your pop-up will appear as expected by right-clicking the MF file
and "Run-as" > Eclipse Application
Now to refactor the resulting code to use menuContributions and commands rather than objectContributions and actions :)
I think you have a similar question (menu in the package explorer) here:
Renaming packages in Eclipse (thanks to Rich Seller)
This could be a good start, and is a complete plugin project.
You should look into the Eclipse Common Navigator Framework there are a few tutorials on this side that tell you what to do in detail The Project Explorer is an implementation of the CNF. You should also consider using the Platform Commands to add your commands (and popup menu item) to the popup menu associated with the project explorer. It's somewhat easier to use commands than actions. You should be able to do it with by adding a Command in your plugin extensions. Unfortunately off the top of my head I don't know the right incantation to have the command appear in the project explorer. But you will be able to find it in these resources.