 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Alan Akers Guest
|
Posted: Sun Jun 29, 2003 7:51 pm Post subject: How to remove files from a project? |
|
|
I'm a newbie. How do you remove files from a project? I right click on a .java file, which is what I do in any other IDE, and there is no option for Remove/Delete. Also nothing on the menu.
|
|
| Back to top |
|
 |
Bill Joy Guest
|
Posted: Sun Jun 29, 2003 8:43 pm Post subject: Re: How to remove files from a project? |
|
|
There is a delete option when you right-click on a Java file in the
Project Pane. It also appears on the context menu when you right-click
on a tab for an open file in the Content Pane.
If you are using the Automatic Source Package Discovery feature, then
deleting the file is how it is removed from the project.
There is a remove from project option but it is only enabled when the
file has a parent.
"Alan Akers" <aaava (AT) yahoo (DOT) com> wrote
| Quote: |
I'm a newbie. How do you remove files from a project? I right click
on a .java file, which is what I do in any other IDE, and there is no |
option for Remove/Delete. Also nothing on the menu.
|
|
| Back to top |
|
 |
Alan Akers Guest
|
Posted: Sun Jun 29, 2003 9:24 pm Post subject: Re: How to remove files from a project? |
|
|
Hi Bill:
You're right. There is a Delete when I right click on the .java file. Unfortunately, it's grayed out. How do I delete a .java file then? I mean, if I want to delete the file I should be able to....
Thanks for the quick replies!
"Bill Joy" <wcjoy (AT) pacbell (DOT) net> wrote:
| Quote: | There is a delete option when you right-click on a Java file in the
Project Pane. It also appears on the context menu when you right-click
on a tab for an open file in the Content Pane.
If you are using the Automatic Source Package Discovery feature, then
deleting the file is how it is removed from the project.
There is a remove from project option but it is only enabled when the
file has a parent.
"Alan Akers" <aaava (AT) yahoo (DOT) com> wrote in message
news:3eff4330$1 (AT) newsgroups (DOT) borland.com...
I'm a newbie. How do you remove files from a project? I right click
on a .java file, which is what I do in any other IDE, and there is no
option for Remove/Delete. Also nothing on the menu.
|
|
|
| Back to top |
|
 |
Alan Akers Guest
|
Posted: Sun Jun 29, 2003 11:17 pm Post subject: Re: How to remove files from a project? |
|
|
Thanks Bill for the response:
They are not in a jar, so I guess it's a bug then...makes it hard to recommend this to the group so far..tho the support here is excellent, it can't replace a product that I can't seem to get working intuitively...
Thanks. Hopefully someone else can explain a workaround. I need to be able to delete these java files from the project in order to proceed w/the evaluation...
Thanks in advance...
"Bill Joy" <wcjoy (AT) pacbell (DOT) net> wrote:
| Quote: | Other than perhaps these files are in a JAR, I don't know why the option
should be disabled.
"Alan Akers" <aaava (AT) yahoo (DOT) com> wrote in message
news:3eff5920$1 (AT) newsgroups (DOT) borland.com...
Hi Bill:
You're right. There is a Delete when I right click on the .java file.
Unfortunately, it's grayed out. How do I delete a .java file then? I
mean, if I want to delete the file I should be able to....
Thanks for the quick replies!
"Bill Joy" <wcjoy (AT) pacbell (DOT) net> wrote:
There is a delete option when you right-click on a Java file in the
Project Pane. It also appears on the context menu when you
right-click
on a tab for an open file in the Content Pane.
If you are using the Automatic Source Package Discovery feature, then
deleting the file is how it is removed from the project.
There is a remove from project option but it is only enabled when the
file has a parent.
"Alan Akers" <aaava (AT) yahoo (DOT) com> wrote in message
news:3eff4330$1 (AT) newsgroups (DOT) borland.com...
I'm a newbie. How do you remove files from a project? I right
click
on a .java file, which is what I do in any other IDE, and there is no
option for Remove/Delete. Also nothing on the menu.
|
|
|
| Back to top |
|
 |
