public WorkspaceFrame(Workspace workspace) { this.workspace = workspace; menuActions = new HashSet<>(); createUI(); restoreMetrics(); addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { if (OSUtils.isOSX()){ ProtegeAppleApplication.getInstance().setEditorKit(null); } saveMetrics(); removeWindowListener(this); } public void windowActivated(WindowEvent event) { if (OSUtils.isOSX()){ ProtegeAppleApplication.getInstance().setEditorKit(WorkspaceFrame.this.workspace.getEditorKit()); } workspace.handleActivated(); } }); }
public WorkspaceFrame(Workspace workspace) { this.workspace = workspace; menuActions = new HashSet<ProtegeAction>(); createUI(); restoreMetrics(); addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { if (OSUtils.isOSX()){ ProtegeAppleApplication.getInstance().setEditorKit(null); } saveMetrics(); removeWindowListener(this); } public void windowActivated(WindowEvent event) { if (OSUtils.isOSX()){ ProtegeAppleApplication.getInstance().setEditorKit(WorkspaceFrame.this.workspace.getEditorKit()); } } }); }
public WorkspaceFrame(Workspace workspace) { this.workspace = workspace; menuActions = new HashSet<ProtegeAction>(); createUI(); restoreMetrics(); addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { if (OSUtils.isOSX()){ ProtegeAppleApplication.getInstance().setEditorKit(null); } saveMetrics(); removeWindowListener(this); } public void windowActivated(WindowEvent event) { if (OSUtils.isOSX()){ ProtegeAppleApplication.getInstance().setEditorKit(WorkspaceFrame.this.workspace.getEditorKit()); } } }); }