src/share/classes/javax/swing/text/DefaultEditorKit.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 847,856 ****
--- 847,857 ----
* @see DefaultEditorKit#defaultKeyTypedAction
* @see DefaultEditorKit#getActions
* @see Keymap#setDefaultAction
* @see Keymap#getDefaultAction
*/
+ @SuppressWarnings("serial") // Same-version serialization only
public static class DefaultKeyTypedAction extends TextAction {
/**
* Creates this object with the appropriate identifier.
*/
*** 904,913 ****
--- 905,915 ----
* Please see {@link java.beans.XMLEncoder}.
*
* @see DefaultEditorKit#insertContentAction
* @see DefaultEditorKit#getActions
*/
+ @SuppressWarnings("serial") // Same-version serialization only
public static class InsertContentAction extends TextAction {
/**
* Creates this object with the appropriate identifier.
*/
*** 952,961 ****
--- 954,964 ----
* Please see {@link java.beans.XMLEncoder}.
*
* @see DefaultEditorKit#insertBreakAction
* @see DefaultEditorKit#getActions
*/
+ @SuppressWarnings("serial") // Same-version serialization only
public static class InsertBreakAction extends TextAction {
/**
* Creates this object with the appropriate identifier.
*/
*** 994,1003 ****
--- 997,1007 ----
* Please see {@link java.beans.XMLEncoder}.
*
* @see DefaultEditorKit#insertTabAction
* @see DefaultEditorKit#getActions
*/
+ @SuppressWarnings("serial") // Same-version serialization only
public static class InsertTabAction extends TextAction {
/**
* Creates this object with the appropriate identifier.
*/
*** 1270,1279 ****
--- 1274,1284 ----
* Please see {@link java.beans.XMLEncoder}.
*
* @see DefaultEditorKit#cutAction
* @see DefaultEditorKit#getActions
*/
+ @SuppressWarnings("serial") // Same-version serialization only
public static class CutAction extends TextAction {
/** Create this object with the appropriate identifier. */
public CutAction() {
super(cutAction);
*** 1306,1315 ****
--- 1311,1321 ----
* Please see {@link java.beans.XMLEncoder}.
*
* @see DefaultEditorKit#copyAction
* @see DefaultEditorKit#getActions
*/
+ @SuppressWarnings("serial") // Same-version serialization only
public static class CopyAction extends TextAction {
/** Create this object with the appropriate identifier. */
public CopyAction() {
super(copyAction);
*** 1343,1352 ****
--- 1349,1359 ----
* Please see {@link java.beans.XMLEncoder}.
*
* @see DefaultEditorKit#pasteAction
* @see DefaultEditorKit#getActions
*/
+ @SuppressWarnings("serial") // Same-version serialization only
public static class PasteAction extends TextAction {
/** Create this object with the appropriate identifier. */
public PasteAction() {
super(pasteAction);
*** 1378,1387 ****
--- 1385,1395 ----
* Please see {@link java.beans.XMLEncoder}.
*
* @see DefaultEditorKit#beepAction
* @see DefaultEditorKit#getActions
*/
+ @SuppressWarnings("serial") // Same-version serialization only
public static class BeepAction extends TextAction {
/** Create this object with the appropriate identifier. */
public BeepAction() {
super(beepAction);