Add support for icon attribute in jEdit plugin

cvs
Slava Pestov 2004-11-26 02:58:58 +00:00
parent beeada9220
commit cf2bfad780
2 changed files with 5 additions and 0 deletions

View File

@ -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>

View File

@ -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