Package org.openide

Examples of org.openide.TopManager


        try
         {
           String s = idlName.getText().replace('.', '/');
          
           s = s + ".idl";
           TopManager topmanager = TopManager.getDefault();
           Repository repository = topmanager.getRepository();
           fileobject = repository.findResource(s);
          }
            catch(Exception exception)
            {
            }
View Full Code Here


        });
    }

    public void createStructMember()
    {
        TopManager topmanager = TopManager.getDefault();
        final AliasPanel aliaspanel = new AliasPanel();
        DialogDescriptor exdialogdescriptor = new DialogDescriptor(aliaspanel, ResourceBundle.getBundle("org/netbeans/modules/openoffice/wizard/nodes/Bundle").getString("TXT_CreateMember"));
        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(12, s, s1);
                        ((IDLBaseChildren)getChildren()).addKey(aliaskey);
                }
                dialog.setVisible(false);
                dialog.dispose();
            }

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

        return s;
    }

    public void createUnionMember()
    {
        TopManager topmanager = TopManager.getDefault();
        final UnionMemberPanel unionmemberpanel = new UnionMemberPanel();
        DialogDescriptor exdialogdescriptor = new DialogDescriptor(unionmemberpanel, ResourceBundle.getBundle("org/netbeans/modules/openoffice/wizard/nodes/Bundle").getString("TXT_CreateMember"));
        exdialogdescriptor.setButtonListener( new ActionListener() {

            public void actionPerformed(ActionEvent actionevent)
            {
                if(actionevent.getActionCommand().equals("OK"))
                {
                        String s = unionmemberpanel.getName();
                        String s1 = unionmemberpanel.getType();
                        String s3 = unionmemberpanel.getLabel();
                        UnionMemberKey unionmemberkey = new UnionMemberKey(11, s, s1, s3);
                        IDLBaseChildren mutablechildren = (IDLBaseChildren)getChildren();
                        int i = mutablechildren.getKeysCount();
                        if(i > 0)
                             {
                               BaseKey mutablekey = mutablechildren.getKey(i - 1);
                               if((mutablekey instanceof BaseKey) && ((UnionMemberKey)mutablekey).isDefaultValue()) i--;
                             }
                     mutablechildren.addKey(i, unionmemberkey);  
                   }
                dialog.setVisible(false);
                dialog.dispose();
            }

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

       
    }

    public void createUnionDefault()
    {
        TopManager topmanager = TopManager.getDefault();
        AliasPanel aliaspanel = new AliasPanel();
        DialogDescriptor exdialogdescriptor = new DialogDescriptor(aliaspanel, ResourceBundle.getBundle("org/netbeans/modules/openoffice/wizard/nodes/Bundle").getString("TXT_CreateUnionDefault"));
        dialog = topmanager.createDialog(exdialogdescriptor);
        dialog.setVisible(true);
        String s = aliaspanel.getName();
        String s1 = aliaspanel.getType();
        UnionMemberKey unionmemberkey = new UnionMemberKey(11, s, s1, null);
        ((IDLBaseChildren)getChildren()).addKey(unionmemberkey);
View Full Code Here

    public DestroyAction() {
    }
   
    public void performAction( Node anode[] ) {
        if ( enable( anode ) ) {
            TopManager topmanager = TopManager.getDefault();
            org.openide.NotifyDescriptor.Confirmation confirmation =
            new org.openide.NotifyDescriptor.Confirmation(
            MessageFormat.format(
            ResourceBundle.getBundle(
            "org/netbeans/modules/openoffice/wizard/actions/idl/Bundle").getString(
            "MSG_Destroy"), new Object[] {
                anode[0].getName()
            }), 2);
            topmanager.notify(confirmation);
            if(confirmation.getValue() == NotifyDescriptor.CANCEL_OPTION) {
                return;
            }
            if(anode[0].canDestroy())
                try {
View Full Code Here

        });
    }

    public void createOperation()
    {
        TopManager topmanager = TopManager.getDefault();
        final OperationPanel operationpanel = new OperationPanel();
        DialogDescriptor exdialogdescriptor = new DialogDescriptor(operationpanel, ResourceBundle.getBundle("org/netbeans/modules/openoffice/wizard/nodes/Bundle").getString("TXT_CreateOperation"));
        exdialogdescriptor.setButtonListener( new ActionListener() {

            public void actionPerformed(ActionEvent actionevent)
            {
                if(actionevent.getActionCommand().equals("OK"))
                {
                        String s = operationpanel.getName();
                        String s1 = operationpanel.getReturnType();
                        String s2 = operationpanel.getParameters();
                        String s3 = operationpanel.getExceptions();
                  
                        boolean flag = operationpanel.isOneway();
                        OperationKey operationkey = new OperationKey(3, s, s1, s2, s3,  flag);
                        ((IDLBaseChildren)getChildren()).addKey(operationkey);               
                        }
                dialog.setVisible(false);
                dialog.dispose();
            }

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

    }
View Full Code Here

    }

    public void createAttribute()
    {
        TopManager topmanager = TopManager.getDefault();
        final AttributePanel attributepanel = new AttributePanel();
        DialogDescriptor exdialogdescriptor = new DialogDescriptor(attributepanel, ResourceBundle.getBundle("org/netbeans/modules/openoffice/wizard/nodes/Bundle").getString("TXT_CreateAttribute"));
        exdialogdescriptor.setButtonListener( new ActionListener() {

            public void actionPerformed(ActionEvent actionevent)
            {
                if(actionevent.getActionCommand().equals("OK"))
                {
                        String s = attributepanel.getName();
                        String s1 = attributepanel.getType();
                        boolean flag = attributepanel.isReadOnly();
                        AttributeKey attributekey = new AttributeKey(4, s, s1, flag);
                        ((IDLBaseChildren)getChildren()).addKey(attributekey);
                }
                dialog.setVisible(false);
                dialog.dispose();
            }

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

   
   
     public void createModule()
    {
        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_CreateModule"));
         exdialogdescriptor.setButtonListener( new ActionListener() {

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

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

        dialog.setVisible(true);
    }
   
     public void createConstants() {
         final ConstantsPanel constantspanel = new ConstantsPanel();
         TopManager topmanager = TopManager.getDefault();
         DialogDescriptor exdialogdescriptor = new DialogDescriptor(
         constantspanel,
         ResourceBundle.getBundle(
         "org/netbeans/modules/openoffice/wizard/nodes/Bundle").getString(
         "TXT_CreateConstants"));
         exdialogdescriptor.setButtonListener( new ActionListener() {
            
             public void actionPerformed(ActionEvent actionevent) {
                 if(actionevent.getActionCommand().equals("OK")) {
                     String s = constantspanel.getName();
                     NameKey namedkey = new NameKey(20, s);
                     ((IDLBaseChildren)getChildren()).addKey(namedkey);
                 }
                 dialog.setVisible(false);
                 dialog.dispose();
             }
            
         });
        
         dialog = topmanager.createDialog(exdialogdescriptor);
         dialog.setVisible(true);
     }
View Full Code Here

     }
   
     public void createService()
    {
        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_CreateService"));
         exdialogdescriptor.setButtonListener( new ActionListener() {

            public void actionPerformed(ActionEvent actionevent)
            {
                if(actionevent.getActionCommand().equals("OK"))
                {
                    String s = modulepanel.getName();
                    NameKey namedkey = new NameKey(19, s);
                    ((IDLBaseChildren)getChildren()).addKey(namedkey);
                }
                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.