Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does eclipse know the name of your project?

Tags:

I have a fully working project (lets say its called "mygame") on disk which contains multiple activities. The activity which gets called first is called "launcher". I wish for the project to be called "com.mycompany.mygame", but when I do an import project in eclipse and select the root directory of my project, a dialog appears stating that the project that is located at this directory is "com.mycompany.mygame.launcher" with no way of changing it. My question is, what is eclipse using to determine that my project has the name "com.mycompany.mygame.launcher"? Is it something in the manifest?

like image 716
Mick Avatar asked Aug 29 '12 12:08

Mick


People also ask

Can we change project name in Eclipse?

To rename the project, simply right-click the project and select "Refactor/Rename...". Fill in the new name and click OK.

How do I find the project name in Eclipse?

getWorkbench(). getActiveWorkbenchWindow(). getActivePage(). getViews(); Your GMF plugin name can be found in your .

How do I find my workspace name in Eclipse?

Show activity on this post. If the full path (as shown in the other answer) is to long, then you can use Window -> Preferences -> General -> Workspace -> Workspace Name instead to set a self defined label for each workspace, which is then shown prominently in the title bar.

What does it mean if my project is in blue in Eclipse?

If an icon in the package explorer looks like a blue folder, the project is closed and can be opened by double clicking on it. To close a project (say, to save memory if you have numerous projects available), click right on it and select Close Project.


1 Answers

I think the eclipse takes the class name which extends Activity. Because when u extend any other package like the Fragment etc., it won't create the by default Launcher for that particular class. So whenever the Class name with manifest point to launcher will get imported along Or it will attach the class name. with the package name

like image 149
Terril Thomas Avatar answered Oct 25 '22 22:10

Terril Thomas