Skip to content

Commit

Permalink
[BUILD] Enforce package naming conventions PMD
Browse files Browse the repository at this point in the history
  • Loading branch information
m273d15 committed May 27, 2020
1 parent b87e670 commit ccaabf1
Show file tree
Hide file tree
Showing 31 changed files with 56 additions and 54 deletions.
4 changes: 2 additions & 2 deletions eclipse/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,15 @@ Export-Package: saros;
org.eclipse.jface.viewers,
saros.invitation,
saros.net",
saros.ui.commandHandlers,
saros.ui.command_handlers,
saros.ui.decorators;
uses:="org.eclipse.core.runtime,
saros.project,
org.eclipse.jface.viewers,
saros.editor,
saros.invitation",
saros.ui.model,
saros.ui.preferencePages,
saros.ui.preference_pages,
saros.ui.util,
saros.ui.util.selection,
saros.ui.util.selection.retriever,
Expand Down
40 changes: 20 additions & 20 deletions eclipse/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,35 +56,35 @@
</decorator>
</extension>
<extension
point="org.eclipse.ui.preferencePages">
point="org.eclipse.ui.preference_pages">
<page
class="saros.ui.preferencePages.GeneralPreferencePage"
class="saros.ui.preference_pages.GeneralPreferencePage"
id="saros.preferences"
name="Saros"/>
<page
category="saros.preferences"
class="saros.ui.preferencePages.AdvancedPreferencePage"
class="saros.ui.preference_pages.AdvancedPreferencePage"
id="saros.preferences.advanced"
name="Advanced"/>
<page
category="saros.preferences"
class="saros.ui.preferencePages.NetworkPreferencePage"
class="saros.ui.preference_pages.NetworkPreferencePage"
id="saros.preferences.network"
name="Network"/>
<!--page
category="saros.preferences"
class="saros.ui.preferencePages.FeedbackPreferencePage"
class="saros.ui.preference_pages.FeedbackPreferencePage"
id="saros.preferences.feedback"
name="Feedback"/-->
<page
category="saros.preferences"
class="saros.ui.preferencePages.CommunicationPreferencePage"
class="saros.ui.preference_pages.CommunicationPreferencePage"
id="saros.preferences.communication"
name="Communication">
</page>
<page
category="saros.preferences"
class="saros.ui.preferencePages.PersonalizationPreferencePage"
class="saros.ui.preference_pages.PersonalizationPreferencePage"
id="saros.preferences.personalization"
name="Personalization">
</page>
Expand Down Expand Up @@ -550,34 +550,34 @@
<extension
point="org.eclipse.ui.handlers">
<handler
class="saros.ui.commandHandlers.GettingStartedHandler"
class="saros.ui.command_handlers.GettingStartedHandler"
commandId="saros.ui.commands.GettingStarted">
</handler>
<handler
class="saros.ui.commandHandlers.StartSarosConfigurationHandler"
class="saros.ui.command_handlers.StartSarosConfigurationHandler"
commandId="saros.ui.commands.StartSarosConfiguration">
</handler>
<handler
class="saros.ui.commandHandlers.CreateXMPPAccountHandler"
class="saros.ui.command_handlers.CreateXMPPAccountHandler"
commandId="saros.ui.commands.CreateXMPPAccount">
</handler>
<handler
class="saros.ui.commandHandlers.AddXMPPAccountHandler"
class="saros.ui.command_handlers.AddXMPPAccountHandler"
commandId="saros.ui.commands.AddXMPPAccount">
</handler>
<handler
class="saros.ui.commandHandlers.AddContactHandler"
class="saros.ui.command_handlers.AddContactHandler"
commandId="saros.ui.commands.AddContact">
<enabledWhen>
<reference definitionId="saros.ui.definitions.isConnected" />
</enabledWhen>
</handler>
<handler
class="saros.ui.commandHandlers.OpenSarosPreferencesHandler"
class="saros.ui.command_handlers.OpenSarosPreferencesHandler"
commandId="saros.ui.commands.OpenSarosPreferences">
</handler>
<handler
class="saros.ui.commandHandlers.ShareProjectHandler"
class="saros.ui.command_handlers.ShareProjectHandler"
commandId="saros.ui.commands.ShareResource">
<enabledWhen>
<and>
Expand All @@ -593,7 +593,7 @@
</enabledWhen>
</handler>
<handler
class="saros.ui.commandHandlers.SessionLeaveHandler"
class="saros.ui.command_handlers.SessionLeaveHandler"
commandId="saros.ui.commands.SessionLeave">
<activeWhen>
<and>
Expand All @@ -607,7 +607,7 @@
</activeWhen>
</handler>
<handler
class="saros.ui.commandHandlers.SessionAddProjectsHandler"
class="saros.ui.command_handlers.SessionAddProjectsHandler"
commandId="saros.ui.commands.SessionAddResources">
<activeWhen>
<and>
Expand All @@ -626,7 +626,7 @@
</enabledWhen>
</handler>
<handler
class="saros.ui.commandHandlers.SessionAddContactsHandler"
class="saros.ui.command_handlers.SessionAddContactsHandler"
commandId="saros.ui.commands.SessionAddContacts">
<activeWhen>
<and>
Expand All @@ -640,7 +640,7 @@
</activeWhen>
</handler>
<handler
class="saros.ui.commandHandlers.SessionAddSelectedProjectsHandler"
class="saros.ui.command_handlers.SessionAddSelectedProjectsHandler"
commandId="saros.ui.commands.SessionAddSelectedResources">
<activeWhen>
<and>
Expand All @@ -667,7 +667,7 @@
</enabledWhen>
</handler>
<handler
class="saros.ui.commandHandlers.SessionAddSelectedContactsHandler"
class="saros.ui.command_handlers.SessionAddSelectedContactsHandler"
commandId="saros.ui.commands.SessionAddSelectedContacts">
<activeWhen>
<and>
Expand Down Expand Up @@ -1386,7 +1386,7 @@
<extension
point="org.eclipse.ui.services">
<sourceProvider
provider="saros.serviceProviders.SarosSourceProvider">
provider="saros.service_providers.SarosSourceProvider">
<variable
name="saros.Saros"
priorityLevel="workbench">
Expand Down
2 changes: 1 addition & 1 deletion eclipse/src/saros/feedback/ErrorLogManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import saros.preferences.EclipsePreferenceConstants;
import saros.repackaged.picocontainer.Startable;
import saros.session.ISarosSession;
import saros.ui.preferencePages.FeedbackPreferencePage;
import saros.ui.preference_pages.FeedbackPreferencePage;

