Tag Archives: tools

Creating a simple extension for jdeveloper


First you have to create a generic Application by selecting from File -> New -> General -> Generic Application

Name the application and create a new Extension project for the application by selecting File -> New -> Projects -> Extension Project

The Create Extension Project wizard will help you specify the project details

The new Extension project will have the structure like

The properties of the project is to be configured as shown in the figure

Open the extension.xml from META-INF folder. In the overview tab you will find General, Dependencies and Hooks panels

General – Will have all general information like name, version, owner etc

source:

Dependencies – Will have references to the extension dependencies. The classpath reference is also included

source:

Hooks – Will have the points at which the extension will be added to the Jdeveloper ide.

Each individual hook allows an extension to provide specific binding information to plug into different areas of an IDE. Here are the main areas where extensions plug-in:

  1. Menus and commands through the menu-hook,
  2. Document model through the document-hook,
  3. IDE events through the ide-listener-hook,
  4. Custom editors through the editor-hook,
  5. IDE preferences and project settings through the property-hook,
  6. Log pages through the log-hook
  7. New wizards through the wizard-hook, and
  8. The compiler through the build-system-hook.
  9. The feature-hook allows extensions to appear in an IDE’s extension management UI as features that can be enabled/disabled.
  10. The custom-hook and hook-handlers allows extensions to define their own extension points.

source:

Running the extension is to right-click the project and say Run Extension

The deployed extension will be seen from Tools menu and preferences

The sample project can be downloaded from here

For details on the tags in the extension.xml file, see the file JDEV_HOME/jdev/doc/extension/ide-extension-packaging.html

Each individual hook allows an extension to provide specific binding information to plug into different areas of an IDE. Here are the main areas where extensions plug-in:

  1. Menus and commands through the menu-hook,
  2. Document model through the document-hook,
  3. IDE events through the ide-listener-hook,
  4. Custom editors through the editor-hook,
  5. IDE preferences and project settings through the property-hook,
  6. Log pages through the log-hook
  7. New wizards through the wizard-hook, and
  8. The compiler through the build-system-hook.
  9. The feature-hook allows extensions to appear in an IDE’s extension management UI as features that can be enabled/disabled.
  10. The custom-hook and hook-handlers allows extensions to define their own extension points.
Advertisements

How to by pass some restricted access in Windows


Ever wonder how to get access to restricted application or options in windows.

Here in this post I am going to explain the utility provided by microsoft for administrators to enforce restrictions easily.

the utility is called  ‘gpedit.msc‘ means Group Policy Editor

what is Group Policy Editor?

The Group Policy Editor console is a graphical user interface(GUI) which allows admin to edit registry entries easily.Manually editing  registry entries is advisable and sometimes it will cause some unexpected problems.The gpedit.msc tool makes the administration of registry easier

There is another utility called ‘secpol.msc‘ which is similar to group policy which is used to edit subgroups

How to run Group Policy?

go to run  and type ‘gpedit.msc

Where all the information’s are stored?

All the information that is edited from group policy editor will affect registry editor directly.

The physical location of the modified files will resides in

%SystemRoot%\System32\GroupPolicy\

There are three folders to store information related to Admin, Machine and User related configurations

The Adm folder contains all the entries enforced on the system by the administrator and these entries directly maps to the windows registry

For example if you want to disable connection tab from internet Explorer you locate

Administrative Templates – Windows Component -> Internet Explorer -> Internet Control Panel

Click on ‘Disable the Connection page

Click ‘Enable’ and then press ok.

Now if you open Internet Explorer you will not see the connection tab in the Internet options page from Tools menu

The above mentioned is a simple example of how and why group policy is used. You can explore more options yourself to enforce/restrict user access

To more on the options Group Policy Settings download the respective excel spreadsheet for your windows operating system

http://www.microsoft.com/downloads/en/details.aspx?FamilyID=18c90c80-8b0a-4906-a4f5-ff24cc2030fb&displaylang=en