java -jar checkstyle-10.8.1-all.jar -c dbeaver-checkstyle-config.xml ${your_java_code_file_list}
Starting audit...
Audit done.
'Eclipse'에 해당되는 글 24건
- 2023.05.31 DBeaver checkstyle
- 2023.05.23 DBeaver a new Database Connector Development Process
- 2019.06.24 Add Jenkins build number at About dialog
- 2018.12.26 Programmatically Fire a RCP Selection Event
- 2013.01.11 using Class.getResource() load resource files in Eclipse
- 2012.02.22 Increase Eclipse RCP application's heap size
- 2010.12.08 SWT Template
- 2010.08.11 ProgressMonitor with UI
- 2010.06.16 Simple Nebula Grid Selected Cell String Copy
- 2010.02.05 Busy cursor in Eclipse
- Create a new ticket (https://github.com/dbeaver/dbeaver/wiki/Contribute-your-code)
- Create a ticket on our issue tracker before creating a PR: https://github.com/dbeaver/dbeaver/issues
- 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.
- Set up your own development environment
- https://dbeaver.com/docs/wiki/Develop-in-Eclipse/#running-and-debugging-in-eclipse
- Refer to DBeaver wiki for development: https://dbeaver.com/docs/wiki/
- Implement your own DB plugin
- org.jkiss.dbeaver.ext.yourDBPlugin, org.jkiss.dbeaver.ext.yourDBPlugin.ui
- Don't forget to put license header into source code file: https://github.com/ALTIBASE/dbeaver/blob/devel/docs/license_header.txt
- Build package with your own DB plugin: https://github.com/orgs/dbeaver/discussions/13200
- dbeaver/plugins/pom.xml (22.1 version)
- <modules>... <module>org.jkiss.dbeaver.ext.yourDBPlugin</module>...</modules>
- <profiles>... <module>org.jkiss.dbeaver.ext.yourDBPlugin.ui</module>... </profiles>
- dbeaver/features/org.jkiss.dbeaver.db.feature/features.xml
- <plugin id="org.jkiss.dbeaver.ext.yourDBPlugin"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
- <plugin id="org.jkiss.dbeaver.ext.yourDBPlugin"
- (23.1) dbeaver/features/org.jkiss.dbeaver.db.ui.feature/features.xml
- <plugin id="org.jkiss.dbeaver.ext.yourDBPlugin.ui"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
- <plugin id="org.jkiss.dbeaver.ext.yourDBPlugin.ui"
- mvn clean package at dbeaver
- Package directory: dbeaver\product\community\target\products\
org.jkiss.dbeaver.core.product\win32\win32\x86_64\dbeaver - Confirm your own plugin comes with the package in the plugins directory.
- Execute a new dbeaver.exe to ensure everything works fine.
- Package directory: dbeaver\product\community\target\products\
- dbeaver/plugins/pom.xml (22.1 version)
- org.jkiss.dbeaver.ext.yourDBPlugin, org.jkiss.dbeaver.ext.yourDBPlugin.ui
- Creating your own PR
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>
if (mListViewer != null)
{
List sList = mListViewer.getList();
if (sList.getItemCount() > 0)
{
sList.select(0);
sList.notifyListeners(SWT.Selection, new Event());
}
}
http://lj4newbies.blogspot.kr/2008/03/using-classgetresource-load-resource.html
rcp_applicatoin_name.exe -vmargs -Xmx1G
Set maximum Java heap size as 1GB
Check allocated size:
System.out.println(java.lang.Runtime.getRuntime().maxMemory());
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.
public void run() {
// code to execute
}
};
org.eclipse.swt.custom.BusyIndicator.showWhile(null, runnable);
http://dev.eclipse.org/newslists/news.eclipse.tools/msg40810.html