Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<plugin>
<extension
point="org.eclipse.ui.newWizards">
<wizard
icon="icons/C_FlexProject_md_trans.png"
class="com.sap.polestar.eclipse.ui.wizards.PolestarFlexProjectWizard"
category="com.adobe.flexbuilder.editors.common.ui.project.wizards.newWizards"
public class CustomFlexProjectWizard extends FlexProjectWizard
{
//override to add custom stuff.
@Override
public boolean performFinish()
{
boolean retSuper = super.performFinish();
addSomeStuff();
return retSuper;
}
package com.sap.polestar.eclipse.ui.wizards;
import org.eclipse.jface.viewers.IStructuredSelection;
import com.adobe.flexbuilder.editors.common.ui.wizards.AbstractNewFlexFileWizardPage;
import com.adobe.flexbuilder.editors.mxml.ui.wizards.NewMXMLComponentWizard;
public class PolestarFileWizard extends NewMXMLComponentWizard
{
protected class PolestarFileWizardPage extends NewMXMLComponentWizard.NewMXMLComponentWizardPage
public virtual void showContext(IServiceProvider svcProvider, IntPtr pvaIn)
{
object vData = Marshal.GetObjectForNativeVariant(pvaIn);
UInt32 point = (UInt32)vData;
short x = (short)(point & 0x0000ffff);
short y = (short)((point & 0xffff0000) >> 16);
this.ContextMenuStrip.Show(x, y);
}
public int ExecCommand(uint itemid, ref Guid pguidCmdGroup, uint nCmdID,
uint nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
{
if (pguidCmdGroup == VsMenus.guidVsUIHierarchyWindowCmds)
{
ActiveNode = NodeFromId(itemid);
switch (nCmdID)
{
case (uint)VSConstants.VsUIHierarchyWindowCmdIds.UIHWCMDID_RightClick:
if (activeNode.MenuId != 0)
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
/* Let INFINITY be an integer value not likely to be
confused with a real weight, even a negative one. */
#define INFINITY ((1 << 14)-1)
typedef struct {
int source;
Change(d,k,n)
c[0] = 0
for p = 1 to n do
min = INFINITY
for i = 1 to k do
if(d[i] <= p) do
if( 1 + c[p - d[i]] < min) then
min = 1 + c[p - d[i]]
coin = i
c[p] = min
void quicksort(int l, int u)
{ int i, m;
if (l >= u) return;
swap(l, randint(l, u));
m = l;
for (i = l+1; i <= u; i++)
if (x[i] < x[l])
swap(++m, i);
swap(l, m);
quicksort(l, m-1);
#include<stdio.h>
#include<conio.h>
#include<ctype.h>
void main()
{
int i,j=-1,top=-1;
clrscr();
char in[30], po[30],stack[20];
printf("\n Enter the infix expression ");
gets(in);
#include<stdio.h>
#include<conio.h>
#include<ctype.h>
void main()
{ static int a[5];
int i,n,top=-1,op1,op2,noperator=0,noperand=0;
char ch[10];
clrscr();
printf("\n Enter the string\n");
gets(ch);