Saturday, 24 August 2019

Lombok - mandatory field in builder using builderMethodName

@Builder(builderMethodName = "mandatoryBuilder")
@ToString
public class MyClass {

    private String name;
    private String identifier;

    public String getName() {
        return name;
    }

    public String getIdentifier() {
        return identifier;
    }

    public static MyClassBuilder builder(String identifier) {
        return mandatoryBuilder().identifier(identifier);
    }

}

Wednesday, 26 June 2019

Tooltip does not show up for disabled button - ExtJS

If you are going to define tooltip for component in ExtJS (especially within version 6.7 and higher as I had chance to work with it) which might be disabled, unfortunately you will not be able to see. This component needs to be enabled that you might see your tooltip. Hopefully there is a way to fix it.

Just enrich your component (button in this case) with pointerEvents: 'all'

var button = {
    xtype: 'button',
    tooltip: 'Your tooltip',
    text: 'Your Text',
    style: {
        pointerEvents: 'all'
    }
};

Monday, 1 April 2019

IntelliJ - Command line is too long



Inside your .idea folder, change workspace.xml file add below property

<property name="dynamic.classpath" value="true" />

to

<component name="PropertiesComponent">

Friday, 4 January 2019

Conda - use python package from pypi

Have you ever tried to install package available in pypi, but not in official anaconda repository? There is a way to install it using Anaconda terminal.

  1. conda skeleton pypi PACKAGE
  2. conda build PACKAGE