drools-eclipse/org.drools.eclipse/src/main/java/org/drools/eclipse/flow/common/editor/action/ExportImageDialog.java
private void initializeControls() {
        if (originalFile != null) {
            resourceGroup.setContainerFullPath(originalFile.getParent()
                    .getFullPath());
            String fileName = originalFile.getName();
            int index = fileName.lastIndexOf(".");
            if (index != -1) {
                fileName = fileName.substring(0, index);
            }
            fileName += "-image.png";
            resourceGroup.setResource(fileName);
        } else if (originalName != null) {
            resourceGroup.setResource(originalName);
        }
        setDialogComplete(validatePage());
    }
private void initializeControls() {
        if (originalFile != null) {
            resourceGroup.setContainerFullPath(originalFile.getParent()
                    .getFullPath());
            String fileName = originalFile.getName();
            int index = fileName.lastIndexOf(".");
            if (index != -1) {
                fileName = fileName.substring(0, index);
            }
            fileName += "-image.png";
            resourceGroup.setResource(fileName);
        } else if (originalName != null) {
            resourceGroup.setResource(originalName);
        }
        setDialogComplete(validatePage());
    }
private void initializeControls ( ) { if ( originalFile != null ) { resourceGroup . setContainerFullPath ( originalFile . getParent ( ) . getFullPath ( ) ) ; String fileName = originalFile . getName ( ) ; int index = fileName . lastIndexOf ( "." ) ; if ( index != - 1 ) { fileName = fileName . substring ( 0 , index ) ; } fileName += "-image.png" ; resourceGroup . setResource ( fileName ) ; } else if ( originalName != null ) { resourceGroup . setResource ( originalName ) ; } setDialogComplete ( validatePage ( ) ) ; }
Initializes the controls of this dialog.
Initializes the controls of this dialog .