FileDocCategorySizeDatePackage
SystemPropsPlugin.javaAPI DocExample1181Wed Jul 17 00:28:14 BST 2002com.wiverson.macosbook.plugin

SystemPropsPlugin

public class SystemPropsPlugin extends Object implements com.wiverson.macosbook.SimpleEditPlugin
author
wiverson

Fields Summary
Constructors Summary
public SystemPropsPlugin()

    
Methods Summary
public voiddoAction(com.wiverson.macosbook.SimpleEdit frame, java.awt.event.ActionEvent evt)

        java.util.Properties myProps = System.getProperties();
        java.util.Enumeration myPropsKeys = myProps.keys();
        StringBuffer myResults = new StringBuffer();
        while(myPropsKeys.hasMoreElements()) 
        {
            String currentKey = (String)myPropsKeys.nextElement();
            myResults.append(currentKey);
            myResults.append("=");
            myResults.append(System.getProperty(currentKey));
            myResults.append(System.getProperty("line.separator"));
        }
        frame.appendDocumentText(myResults.toString());
    
public java.lang.StringgetAction()

        return "Properties";
    
public voidinit(com.wiverson.macosbook.SimpleEdit in)

            in.setStatusText("Loaded SystemPropsPlugin");