Search in sources :

Example 1 with ConfigurationFileAdapter

use of org.mybatis.generator.eclipse.ui.content.ConfigurationFileAdapter in project generator by mybatis.

the class RunGeneratorAction method selectionChanged.

public void selectionChanged(IAction action, ISelection selection) {
    StructuredSelection ss = (StructuredSelection) selection;
    ConfigurationFileAdapter adapter = (ConfigurationFileAdapter) ss.getFirstElement();
    if (adapter != null) {
        selectedFile = adapter.getBaseFile();
    }
}
Also used : StructuredSelection(org.eclipse.jface.viewers.StructuredSelection) ConfigurationFileAdapter(org.mybatis.generator.eclipse.ui.content.ConfigurationFileAdapter)

Aggregations

StructuredSelection (org.eclipse.jface.viewers.StructuredSelection)1 ConfigurationFileAdapter (org.mybatis.generator.eclipse.ui.content.ConfigurationFileAdapter)1