Oxygen XML Editor 14.2 Author API

ro.sync.ecss.extensions.api.component
Class BaseComponentEditorManager

java.lang.Object
  extended by ro.sync.exml.editor.EditorManagerAdapter
      extended by ro.sync.ecss.extensions.api.component.BaseComponentEditorManager
All Implemented Interfaces:
ro.sync.exml.ApplicationCloseListener, ro.sync.exml.editor.AlreadyOpenedURLValidator, ro.sync.exml.editor.BasicEditorListener, ro.sync.exml.editor.EditorFinder, ro.sync.exml.editor.EditorListener, ro.sync.exml.editor.EditorManager, ro.sync.exml.editor.EditorSavedListener, ro.sync.exml.editor.IEditorManager, ro.sync.exml.editor.NewLocalFileSaveListener, ro.sync.exml.editor.OpenedURLsProvider, ro.sync.exml.editor.role.EditorOpener, ro.sync.exml.editor.role.FileOpener, ro.sync.exml.editor.role.FileOpenerAndEditorCreator, ro.sync.exml.editor.role.FileOpenerAndLocator, ro.sync.exml.editor.role.FileOpenerExt, ro.sync.exml.editor.role.FileOpenerQuery, ro.sync.exml.editor.role.FileSaver, ro.sync.exml.editor.validate.ValidationEditorFinder, ro.sync.ui.marks.BookMarkable, ro.sync.ui.marks.BookMarkableManager, ro.sync.ui.marks.MarkCreatorAnyName
Direct Known Subclasses:
AuthorComponentEditorManager, DITAMapComponentEditorManager

@API(type=INTERNAL,
     src=PRIVATE)
public class BaseComponentEditorManager
extends ro.sync.exml.editor.EditorManagerAdapter

The base component editor manager


Constructor Summary
BaseComponentEditorManager(java.util.List allProviders)
          Constructor.
 
Method Summary
 void componentDisposed(InternalComponentProvider provider)
          Remove references to diposed components.
 ro.sync.exml.editor.validate.ValidationEditorInterface findValidationEditor(java.net.URL url)
           
 ro.sync.exml.editor.AbstractEditor[] getAllEditors()
          EXM-18738
 java.net.URL[] getAllOpenedURLs()
           
 ro.sync.exml.editor.AutomaticallyValidationManager getAutomaticallyValidationManager()
           
 ro.sync.exml.editor.PersistentEditor getEditorForURL(java.net.URL url)
           
 ro.sync.exml.editor.AbstractEditor getSelectedEditor()
          EXM-18738
 java.lang.Object open(java.net.URL url)
           
 java.lang.Object open(java.net.URL toLoad0, boolean isNew, java.lang.String contentType)
           
 java.lang.Object open(java.net.URL toLoad0, java.lang.String contentType, boolean requestFocus, boolean ignore)
           
 java.lang.Object open(java.net.URL url, java.lang.String imposedInitialPage, java.lang.String imposedContentType)
           
 java.lang.Object openAndHighlightLocation(java.net.URL fileURL, ro.sync.document.DocumentPositionedInfo dpInfo, java.lang.String contentType, java.lang.String highlightClass, ro.sync.exml.editor.EditorHighlightPaintInfo highlightPainterInfo, boolean moveCaretToStart)
           
 java.lang.Object openAndShowLocation(java.net.URL fileURL, ro.sync.document.DocumentPositionedInfo dpInfo, boolean requestFocus, java.lang.String contentType)
           
 java.lang.Object openOperationResult(java.net.URL url)
           
 void setLastFocusedComponent(InternalComponentProvider componentProvider)
          Set the last focused component
 void setOpenURLHandler(OpenURLHandler openURLHandler)
          Set a handler which will be notified when an URL should be opened.
 
