eclipse won't overwrite files in the save location - eclipse

Got an assignment due,
Trying to save the files that I've just coded over the original skeleton files, and then move them to my desktop, every time i save all or save as, then click yes to overwrite them in the place i have the project saved, I take them off my computer, and put them onto the desktop, and they are just skeletons that have no work that I have put in them, just what we were given for the original assignment.
Any ideas?

It's because you're a fool and are looking in the wrong workspace.

Related

How can I reverse an accidental Gzip compression?

I am using Raspbian and had a folder full of images. I selected all of the images, right clicked them, and selected "Compress" so that I could put them in an archive to move to another computer. I selected archive type as "gz" and left "add archive extension to filename" checked. What was produced was a "[oneofthepicturefilenames].png.gz" which I moved to the other computer.
The problem is, when I open this .gz, I only see one png that is the size of the entire directory I compressed (1.4Gb). unfortunately, the source images were deleted, and I'm trying to figure out how to recover my images from this file as I assume their data is still there in some strange format. Any ideas?
The images aren't sensitive, so if anyone wants to take a look at what I've done, you can see the file here.

Compare changes with latest from repo

Eclipse shows me with the symbol > which files I have modified, after the last repository update. Before commiting, I want to see the changes I made.
When I go right click->Team->Synchronize with repository I get exactly what I want. The problem is, I only get the view for this one file I clicked. I need to change the view back to Java, to be able to chose the next modified file.
Is it possible, to compare all modified files, one by one, with the latest edition from the repository, without changing the view after each file?
Instead of right clicking a specific file, you can right click the entire project and perform the same operation you describe.

Accidentally deleted main view in .xib file and now I can't get it back

I accidentally deleted my main iPhone view that was in my .xib file. This was after I had drawn my entire GUI and buttons. I was trying to delete a single button, clicked the main view and hit delete, tried to UNDO, but that didn't work.
I put a new view in the .xib file, but my original GUI appears to be gone.
Is there any way to get it back?
Thanks.
When you delete a file from xcode4, it should ask, "remove the reference" or "remove the file(physically)", but either one, try to find the file in the trash. If you are lucky enough, put back the file then add in to your project again.
Last step, start using version control system. XCode4 has build in version control system, you might give it a try (although I didnt like the XCode4 version, I use "synx", which is free).
Wait wait... back up is very important, so if you dont like version control, you can do simpler task like, zipped it the project folder, and put it in a backup folder before you start add anything new or update anything.
This looks like a bug in Interface Builder. Please file a bug at http://bugreporter.apple.com. In addition to the comments above about using version control, you can choose File->Revert to saved… to go back to the last saved version, if you haven't yet saved/closed the document.

What are derived files in Eclipse?

I have problem with derived files. Some of my files in my project are 'derived'.
When I want to edit these files, I get the following message:
"This file is derived"
"Do you really want to edit?"
When I right click on this file and choose properties, I see that "Archived" is marked.
I think this is a problem with Maven, but I don't know how to fix this or know why part of my files are 'derived'.
There isn't necessarily a problem. Derived files are those that are being generated on the basis of other files. And when you edit them, the next time they are generated, your edit is lost.
Try to find which are the source files.
I just had this problem, I accidentally dragged and dropped a package into the gen folder. This set a flag on the package as derived. When I copied back it still existed, and affected all the sub files.
I just right click on package, properties and unticked Derived, and problem solved.
You probably tried to edit file in "target" directory.
i had this problem after creating a LaTeX document with TeXlipse. TeXlipse placed the output (PDF) file in the same folder, and marked the entire folder with Derived attribute. Derived files are those that have been automatically generated and should not be edited or the changes will be lost next time the files are regenerated. Clearly not all the files in the folder were derived. By right clicking on the folder and selecting Properties, I could see that the Derived attribute was set, but unchecking it did not help (next time it was checked again).
If the problem actually is with Maven, then this won't work, but in case somebody is having this problem after creating a TeXlipse document, here's the solution:
Right click on the project, select Properties, then select Latex Project Properties.
Either uncheck Set LaTeX output files as derived, or modify the Output File path so that the file will be written into the project root or into a different folder.
Right click on the folder that has the Derived attribute, select Properties, uncheck Derived.
Derived files are those are in target directory and has been generated for packaging. Take a look and try to edit the good ones
I faced with the same problem during editing Latex documents in TexLipse plugin. Accidentally, I was not able to modify my documents although before this 5 minutes ago I had had this possibility. To overcome the problem I simply deleted the project from the workspace and imported it once again. The checkbox of derived files was not checked.

Core Data, i cannot open my .xcdatamodel, which is red

I have been running tests towards a Core Data model (SQLite3). I now need to do some minor changes in the .xcdatamodel but it is red in XCODE and i cannot open it. I also deleted the sqlite2 database but that did not help.
Anyone that could give me a hint why this is and how i can do the changes?
Red indicates the file is missing (or XCode is looking in the wrong place for it). Have a look in your project folder to see if the file is around somewhere. If not, you'll need to restore from a backup or recreate it.
If you can find it, copy it into your project folder (if necessary) then select the file, choose Get Info from the File Menu, click the Choose button next to "Path:" and locate it, and you should be set.