IBM Developer is your one-stop location for getting hands-on training and learning in-demand skills on relevant technologies such as generative AI, data science, AI, and open source.
仕事で eclipseのプラグインを作ることになったので、そのために調べたことのまとめです。 今回は、メニュー及びポップアップメニューの出し方になります。 Help - Eclipse Platform メニューは、eclipse3.3から IHandler*1を実装したクラスを使うことになったようで、調べていると Actionクラスを使っているものが多くてややこしいことになってました。そのため、自分のために Heliosでのやり方をまとめておきたいと思います。 まずは、今回の関連する拡張ポイント。 org.eclipse.ui.commands 以下で使用する commandIdを定義するためのもの org.eclipse.ui.handlers 上記の IHandlerを実装したクラスと commandIdを結びつける定義 org.eclipse.ui.bindings command
Eclipseプラグインで、同じViewPartを(エディタのように)何枚も開けるようにする方法。 1. plugin.xmlで、対象のview定義に「allowMultiple="true"」属性を定義する。 2. ViewPartを開く際に、IWorkbenchPage#showView(String viewId, String secondaryId, int mode) を使って開く。 viewIdはそのまま、plugin.xmlに記述しているviewIdのこと。 secondaryIdは、同じviewId内のID。連番でもユニークな名称でも何でも良い。 modeは、通常はIWorkbenchPage.VIEW_ACTIVATEを使っていれば問題なし。
Home Eclipse Wiki Eclipse Articles, Tutorials, Demos, Books, and More Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan. Eclipse Plug-in Development: Beginner's Guide - Second Edition This book shows you how to take full advantage of the Eclipse IDE by buil
Home Eclipse Wiki FAQ Pages, parts, sites, windows: What is all this stuff? Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan. Denizens of the Eclipse newsgroups, clearly expressing frustration with the overwhelming sea of terms, have been known to ask, "Wh
EclipsePluginで、Javaソースを作成する機会があり、org.eclipse.jdt.core.dom.AST というのを使ってみました。 AST...始めは何も意識していなかったのですが、抽象構文木(abstract syntax tree)のことですねー。 ASTを使ってJavaコードを生成する事自体は、そこそこ簡単です。 ASTParser parser = ASTParser.newParser(AST.JLS3); parser.setSource(EMPTY.toCharArray()); CompilationUnit compilationUnit = (CompilationUnit) parser.createAST(null); compilationUnit.recordModifications(); を行い、compilationUnitにクラス名や
(copy&paste from http://www.nabble.com/Re%3A-Fwd%3A-tycho---the-future-p19076725.html) Ultimately, we want Tycho to be one-stop solution for doing Eclipse and OSGi development with Maven 2 (actually, 3, more on this later). We believe there are two distinct development workflows that we want to support: developer explicitly creates and maintains OSGi manifest and other Eclipse/OSGi metadata (we ca
Eclipseの3.3からActionではなく、Commandを使うのを推奨しているらしい。 Commandをつかわなきゃなぁーって思いつつ、ついActionを使ってしまってあまり試せていなかったので、今日ちょっと使ってみました。 なかなか便利ですねー。こいつ。 Commandの場合は目的によって綺麗にモノが分かれている感じです。 plugin.xml には、 commandの定義Commandをどこに表示するのか?の定義どんな処理を行なうのか?のHandler定義...など に分かれています。分かれているからこそ、すっきりとした定義も出来、今まで出来なかったけど出来るようになった事!があるんですね。 例えば.... * commandを複数作成するがHandlerのクラスを1つで使い回すパターン。 この場合、commandにcommandParameterを設定してHandlerから取得
AIR GEARではGEFのGraphicalEditorを使っています。 GraphicalEditorに限らずですが、FileEditorを自作している時は、Editorで表示しているファイルが削除された時、名前を変更された時のイベントを拾って整合性を合わせてあげる必要があります。 ファイルを削除された時。→ EditorをCloseする必要がある。 ファイルの名前が変わった時。→ Editorの名前をファイル名にしているのであれば、変更する必要がある。 これらのイベントの取得は、IResourceChangeListenerを使ってリソースの変更のタイミングを取得するのですが、このリスナーを追加する場所は Workspaceです。 ResourcesPlugin.getWorkspace().addResourceChangeListener(new MyResourceChange
Nick Edgar, Kevin Haaland, Jin Li and Kimberley Peter Last Updated: February 2004 Notice Your feedback can influence the ideas and guidelines described here. If you have suggestions, please provide us with your feedback here. The contents of this article has been moved to the Eclipse Wiki. Please look there for the most up-to-date information. Introduction In this document the Eclipse user interf
フォースを感じろとか言っておいて、 舌の根も乾かないうちになんとやら…だけど、 今日のjava-jaは、tableタグでレイアウトだとか、 ルックを弄れるとか、そういう話題でしきりだったので、 気になって、Google先生に聞いてみたらあったよ。 スゲェよGoogle先生。 今年に作り始めたばっかりみたいだけど、ちゃんと動いているよ。マジで。 SWTXML とりあえず、現状理解している良い点。 実行速度が速い ライブラリサイズが小さい IDEのプレビューも爆速 入力補完もガリガリ効く XMLをロードする為に、専用の継承親がいるけど、そいつを使わないのも簡単 メンバ変数にあるコンポーネントを定義から引っ張れる、そのコードも簡単 ソースコードがgithubにあるんで、ついにウチのマシンにもGitクライアントインストールしちゃったよ。 これから、cloneしてコード読む。
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く