Package org.openide

Examples of org.openide.TopManager


    }

    public void createValueBox()
    {
        final ValueBoxPanel valueboxpanel = new ValueBoxPanel();
        TopManager topmanager = TopManager.getDefault();
        DialogDescriptor exdialogdescriptor = new DialogDescriptor(valueboxpanel, "ValueBox");
        exdialogdescriptor.setButtonListener( new ActionListener() {

            public void actionPerformed(ActionEvent actionevent)
            {
                if(actionevent.getActionCommand().equals("OK"))
                {
                        String s = valueboxpanel.getName();
                        String s1 = valueboxpanel.getType();
                        AliasKey aliaskey = new AliasKey(15, s, s1);
                        ((IDLBaseChildren)getChildren()).addKey(aliaskey);           
                }
                dialog.setVisible(false);
                dialog.dispose();
            }

        });
      
        dialog = topmanager.createDialog(exdialogdescriptor);
        dialog.setVisible(true);
       
    }
View Full Code Here


    }
   
    public void createConstant()
    {
        final ConstPanel constpanel = new ConstPanel();
        TopManager topmanager = TopManager.getDefault();
        DialogDescriptor exdialogdescriptor = new DialogDescriptor(constpanel, ResourceBundle.getBundle("org/netbeans/modules/openoffice/wizard/nodes/Bundle").getString("TXT_CreateConstant"));
        exdialogdescriptor.setButtonListener( new ActionListener() {

            public void actionPerformed(ActionEvent actionevent)
            {
                if(actionevent.getActionCommand().equals("OK"))
                {
                        String s = constpanel.getName();
                        String s1 = constpanel.getType();
                        String s2 = constpanel.getValue();
                        ConstKey constkey = new ConstKey(5, s, s1, s2);
                       ((IDLBaseChildren)getChildren()).addKey(constkey);
               }
                dialog.setVisible(false);
                dialog.dispose();
            }

        });
      
        dialog = topmanager.createDialog(exdialogdescriptor);
        dialog.setVisible(true);
       

       
    }
View Full Code Here

    }

    public void createStruct()
    {
        final InterfacePanel structpanel = new InterfacePanel();
        TopManager topmanager = TopManager.getDefault();
        DialogDescriptor exdialogdescriptor = new DialogDescriptor(structpanel, ResourceBundle.getBundle("org/netbeans/modules/openoffice/wizard/nodes/Bundle").getString("TXT_CreateStruct"));
        exdialogdescriptor.setButtonListener( new ActionListener() {

            public void actionPerformed(ActionEvent actionevent)
            {
                if(actionevent.getActionCommand().equals("OK"))
                {
                        String s = structpanel.getName();
                        String s1 = structpanel.getBase();
                        StructKey structkey = new StructKey(8, s, s1);
                        ((IDLBaseChildren)getChildren()).addKey(structkey);
                       
               }
                dialog.setVisible(false);
                dialog.dispose();
            }

        });
      
        dialog = topmanager.createDialog(exdialogdescriptor);
        dialog.setVisible(true);
       
    }
View Full Code Here

    }

    public void createForwardDcl()
    {
        final ForwardDclPanel forwarddclpanel = new ForwardDclPanel();
        TopManager topmanager = TopManager.getDefault();
        DialogDescriptor exdialogdescriptor = new DialogDescriptor(forwarddclpanel, ResourceBundle.getBundle("org/netbeans/modules/openoffice/wizard/nodes/Bundle").getString("TXT_CreateFwdDcl"));
        exdialogdescriptor.setButtonListener( new ActionListener() {

            public void actionPerformed(ActionEvent actionevent)
            {
                if(actionevent.getActionCommand().equals("OK"))
                {
                        String s = forwarddclpanel.getName();
                        boolean flag = forwarddclpanel.isInterface();
                        ForwardDclKey forwarddclkey = new ForwardDclKey(14, s, flag);
                        ((IDLBaseChildren)getChildren()).addKey(forwarddclkey);
                }
                dialog.setVisible(false);
                dialog.dispose();
            }

        });
      
        dialog = topmanager.createDialog(exdialogdescriptor);
        dialog.setVisible(true);
       
    }   
View Full Code Here

    }   

    public void createException()
    {
        final ModuleCreatePanel modulepanel = new ModuleCreatePanel();
        TopManager topmanager = TopManager.getDefault();
        DialogDescriptor exdialogdescriptor = new DialogDescriptor(modulepanel, ResourceBundle.getBundle("org/netbeans/modules/openoffice/wizard/nodes/Bundle").getString("TXT_CreateException"));
        exdialogdescriptor.setButtonListener( new ActionListener() {

           public void actionPerformed(ActionEvent actionevent)
            {
                if(actionevent.getActionCommand().equals("OK"))
                {
                        String s = modulepanel.getName();
                        NameKey NameKey = new NameKey(7, s);
                        ((IDLBaseChildren)getChildren()).addKey(NameKey);
                 }
                dialog.setVisible(false);
                dialog.dispose();
            }

        });
              
        dialog = topmanager.createDialog(exdialogdescriptor);
        dialog.setVisible(true);
       
         
    }
View Full Code Here

    }

    public void createAlias()
    {
        final AliasPanel aliaspanel = new AliasPanel();
        TopManager topmanager = TopManager.getDefault();
        DialogDescriptor exdialogdescriptor = new DialogDescriptor(aliaspanel, ResourceBundle.getBundle("org/netbeans/modules/openoffice/wizard/nodes/Bundle").getString("TXT_CreateAlias"));
        exdialogdescriptor.setButtonListener( new ActionListener() {

            public void actionPerformed(ActionEvent actionevent)
            {
                if(actionevent.getActionCommand().equals("OK"))
                {
                        String s = aliaspanel.getName();
                        String s1 = aliaspanel.getType();
                        AliasKey aliaskey = new AliasKey(6, s, s1);
                        ((IDLBaseChildren)getChildren()).addKey(aliaskey);
                 }
                dialog.setVisible(false);
                dialog.dispose();
            }

        });       
                       
        dialog = topmanager.createDialog(exdialogdescriptor);
        dialog.setVisible(true);
       
               
    }
View Full Code Here

TOP

Related Classes of org.openide.TopManager

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.