141142143144145146147148149150151152153
Admin admin = Admin.getInstance(); switch ( action ) { case ACTION_DETACH: try { AdminConfig cfg = admin.getAdminConfig(); cfg.removeFileSystem(label); cfg.save(); return REMOVE_SELF; } catch ( Exception e ) { admin.addMessage(e.getMessage()); }
268269270271272273274275276277278279280
ico = ServerNCIcon; return REFRESH_SELF; case ACTION_DETACH: try { AdminConfig cfg = Admin.getInstance().getAdminConfig(); cfg.removeDriverConfig(label); cfg.save(); return REMOVE_SELF; } catch ( Exception e ) { Admin.getInstance().addMessage(e.getMessage()); }