Bill Joy Guest
|
Posted: Sun Jun 29, 2003 11:33 pm Post subject: Re: How to remove files from a project? |
|
|
Why can't you delete them outside of JBuilder if they are just simple
files?
"Alan Akers" <aaava (AT) yahoo (DOT) com> wrote
| Quote: |
Thanks Bill for the response:
They are not in a jar, so I guess it's a bug then...makes it hard to
recommend this to the group so far..tho the support here is excellent, |
it can't replace a product that I can't seem to get working
intuitively...
| Quote: |
Thanks. Hopefully someone else can explain a workaround. I need to be
able to delete these java files from the project in order to proceed |
w/the evaluation...
| Quote: |
Thanks in advance...
"Bill Joy" <wcjoy (AT) pacbell (DOT) net> wrote:
Other than perhaps these files are in a JAR, I don't know why the
option
should be disabled.
"Alan Akers" <aaava (AT) yahoo (DOT) com> wrote in message
news:3eff5920$1 (AT) newsgroups (DOT) borland.com...
Hi Bill:
You're right. There is a Delete when I right click on the .java
file.
Unfortunately, it's grayed out. How do I delete a .java file then?
I
mean, if I want to delete the file I should be able to....
Thanks for the quick replies!
"Bill Joy" <wcjoy (AT) pacbell (DOT) net> wrote:
There is a delete option when you right-click on a Java file in
the
Project Pane. It also appears on the context menu when you
right-click
on a tab for an open file in the Content Pane.
If you are using the Automatic Source Package Discovery feature,
then
deleting the file is how it is removed from the project.
There is a remove from project option but it is only enabled when
the
file has a parent.
"Alan Akers" <aaava (AT) yahoo (DOT) com> wrote in message
news:3eff4330$1 (AT) newsgroups (DOT) borland.com...
I'm a newbie. How do you remove files from a project? I right
click
on a .java file, which is what I do in any other IDE, and there is
no
option for Remove/Delete. Also nothing on the menu.
|
|
|
| Back to top |
|
 |
Bill Joy Guest
|
Posted: Mon Jun 30, 2003 12:14 am Post subject: Re: How to remove files from a project? |
|
|
The reason I asked is as a double-check that the files do exist and are
deletable. I have never had a problem being able to delete files within
JBuilder.
"Alan Akers" <aaava (AT) yahoo (DOT) com> wrote
| Quote: |
Hi Bill:
Thanks for responding. If that's the only solution, then I guess it's
back to JDeveloper. It's has some bugs w/correctly importing MIDP libs |
and other problems, so we decided to see if JBuilder was a cleaner IDE.
If we have to do things like what you suggest, then JBuilder has at
least as many issues, and with the additional cost, I can't justify
moving our projects to JBuilder. Another downer is the fact that
there's no way to directly import JDev projects. A lot of people use
it, so I find it strange there's no import for it....but that's not the
issue. We can get around the JDev project..
| Quote: |
I hope there's another explanation out there for why I can't delete
this Java file. People in the group are gonna ask questions about this, |
and I need a better answer than to just delete/move the file from the
actual folder...
| Quote: |
Thanks in advance...
"Bill Joy" <wcjoy (AT) pacbell (DOT) net> wrote:
Why can't you delete them outside of JBuilder if they are just simple
files?
"Alan Akers" <aaava (AT) yahoo (DOT) com> wrote in message
news:3eff7383$1 (AT) newsgroups (DOT) borland.com...
Thanks Bill for the response:
They are not in a jar, so I guess it's a bug then...makes it hard
to
recommend this to the group so far..tho the support here is
excellent,
it can't replace a product that I can't seem to get working
intuitively...
Thanks. Hopefully someone else can explain a workaround. I need to
be
able to delete these java files from the project in order to proceed
w/the evaluation...
Thanks in advance...
"Bill Joy" <wcjoy (AT) pacbell (DOT) net> wrote:
Other than perhaps these files are in a JAR, I don't know why the
option
should be disabled.
"Alan Akers" <aaava (AT) yahoo (DOT) com> wrote in message
news:3eff5920$1 (AT) newsgroups (DOT) borland.com...
Hi Bill:
You're right. There is a Delete when I right click on the .java
file.
Unfortunately, it's grayed out. How do I delete a .java file
then?
I
mean, if I want to delete the file I should be able to....
Thanks for the quick replies!
"Bill Joy" <wcjoy (AT) pacbell (DOT) net> wrote:
There is a delete option when you right-click on a Java file in
the
Project Pane. It also appears on the context menu when you
right-click
on a tab for an open file in the Content Pane.
If you are using the Automatic Source Package Discovery
feature,
then
deleting the file is how it is removed from the project.
There is a remove from project option but it is only enabled
when
the
file has a parent.
"Alan Akers" <aaava (AT) yahoo (DOT) com> wrote in message
news:3eff4330$1 (AT) newsgroups (DOT) borland.com...
I'm a newbie. How do you remove files from a project? I
right
click
on a .java file, which is what I do in any other IDE, and there
is
no
option for Remove/Delete. Also nothing on the menu.
|
|
|
| Back to top |
|
 |
