当前位置: 首页>>代码示例>>Java>>正文


Java PreferencesEvent类代码示例

本文整理汇总了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);
            }
        });
    }
}
 
开发者ID:JMMC-OpenDev,项目名称:jMCS,代码行数:20,代码来源:MacOSXAdapter.java

示例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();
		}
	});
}
 
开发者ID:MyersResearchGroup,项目名称:iBioSim,代码行数:28,代码来源:Gui.java

示例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();
}
 
开发者ID:AnyObject,项目名称:OAT,代码行数:11,代码来源:Main.java

示例4: handlePreferences

import com.apple.eawt.AppEvent.PreferencesEvent; //导入依赖的package包/类
@Override
public void handlePreferences(PreferencesEvent arg0) {
    if (parentFrame == null) {
        return;
    }

    parentFrame.showPreferencesDialog();
}
 
开发者ID:JabRef,项目名称:jabref,代码行数:9,代码来源:MacAdapter.java

示例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);
}
 
开发者ID:ac2cz,项目名称:FoxTelem,代码行数:6,代码来源:MacPreferencesHandler.java

示例6: handlePreferences

import com.apple.eawt.AppEvent.PreferencesEvent; //导入依赖的package包/类
@Override
public void handlePreferences(PreferencesEvent event) {
	PreferencesWindow.display();
}
 
开发者ID:Ayutac,项目名称:toolkit,代码行数:5,代码来源:PreferencesCommand.java

示例7: handlePreferences

import com.apple.eawt.AppEvent.PreferencesEvent; //导入依赖的package包/类
@Override
public void handlePreferences(final PreferencesEvent e) {
	eventService.publish(new AppPreferencesEvent());
}
 
开发者ID:scijava,项目名称:scijava-plugins-platforms,代码行数:5,代码来源:MacOSAppEventDispatcher.java

示例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);
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:6,代码来源:PreferencesHandler.java


注:本文中的com.apple.eawt.AppEvent.PreferencesEvent类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。