Package org.gjt.sp.jedit.menu
Class ReloadWithEncodingProvider
- java.lang.Object
-
- org.gjt.sp.jedit.menu.ReloadWithEncodingProvider
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.util.EventListener
,DynamicMenuProvider
public class ReloadWithEncodingProvider extends java.lang.Object implements java.awt.event.ActionListener, DynamicMenuProvider
Menu provider for actions to reload the current buffer with a specific encoding.
-
-
Constructor Summary
Constructors Constructor Description ReloadWithEncodingProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent ae)
void
update(javax.swing.JMenu menu)
Adds the menu items to the given menu.boolean
updateEveryTime()
Returns true if the menu should be updated each time it is shown.
-
-
-
Method Detail
-
updateEveryTime
public boolean updateEveryTime()
Description copied from interface:DynamicMenuProvider
Returns true if the menu should be updated each time it is shown. Otherwise, it will only be updated when the menu is first created, and if the menu receives aDynamicMenuChanged
message.- Specified by:
updateEveryTime
in interfaceDynamicMenuProvider
-
update
public void update(javax.swing.JMenu menu)
Description copied from interface:DynamicMenuProvider
Adds the menu items to the given menu.- Specified by:
update
in interfaceDynamicMenuProvider
- Parameters:
menu
- The menu
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent ae)
- Specified by:
actionPerformed
in interfacejava.awt.event.ActionListener
-
-