G S Guest
|
Posted: Mon Jul 14, 2003 8:13 am Post subject: Re: How to remove files from a project? |
|
|
"Alan Akers" <aaava (AT) yahoo (DOT) com> wrote:
| Quote: |
I'm a newbie. How do you remove files from a project? I right click on a .java file, which is what I do in any other IDE, and there is no option for Remove/Delete. Also nothing on the menu.
|
Hi,
Have you been able to find any solution to the problem?
I am also new to JBuilder... I am also facing this problem of not being able to remove files from the project.
I have been using Visual Cafe for long and there it is very simple to delete a file from the project.. either by pressing the delete key with the file selected or through menu item...
I have also seen IDEA (another IDE), when you try to remove a file from the project there, it will report you that the class is being referenced (if being referenced) by other classes, and do you still want to remove the file from project.
I thought may be the JBuilder is also using this logic internally i.e. the menu item for removing the file is grayed out if it is being referenced by other classes. So I removed all the references.. but still the menu item does not get enabled.
The other way I can remove it from the project is by deleting it from the hard disk or moving it from the source folder to some other folder. But why should I do this? Why cannot I remove it just from the project through IDE.
The documentation for this is not providing any help.
Following is the documentaiton available. It does not mention anything about when the menu items for it get enabled or disabled.
| Quote: | Copied from documentaion
Removing folders, files, classes, and packages from a project You can remove folders, files, classes, and packages from your project without deleting them from the drive with the Remove From Project dialog box. To remove a node from your project, choose one of these options: Right-click the node you want to remove, choose Remove From Project, and click OK.Select the node you want to remove, click the Remove From Project button button on the project pane toolbar, and click OK. Note: If a folder contains files, they are also removed from the project. You can also select multiple nodes and remove them from the project. Deleting files, classes, and packages You can also delete unwanted files, classes, and packages from the disk by right-clicking the item in the project pane and choosing Delete. Caution: This permanently deletes the files from the project and the computer's hard disk.
|
Any help will be appreciated.
Thanks
G S
|
|
| Back to top |
|
 |
Rich Wilkman Guest
|
Posted: Mon Jul 14, 2003 10:22 pm Post subject: Re: How to remove files from a project? |
|
|
If it's a file that was added you can delete it. If it is an item that
is found for you (like a package node), delete is not available in that
view because that's what it really is; a view.
-Rich
G S wrote:
| Quote: | "Alan Akers" <aaava (AT) yahoo (DOT) com> wrote:
I'm a newbie. How do you remove files from a project? I right click on a .java file, which is what I do in any other IDE, and there is no option for Remove/Delete. Also nothing on the menu.
Hi,
Have you been able to find any solution to the problem?
I am also new to JBuilder... I am also facing this problem of not being able to remove files from the project.
I have been using Visual Cafe for long and there it is very simple to delete a file from the project.. either by pressing the delete key with the file selected or through menu item...
I have also seen IDEA (another IDE), when you try to remove a file from the project there, it will report you that the class is being referenced (if being referenced) by other classes, and do you still want to remove the file from project.
I thought may be the JBuilder is also using this logic internally i.e. the menu item for removing the file is grayed out if it is being referenced by other classes. So I removed all the references.. but still the menu item does not get enabled.
The other way I can remove it from the project is by deleting it from the hard disk or moving it from the source folder to some other folder.. But why should I do this? Why cannot I remove it just from the project through IDE.
The documentation for this is not providing any help.
Following is the documentaiton available. It does not mention anything about when the menu items for it get enabled or disabled.
Copied from documentaion
Removing folders, files, classes, and packages from a project You can remove folders, files, classes, and packages from your project without deleting them from the drive with the Remove From Project dialog box. To remove a node from your project, choose one of these options: Right-click the node you want to remove, choose Remove From Project, and click OK.Select the node you want to remove, click the Remove From Project button button on the project pane toolbar, and click OK. Note: If a folder contains files, they are also removed from the project. You can also select multiple nodes and remove them from the project. Deleting files, classes, and packages You can also delete unwanted files, classes, and packages from the disk by right-clicking the item in the project pane and choosing Delete. Caution: This permanently deletes the files from the project and the computer's hard disk.
Any help will be appreciated.
Thanks
G S
|
|
|
| Back to top |
|
 |
Lori M Olson (TeamB) Guest
|
Posted: Tue Aug 19, 2003 9:25 pm Post subject: Re: How to remove files from a project? |
|
|
Ralph Steins wrote:
| Quote: | "Rich Wilkman" <richw (AT) formlessvoid (DOT) com> schrieb im Newsbeitrag
news:3F132D24.2000500 (AT) formlessvoid (DOT) com...
If it's a file that was added you can delete it. If it is an item that
is found for you (like a package node), delete is not available in that
view because that's what it really is; a view.
This is not helpful.
The question was: how can I remove a file WITHOUT DELETING IT??
If there are file below a package node, it is not possible to remove them
from the project. Why?
|
The answer is : DON'T USE AUTOMATIC SOURCE DISCOVERY.
Then you have to add every package and file by hand, but you will have
the control to exclude individual files.
--
Regards,
Lori Olson (TeamB)
------------
Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.
Google Advanced Newsgroup Search
http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
http://www.visi.com/~gyles19/fom-serve/cache/1.html
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|