java -jar checkstyle-10.8.1-all.jar -c dbeaver-checkstyle-config.xml ${your_java_code_file_list}
Starting audit...
Audit done.

Posted by zennken
  1. Create a new ticket (https://github.com/dbeaver/dbeaver/wiki/Contribute-your-code)
    1. Create a ticket on our issue tracker before creating a PR: https://github.com/dbeaver/dbeaver/issues
    2. Create a fork of the dbeaver/dbeaver repository, create a new branch, commit your changes, and then create a pull request in the upstream repository.
  2. Set up your own development environment
    1. https://dbeaver.com/docs/wiki/Develop-in-Eclipse/#running-and-debugging-in-eclipse
    2. Refer to DBeaver wiki for development: https://dbeaver.com/docs/wiki/
  3. Implement your own DB plugin
    1. org.jkiss.dbeaver.ext.yourDBPlugin, org.jkiss.dbeaver.ext.yourDBPlugin.ui
      1. Don't forget to put license header into source code file: https://github.com/ALTIBASE/dbeaver/blob/devel/docs/license_header.txt
    2. Build package with your own DB plugin: https://github.com/orgs/dbeaver/discussions/13200
      1. dbeaver/plugins/pom.xml (22.1 version)
        1. <modules>... <module>org.jkiss.dbeaver.ext.yourDBPlugin</module>...</modules>
        2. <profiles>... <module>org.jkiss.dbeaver.ext.yourDBPlugin.ui</module>... </profiles>
      2. dbeaver/features/org.jkiss.dbeaver.db.feature/features.xml
        1. <plugin id="org.jkiss.dbeaver.ext.yourDBPlugin"
                   download-size="0"
                   install-size="0"
                   version="0.0.0"
                   unpack="false"/>
      3. (23.1) dbeaver/features/org.jkiss.dbeaver.db.ui.feature/features.xml
        1. <plugin id="org.jkiss.dbeaver.ext.yourDBPlugin.ui"
                   download-size="0"
                   install-size="0"
                   version="0.0.0"
                   unpack="false"/>
      4. mvn clean package at dbeaver
        1. Package directory: dbeaver\product\community\target\products\
          org.jkiss.dbeaver.core.product\win32\win32\x86_64\dbeaver
        2. Confirm your own plugin comes with the package in the plugins directory. 
        3. Execute a new dbeaver.exe to ensure everything works fine.
  4. Creating your own PR

 

Posted by zennken

cat plugin_directory/plugin.properties

aboutText=blah blah\n\n\
Build Number: 

 

cat build.xml

...

<target name="before-pde-build">

<echo file="${buildDirectory}/plugins/plug_in_name/plugin.properties" message=${env.BUILD_NUMBER}" append="true"/>
</target>

Posted by zennken

if (mListViewer != null)

{

List sList = mListViewer.getList();

if (sList.getItemCount() > 0)

{

sList.select(0);

sList.notifyListeners(SWT.Selection, new Event());

}

}

Posted by zennken

http://lj4newbies.blogspot.kr/2008/03/using-classgetresource-load-resource.html



Posted by zennken
Input as follow at command line

rcp_applicatoin_name.exe -vmargs -Xmx1G

Set maximum Java heap size as 1GB  

Check allocated size:
System.out.println(java.lang.Runtime.getRuntime().maxMemory()); 
Posted by zennken

SWT Template

Eclipse/SWT 2010. 12. 8. 16:41
// Composite
Composite composite = new Composite(tabFolder, SWT.NONE); 
composite.setLayout(new GridLayout(1, false)); 
composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
...
composite.setTabList(new Control[] {...});
Posted by zennken

ProgressMonitor with UI

Eclipse 2010. 8. 11. 18:03

IRunnableWithProgress runnable = new IRunnableWithProgress()
{

 public void run(IProgressMonitor progressMonitor)
 {

  ...
  progressMonitor.beginTask("Generating DDL(s)", count);

  ...

  }

  progressMonitor.done();
 }
};

progressMonitor.run(false, true, runnable); <- fork should be false

* void org.eclipse.jface.dialogs.ProgressMonitorDialog.run(boolean fork, boolean cancelable, IRunnableWithProgress runnable) throws InvocationTargetException, InterruptedException

If fork is set to false, the runnable will run in the UI thread and it is the runnable's responsibility to call Display.readAndDispatch() to ensure UI responsiveness.

Posted by zennken
public static String getCellString4Clipboard(Grid aGrid)
{
StringBuffer result = new StringBuffer();
int prevRow, curRow; // For new-line inserting
int i, size;
Point[] selCells = aGrid.getCellSelection();
size = selCells.length;
// For the first selected cell
i = 0;
result.append(aGrid.getItem(selCells[i].y).getText(selCells[i].x));
prevRow = selCells[i].y;
// Remains
for(i = 1; i < size; i++)
{
curRow = selCells[i].y;
if (prevRow != curRow)
result.append(System.getProperty("line.separator"));
else 
result.append("\t");

result.append(aGrid.getItem(selCells[i].y).getText(selCells[i].x));

prevRow = curRow;
}
return result.toString();
}
Posted by zennken

Busy cursor in Eclipse

Eclipse 2010. 2. 5. 00:14
        Runnable runnable = new Runnable() {
            public void run() {
                // code to execute
            }
        };       
        org.eclipse.swt.custom.BusyIndicator.showWhile(null, runnable);

http://dev.eclipse.org/newslists/news.eclipse.tools/msg40810.html
Posted by zennken
123

zennken

달력