Methods inherited from class ro.sync.exml.editor.EditorManagerAdapter
addEditorManagerListener, applicationWillBeClosedOrHidden, checkFileChooserTargetDir, checkForChangeInCurrentEditor, checkURLIsOpenedInOtherEditorManager, closeAll, closeAllFromSelectedStack, closeEditor, closeEditor, closeOtherEditors, createAnyNameMark, createBookMark, createBookMark, disableOpen, editorAboutToBeSaved, editorClosed, editorLoaded, editorPageChanged, editorSaved, editorSaveFailed, findEditor, findEditor, fireEditorAboutToBeRemoved, fireEditorRelocated, getAllBookMarks, getComponent, getCurrentConditionAttributesManager, getCurrentEditor, getEditor, getEditorForURL, getHistoryMarker, getLoadedURLs, getOpenedFileInfos, getPerspectiveID, getProjectManager, getSearchControl, getSelectedURL, getSpellControl, getToggleMaximizable, getTopEditors, getWorkspaceAccess, getZOrderEditorList, gotoBookMark, hasBookMark, hasUnsavedModifications, isAlreadyOpened, isDisableOpen, isModified, isOpened, loadedFileChanged, loadLayout, modifiedStateChanged, nameChanged, newEditor, newEditor, newEditor, newEditorWithContentType, newLocalFileSaved, open, removeAllBookMarks, removeAllHighlights, removeBookMark, removeEditor, removeEditorManagerListener, removeHighlight, reopenLastClosedEditor, repaint, resetLayout, saveAll, saveAll, saveAllExceptNew, saveAllExceptNew, saveLayout, setAdditionalViewsUpdater, setArchiveBrowser, setDITAMapOpener, setFileHistory, setHistoryMarker, setOpenFilesInProgress, setParentFrame, setPerspectiveID, setPerspectiveManager, setProjectManager, setSearchControl, setSelectedEditor, setSpellControl, setToggleMaximizable, setWorkspaceAccess, updateIconAndTooltip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseComponentEditorManager

public BaseComponentEditorManager(java.util.List allProviders)
Constructor.

Parameters:
allProviders - All component providers.
Method Detail

getEditorForURL

public ro.sync.exml.editor.PersistentEditor getEditorForURL(java.net.URL url)
Specified by:
getEditorForURL in interface ro.sync.exml.editor.EditorFinder
Overrides:
getEditorForURL in class ro.sync.exml.editor.EditorManagerAdapter
See Also:
EditorManagerAdapter.getEditorForURL(java.net.URL)

findValidationEditor

public ro.sync.exml.editor.validate.ValidationEditorInterface findValidationEditor(java.net.URL url)
Specified by:
findValidationEditor in interface ro.sync.exml.editor.validate.ValidationEditorFinder
Overrides:
findValidationEditor in class ro.sync.exml.editor.EditorManagerAdapter
See Also:
EditorManagerAdapter.findValidationEditor(java.net.URL)

getAutomaticallyValidationManager

public ro.sync.exml.editor.AutomaticallyValidationManager getAutomaticallyValidationManager()
Specified by:
getAutomaticallyValidationManager in interface ro.sync.exml.editor.EditorManager
Overrides:
getAutomaticallyValidationManager in class ro.sync.exml.editor.EditorManagerAdapter
Returns:
Returns the validationManager.

getSelectedEditor

public ro.sync.exml.editor.AbstractEditor getSelectedEditor()
EXM-18738

Specified by:
getSelectedEditor in interface ro.sync.exml.editor.EditorManager
Overrides:
getSelectedEditor in class ro.sync.exml.editor.EditorManagerAdapter
See Also:
EditorManagerAdapter.getSelectedEditor()

getAllEditors

public ro.sync.exml.editor.AbstractEditor[] getAllEditors()
EXM-18738

Specified by:
getAllEditors in interface ro.sync.exml.editor.EditorManager
Specified by:
getAllEditors in interface ro.sync.exml.editor.IEditorManager
Overrides:
getAllEditors in class ro.sync.exml.editor.EditorManagerAdapter
See Also:
EditorManagerAdapter.getAllEditors()

getAllOpenedURLs

public java.net.URL[] getAllOpenedURLs()
Specified by:
getAllOpenedURLs in interface ro.sync.exml.editor.IEditorManager
Specified by:
getAllOpenedURLs in interface ro.sync.exml.editor.OpenedURLsProvider
Overrides:
getAllOpenedURLs in class ro.sync.exml.editor.EditorManagerAdapter
See Also:
EditorManagerAdapter.getAllOpenedURLs()

open

public java.lang.Object open(java.net.URL toLoad0,
                             boolean isNew,
                             java.lang.String contentType)
                      throws java.io.IOException
