Search in sources :

Example 1 with EncodingMenu

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);
}
Also used : EncodingMenu(com.mucommander.ui.encoding.EncodingMenu) DialogOwner(com.mucommander.commons.util.ui.dialog.DialogOwner)

Example 2 with 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);
}
Also used : EncodingMenu(com.mucommander.ui.encoding.EncodingMenu) DialogOwner(com.mucommander.commons.util.ui.dialog.DialogOwner)

Example 3 with 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);
}
Also used : EncodingMenu(com.mucommander.ui.encoding.EncodingMenu) DialogOwner(com.mucommander.commons.util.ui.dialog.DialogOwner)

Example 4 with 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);
}
Also used : EncodingMenu(com.mucommander.ui.encoding.EncodingMenu) DialogOwner(com.mucommander.commons.util.ui.dialog.DialogOwner)

Aggregations

DialogOwner (com.mucommander.commons.util.ui.dialog.DialogOwner)4 EncodingMenu (com.mucommander.ui.encoding.EncodingMenu)4