public NewCUCompletionUsingWizardProposal(String name, ICompilationUnit cu, Name node, boolean isClass, int severity) { super(name, null, severity, null);  fCompilationUnit= cu; fNode= node; fIsClass= isClass;  if (isClass) { setImage(JavaPluginImages.get(JavaPluginImages.IMG_OBJS_CLASS)); } else { setImage(JavaPluginImages.get(JavaPluginImages.IMG_OBJS_INTERFACE)); } fShowDialog= true; }
public NewCUCompletionUsingWizardProposal(ICompilationUnit cu, Name node, boolean isClass, IJavaElement typeContainer, int severity) { super(null, null, severity, null);  fCompilationUnit= cu; fNode= node; fIsClass= isClass; fTypeContainer= typeContainer;  String containerName= ASTResolving.getQualifier(node); String typeName= ASTResolving.getSimpleName(node); boolean isInnerType= typeContainer instanceof IType; if (isClass) { setImage(JavaPluginImages.get(JavaPluginImages.IMG_OBJS_CLASS)); if (isInnerType) { if (containerName.length() == 0) { setDisplayName(CorrectionMessages.getFormattedString("NewCUCompletionUsingWizardProposal.createinnerclass.description", typeName)); } else { setDisplayName(CorrectionMessages.getFormattedString("NewCUCompletionUsingWizardProposal.createinnerclass.intype.description", new String[] { typeName, containerName })); } } else { if (containerName.length() == 0) { setDisplayName(CorrectionMessages.getFormattedString("NewCUCompletionUsingWizardProposal.createclass.description", typeName)); } else { setDisplayName(CorrectionMessages.getFormattedString("NewCUCompletionUsingWizardProposal.createclass.inpackage.description", new String[] { typeName, containerName })); } } } else { setImage(JavaPluginImages.get(JavaPluginImages.IMG_OBJS_INTERFACE)); if (isInnerType) { if (containerName.length() == 0) { setDisplayName(CorrectionMessages.getFormattedString("NewCUCompletionUsingWizardProposal.createinnerinterface.description", typeName)); } else { setDisplayName(CorrectionMessages.getFormattedString("NewCUCompletionUsingWizardProposal.createinnerinterface.intype.description", new String[] { typeName, containerName })); } } else { if (containerName.length() == 0) { setDisplayName(CorrectionMessages.getFormattedString("NewCUCompletionUsingWizardProposal.createinterface.description", typeName)); } else { setDisplayName(CorrectionMessages.getFormattedString("NewCUCompletionUsingWizardProposal.createinterface.inpackage.description", new String[] { typeName, containerName })); } } } fShowDialog= true; }
    public NewCUCompletionUsingWizardProposal(String name, ICompilationUnit cu, Name node, boolean isClass, int severity) {        super(name, null, severity, null);                fCompilationUnit= cu;        fNode= node;        fIsClass= isClass;    	        if (isClass) {            setImage(JavaPluginImages.get(JavaPluginImages.IMG_OBJS_CLASS));        } else {            setImage(JavaPluginImages.get(JavaPluginImages.IMG_OBJS_INTERFACE));        }        fShowDialog= true;    }