Specified by:
open in interface ro.sync.exml.editor.role.FileOpenerExt
Overrides:
open in class ro.sync.exml.editor.EditorManagerAdapter
Throws:
java.io.IOException
See Also:
EditorManagerAdapter.open(java.net.URL, boolean, java.lang.String)

open

public java.lang.Object open(java.net.URL toLoad0,
                             java.lang.String contentType,
                             boolean requestFocus,
                             boolean ignore)
                      throws java.io.IOException
Specified by:
open in interface ro.sync.exml.editor.EditorManager
Overrides:
open in class ro.sync.exml.editor.EditorManagerAdapter
Throws:
java.io.IOException
See Also:
EditorManagerAdapter.open(java.net.URL, java.lang.String, boolean, boolean)

open

public java.lang.Object open(java.net.URL url)
                      throws java.io.IOException
Specified by:
open in interface ro.sync.exml.editor.EditorManager
Specified by:
open in interface ro.sync.exml.editor.role.FileOpener
Overrides:
open in class ro.sync.exml.editor.EditorManagerAdapter
Throws:
java.io.IOException
See Also:
EditorManagerAdapter.open(java.net.URL)

open

public java.lang.Object open(java.net.URL url,
                             java.lang.String imposedInitialPage,
                             java.lang.String imposedContentType)
                      throws java.io.IOException
Specified by:
open in interface ro.sync.exml.editor.EditorManager
Specified by:
open in interface ro.sync.exml.editor.role.EditorOpener
Overrides:
open in class ro.sync.exml.editor.EditorManagerAdapter
Throws:
java.io.IOException
See Also:
EditorManagerAdapter.open(java.net.URL, java.lang.String, java.lang.String)

openAndHighlightLocation

public java.lang.Object openAndHighlightLocation(java.net.URL fileURL,
                                                 ro.sync.document.DocumentPositionedInfo dpInfo,
                                                 java.lang.String contentType,
                                                 java.lang.String highlightClass,
                                                 ro.sync.exml.editor.EditorHighlightPaintInfo highlightPainterInfo,
                                                 boolean moveCaretToStart)
                                          throws java.io.IOException
Specified by:
openAndHighlightLocation in interface ro.sync.exml.editor.EditorManager
Overrides:
openAndHighlightLocation in class ro.sync.exml.editor.EditorManagerAdapter
Throws:
java.io.IOException
See Also:
EditorManagerAdapter.openAndHighlightLocation(java.net.URL, ro.sync.document.DocumentPositionedInfo, java.lang.String, java.lang.String, ro.sync.exml.editor.EditorHighlightPaintInfo, boolean)

openAndShowLocation

public java.lang.Object openAndShowLocation(java.net.URL fileURL,
                                            ro.sync.document.DocumentPositionedInfo dpInfo,
                                            boolean requestFocus,
                                            java.lang.String contentType)
                                     throws java.io.IOException
Specified by:
openAndShowLocation in interface ro.sync.exml.editor.role.FileOpenerAndLocator
Overrides:
openAndShowLocation in class ro.sync.exml.editor.EditorManagerAdapter
Throws:
java.io.IOException
See Also:
EditorManagerAdapter.openAndShowLocation(java.net.URL, ro.sync.document.DocumentPositionedInfo, boolean, java.lang.String)

openOperationResult

public java.lang.Object openOperationResult(java.net.URL url)
                                     throws java.io.IOException
Specified by:
openOperationResult in interface ro.sync.exml.editor.role.FileOpener
Overrides:
openOperationResult in class ro.sync.exml.editor.EditorManagerAdapter
Throws:
java.io.IOException
See Also:
EditorManagerAdapter.openOperationResult(java.net.URL)

setOpenURLHandler

public void setOpenURLHandler(OpenURLHandler openURLHandler)
Set a handler which will be notified when an URL should be opened. For example the user clicked a link in the Author page or double clicked in the DITA Maps manager.

Parameters:
openURLHandler - The open URLs handler.

setLastFocusedComponent

public void setLastFocusedComponent(InternalComponentProvider componentProvider)
Set the last focused component

Parameters:
componentProvider - The last focused component.

componentDisposed

public void componentDisposed(InternalComponentProvider provider)
Remove references to diposed components.

Parameters:
provider - The provider was disposed.

Oxygen XML Editor 14.2 Author API

© Copyright SyncRO Soft SRL 2002 - 2013. All rights reserved.