I'm wondering if anyone can recommend any scripting plugins for Eclipse that would allow me to delete a file from one project and add it to another project as well as change any references from the old location to point to the new one.
Locate the file in Package Explorer. Right click on it. Go to Refactor > Move then select the destination and update reference option. All references will be update automatically. You can also preview changes by clicking on the Preview button.
Related
The new Eclipse, I don't know from which version, has in Navigate menu the access to different, local and global setups.
Navigate - Open Setup - choose local/global/user setup
Even recent Eclipse documentation has not a word about that feature. And when I open any property by Text Editor or somehow else, it is not editable.
How can I edit the Eclipse setups using the special feature, obviously introduced for that aim?
You can add items to Workspace setup by opening it, then right click on Workspace and select an item to add
Same option could be available when you open a resource in editor. Not all the items offer the New Child option.
On closing the setup, it will ask to save it.
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.
I am kind of new to NetBeans and am having trouble understanding the project explorer. I am in a HTML project with existing sources, and I can do everything just fine. Except that I can't figure out how to create a folder using the file explorer.
It seems to me like there should be a folder button, but there's not, and I cant figure it out.
EDIT:
I did find that if I copy a folder that I create somewhere else and then press Ctrl+V (paste) it puts it in there, but I don't want to have to do that.
I am pretty sure this is not a question for SO. However, since you have asked it, go to "other". A window will open. From there go to "other" (again) then select "folder"... That should do it.
I have wanted to do this a few times, for various reasons.
Firstly in the case where I have specified the Location incorrectly when I created the project. This project is part of a larger project, and I either want to go up or down a directory level to include more or less other stuff.
Secondly in the case where I have an existing eclipse project. I want to reuse the project on a different source tree (actually a different subversion branch of the same project).
The Resource Location field seems to be read only. The only way of achieving the above that I've found is creating a new project. Does anyone have any way of doing this?
Edit: I only want to change the Resource Location, not move the whole project.
The location of a project is the location of its .project file. So you need to delete project (Do NOT select delete content checkbox), then move the .project file to a new location and import the project from there.
Creating new project does pretty much the same except you do not loose any project specifics/types.
Yes. You can do that by using the following option:
On the Project, Right click and select option "Refactor" and then choose the option "Move".
This will pop up a dialog box. Specify the folder where you want your project to be.
Once the move operation is successful, your project is moved to a new location and you will see that Resource Location is pointing to a new folder that you have specified.
Probably a very straight forward solution here, but can't seem to find an answer. I recently changed my eclipse workspace to my dropbox folder, so I can work on my netbook when in college and on my desktop when at home. I copied and pasted all my project folders from the old workspace into the dropbox workspace, changed the workspace location in eclipse, but none of the projects are showing up in the project explorer now. Having refreshed the project explorer many times now to no avail, is there any way to add these projects into the project explorer? Thanks
From the main menu bar, select File > Import. The Import wizard opens.
Collapse or click + in General > Existing Project into Workspace and click Next.
Choose either Select root directory or Select archive file and click the associated Browse to locate the directory or file containing the projects.
Under Projects select the project or projects which you would like to import.
Click Finish to start the import.
I have had this problem in many versions of Eclipse and followed the process outlined by #vijin-paulraj, but frustratingly kept failing...
Until I noticed that the checkbox at the bottom of the wizard "Copy projects into workspace" is checked by default, and does not have an eventhandler attached to it. So if you do not clear this box before selecting the directory it will tell you that "Some projects cannot be imported because they already exist in the workspace." Clearing the checkbox after this will not trigger a form refresh and the Finish button will remain disabled.
TIP: once the checkbox is cleared, select the directory again will trigger form validation and allow you to proceed.
Try importing existing project:
http://publib.boulder.ibm.com/infocenter/wf/v2r7m0/index.jsp?topic=/org.eclipse.platform.doc.user/tasks/tasks-importproject.htm
The answer for me was to make sure that I was in the correct working set.
I was in the working set from training and had not placed my new project into a working set at all.
While the above answers will most likely place your project into Eclipse, a working set will exclude you from seeing any project that is not placed in it from the package explorer.
My personal answer was to create a new working set to keep it separate from work, via the context menu from the upside down triangle at the top left of the package explorer.
Yours may be to modify your current set by adding the new project to it. This option is also located in the same menu.
My circumstance could have been avoided in the "new project" wizard, if I had placed it in a set from there.
I hope this has been useful. Please, feel free to ask for clarification.