How to add a preference page? - java

I want to add a preference page in my RCP program, just like you see in the eclipse, when you click Windows->Preferences->General, a preference page appears in the right panel. But I'm not familiar about RCP, how can I add a option in the Windows->Preferences lists, and make it work like the "General" option?
Thanks a lot.

There are several tutorials out there:
http://www.eclipse.org/articles/Article-Preferences/preferences.htm
http://www.vogella.de/articles/EclipsePreferences/article.html

Open the plugin.xml from the Package explorer and go to Extensions tab. Click add and search for org.eclipse.ui.preferencePage and Finish. Right click on the preferncePage plugin, choose New-->Page. On the right hand side, fill the required fields and save it.
Run the plugin as an Eclipse application. Go to Windows-->Preferences and you will find your custom preference page.

Related

How to customize 'new' option in Eclipse

When I'm using Eclipse to code in Java, I want to use the 'New' button (located below File, Edit...) to create a new class. I know it's possible because I've been able to use it like that on a different computer. However, the only options displayed are "Project", "Example", "Other...". So I have to select other and go find "Class".
I want a way to modify this list to include Java Project, Class, and whatever else I need. It's the same story when I right-click the src folder in the package explorer. I want to make a class in that folder, but I have to click other, navigate the new window to class, etc.
Can this be simplified?
Make sure you're in the right perspective. I see what you're looking for if I'm in the "Java" perspective, but not in other perspectives, such as "Java EE" or "Debug".
A "perspective" in Eclipse is the set of panes, toolbars, menus, etc. for a particular purpose. There should be toolbar buttons all the way on the right for them.
in order to customize new option in Eclipse, On the top of Eclipse, click on Window, Navigate to > Perspective > Customize Perspective > Menu Visibility > file > new.
now you can customize new Option.

create a new class do not appear right click menu eclipse

I have a really annoying problem in Eclipse java neon, when i do a right click on a package in order to create a new class or in any area, Eclipse don't show me proposition like class, package or even project but only a incomplete menu unusable
I have already launch eclipse with -clean but not help
An illustration of the problem, I also notice that Eclipse is in... debug mode ? (upper left corner)
Select menu Window -> Perspective -> Customize Perspective....
Select Menu Visibility tab.
Select tree node File -> New.
Toggle check box of menu items as you like.
You are in the Debug Perspective (see What is a Perspective?). You can switch back to the Java or JEE perspective (where most development activities are typically performed) by using the perspective switcher toolbar in the upper-right corner of the Eclipse window.
I suggest you learn about the use of Perspectives in Eclipse.
Try
File --> New --> (Then choose what you want)
Specify the Source folder and package.
When I don't find something in the menu there, I just click on Other... and search for whatever I want to create. Regardless of the Perspective.
Of course it could more practical to customize the Perspective to include the frequently used items as mentioned.

How do I add "Android Project" to the File>New>_____ Menu in Eclipse?

I watch all of these Android tutorials online and am getting more and more into Android programming and I find it to be a slight hassle to have to go to File>New>Other>Android>Android Project every time, especially when the person I'm watching has it on theirs.
It would be very helpful if someone could provide me with a way for Android Project (and Android XML File) to be put on that "New" menu.
Thanks
You can add 'Android Project' to the 'New' menu (and customize others) as follows:
Window > Perspective > Customize Perspective... > Tab 'Menu Visibility' > Expand 'File' > Expand 'New' > Tick 'Android Project'
The first one is new android project and the last one is new android xml file.
you can also customize what you want to add thru customize prespective by right clicking the menu area.
If your using eclipse in the toolbar the 8th icon is to Create New Project (its a folder with a a and a + sign sticking out the top of it).
Are you sure you have your eclipse configured properly? I think you need to install ADT and Android SDK first.
If you already have installed them, restart your eclipse to work with it properly.
If not and want to check how and where to install check here.
Following these instructions can enable all these things you want. Feel free to comment.

Creating Menus in the project and files panes in Netbeans

I'm trying to create a simple module in netbeans that can check in and check out files in netbeans. However I don't understand how I can create menu item in the project and files popup menus like subversion does. can anyone please help.
Regards,
Sunil
Have a Look at the Actions: How to add things to Files, Folders, Menus, Toolbars and more section of the NetBeans Developer FAQ that should point you in the right direction.

How to create a patch in IntelliJ IDEA?

I've been using IntelliJ IDEA 9.0 Community Edition for some time after years living in Eclipse. One thing seems to be hard to find in it. I'd like to create a patch on some subfolder in my project. In Eclipse it is done using right click, Team, Create Patch.
Does anybody know how to do that in IDEA?
Use the Changes view. In the group by directory mode you can right click on the directory with changes and choose Create Patch from the context menu.
You can do a right click Local History -> Show History and then choose a revision and click on patch button (the second from the left)
From the top corner, click on Git -->patch--> create Patch from Local Changes
In the Local Changes tab or the Repository(SVN)/Log(Git) tab of the Version Control tool window, select a change or changelist you want to create a patch for and click Create Patch from the context menu.
P.S. relevant for all versions

Categories

Resources