extensibility

How do I get the IVsTextView of a specific OutputWindowPane?

I have a visual studio integration package that tracks output from the debug window. I can get the IVsTextView of the output window, like so: IVsTextView view = GetService(typeof(SVsOutputWindow)) as IVsTextView; // grab text from the view and process it However, if a different panel other than the "Debug" panel is currently active, t...

Building an extension framework for a Rails app

I'm starting research on what I'd need in order to build a user-level plugin system (like Wordpress plugins) for a Rails app, so I'd appreciate some general pointers/advice. By user-level plugin I mean a package a user can extract into a folder and have it show up on an admin interface, allowing them to add some extra configuration and t...

A scripting engine for Ruby?

Hello, I am creating a Ruby On Rails website, and for one part it needs to be dynamic so that (sorta) trusted users can make parts of the website work differently. For this, I need a scripting language. In a sort of similar project in ASP.Net, I wrote my own scripting language/DSL. I can not use that source code(written at work) though, ...

Extending LINQ classes to my own partial classes in different namespaces?

I have a .dbml file which of course contains the auto-generated classes based on my tables. I would however, like to extend them to my own classes. Typically I design such that each of my tables get their own namespace in their own folder containing all of their associated dao and service classes. So if I am dealing with a page that onl...

Visual Studio Add-in - How do I create an Installer?

I have made a Visual Studio Add-in as part of a project I'm working on using web services. When I created the new Add-in project in visual studio it generated all the code required and installed the blank add-in on my pc (I assume). Since this is a large project we are using svn to manage the code base and once I had done some of the w...

Visual Studio Add-in - Close the add-in programmatically

I have a add-in that requires a login and I want the add-in to exit if the user closes the login dialog without logging in first. The problem is that I cant find any documentation on how to programmatically close the add-in. Any ideas? ...

android mobile development performance vs extensibility

im developing a game in android, and i've been thinking about subdividing many of the elements of the game (e.g. game objects) into separate classes and sub-classes. but i know that method calls to these objects will cause some overhead. would it be better to improve performance or to improve extensibility? ...

Definitive list of service providers in Visual Studio 2010?

VS2010 has made it easy to write extensions via MEF exports and imports. However, if you want to do anything useful you have to know what service provider(s) you need to implement your super awesoem extension. Unfortunately, this information is often spread out all over the place, not well documented or both. What I'd really love to s...

Visual Studio Package/Macro: how do you combine multiple text operations into a single Undo

Hiya, I have a Visual Studio (2010) package that combines multiple text operations, e.g. it inserts custom properties into my csharp files. These inserts can become quite numerous and I would like to be able to reverse the effect of the Command with a single click of the undo button. Is there a way of doing this? Steve ...

Plugin-like architecture in .NET

I'm trying to implement a plug-in like application. I know there are already several solution out there but this is just going to be proof of the concept, nothing more. The idea would be to make the application main application almost featureless by default and then let the plugins know about each other, having them have implement all th...

dll custom business logic

I've a project where some business logic is separated to an DLL project, this DLL contains the business logic for this software for a specific customer. Now I've a problem after another client with different rules want to implement the software, I need someway that the application load the appropriate dll according to the client using...

Is it possible to extend indexers in PowerShell?

PowerShell's type extension facility is neat, but I haven't yet figured out the way -- if one exists -- to extend an indexer. I've tried to add a ScriptProperty for the indexer property (Chars in the case of System.String) and a ScriptMethod for the getter (get_Chars), but neither approach seems fruitful. Is it at all possible, or am I w...

How extensible should code actually be?

I've just started a new job and one of the things my new boss talked to me about was code longevity. I've always coded to make my code infinently extensible and adaptable. I figured that if someone was going to change my code in the future then it should be easy to do. But I never really had a clear idea on how far into the future tha...

NHibernate: completely overriding base domain entity

I have a situation where I have a Common.Domain.Person and Specific.Domain.Person. First one should be provided as a part of a common package. Second one appears when common package has to be customized to fit the needs of specific project. In the object model, it can be easily implemented with inheritance. In the NH mapping, however...

I'm new to OOP/PHP. What's the practicality of visibility and extensibility in classes?

I'm obviously brand new to these concepts. I just don't understand why you would limit access to properties or methods. It seems that you would just write the code according to intended results. Why would you create a private method instead of simply not calling that method? Is it for iterative object creation (if I'm stating that correc...

How to Develop Dynamic Plug-In Based Functionality in C#

Hello: I've been looking around for different methods of providing plug-in support for my application. Ideally, I will be creating a core functionality and based on different customers developing different plug-ins/addons such as importing, exporting data etc... What are the some methods available for making a C# application extensible ...

Event handler for "Clear All Panes" in Visual Studio output window

There are a few buttons associated with the Output window in Visual Studio (VS2005/2008/2010). One of them is "Clear All Panes". How can I install an event handler that's called when that button is clicked? I'm building a Visual Studio extensibility package, working in C#. ...

Disable menu icons in Visual Studio 2008 AddIn

I have developed an addin for Visual Studio 2008, which extends the main menu with custom menu items. These menu items have custom images and I finally managed to have them displayed correctly using transparency masks. The only problem that still persists is, that the icons look really ugly and unprofessional, when the menu items are dis...

Visual Studio 2010 Extension Manager crashes

After installing a bunch of extensions to try out I restarted VS 2010 and it started crashing. Unfortunately, it consistently crashes when opening Tools | Extension Manager. Any ideas how to fix and avoid a complete uninstall/reinstall? Event log has this: Application: devenv.exe Framework Version: v4.0.30319 Description: The process w...

Python as an end user script in a python app

I have an app written in python. I want to give my users the ability to manipulate the apps objects by allowing them to run their own scripts. They are likely to make errors in their scripts. If there is an error I want to ensure that the app doesn't stop running. I'd like to embed a debugger in my app to help them debug their scripts. ...