Skip to content

Commit

Permalink
JAutodoc & code format
Browse files Browse the repository at this point in the history
  • Loading branch information
vjrj committed Nov 5, 2013
1 parent e5e2320 commit fbccc3e
Show file tree
Hide file tree
Showing 1,575 changed files with 62,610 additions and 2,385 deletions.
28 changes: 14 additions & 14 deletions core/.project
@@ -1,17 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>kune-core</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
</natures>
<name>kune-core</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
</natures>
</projectDescription>
58 changes: 40 additions & 18 deletions core/kune-cli/.classpath
@@ -1,22 +1,44 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src/test/java" output="target/test-classes" including="**/*.java"/>
<classpathentry kind="src" path="src/test/resources" output="target/test-classes" excluding="**/*.java"/>
<classpathentry kind="src" path="src/main/java" including="**/*.java"/>
<classpathentry kind="src" path="src/main/resources" excluding="**/*.java"/>
<classpathentry kind="src" path="src/test/java" output="target/test-classes"
including="**/*.java"/>
<classpathentry kind="src" path="src/test/resources"
output="target/test-classes" excluding="**/*.java"/>
<classpathentry kind="src" path="src/main/java"
including="**/*.java"/>
<classpathentry kind="src" path="src/main/resources"
excluding="**/*.java"/>
<classpathentry kind="output" path="target/classes"/>
<classpathentry kind="var" path="M2_REPO/javax/inject/javax.inject/1/javax.inject-1.jar" sourcepath="M2_REPO/javax/inject/javax.inject/1/javax.inject-1-sources.jar"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="var" path="M2_REPO/org/naturalcli/naturalcli/1.2.3/naturalcli-1.2.3.jar"/>
<classpathentry kind="var" path="M2_REPO/com/googlecode/gwtrpccommlayer/0.0.1/gwtrpccommlayer-0.0.1.jar"/>
<classpathentry kind="var" path="M2_REPO/cc/kune/kune-services/0.3.0-SNAPSHOT/kune-services-0.3.0-SNAPSHOT.jar"/>
<classpathentry kind="var" path="M2_REPO/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar"/>
<classpathentry kind="var" path="M2_REPO/junit/junit/4.9/junit-4.9.jar"/>
<classpathentry kind="var" path="M2_REPO/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar" sourcepath="M2_REPO/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1-sources.jar"/>
<classpathentry kind="var" path="M2_REPO/com/google/gwt/gwt-user/2.1.1/gwt-user-2.1.1.jar" sourcepath="M2_REPO/com/google/gwt/gwt-user/2.1.1/gwt-user-2.1.1-sources.jar"/>
<classpathentry kind="var" path="M2_REPO/org/apache/httpcomponents/httpclient/4.0.1/httpclient-4.0.1.jar"/>
<classpathentry kind="var" path="M2_REPO/org/apache/httpcomponents/httpcore/4.0.1/httpcore-4.0.1.jar"/>
<classpathentry kind="var" path="M2_REPO/commons-codec/commons-codec/1.3/commons-codec-1.3.jar"/>
<classpathentry kind="var" path="M2_REPO/com/google/inject/guice/3.0/guice-3.0-no_aop.jar"/>
<classpathentry kind="var" path="M2_REPO/aopalliance/aopalliance/1.0/aopalliance-1.0.jar" sourcepath="M2_REPO/aopalliance/aopalliance/1.0/aopalliance-1.0-sources.jar"/>
<classpathentry kind="var"
path="M2_REPO/javax/inject/javax.inject/1/javax.inject-1.jar"
sourcepath="M2_REPO/javax/inject/javax.inject/1/javax.inject-1-sources.jar"/>
<classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="var"
path="M2_REPO/org/naturalcli/naturalcli/1.2.3/naturalcli-1.2.3.jar"/>
<classpathentry kind="var"
path="M2_REPO/com/googlecode/gwtrpccommlayer/0.0.1/gwtrpccommlayer-0.0.1.jar"/>
<classpathentry kind="var"
path="M2_REPO/cc/kune/kune-services/0.3.0-SNAPSHOT/kune-services-0.3.0-SNAPSHOT.jar"/>
<classpathentry kind="var"
path="M2_REPO/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar"/>
<classpathentry kind="var"
path="M2_REPO/junit/junit/4.9/junit-4.9.jar"/>
<classpathentry kind="var"
path="M2_REPO/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar"
sourcepath="M2_REPO/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1-sources.jar"/>
<classpathentry kind="var"
path="M2_REPO/com/google/gwt/gwt-user/2.1.1/gwt-user-2.1.1.jar"
sourcepath="M2_REPO/com/google/gwt/gwt-user/2.1.1/gwt-user-2.1.1-sources.jar"/>
<classpathentry kind="var"
path="M2_REPO/org/apache/httpcomponents/httpclient/4.0.1/httpclient-4.0.1.jar"/>
<classpathentry kind="var"
path="M2_REPO/org/apache/httpcomponents/httpcore/4.0.1/httpcore-4.0.1.jar"/>
<classpathentry kind="var"
path="M2_REPO/commons-codec/commons-codec/1.3/commons-codec-1.3.jar"/>
<classpathentry kind="var"
path="M2_REPO/com/google/inject/guice/3.0/guice-3.0-no_aop.jar"/>
<classpathentry kind="var"
path="M2_REPO/aopalliance/aopalliance/1.0/aopalliance-1.0.jar"
sourcepath="M2_REPO/aopalliance/aopalliance/1.0/aopalliance-1.0-sources.jar"/>
</classpath>
4 changes: 3 additions & 1 deletion core/kune-cli/.project
@@ -1,7 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>kune-cli</name>
<comment>Kune command line interface. NO_M2ECLIPSE_SUPPORT: Project files created with the maven-eclipse-plugin are not supported in M2Eclipse.</comment>
<comment>Kune command line interface. NO_M2ECLIPSE_SUPPORT: Project
files created with the maven-eclipse-plugin are not supported in
M2Eclipse.</comment>
<projects/>
<buildSpec>
<buildCommand>
Expand Down
28 changes: 28 additions & 0 deletions core/kune-cli/src/main/java/cc/kune/kunecli/KuneCliMain.java
Expand Up @@ -53,14 +53,34 @@
import com.googlecode.gwtrpccommlayer.client.GwtRpcService;
import com.googlecode.gwtrpccommlayer.client.Module;

