Home >Java >javaTutorial >How to create a welcome page in eclipse
To create an Eclipse welcome page, you should: Create a plug-in project that contains a welcome page class that inherits from IWorkbenchPageWelcomePage. Add an extension point in the plugin's plugin.xml file, specifying the welcome page ID, name, tag, and class name. Compile and deploy the plug-in, then restart Eclipse and select your welcome page from the Welcome perspective.
How to create an Eclipse welcome page
1. Create a plug-in project
2. Create a welcome page class
org.eclipse.ui.part.IWorkbenchPageWelcomePage
. 3. Implement the welcome page interface
initialize(IWorkbenchWindow, IWorkbenchPage)
method, which is on the welcome page Called when created. init(IWorkbenchWindow, IWorkbenchPage)
method you can create and display any widget or content you want. 4. Extend extension points
plugin.xml
file, add the following extension points:<code class="xml"><extension point="org.eclipse.ui.welcomePage"> <welcomePage id="欢迎页面ID" name="欢迎页面名称" label="欢迎页面Label" class="欢迎页面类名" after="org.eclipse.ui.intro.welcome"> </welcomePage> </extension></code>
Among them:
5. Compile and deploy the plug-in
plugins
folder in the Eclipse installation directory. 6. Enable the welcome page
The above is the detailed content of How to create a welcome page in eclipse. For more information, please follow other related articles on the PHP Chinese website!