boolean () { EncodingManager encodingManager = EncodingManager.getInstance(); EncodingReference defaultEncoding = EncodingReference.DEFAULT; if (encodingManager instanceof EncodingManagerImpl) { defaultEncoding = ((EncodingManagerImpl)encodingManager).getDefaultConsoleEncodingReference(); } EncodingReference consoleEncoding = myEncodingComboBox.getSelectedEncodingReference(); return !defaultEncoding.equals(consoleEncoding); }