本文整理汇总了Java中com.apple.eawt.AppEvent.PreferencesEvent类的典型用法代码示例。如果您正苦于以下问题:Java PreferencesEvent类的具体用法?Java PreferencesEvent怎么用?Java PreferencesEvent使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
PreferencesEvent类属于com.apple.eawt.AppEvent包,在下文中一共展示了PreferencesEvent类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: handlePreferences
import com.apple.eawt.AppEvent.PreferencesEvent; //导入依赖的package包/类
/**
* Show the user preferences
* @param pe preferences event
*/
@Override
public void handlePreferences(final PreferencesEvent pe) {
logEDT("handlePreferences");
final AbstractAction preferenceAction = _registrar.getPreferenceAction();
if (preferenceAction != null) {
invokeLaterUsingApplicationEDT(new Runnable() {
@Override
public void run() {
logEDT("handlePreferences");
preferenceAction.actionPerformed(null);
}
});
}
}
示例2: OSXSetup
import com.apple.eawt.AppEvent.PreferencesEvent; //导入依赖的package包/类
public void OSXSetup() {
Application app = Application.getApplication();
app.setAboutHandler(new AboutHandler() {
public void handleAbout(AboutEvent ae) {
about();
}
});
app.setPreferencesHandler(new PreferencesHandler() {
public void handlePreferences(PreferencesEvent pe) {
PreferencesDialog.showPreferences(frame);
//EditPreferences editPreferences = new EditPreferences(frame, async);
//editPreferences.preferences();
tree.setExpandibleIcons(!IBioSimPreferences.INSTANCE.isPlusMinusIconsEnabled());
if (sbolDocument != null) {
sbolDocument.setDefaultURIprefix(SBOLEditorPreferences.INSTANCE.getUserInfo().getURI().toString());
}
}
});
app.setQuitHandler(new QuitHandler() {
public void handleQuitRequestWith(QuitEvent event, QuitResponse response) {
exit();
}
});
}
示例3: handlePreferences
import com.apple.eawt.AppEvent.PreferencesEvent; //导入依赖的package包/类
@Override
public void handlePreferences(final PreferencesEvent pe) {
new Thread(new Runnable() {
@Override
public void run() {
preferencesFrame.setVisible(true);
}
}).start();
}
示例4: handlePreferences
import com.apple.eawt.AppEvent.PreferencesEvent; //导入依赖的package包/类
@Override
public void handlePreferences(PreferencesEvent arg0) {
if (parentFrame == null) {
return;
}
parentFrame.showPreferencesDialog();
}
示例5: handlePreferences
import com.apple.eawt.AppEvent.PreferencesEvent; //导入依赖的package包/类
@Override
public void handlePreferences(PreferencesEvent e) {
SettingsFrame f = new SettingsFrame(MainWindow.frame, true);
f.setVisible(true);
}
示例6: handlePreferences
import com.apple.eawt.AppEvent.PreferencesEvent; //导入依赖的package包/类
@Override
public void handlePreferences(PreferencesEvent event) {
PreferencesWindow.display();
}
示例7: handlePreferences
import com.apple.eawt.AppEvent.PreferencesEvent; //导入依赖的package包/类
@Override
public void handlePreferences(final PreferencesEvent e) {
eventService.publish(new AppPreferencesEvent());
}
示例8: handlePreferences
import com.apple.eawt.AppEvent.PreferencesEvent; //导入依赖的package包/类
/**
* Called when the app is asked to show it's preferences UI.
* @param e the request to show preferences.
*/
public void handlePreferences(final PreferencesEvent e);