Ignore:
Timestamp:
2010-10-01T00:15:36+02:00 (16 years ago)
Author:
postfix
Message:

added example "share variable" to interface

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/smed/plugs/smed_ex/src/smed_ex/SmedEx.java

    r23419 r23426  
    1818
    1919        private boolean visible = true;
     20        public SmedPluginManager manager = null;
    2021       
    2122    private JPanel jPanel = null;  //  @jve:decl-index=0:visual-constraint="78,30"
     
    4849    @Override
    4950    public void setPluginManager(SmedPluginManager manager) {
    50         // TODO Auto-generated method stub
    51 
     51        this.manager = manager;
    5252    }
    5353
     
    8282                @Override
    8383                public void actionPerformed(ActionEvent e) {
    84                     JOptionPane.showMessageDialog( null, "it works" );
     84                    if(manager.getString() == null) JOptionPane.showMessageDialog( null, "it works" );
     85                    else JOptionPane.showMessageDialog( null, manager.getString() );
    8586                }
    8687
Note: See TracChangeset for help on using the changeset viewer.