mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
A sample plugin.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<idea-plugin version="2">
|
||||
<name>Plugin name here</name>
|
||||
<description>short description of the plugin</description>
|
||||
<name>Plugin name</name>
|
||||
<description></description>
|
||||
<version>1.0</version>
|
||||
<vendor>YourCompany</vendor>
|
||||
<idea-version since-build="8000"/>
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
<idea-plugin version="2">
|
||||
<name>MY_IDE_Settings</name>
|
||||
<description>This sample plugin illustrates how to contribute to the applicationConfigurable extension point in the IDEA core.
|
||||
<name>applicationConfigurable</name>
|
||||
<description>This sample plugin illustrates how to contribute to the applicationConfigurable
|
||||
extension point available in the IDEA core.
|
||||
</description>
|
||||
<version>1.0</version>
|
||||
<vendor>JetBrains</vendor>
|
||||
<!--
|
||||
<idea-version since-build="8000"/>
|
||||
|
||||
-->
|
||||
<application-components>
|
||||
<!-- Add your application components here -->
|
||||
</application-components>
|
||||
|
||||
@@ -9,12 +9,12 @@ import java.awt.event.*;
|
||||
|
||||
public class IDEdialog extends JDialog {
|
||||
private JPanel contentPane;
|
||||
private JPanel Name;
|
||||
|
||||
public JComboBox myFontCombo;
|
||||
public JComboBox myFontSize;
|
||||
public JLabel menuFontSettingsLabel;
|
||||
public JButton ButtonRestoreDefaultFont;
|
||||
private String Buffer;
|
||||
|
||||
|
||||
|
||||
public IDEdialog() {
|
||||
@@ -26,7 +26,7 @@ public class IDEdialog extends JDialog {
|
||||
myFontCombo.setSelectedItem(settings.FONT_FACE);
|
||||
myFontSize.setSelectedItem( String.valueOf(settings.FONT_SIZE));
|
||||
|
||||
// Configure the Set Default Font button.
|
||||
// Configure the Set Default Font button listener.
|
||||
|
||||
MyButtonListener actionListener = new MyButtonListener();
|
||||
actionListener.button=ButtonRestoreDefaultFont;
|
||||
|
||||
@@ -14,7 +14,7 @@ import java.awt.event.ActionListener;
|
||||
* User: Alexey.Chursin
|
||||
* Date: Aug 7, 2010
|
||||
* Time: 9:36:45 PM
|
||||
* To change this template use File | Settings | File Templates.
|
||||
|
||||
*/
|
||||
public class MyButtonListener implements ActionListener {
|
||||
|
||||
@@ -28,6 +28,7 @@ public class MyButtonListener implements ActionListener {
|
||||
|
||||
UISettings settings = UISettings.getInstance();
|
||||
LafManager lafManager = LafManager.getInstance();
|
||||
// Restore default font
|
||||
settings.FONT_FACE="Segoe UI";
|
||||
settings.FONT_SIZE=12;
|
||||
myFontCombo.setSelectedItem(settings.FONT_FACE);
|
||||
|
||||
@@ -15,7 +15,7 @@ import java.awt.*;
|
||||
* User: Alexey.Chursin
|
||||
* Date: Jul 30, 2010
|
||||
* Time: 5:59:43 PM
|
||||
* To change this template use File | Settings | File Templates.
|
||||
|
||||
*/
|
||||
public class MyExtensConfigurable implements Configurable {
|
||||
private JComponent myComponent;
|
||||
|
||||
Reference in New Issue
Block a user