use of com.igormaznitsa.sciareto.ui.tabs.TabTitle in project netbeans-mmd-plugin by raydac.
the class MainFrame method showFindTextPane.
@Override
public void showFindTextPane(@Nullable final String text) {
final TabTitle current = getFocusedTab();
if (current != null && this.tabPane.getCurrentTitle().getProvider().doesSupportPatternSearch()) {
FindTextPanel panel = this.currentFindTextPanel.get();
if (panel == null) {
panel = new FindTextPanel(this, text);
panel.updateUI(current);
this.mainPanel.add(panel, BorderLayout.SOUTH);
}
this.currentFindTextPanel.set(panel);
this.mainPanel.revalidate();
this.mainPanel.repaint();
panel.requestFocus();
}
}
use of com.igormaznitsa.sciareto.ui.tabs.TabTitle in project netbeans-mmd-plugin by raydac.
the class MainFrame method menuEditCutActionPerformed.
// GEN-LAST:event_menuEditPasteActionPerformed
private void menuEditCutActionPerformed(java.awt.event.ActionEvent evt) {
// GEN-FIRST:event_menuEditCutActionPerformed
final TabTitle title = this.getFocusedTab();
if (title != null && title.getProvider().doesSupportCutCopyPaste()) {
title.getProvider().doCut();
}
updateMenuItemsForProvider(title == null ? null : title.getProvider());
}
use of com.igormaznitsa.sciareto.ui.tabs.TabTitle in project netbeans-mmd-plugin by raydac.
the class MainFrame method menuEditPasteActionPerformed.
// GEN-LAST:event_menuEditCopyActionPerformed
private void menuEditPasteActionPerformed(java.awt.event.ActionEvent evt) {
// GEN-FIRST:event_menuEditPasteActionPerformed
final TabTitle title = this.getFocusedTab();
if (title != null && title.getProvider().doesSupportCutCopyPaste()) {
title.getProvider().doPaste();
}
updateMenuItemsForProvider(title == null ? null : title.getProvider());
}
use of com.igormaznitsa.sciareto.ui.tabs.TabTitle in project netbeans-mmd-plugin by raydac.
the class MainFrame method menuRedoActionPerformed.
// GEN-LAST:event_menuUndoActionPerformed
private void menuRedoActionPerformed(java.awt.event.ActionEvent evt) {
// GEN-FIRST:event_menuRedoActionPerformed
final TabTitle title = this.getFocusedTab();
if (title != null) {
this.menuRedo.setEnabled(title.getProvider().redo());
this.menuUndo.setEnabled(title.getProvider().isUndo());
}
}
use of com.igormaznitsa.sciareto.ui.tabs.TabTitle in project netbeans-mmd-plugin by raydac.
the class MainFrame method menuUndoActionPerformed.
// GEN-LAST:event_menuGoToFileActionPerformed
private void menuUndoActionPerformed(java.awt.event.ActionEvent evt) {
// GEN-FIRST:event_menuUndoActionPerformed
final TabTitle title = this.getFocusedTab();
if (title != null) {
this.menuUndo.setEnabled(title.getProvider().undo());
this.menuRedo.setEnabled(title.getProvider().isRedo());
}
}
Aggregations