Add support for icon attribute in jEdit plugin
parent
beeada9220
commit
cf2bfad780
|
|
@ -36,6 +36,7 @@
|
|||
<include name="*.xml"/>
|
||||
<include name="doc/**/*.html"/>
|
||||
<include name="doc/**/*.png"/>
|
||||
<include name="library/**/*.png"/>
|
||||
<include name="doc/*.html"/>
|
||||
</fileset>
|
||||
</jar>
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@ import factor.Cons;
|
|||
import javax.swing.text.*;
|
||||
import javax.swing.Action;
|
||||
import java.awt.Color;
|
||||
import org.gjt.sp.jedit.GUIUtilities;
|
||||
|
||||
public class ListenerAttributeSet extends SimpleAttributeSet
|
||||
{
|
||||
|
|
@ -67,6 +68,9 @@ public class ListenerAttributeSet extends SimpleAttributeSet
|
|||
addAttribute(StyleConstants.FontSize,value);
|
||||
else if("actions".equals(key))
|
||||
addAttribute(ConsolePane.Actions,createActionsMenu((Cons)value));
|
||||
else if("icon".equals(key))
|
||||
addAttribute(StyleConstants.IconAttribute,
|
||||
GUIUtilities.loadIcon((String)value));
|
||||
} //}}}
|
||||
|
||||
//{{{ toColor() method
|
||||
|
|
|
|||
Loading…
Reference in New Issue