Image over create project directory - eclipse

I am creating an eclipse plugin. I am trying to create new project wizard and i am successfull in doing so. But when the project is created, I want to show my image on right-top corner of the project directory image. Is this possible?
Thanks.

I assume you mean the small image used in Projects / Package explorer and elsewhere.
You can use the org.eclipse.ui.ide.projectNatureImages extension point to declare the overlay image. This requires that you have added a nature to the project you have created.

Related

Eclipse to IntelliJ transfer

I have copied my src package structure from eclipse to intellij and it makes this structure within src folder:
How do I make it dz1.drugi so I can one click expand all to my classes?
Another question is how to select default project folder as it is "workspace" at \Users\{Name} for eclipse. Right now, when I create new project like this:
it saves it without workspace (or projects folder) at \Users\{Name}.
Click on the cog icon at the top-right of the explorer view, and check the "Flatten packages" option.
That said, If you get used to keyboard shortcuts top open classes and files, and navigate through recently opened files, you'll quickly see that you'll amost never use the explorer view anymore.
Project view has an option to compact empty middle packages, enable it. You can also use Flatten packages option. Actually, your question is a duplicate of this one.
IntelliJ IDEA remembers the last location you've used when creating a new project. Once you want to create another project, the location one level upper of the previous project directory would be suggested. So, create a project in C:\Users\someuser\workspace\myproject1 and IDE will suggest C:\Users\someuser\workspace\myproject2 for your new myproject2.

Can't see Java Working Set Folder Eclipse

I have a little problem and I hope someone can help me.
I'm using Eclipse, and i'm trying to add a Java Working Set folder to my Workspace.
The problem is that when I try to do it (right click, new, Java Working Set, and set the name) the first time works fine, but I can't see any change in the workspace (no folder appear), I have tryed to refresh the workspace but it doesn't work (and close and open Eclipse).
When I try to create it again, it says: "a working set with that name already exists", but I can't see it.
Can you help me please?
Working Sets are not folders, they are just a collection of objects.
You may be thinking about how Package Explorer displays projects. You can tell Package Explorer to show Working Sets by selecting 'Top Level Elements > Working Sets' in the view menu (click the small down pointing triangle at the top right of the view).

How to change location of iPhone app icon?

Okay, I am a noob. It must be simple but I stuck here.
I do rigth-click and choose 'select file'.
After I choose the file the dialogue appears:
I want to keep my icons not in the root directory. But I can't figure out how to do this. I tried different ways, even create project from scratch...
Please help.
When you bring image assets into Xcode they will all be in your application bundle's root directory at run time.
It appears that you've added a file named "icon#2x.png" to your project at one time already. Go to the project's summary page in Xcode click Build Phases and then expand the section titled Copy Bundle Resources. There you'll find the reference to the resources that will be copied to your bundle at run time.
More on bundle structures here:
https://developer.apple.com/library/mac/#documentation/CoreFoundation/Conceptual/CFBundles/BundleTypes/BundleTypes.html
Anyway, the way I've done this in the past is to:
Remove the existing image duplicate from Xcode and from the folder structure in Finder.
Add a new folder in Finder call it "/AppIcons" (or whatever).
Copy all the app icons to that folder in Finder.
Drag the "/AppIcon" folder into your XCode project. I typically put images in an "/Images" subdirectory in the Xcode project. Again you can put it wherever you'd like.
In Xcode on the project summary panel, add your app icons from the folder "/AppIcons" by dragging / dropping or by right clicking and adding them as separate files.
Alternatively in the past when I've had problems with this sometimes Xcode will copy the app icons to the root project directory. If that happens, I make sure that I have the "/AppIcons" folder structure on disc (in Finder) and in my Xcode project. I add the app icons to the project, then move them to /AppIcons in Finder, and re-reference them all over again.
Your Copy Bundle Resources should then have the proper file reference. Note that my apps icons go in "/Images/AppIcons"
Good luck!
I would add the image files to your project with the name icon#2x.png. To do this right click where you want to add the files in xcode and click add file/s. Then search for your image and add them using the dialogue that pops up. - there is a check box so that you can either copy them to the projects destination folder which will copy them into you project folder or leave it unchecked (inadvisable) which would reference it's current location on your HDD. Make sure the file doesn't already exist in the project before doing this!
EDIT:
Sorry I forgot to mention then drag and drop the file from within xcode onto the image location box.
In XCode 4 (I'm using 4.6.2) you will get this confusing message if you've just moved the target's info.plist file, but not corrected the location at the top of the summary panel. Fix this and the icons will reappear, assuming they are added to the project, or if not you should now be able to drag them in without xcode insisting on making extra copies.
This tends to happen when you're starting a project and sorting out the mess of default file locations that xcode gives you. I like my project structure to be 99% the same as the file system structure.
This is an easy fix. If the image you want as your App Icon resides outside of the root of your project, when you get that dialog just click "Yes", and then click delete on the newly created file in the root, and "Move to Trash".
The reference is still there and works without a hitch, since the file will still be in the root at runtime

Eclipse Project Explorer Icons or Name

In the Eclipse Project Explorer, I wish to add either a special icon or modify the name of a project to display whether a certain project parameter is set for a project. Is this possible, if yes how can I do it? I do not want to change the name of the project because that will mess up other items.
This can only be done by creating an Eclipse plugin. I believe following may fit the bill:
Label decorators (Decorators extension point)
Project natures/nature images (Nature images extension point)

Add image to targets folder by code

i want to add a image to the iphone application Targets-Copy Bundle Resource folder by using code,can make it?any suggestion
Do you want to add images to your built application, so they're available at runtime? In this case, just drag them to your Project tree and make sure your target is checked in the Add dialog. If they're already in your project, but aren't currently in the Copy Bundle Resources, you can drag them there from the file tree.