eclipse

アウトラインの実装時のクラス図完全に自分用のメモ クラス図に描い-てあるメソッドを実装するとある程度動く 緑が自作クラス

デシリアライズくらい簡単に出来るかと思ったらはまった

昨日の最小コードがあれば、後は簡単と思ってたらそうでもなかった。 はまったポイント 昨日のコードで下のように書いたけど @Override protected IDocument createDocument(Object element) throws CoreException { // このメソッドで返したIDocumentの値が…

テキストを加工してエディタに表示する

訳あって、シリアライズされたファイルを扱うことがあったから、何とかデシリアライズして見れないものかと思って、調べてみた。以下、最小構成 依存関係 org.eclipse.ui org.eclipse.core.runtime org.eclipse.core.resources org.eclipse.ui.editors org.e…

TextEditorを読み込み専用で開きたい

org.eclipse.ui.editors.text.TextEditorを継承したクラスで下のようにすればいいのか?http://dev.eclipse.org/newslists/news.eclipse.tools/msg50392.html protected void doSetInput(IEditorInput input) throws CoreException { super.doSetInput(input…

エディタ作成までの最短道のり(コンテンツアシスト編)

SourceViewerConfigurationの拡張クラスを対象 #getContentAssistant(ISourceViewer)をオーバーライド ContentAssistantのインスタンスを作成 #setContentAssistProcessor(IContentAssistProcessor, String)にプロセッサを設定 IContentAssistProcessorを実…

エディタ作成までの最短道のり(パーティション編)

TextEditorを継承しクラスを作成 コンストラクタでsetSourceViewerConfigurationにSourceViewerConfigurationを継承したクラスを設定 SourceViewerConfigurationを継承しクラスを作成 以下をオーバーライド getConfiguredContentTypes(ISourceViewer) damage…

org.eclpse.ui.editors

メモ エディターは、オブジェクト (しばしばファイル) の編集が可能なワークベンチの一部分です。 IEditorInputと連動 拡張ポイント org.eclipse.ui.editors contentTypeBinding 実装クラス EditorPart IEditorActionBarContributor アウトライン(eclilpse.u…