Пример #1
0
 /**
  * Method generated by IntelliJ IDEA GUI Designer >>> IMPORTANT!! <<< DO NOT edit this method OR
  * call it in your code!
  *
  * @noinspection ALL
  */
 private void $$$setupUI$$$() {
   myRootPanel = new JPanel();
   myRootPanel.setLayout(new BorderLayout(0, 0));
   final JTabbedPane tabbedPane1 = new JTabbedPane();
   myRootPanel.add(tabbedPane1, BorderLayout.CENTER);
   final JPanel panel1 = new JPanel();
   panel1.setLayout(new BorderLayout(0, 0));
   tabbedPane1.addTab(
       ResourceBundle.getBundle("net/groboclown/idea/p4ic/P4Bundle")
           .getString("user.settings.connection"),
       panel1);
   final JScrollPane scrollPane1 = new JScrollPane();
   panel1.add(scrollPane1, BorderLayout.CENTER);
   myP4ConfigPanel = new P4ConfigPanel();
   scrollPane1.setViewportView(myP4ConfigPanel.$$$getRootComponent$$$());
   final JPanel panel2 = new JPanel();
   panel2.setLayout(new BorderLayout(0, 0));
   tabbedPane1.addTab(
       ResourceBundle.getBundle("net/groboclown/idea/p4ic/P4Bundle")
           .getString("user.settings.prefs"),
       panel2);
   final JScrollPane scrollPane2 = new JScrollPane();
   panel2.add(scrollPane2, BorderLayout.CENTER);
   myUserPreferencesPanel = new UserPreferencesPanel();
   scrollPane2.setViewportView(myUserPreferencesPanel.$$$getRootComponent$$$());
 }
Пример #2
0
 void initialize(final Project project) {
   myP4ConfigPanel.initialize(project);
 }
Пример #3
0
 void saveSettingsToConfig(
     @NotNull final ManualP4Config config, @NotNull final UserProjectPreferences preferences) {
   myP4ConfigPanel.saveSettingsToConfig(config);
   myUserPreferencesPanel.saveSettingsToConfig(preferences);
 }
Пример #4
0
 void loadSettingsIntoGUI(
     @NotNull final ManualP4Config config, @NotNull final UserProjectPreferences preferences) {
   myP4ConfigPanel.loadSettingsIntoGUI(config);
   myUserPreferencesPanel.loadSettingsIntoGUI(preferences);
 }
Пример #5
0
 boolean isModified(
     @NotNull final ManualP4Config myConfig, @NotNull final UserProjectPreferences preferences) {
   return myP4ConfigPanel.isModified(myConfig) || myUserPreferencesPanel.isModified(preferences);
 }