@@ -0,0 +1,1656 @@
+/*%0A * Copyright 2000-2012 JetBrains s.r.o.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A * http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage com.intellij.openapi.fileEditor;%0A%0Aimport java.util.Map;%0A%0A/**%0A * This interface extends FileEditorState interface to sync some editor's options%0A * Example:%0A *   we have image editor and open image files, image by image. We'd like to set default zoom%0A *   factor to 1:1, but this is not the default value for this option. So, we can use methods in this%0A *   interface to store these options somewhere and apply them within the session (the time we need these options).%0A *%0A * @author Konstantin Bulenkov%0A */%0Apublic interface TransferableFileEditorState extends FileEditorState %7B%0A  /**%0A   * Returns unique editor ID%0A   *%0A   * @return unique editor ID%0A   */%0A  String getEditorId();%0A%0A  /**%0A   * Options name-value string mapping. Example: %7B%7B%22zoomFactor%22: %221:1%22%7D, %7B%22transparentBackground%22: %22false%22%7D%7D%0A   *%0A   * @return name-value string mapping%0A   */%0A  Map%3CString, String%3E getTransferableOptions();%0A%0A  /**%0A   * Applies options to the editor%0A   * @param options name-value string mapping%0A   */%0A  void setTransferableOptions(Map%3CString, String%3E options);%0A%7D%0A

allow to share editors options within a session