private void showPrefDialog(PreferenceType type, boolean editMode, String key, Object obj) {
   PreferenceDialog newFragment = PreferenceDialog.newInstance(type, editMode, key, obj);
   newFragment.setTargetFragment(this, ("Fragment:" + mFullPath).hashCode());
   FragmentManager fm = getFragmentManager();
   if (fm != null) {
     newFragment.show(fm, mFullPath + "#" + key);
   }
 }
Exemplo n.º 2
0
 @Override
 public void actionPerformed(ActionEvent e) {
   final PreferenceDialog p = new PreferenceDialog(Main.parent);
   p.getTabbedPane().getShortcutPreference().setDefaultFilter(act.getDisplayName());
   p.selectPreferencesTabByName("shortcuts");
   p.setVisible(true);
   // refresh toolbar to try using changed shortcuts without restart
   Main.toolbar.refreshToolbarControl();
 }
Exemplo n.º 3
0
 @Override
 public void actionPerformed(ActionEvent e) {
   final PreferenceDialog p = new PreferenceDialog(Main.parent);
   p.selectPreferencesTabByName("toolbar");
   p.setVisible(true);
 }