Problem: I am using the eclipse editor plugin to create the customized plug in. So in that plug in i will be using only some classes to get the customized view of the editor. But I will not be using all classes now for example there are classes Class A,Class B, and Class C in the editor plug in and Class A will be initiating Class C.Now in my customized plugin I will be extending the Class C and customize the Class as per my requirement and I don't want to modify the Class A.
Actual problem is if open the eclipse editor i want Class A to initiate the extended Class C present in my plug in and not present in the eclipse editor plug in.
I.e During compile time binding i want Class A of the eclipse plug in to bind with the extended Class C present in my plugin.
Thanks
You can't change the behavior of an existing editor by trying to extend its classes in a new plugin.
If the existing editor provides 'extension points' to add new functionality to can extend it using those.
You can write a new editor using the classes from an existing plugin provided the existing plugin exports the packages you need to use.
You can sometimes use the org.eclipse.ui.activities extension point to suppress existing menus items, but this will require research to identify menu ids.
You can also sometimes add to menus by using the org.eclipse.ui.menus extension point. Again this requires research to identify menu ids. The 'plug-in Spy' may help with this.
Related
I have an IntelliJ project with several modules. Is there a way to use find usages (for symbols - Alt+F7 in Linux) only inside a specific module?
For example I have two modules one is framework and one app and there's a class defined in framework module FrameworkClass.
If I see the symbol FrameworkClass in a class inside app module and click ALT+F7 I want to get all usages/references of FrameworkClass only inside 'app' module
Is there such a way?
Thanks
'Find Usages' options dialog can be invoked with Ctrl+Alt+Shift+F7 where you can define a custom search scope, e.g. a certain module.
As the title says, I wanna be able to import a custom class of mine from any new project. So for example, if I have a class called LAView, I wanna be able to type #import "LAView.h" from any new project without actually having to copy LAView.h and LAView.m into the project itself. Is that possible? :)
Create a framework, copy the finished product into /Applications/Xcode.app/Contents/Developer/Library/Frameworks and /Library/Frameworks/
This way your framework will be visible and available in any Xcode project and you can access it like any other framework from the Xcode frameworks list.
NOTE: When you edit your framework you will have to copy the new version into both these locations again. You can automate this using BASH scripts run from the Terminal (if you do this be careful!).
I'm developing plugin for IDEA. It need to select public abstract methods with no parameters, and allow user to choose subset of them. I found MemberChooser dialog, but cannot see similar thing for methods.
So if I have List<PsiMethod> how to show dialog for choosing subset of them?
You can use MemberChooser.selectElements with your list.
That is, if you create a PsiMethodMember from each PsiMethod.
I have a class implementing IEditorPart as a page in my MultiPageEditorPart.
Now I'd like to extend its functionality with ActionBarContributor and other Eclipse editor extensions.
For that purpose, I've defined an extension for org.eclipse.ui.editors, that points to my class.
This extension never get invoked as I create an instance of my class explicitly with new operator. Workbench allows creation of editors, but opens them in a new editor window.
How should an IEditorPart be created so that all extensions are applied to it and it can be used as MultiPageEditorPart.addPage() argument?
I have a class (that inherits from a base class) and also has image assets for some UI elements. I would like to be able to wrap this up images and all, into a single file that can easily be added to future projects by myself and other members of the dev team. Is there a way to do this? Adding a documentation file, a la Apple's own that responds to cmd click within XCode would be the icing on the cake.
Cheers
Dave
You create a static library... see the following Tutorial