Package org.netbeans.modules.openoffice.wizard.keys

Examples of org.netbeans.modules.openoffice.wizard.keys.OperationKey


    {
        String s = new String();
        for(int j = 0; j < i; j++)
            s = s + "    ";

        OperationKey operationkey = (OperationKey)key;
        if(operationkey.isOneway())
            s = s + "[oneway] ";
        s = s + operationkey.getReturnType() + " ";
        s = s + getName() + " (";
        s = s + operationkey.getParameters() + ")";
        if(operationkey.getExceptions().length() > 0)
            s = s + " raises (" + operationkey.getExceptions() + ")";
       
        s = s + ";\n";
        return s;
    }
View Full Code Here


    public BasePanel getEditPanel()
    {
        OperationPanel operationpanel = new OperationPanel();
        operationpanel.setName(getName());
        OperationKey operationkey = (OperationKey)key;
        operationpanel.setExceptions(operationkey.getExceptions());
        operationpanel.setOneway(operationkey.isOneway());
        operationpanel.setParameters(operationkey.getParameters());
        operationpanel.setReturnType(operationkey.getReturnType());
        return operationpanel;
    }
View Full Code Here

    public void reInit(BasePanel BasePanel)
    {
        if(BasePanel instanceof OperationPanel)
        {
            OperationPanel operationpanel = (OperationPanel)BasePanel;
            OperationKey operationkey = (OperationKey)key;
            String s = operationpanel.getName();
            String s2 = operationpanel.getReturnType();
            String s3 = operationpanel.getParameters();
            String s4 = operationpanel.getExceptions();
            boolean flag = operationpanel.isOneway();
            if(!operationkey.getName().equals(s))
            {
                setName(s);
                operationkey.setName(s);
            }
           if(!operationkey.getExceptions().equals(s4))
                operationkey.setExceptions(s4);
            if(!operationkey.getParameters().equals(s3))
                operationkey.setParameters(s3);
            if(!operationkey.getReturnType().equals(s2))
                operationkey.setReturnType(s2);
            if(operationkey.isOneway() != flag)
                operationkey.setOneway(flag);
        }
    }
View Full Code Here

TOP

Related Classes of org.netbeans.modules.openoffice.wizard.keys.OperationKey

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.