コード例 #1
0
 @Override
 public JComponent getPreferredFocusedComponent() {
   final TextEditor textEditor = myPanel.getFileEditor();
   if (textEditor != null) {
     return textEditor.getPreferredFocusedComponent();
   }
   return myPanel.getMainPanel();
 }
コード例 #2
0
 @Override
 public void setState(@NotNull final FileEditorState state) {
   final TextEditor textEditor = myPanel.getFileEditor();
   if (textEditor != null) {
     textEditor.setState(state);
   }
 }
コード例 #3
0
 @Override
 public void dispose() {
   if (myMockTextEditor != null) {
     EditorFactory.getInstance().releaseEditor(myMockTextEditor);
   }
   myPanel.dispose();
 }
コード例 #4
0
 @Override
 public void navigateTo(@NotNull Navigatable navigatable) {
   final TextEditor textEditor = myPanel.getFileEditor();
   if (textEditor != null) {
     textEditor.navigateTo(navigatable);
   }
 }
コード例 #5
0
 @Override
 public StructureViewBuilder getStructureViewBuilder() {
   final TextEditor textEditor = myPanel.getFileEditor();
   if (textEditor != null) {
     return textEditor.getStructureViewBuilder();
   }
   return null;
 }
コード例 #6
0
 @Override
 public FileEditorLocation getCurrentLocation() {
   final TextEditor textEditor = myPanel.getFileEditor();
   if (textEditor != null) {
     return textEditor.getCurrentLocation();
   }
   return null;
 }
コード例 #7
0
 @Override
 public <T> T getUserData(@NotNull Key<T> key) {
   final TextEditor textEditor = myPanel.getFileEditor();
   if (textEditor != null) {
     return textEditor.getUserData(key);
   }
   return myUserDataHolder.getUserData(key);
 }
コード例 #8
0
 @Override
 public boolean canNavigateTo(@NotNull Navigatable navigatable) {
   final TextEditor textEditor = myPanel.getFileEditor();
   if (textEditor != null) {
     return textEditor.canNavigateTo(navigatable);
   }
   return false;
 }
コード例 #9
0
 @Override
 public BackgroundEditorHighlighter getBackgroundHighlighter() {
   final TextEditor textEditor = myPanel.getFileEditor();
   if (textEditor != null) {
     return textEditor.getBackgroundHighlighter();
   }
   return null;
 }
コード例 #10
0
 @Override
 @NotNull
 public FileEditorState getState(@NotNull final FileEditorStateLevel level) {
   final TextEditor textEditor = myPanel.getFileEditor();
   if (textEditor != null) {
     return textEditor.getState(level);
   }
   return new TextEditorState();
 }
コード例 #11
0
 @Override
 public <T> void putUserData(@NotNull Key<T> key, @Nullable T value) {
   final TextEditor textEditor = myPanel.getFileEditor();
   if (textEditor != null) {
     textEditor.putUserData(key, value);
   } else {
     myUserDataHolder.putUserData(key, value);
   }
 }
コード例 #12
0
 @Override
 @NotNull
 public Editor getEditor() {
   final TextEditor fileEditor = myPanel.getFileEditor();
   if (fileEditor != null) {
     return fileEditor.getEditor();
   }
   if (myMockTextEditor == null) {
     myMockTextEditor = EditorFactory.getInstance().createViewer(new DocumentImpl(""), myProject);
   }
   return myMockTextEditor;
 }
コード例 #13
0
 @Override
 @NotNull
 public JComponent getComponent() {
   return myPanel.getMainPanel();
 }
コード例 #14
0
 @Override
 public void removePropertyChangeListener(@NotNull final PropertyChangeListener listener) {
   myPanel.removePropertyChangeListener(listener);
 }
コード例 #15
0
 @Override
 public void deselectNotify() {
   myPanel.deselectNotify();
 }