com.apple.eawt.ApplicationEvent.getFilename()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(93)

本文整理了Java中com.apple.eawt.ApplicationEvent.getFilename()方法的一些代码示例,展示了ApplicationEvent.getFilename()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ApplicationEvent.getFilename()方法的具体详情如下:
包路径:com.apple.eawt.ApplicationEvent
类名称:ApplicationEvent
方法名:getFilename

ApplicationEvent.getFilename介绍

暂无

代码示例

代码示例来源:origin: deathmarine/Luyten

public void handleOpenFile(ApplicationEvent e) {
  Luyten.openFileInInstance(new File(e.getFilename()));
}

代码示例来源:origin: net.imagej/ij

public void handleOpenFile(ApplicationEvent event) {
  paths.add(event.getFilename());
  Thread thread = new Thread(this, "Open");
  thread.setPriority(thread.getPriority()-1);
  thread.start();
}

代码示例来源:origin: imagej/ImageJA

public void handleOpenFile(ApplicationEvent event) {
  paths.add(event.getFilename());
  Thread thread = new Thread(this, "Open");
  thread.setPriority(thread.getPriority()-1);
  thread.start();
}

代码示例来源:origin: antlr/antlrworks

public void handleOpenFile(ApplicationEvent e) {
  openDocument(e.getFilename());
}

代码示例来源:origin: raydac/netbeans-mmd-plugin

@Override
public void handlePrintFile(@Nonnull final ApplicationEvent ae) {
 ae.setHandled(processMenuEvent(PlatformMenuEvent.PRINT_FILE, ae.getFilename()));
}

代码示例来源:origin: raydac/netbeans-mmd-plugin

@Override
public void handleOpenFile(@Nonnull final ApplicationEvent ae) {
 ae.setHandled(processMenuEvent(PlatformMenuEvent.OPEN_FILE, ae.getFilename()));
}

代码示例来源:origin: mucommander/mucommander

public void handleOpenFile(ApplicationEvent event) {
  // Wait until the application has been launched. This step is required to properly handle the case where the 
  // application is launched with a file to open, for instance when drag-n-dropping a file to the Dock icon
  // when muCommander is not started yet. In this case, this method is called while Launcher is still busy
  // launching the application (no mainframe exists yet).
  muCommander.waitUntilLaunched();
  AbstractFile file = FileFactory.getFile(event.getFilename());
  FolderPanel activePanel = WindowManager.getCurrentMainFrame().getActivePanel();
  if(file.isBrowsable())
    activePanel.tryChangeCurrentFolder(file);
  else
    activePanel.tryChangeCurrentFolder(file.getParent(), file, false);
}

相关文章

微信公众号

最新文章

更多