// TODO: Auto-generated Javadoc
/**
* The Class KuneCliMain.
*
* @author vjrj@ourproject.org (Vicente J. Ruiz Jurado)
*/
public class KuneCliMain {

/** The i18n service. */
private static I18nServiceAsync i18nService;

/** The Constant LOG. */
public static final Log LOG = LogFactory.getLog(KuneCliMain.class);

/** The Constant SERVICE_PREFFIX. */
private static final String SERVICE_PREFFIX = "http://127.0.0.1:8888/ws/";

/** The site service. */
private static SiteServiceAsync siteService;

/** The user service. */
private static UserServiceAsync userService;

/**
* Inits the services.
*
* @throws MalformedURLException the malformed url exception
*/
private static void initServices() throws MalformedURLException {
// http://code.google.com/p/gwtrpccommlayer/wiki/GettingStarted
// http://googlewebtoolkit.blogspot.com.es/2010/07/gwtrpccommlayer-extending-gwt-rpc-to-do.html
Expand All @@ -74,6 +94,14 @@ private static void initServices() throws MalformedURLException {
i18nService = service.create(new URL(SERVICE_PREFFIX + "I18nService"), I18nServiceAsync.class);
}

/**
* The main method.
*
* @param args the arguments
* @throws InvalidSyntaxException the invalid syntax exception
* @throws ExecutionException the execution exception
* @throws MalformedURLException the malformed url exception
*/
public static void main(final String[] args) throws InvalidSyntaxException, ExecutionException,
MalformedURLException {

Expand Down
34 changes: 34 additions & 0 deletions core/kune-cli/src/test/java/cc/kune/kunecli/KuneCliMainTest.java
Expand Up @@ -32,29 +32,63 @@
import org.naturalcli.ExecutionException;
import org.naturalcli.InvalidSyntaxException;

// TODO: Auto-generated Javadoc
/**
* The Class KuneCliMainTest.
*
* @author vjrj@ourproject.org (Vicente J. Ruiz Jurado)
*/
public class KuneCliMainTest {

/**
* Test basic auth.
*
* @throws InvalidSyntaxException the invalid syntax exception
* @throws ExecutionException the execution exception
* @throws MalformedURLException the malformed url exception
*/
@Test
public void testBasicAuth() throws InvalidSyntaxException, ExecutionException, MalformedURLException {
final KuneCliMain cli = new KuneCliMain();
final String[] args = new String[] { "auth", "admin", "easyeasy" };
KuneCliMain.main(args);
}

/**
* Test basic hello.
*
* @throws InvalidSyntaxException the invalid syntax exception
* @throws ExecutionException the execution exception
* @throws MalformedURLException the malformed url exception
*/
@Test
public void testBasicHello() throws InvalidSyntaxException, ExecutionException, MalformedURLException {
final KuneCliMain cli = new KuneCliMain();
final String[] args = new String[] { "hello", "world", "admin" };
KuneCliMain.main(args);
}

/**
* Test basic init.
*
* @throws InvalidSyntaxException the invalid syntax exception
* @throws ExecutionException the execution exception
* @throws MalformedURLException the malformed url exception
*/
@Test
public void testBasicInit() throws InvalidSyntaxException, ExecutionException, MalformedURLException {
final KuneCliMain cli = new KuneCliMain();
final String[] args = new String[] { "siteGetInitData" };
KuneCliMain.main(args);
}

/**
* Test basic init lang.
*
* @throws InvalidSyntaxException the invalid syntax exception
* @throws ExecutionException the execution exception
* @throws MalformedURLException the malformed url exception
*/
@Test
public void testBasicInitLang() throws InvalidSyntaxException, ExecutionException,
MalformedURLException {
Expand Down
4 changes: 3 additions & 1 deletion core/kune-color-picker/.project
@@ -1,7 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>kune-color-picker</name>
<comment>A color palette/dialog. NO_M2ECLIPSE_SUPPORT: Project files created with the maven-eclipse-plugin are not supported in M2Eclipse.</comment>
<comment>A color palette/dialog. NO_M2ECLIPSE_SUPPORT: Project files
created with the maven-eclipse-plugin are not supported in
M2Eclipse.</comment>
<projects/>
<buildSpec>
<buildCommand>
Expand Down
Expand Up @@ -2,7 +2,7 @@
<module rename-to='kune_color_picker'>
<!-- Inherit the core Web Toolkit stuff. -->
<inherits name='com.google.gwt.user.User'/>
<!-- <inherits name='net.auroris.ColorPicker.client'/> -->
<!-- <inherits name='net.auroris.ColorPicker.client'/> -->
<!-- Other module inherits -->

<!-- Specify the app entry point class. -->
Expand Down
Expand Up @@ -22,12 +22,29 @@
*/
package cc.kune.colorpicker.client;



// TODO: Auto-generated Javadoc
/**
* The Interface ColorWebSafePalette.
*
* @author vjrj@ourproject.org (Vicente J. Ruiz Jurado)
*/
public interface ColorWebSafePalette {

/**
* Hide.
*/
void hide();

/**
* Show.
*
* @param left
* the left
* @param top
* the top
* @param onColorSelected
* the on color selected
*/
void show(int left, int top, OnColorSelectedListener onColorSelected);

}
Expand Up @@ -28,22 +28,36 @@
import com.google.gwt.user.client.ui.SourcesTableEvents;
import com.google.gwt.user.client.ui.TableListener;

// TODO: Auto-generated Javadoc
/**
*
* A Web safe colors palette. See:
* http://en.wikipedia.org/wiki/Web_colors#Web-safe_colors
*
* @author vjrj@ourproject.org (Vicente J. Ruiz Jurado)
*/
public class ColorWebSafePalettePanel implements ColorWebSafePaletteView {

/** The palette grid. */
Grid paletteGrid;

/** The popup palette. */
private PopupPanel popupPalette;

/** The presenter. */
private final ColorWebSafePalettePresenter presenter;

/**
* Instantiates a new color web safe palette panel.
*
* @param initPresenter the init presenter
*/
public ColorWebSafePalettePanel(final ColorWebSafePalettePresenter initPresenter) {
this.presenter = initPresenter;
}

/**
* Creates the palette.
*/
private void createPalette() {
paletteGrid = new Grid(ROWS, COLS);

Expand Down Expand Up @@ -75,13 +89,19 @@ public void onCellClicked(final SourcesTableEvents sender, final int row, final
});
}

/* (non-Javadoc)
* @see cc.kune.colorpicker.client.ColorWebSafePaletteView#hide()
*/
@Override
public void hide() {
if (popupPalette != null) {
popupPalette.hide();
}
}

/* (non-Javadoc)
* @see cc.kune.colorpicker.client.ColorWebSafePaletteView#show(int, int)
*/
@Override
public void show(final int left, final int top) {
if (paletteGrid == null) {
Expand Down

0 comments on commit fbccc3e

Please sign in to comment.