Package com.intellij.ui

Examples of com.intellij.ui.UserActivityWatcher


        wireActivityWatcher();       
    }

    private void wireActivityWatcher() {
        UserActivityWatcher watcher = new UserActivityWatcher();
        watcher.addUserActivityListener(new UserActivityListener() {
            public void stateChanged() {
                modified = true;
            }
        });
        watcher.register(pnlRoot);
    }
View Full Code Here


            }
        });
    }

    private void wireActivityWatchers() {
        UserActivityWatcher watcher = new UserActivityWatcher();
        watcher.addUserActivityListener(new UserActivityListener() {
            public void stateChanged() {
                modified = true;
            }
        });
        watcher.register(projectSettingsPanel);
    }
View Full Code Here

    public BasicSettingsTab(@NotNull FacetEditorContext editorContext, @NotNull PropertiesSettingsTab propertiesSettingsTab) {
        this.editorContext = editorContext;
        this.propertiesSettingsTab = propertiesSettingsTab;
        this.propertiesSettingsTab.reset();

        UserActivityWatcher watcher = new UserActivityWatcher();
        watcher.addUserActivityListener(new UserActivityListener() {
            public void stateChanged() {
                modified = true;
            }
        });
        watcher.register(pnlRoot);

        txtIvyFile.addBrowseFolderListener("Select ivy file", "", editorContext.getProject(), new FileChooserDescriptor(true, false, false, false, false, false));
        txtIvySettingsFile.addBrowseFolderListener("Select ivy settings file", "", editorContext.getProject(), new FileChooserDescriptor(true, false, false, false, false, false));

        txtIvyFile.getTextField().getDocument().addDocumentListener(new DocumentAdapter() {
View Full Code Here

        installActivityListener();
    }

    private void installActivityListener() {
        UserActivityWatcher watcher = new UserActivityWatcher();
        watcher.addUserActivityListener(new UserActivityListener() {
            public void stateChanged() {
                modified = true;
            }
        });
        watcher.register(pnlRoot);
    }
View Full Code Here

      public void stateChanged(ChangeEvent e) {
        manifestFileLocationSelectorChanged();
      }
    });

    UserActivityWatcher watcher = new UserActivityWatcher();
    watcher.addUserActivityListener(new UserActivityListener() {
      @Override
      public void stateChanged() {
        myModified = true;
        updateGui();
      }
    });
    watcher.register(myRoot);

    myValidatorsManager.registerValidator(new FacetEditorValidator() {
      @NotNull
      @Override
      public ValidationResult check() {
View Full Code Here

      public void stateChanged(ChangeEvent e) {
        updateGui();
      }
    };

    UserActivityWatcher watcher = new UserActivityWatcher();
    watcher.addUserActivityListener(new UserActivityListener() {
      public void stateChanged() {
        _modified = true;
      }
    });

    watcher.register(_root);
    _bundleActivator.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        onBundleActivatorSelect();
      }
    });
View Full Code Here

        }
        return false;
      }
    });

    myWatcher = new UserActivityWatcher();
    myWatcher.register(myMainPanel);
    myWatcher.addUserActivityListener(new UserActivityListener() {
      public void stateChanged() {
        myModified = true;
      }
View Full Code Here

  protected void uninstallWatcher() {
    myWatcher = null;
  }

  protected void installWatcher(JComponent c) {
    myWatcher = new UserActivityWatcher();
    myWatcher.register(c);
    myUserActivityListener = new UserActivityListener() {
      public void stateChanged() {
        fireEditorStateChanged();
      }
View Full Code Here

                    copyApplicationSettingsToProject();
                }
            }
        });
        //setup an activity watcher
        UserActivityWatcher watcher = new UserActivityWatcher();
        watcher.addUserActivityListener(new UserActivityListener() {
            public void stateChanged() {
                modified = true;
            }
        });
        watcher.register(panel);
        //capture the click event on the label
        this.loadDefaultsLabel.addMouseListener(new MouseAdapter() {
            @Override
            public void mouseClicked(MouseEvent e) {
                reset(new JUnitGeneratorSettings());
View Full Code Here

        leinPanel.add(overrideLeinJar, c.xy(3,row));
        leinPanel.add(new JBLabel("Override"), c.xy(4,row));

        outerPanel.add(leinPanel, BorderLayout.NORTH);

        myWatcher = new UserActivityWatcher();
        myWatcher.register(outerPanel);
        myWatcher.addUserActivityListener(new UserActivityListener() {
            public void stateChanged() {
                changed = true;
                leinJarSelectorField.setEnabled(overrideLeinJar.isSelected());
View Full Code Here

TOP

Related Classes of com.intellij.ui.UserActivityWatcher

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.