/**
* The ErrorLogManager is supposed to upload an error log file to our server at the end of a
Expand Down
2 changes: 1 addition & 1 deletion eclipse/src/saros/feedback/StatisticManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import saros.annotations.Component;
import saros.preferences.EclipsePreferenceConstants;
import saros.repackaged.picocontainer.Startable;
import saros.ui.preferencePages.FeedbackPreferencePage;
import saros.ui.preference_pages.FeedbackPreferencePage;
import saros.util.StackTrace;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package saros.serviceProviders;
package saros.service_providers;

import java.util.HashMap;
import java.util.Map;
Expand All @@ -24,10 +24,10 @@
*/
public class SarosSourceProvider extends AbstractSourceProvider {

/** Corresponds to a serviceProvider variable as defined in Extension org.eclipse.ui.services. */
/** Corresponds to a service_provider variable as defined in Extension org.eclipse.ui.services. */
public static final String SAROS = "saros.Saros";

/** Corresponds to a serviceProvider variable as defined in Extension org.eclipse.ui.services. */
/** Corresponds to a service_provider variable as defined in Extension org.eclipse.ui.services. */
public static final String SAROS_SESSION = "saros.SarosSession";

@Inject private Saros saros;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
* href="http://wiki.eclipse.org/Command_Core_Expressions">Eclipse Core Expressions</a>, which are
* programmatic or declarative expressions.
*/
package saros.serviceProviders;
package saros.service_providers;
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package saros.ui.commandHandlers;
package saros.ui.command_handlers;

import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package saros.ui.commandHandlers;
package saros.ui.command_handlers;

import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package saros.ui.commandHandlers;
package saros.ui.command_handlers;

import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package saros.ui.commandHandlers;
package saros.ui.command_handlers;

import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package saros.ui.commandHandlers;
package saros.ui.command_handlers;

import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package saros.ui.commandHandlers;
package saros.ui.command_handlers;

import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package saros.ui.commandHandlers;
package saros.ui.command_handlers;

import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package saros.ui.commandHandlers;
package saros.ui.command_handlers;

import java.util.List;
import org.eclipse.core.commands.AbstractHandler;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package saros.ui.commandHandlers;
package saros.ui.command_handlers;

import java.util.List;
import org.eclipse.core.commands.AbstractHandler;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package saros.ui.commandHandlers;
package saros.ui.command_handlers;

import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package saros.ui.commandHandlers;
package saros.ui.command_handlers;

import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.core.resources.IResource;
import saros.ui.menuContributions.StartSessionWithContacts;
import saros.ui.menuContributions.StartSessionWithProjects;
import saros.ui.menu_contributions.StartSessionWithContacts;
import saros.ui.menu_contributions.StartSessionWithProjects;
import saros.ui.util.WizardUtils;
import saros.ui.util.selection.retriever.SelectionRetrieverFactory;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package saros.ui.commandHandlers;
package saros.ui.command_handlers;

import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@
* href="http://help.eclipse.org/indigo/topic/org.eclipse.platform.doc.isv/guide/workbench_cmd_handlers.htm">plugin.xml
* - org.eclipse.ui.handlers extension point</a>
*/
package saros.ui.commandHandlers;
package saros.ui.command_handlers;
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package saros.ui.menuContributions;
package saros.ui.menu_contributions;

import java.util.Collections;
import java.util.Comparator;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package saros.ui.menuContributions;
package saros.ui.menu_contributions;

import java.util.Arrays;
import java.util.Collections;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
/** Classes in this package are responsible to provide MenuItems for Saros Menus. */
package saros.ui.menuContributions;
package saros.ui.menu_contributions;
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package saros.ui.preferencePages;
package saros.ui.preference_pages;

import org.eclipse.jface.dialogs.MessageDialogWithToggle;
import org.eclipse.jface.preference.BooleanFieldEditor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package saros.ui.preferencePages;
package saros.ui.preference_pages;

import org.eclipse.jface.preference.BooleanFieldEditor;
import org.eclipse.jface.preference.FieldEditor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** */
package saros.ui.preferencePages;
package saros.ui.preference_pages;

import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.jface.preference.PreferencePage;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package saros.ui.preferencePages;
package saros.ui.preference_pages;

import java.text.MessageFormat;
import org.eclipse.jface.dialogs.MessageDialog;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package saros.ui.preferencePages;
package saros.ui.preference_pages;

import java.net.InetAddress;
import java.util.ArrayList;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package saros.ui.preferencePages;
package saros.ui.preference_pages;

import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.jface.preference.PreferencePage;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
* provide several setting options to configurate Saros behavior. Pages have to implement
* IWorkbenchPreferencePage.
*/
package saros.ui.preferencePages;
package saros.ui.preference_pages;
2 changes: 1 addition & 1 deletion eclipse/src/saros/ui/views/SarosView.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
import saros.ui.actions.RequestSessionInviteAction;
import saros.ui.actions.SendFileAction;
import saros.ui.actions.SkypeAction;
import saros.ui.menuContributions.StartSessionWithProjects;
import saros.ui.menu_contributions.StartSessionWithProjects;
import saros.ui.model.roster.RosterEntryElement;
import saros.ui.sounds.SoundPlayer;
import saros.ui.sounds.Sounds;
Expand Down
2 changes: 2 additions & 0 deletions ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@
<rule ref="category/java/bestpractices.xml/UnusedLocalVariable" />
<rule ref="category/java/bestpractices.xml/UnusedPrivateField" />
<rule ref="category/java/bestpractices.xml/UnusedPrivateMethod" />

<rule ref="category/java/codestyle.xml/PackageCase" />
</ruleset>

0 comments on commit ccaabf1

Please sign in to comment.