use of com.mucommander.ui.encoding.EncodingMenu in project mucommander by mucommander.
the class BinaryViewer method extendMenu.
@Override
public void extendMenu(JMenuBar menuBar) {
menuBar.add(editMenu);
menuBar.add(viewMenu);
EncodingMenu encodingMenu = new EncodingMenu(new DialogOwner(presenter.getWindowFrame()), binaryComponent.getCodeArea().getCharset().name());
encodingMenu.addEncodingListener((source, oldEncoding, newEncoding) -> changeEncoding(newEncoding));
menuBar.add(encodingMenu);
}
use of com.mucommander.ui.encoding.EncodingMenu in project mucommander by mucommander.
the class TextEditor method extendMenu.
@Override
public void extendMenu(JMenuBar menuBar) {
super.extendMenu(menuBar);
// Encoding menu
EncodingMenu encodingMenu = new EncodingMenu(new DialogOwner(presenter.getWindowFrame()), textViewerDelegate.getEncoding());
encodingMenu.addEncodingListener(this);
menuBar.add(editMenu);
menuBar.add(viewMenu);
menuBar.add(encodingMenu);
}
use of com.mucommander.ui.encoding.EncodingMenu in project mucommander by mucommander.
the class BinaryEditor method extendMenu.
@Override
public void extendMenu(JMenuBar menuBar) {
menuBar.add(fileMenu);
menuBar.add(editMenu);
menuBar.add(viewMenu);
EncodingMenu encodingMenu = new EncodingMenu(new DialogOwner(presenter.getWindowFrame()), binaryComponent.getCodeArea().getCharset().name());
encodingMenu.addEncodingListener((source, oldEncoding, newEncoding) -> changeEncoding(newEncoding));
menuBar.add(encodingMenu);
}
use of com.mucommander.ui.encoding.EncodingMenu in project mucommander by mucommander.
the class TextViewer method extendMenu.
@Override
public void extendMenu(JMenuBar menuBar) {
// Encoding menu
EncodingMenu encodingMenu = new EncodingMenu(new DialogOwner(presenter.getWindowFrame()), encoding);
encodingMenu.addEncodingListener(this);
menuBar.add(editMenu);
menuBar.add(viewMenu);
menuBar.add(encodingMenu);
}
Aggregations