[pmd-devel] pmd-eclipse/src/net/sourceforge/pmd/eclipse PMDPluginConstants.java,NONE,1.1 PluginPrefe
A source code analyzer
Brought to you by:
adangel,
juansotuyo
From: Philippe H. <phh...@us...> - 2004-06-29 22:00:40
|
Update of /cvsroot/pmd/pmd-eclipse/src/net/sourceforge/pmd/eclipse In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30061/src/net/sourceforge/pmd/eclipse Modified Files: PMDPlugin.java Added Files: PMDPluginConstants.java PluginPreferenceInitializer.java Log Message: Adapting the plugin to the new OSGi standards --- NEW FILE: PluginPreferenceInitializer.java --- package net.sourceforge.pmd.eclipse; import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer; /** * This class is used to initialize default preferences * * @author Philippe Herlin * @version $Revision: 1.1 $ * * $Log: PluginPreferenceInitializer.java,v $ * Revision 1.1 2004/06/29 22:00:30 phherlin * Adapting the plugin to the new OSGi standards * */ public class PluginPreferenceInitializer extends AbstractPreferenceInitializer implements PMDPluginConstants { /* (non-Javadoc) * @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences() */ public void initializeDefaultPreferences() { PMDPlugin.getDefault().getPluginPreferences().setDefault(RULESET_PREFERENCE, RULESET_DEFAULT); PMDPlugin.getDefault().getPluginPreferences().setDefault(MIN_TILE_SIZE_PREFERENCE, MIN_TILE_SIZE_DEFAULT); } } Index: PMDPlugin.java =================================================================== RCS file: /cvsroot/pmd/pmd-eclipse/src/net/sourceforge/pmd/eclipse/PMDPlugin.java,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** PMDPlugin.java 26 May 2004 15:55:23 -0000 1.21 --- PMDPlugin.java 29 Jun 2004 22:00:30 -0000 1.22 *************** *** 9,13 **** import java.io.InputStream; import java.io.OutputStream; - import java.net.MalformedURLException; import java.net.URL; import java.util.HashSet; --- 9,12 ---- *************** *** 30,41 **** import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IPath; - import org.eclipse.core.runtime.IPluginDescriptor; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.IStatus; import org.eclipse.core.runtime.Path; - import org.eclipse.core.runtime.QualifiedName; import org.eclipse.core.runtime.Status; import org.eclipse.jface.dialogs.MessageDialog; - import org.eclipse.jface.preference.IPreferenceStore; import org.eclipse.jface.resource.ImageDescriptor; import org.eclipse.jface.resource.ImageRegistry; --- 29,37 ---- *************** *** 46,187 **** import org.eclipse.ui.PlatformUI; import org.eclipse.ui.plugin.AbstractUIPlugin; /** * The main plugin class to be used in the desktop. * - * @author ? * @author Philippe Herlin * @version $Revision$ * * $Log$ ! * Revision 1.21 2004/05/26 15:55:23 phherlin ! * Upgrading to PMD 1.8: adding finalizers ruleset to the default rulesets list ! * ! * Revision 1.20 2003/12/18 23:58:37 phherlin ! * Fixing malformed UTF-8 characters in generated xml files ! * ! * Revision 1.19 2003/12/09 00:15:00 phherlin ! * Merging from v2 development ! * ! * Revision 1.18 2003/12/01 22:27:49 phherlin ! * The default rulesets list is all pmd rulesets ! * ! * Revision 1.17 2003/11/30 22:57:43 phherlin ! * Merging from eclipse-v2 development branch ! * ! * Revision 1.15.2.4 2003/11/07 14:33:57 phherlin ! * Implementing the "project ruleset" feature ! * ! * Revision 1.15.2.3 2003/11/04 13:26:38 phherlin ! * Implement the working set feature (working set filtering) ! * ! * Revision 1.15.2.2 2003/10/29 14:26:05 phherlin ! * Refactoring JDK 1.3 compatibility feature. Now use the compiler compliance option. ! * ! * Revision 1.15.2.1 2003/10/29 13:22:34 phherlin ! * Fix JDK1.3 runtime problem (Thanks to Eduard Naum) ! * ! * Revision 1.15 2003/10/16 22:26:37 phherlin ! * Fix bug #810858. ! * Complete refactoring of rule set generation. Using a DOM tree and the Xerces 2 serializer. ! * ! * Revision 1.14 2003/09/29 22:38:09 phherlin ! * Adding and implementing "JDK13 compatibility" property. ! * ! * Revision 1.13 2003/08/14 16:10:41 phherlin ! * Implementing Review feature (RFE#787086) ! * ! * Revision 1.12 2003/08/11 21:57:28 phherlin ! * Refactoring ruleset preference store : moving to state location ! * ! * Revision 1.11 2003/07/30 19:29:02 phherlin ! * Updating to PMD v1.2 ! * ! * Revision 1.10 2003/07/07 19:23:59 phherlin ! * Adding PMD violations view ! * ! * Revision 1.9 2003/07/01 20:22:16 phherlin ! * Make rules selectable from projects ! * ! * Revision 1.8 2003/06/30 20:16:06 phherlin ! * Redesigning plugin configuration ! * */ ! public class PMDPlugin extends AbstractUIPlugin { ! ! // Public constants ! public static final String PLUGIN_ID = "net.sourceforge.pmd.eclipse"; ! public static final String[] RULESET_ALLPMD = ! { ! "rulesets/basic.xml", ! "rulesets/braces.xml", ! "rulesets/codesize.xml", ! "rulesets/controversial.xml", ! "rulesets/coupling.xml", ! "rulesets/design.xml", ! "rulesets/finalizers.xml", ! "rulesets/imports.xml", ! "rulesets/javabeans.xml", ! "rulesets/junit.xml", ! "rulesets/naming.xml", ! "rulesets/scratchpad.xml", ! "rulesets/strictexception.xml", ! "rulesets/strings.xml", ! "rulesets/unusedcode.xml" }; ! public static final String[] RULESET_DEFAULTLIST = RULESET_ALLPMD; ! ! public static final String RULESET_PREFERENCE = PLUGIN_ID + ".ruleset"; ! public static final String RULESET_DEFAULT = ""; ! public static final String RULESET_FILE = "/ruleset.xml"; ! ! public static final String MIN_TILE_SIZE_PREFERENCE = PLUGIN_ID + ".CPDPreference.mintilesize"; ! public static final int MIN_TILE_SIZE_DEFAULT = 25; ! ! public static final String PMD_MARKER = PLUGIN_ID + ".pmdMarker"; ! public static final String PMD_TASKMARKER = PLUGIN_ID + ".pmdTaskMarker"; ! ! public static final QualifiedName SESSION_PROPERTY_ACTIVE_RULESET = ! new QualifiedName(PLUGIN_ID + ".sessprops", "active_rulset"); ! public static final QualifiedName PERSISTENT_PROPERTY_ACTIVE_RULESET = ! new QualifiedName(PLUGIN_ID + ".persprops", "active_rulset"); ! ! public static final QualifiedName SESSION_PROPERTY_WORKINGSET = new QualifiedName(PLUGIN_ID + ".sessprops", "workingset"); ! public static final QualifiedName PERSISTENT_PROPERTY_WORKINGSET = new QualifiedName(PLUGIN_ID + ".persprops", "workingset"); ! ! public static final QualifiedName SESSION_PROPERTY_STORE_RULESET_PROJECT = ! new QualifiedName(PLUGIN_ID + ".sessprops", "store_ruleset_project"); ! public static final QualifiedName PERSISTENT_PROPERTY_STORE_RULESET_PROJECT = ! new QualifiedName(PLUGIN_ID + ".persprops", "store_ruleset_project"); ! ! public static final QualifiedName SESSION_PROPERTY_RULESET_MODIFICATION_STAMP = ! new QualifiedName(PLUGIN_ID + ".sessprops", "ruleset_modification_stamp"); ! ! public static final String LIST_DELIMITER = ";"; ! ! public static final String ICON_ERROR = "icons/error.gif"; ! public static final String ICON_WARN = "icons/warn.gif"; ! public static final String ICON_INFO = "icons/info.gif"; ! public static final String ICON_PROJECT = "icons/prj.gif"; ! public static final String ICON_FILE = "icons/file.gif"; ! public static final String ICON_PRIO1 = "icons/prio_1.gif"; ! public static final String ICON_PRIO2 = "icons/prio_2.gif"; ! public static final String ICON_PRIO3 = "icons/prio_3.gif"; ! public static final String ICON_PRIO4 = "icons/prio_4.gif"; ! public static final String ICON_PRIO5 = "icons/prio_5.gif"; ! public static final String ICON_REMVIO = "icons/remvio.gif"; ! ! public static final String KEY_MARKERATT_RULENAME = "rulename"; ! ! public static final String SETTINGS_VIEW_FILE_SELECTION = "view.file_selection"; ! public static final String SETTINGS_VIEW_PROJECT_SELECTION = "view.project_selection"; ! public static final String SETTINGS_VIEW_ERRORHIGH_FILTER = "view.errorhigh_filter"; ! public static final String SETTINGS_VIEW_ERROR_FILTER = "view.high_filter"; ! public static final String SETTINGS_VIEW_WARNINGHIGH_FILTER = "view.warninghigh_filter"; ! public static final String SETTINGS_VIEW_WARNING_FILTER = "view.warning_filter"; ! public static final String SETTINGS_VIEW_INFORMATION_FILTER = "view.information_filter"; ! ! public static final String REVIEW_MARKER = "// @PMD:REVIEWED:"; ! public static final String REVIEW_ADDITIONAL_COMMENT_DEFAULT = "by {0} on {1}"; ! public static final String REVIEW_ADDITIONAL_COMMENT_PREFERENCE = PLUGIN_ID + ".review_additional_comment"; // Static attributes --- 42,105 ---- import org.eclipse.ui.PlatformUI; import org.eclipse.ui.plugin.AbstractUIPlugin; + import org.osgi.framework.BundleContext; /** * The main plugin class to be used in the desktop. * * @author Philippe Herlin * @version $Revision$ * * $Log$ ! * Revision 1.22 2004/06/29 22:00:30 phherlin ! * Adapting the plugin to the new OSGi standards ! * Revision 1.21 2004/05/26 15:55:23 phherlin Upgrading ! * to PMD 1.8: adding finalizers ruleset to the default rulesets list ! * ! * Revision 1.20 2003/12/18 23:58:37 phherlin Fixing malformed UTF-8 characters ! * in generated xml files ! * ! * Revision 1.19 2003/12/09 00:15:00 phherlin Merging from v2 development ! * ! * Revision 1.18 2003/12/01 22:27:49 phherlin The default rulesets list is all ! * pmd rulesets ! * ! * Revision 1.17 2003/11/30 22:57:43 phherlin Merging from eclipse-v2 ! * development branch ! * ! * Revision 1.15.2.4 2003/11/07 14:33:57 phherlin Implementing the "project ! * ruleset" feature ! * ! * Revision 1.15.2.3 2003/11/04 13:26:38 phherlin Implement the working set ! * feature (working set filtering) ! * ! * Revision 1.15.2.2 2003/10/29 14:26:05 phherlin Refactoring JDK 1.3 ! * compatibility feature. Now use the compiler compliance option. ! * ! * Revision 1.15.2.1 2003/10/29 13:22:34 phherlin Fix JDK1.3 runtime problem ! * (Thanks to Eduard Naum) ! * ! * Revision 1.15 2003/10/16 22:26:37 phherlin Fix bug #810858. Complete ! * refactoring of rule set generation. Using a DOM tree and the Xerces 2 ! * serializer. ! * ! * Revision 1.14 2003/09/29 22:38:09 phherlin Adding and implementing "JDK13 ! * compatibility" property. ! * ! * Revision 1.13 2003/08/14 16:10:41 phherlin Implementing Review feature ! * (RFE#787086) ! * ! * Revision 1.12 2003/08/11 21:57:28 phherlin Refactoring ruleset preference ! * store : moving to state location ! * ! * Revision 1.11 2003/07/30 19:29:02 phherlin Updating to PMD v1.2 ! * ! * Revision 1.10 2003/07/07 19:23:59 phherlin Adding PMD violations view ! * ! * Revision 1.9 2003/07/01 20:22:16 phherlin Make rules selectable from projects ! * ! * Revision 1.8 2003/06/30 20:16:06 phherlin Redesigning plugin configuration ! * */ ! public class PMDPlugin extends AbstractUIPlugin implements PMDPluginConstants { // Static attributes *************** *** 198,206 **** * The constructor. */ ! public PMDPlugin(IPluginDescriptor descriptor) { ! super(descriptor); plugin = this; try { ! URL messageTableUrl = find(new Path("$nl$/messages.properties")); if (messageTableUrl != null) { messageTable = new Properties(); --- 116,139 ---- * The constructor. */ ! public PMDPlugin() { ! super(); plugin = this; + } + + /** + * Returns the shared instance. + */ + public static PMDPlugin getDefault() { + return plugin; + } + + /** + * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext) + */ + public void start(BundleContext context) throws Exception { + super.start(context); + try { ! URL messageTableUrl = this.find(new Path("$nl$/messages.properties")); if (messageTableUrl != null) { messageTable = new Properties(); *************** *** 220,233 **** /** - * Returns the shared instance. - */ - public static PMDPlugin getDefault() { - return plugin; - } - - /** * Returns the string from the message table ! * @param key the message key ! * @param defaultMessage the returned message if key is not found * @return the requested message */ --- 153,162 ---- /** * Returns the string from the message table ! * ! * @param key ! * the message key ! * @param defaultMessage ! * the returned message if key is not found * @return the requested message */ *************** *** 244,248 **** /** * Returns the string from the message table ! * @param key the message key * @return the requested message */ --- 173,179 ---- /** * Returns the string from the message table ! * ! * @param key ! * the message key * @return the requested message */ *************** *** 252,264 **** /** - * @see org.eclipse.ui.plugin.AbstractUIPlugin#initializeDefaultPreferences(IPreferenceStore) - */ - protected void initializeDefaultPreferences(IPreferenceStore store) { - store.setDefault(RULESET_PREFERENCE, RULESET_DEFAULT); - store.setDefault(MIN_TILE_SIZE_PREFERENCE, MIN_TILE_SIZE_DEFAULT); - super.initializeDefaultPreferences(store); - } - - /** * Get the configured rule set */ --- 183,186 ---- *************** *** 307,312 **** /** ! * Get the rulset configured for the resouce. ! * Currently, it is the one configured for the resource's project */ public RuleSet getRuleSetForResource(IResource resource, boolean flCreateProperty) { --- 229,234 ---- /** ! * Get the rulset configured for the resouce. Currently, it is the one ! * configured for the resource's project */ public RuleSet getRuleSetForResource(IResource resource, boolean flCreateProperty) { *************** *** 325,330 **** /** ! * Get the rulset configured for the resouce. ! * Currently, it is the one configured for the resource's project */ public RuleSet getRuleSetForResourceFromProperties(IResource resource, boolean flCreateProperty) { --- 247,252 ---- /** ! * Get the rulset configured for the resouce. Currently, it is the one ! * configured for the resource's project */ public RuleSet getRuleSetForResourceFromProperties(IResource resource, boolean flCreateProperty) { *************** *** 377,382 **** /** ! * Retrieve a project ruleset from a ruleset file in the project ! * instead of the plugin properties/preferences * @param project * @return --- 299,305 ---- /** ! * Retrieve a project ruleset from a ruleset file in the project instead of ! * the plugin properties/preferences ! * * @param project * @return *************** *** 404,408 **** } ! // If ruleset cannot be loaded from project, try from properties. if (projectRuleSet == null) { log.debug("The project does not have a correct ruleset. Return a ruleset from the plugin properties"); --- 327,331 ---- } ! // If ruleset cannot be loaded from project, try from properties. if (projectRuleSet == null) { log.debug("The project does not have a correct ruleset. Return a ruleset from the plugin properties"); *************** *** 528,538 **** public String[] getPriorityLabels() { if (priorityLabels == null) { ! priorityLabels = ! new String[] { ! getMessage(PMDConstants.MSGKEY_PRIORITY_ERROR_HIGH), ! getMessage(PMDConstants.MSGKEY_PRIORITY_ERROR), ! getMessage(PMDConstants.MSGKEY_PRIORITY_WARNING_HIGH), ! getMessage(PMDConstants.MSGKEY_PRIORITY_WARNING), ! getMessage(PMDConstants.MSGKEY_PRIORITY_INFORMATION)}; } --- 451,457 ---- public String[] getPriorityLabels() { if (priorityLabels == null) { ! priorityLabels = new String[]{getMessage(PMDConstants.MSGKEY_PRIORITY_ERROR_HIGH), ! getMessage(PMDConstants.MSGKEY_PRIORITY_ERROR), getMessage(PMDConstants.MSGKEY_PRIORITY_WARNING_HIGH), ! getMessage(PMDConstants.MSGKEY_PRIORITY_WARNING), getMessage(PMDConstants.MSGKEY_PRIORITY_INFORMATION)}; } *************** *** 561,582 **** */ public ImageDescriptor getImageDescriptor(String iconPath) { ! ImageDescriptor descriptor = null; ! try { ! URL urlBasic = getDescriptor().getInstallURL(); ! URL urlIcon = new URL(urlBasic, iconPath); ! descriptor = ImageDescriptor.createFromURL(urlIcon); ! } catch (MalformedURLException e) { ! logError("Exception when search for icons", e); ! } ! ! return descriptor; } /** * Helper method to log error * @see IStatus */ public void logError(String message, Throwable t) { ! getLog().log(new Status(IStatus.ERROR, getDescriptor().getUniqueIdentifier(), 0, message + t.getMessage(), t)); if (log != null) { log.error(message, t); --- 480,493 ---- */ public ImageDescriptor getImageDescriptor(String iconPath) { ! return imageDescriptorFromPlugin(PLUGIN_ID, iconPath); } /** * Helper method to log error + * * @see IStatus */ public void logError(String message, Throwable t) { ! getLog().log(new Status(IStatus.ERROR, getBundle().getSymbolicName(), 0, message + t.getMessage(), t)); if (log != null) { log.error(message, t); *************** *** 586,589 **** --- 497,501 ---- /** * Helper method to log error + * * @see IStatus */ *************** *** 601,609 **** logError(message, t); Display.getDefault().syncExec(new Runnable() { public void run() { ! MessageDialog.openError( ! Display.getCurrent().getActiveShell(), ! getMessage(PMDConstants.MSGKEY_ERROR_TITLE), ! message + String.valueOf(t)); } }); --- 513,520 ---- logError(message, t); Display.getDefault().syncExec(new Runnable() { + public void run() { ! MessageDialog.openError(Display.getCurrent().getActiveShell(), getMessage(PMDConstants.MSGKEY_ERROR_TITLE), message ! + String.valueOf(t)); } }); *************** *** 666,669 **** --- 577,581 ---- /** * Get the additional text for review comment + * * @return */ *************** *** 679,682 **** --- 591,595 ---- /** * Set the additional text for review comment + * * @param string */ *************** *** 687,692 **** /** ! * Get the current working set selected of a project ! * Only one working set is allowed. */ public IWorkingSet getProjectWorkingSet(IProject project) { --- 600,605 ---- /** ! * Get the current working set selected of a project Only one working set is ! * allowed. */ public IWorkingSet getProjectWorkingSet(IProject project) { *************** *** 733,736 **** --- 646,650 ---- /** * Search the store_ruleset_project property + * * @param project */ *************** *** 755,760 **** } catch (CoreException e) { logError( ! "Error when searching for the store_ruleset_project property. Assuming the project doesn't store it's own ruleset", ! e); } --- 669,674 ---- } catch (CoreException e) { logError( ! "Error when searching for the store_ruleset_project property. Assuming the project doesn't store it's own ruleset", ! e); } *************** *** 764,767 **** --- 678,682 ---- /** * Set the store_ruleset_project property + * * @param project * @param ruleSetStoredInProject *************** *** 769,775 **** public void setRuleSetStoredInProject(IProject project, Boolean ruleSetStoredInProject) { try { ! project.setPersistentProperty( ! PERSISTENT_PROPERTY_STORE_RULESET_PROJECT, ! ruleSetStoredInProject == null ? null : ruleSetStoredInProject.toString()); project.setSessionProperty(SESSION_PROPERTY_STORE_RULESET_PROJECT, ruleSetStoredInProject); --- 684,690 ---- public void setRuleSetStoredInProject(IProject project, Boolean ruleSetStoredInProject) { try { ! project.setPersistentProperty(PERSISTENT_PROPERTY_STORE_RULESET_PROJECT, ruleSetStoredInProject == null ! ? null ! : ruleSetStoredInProject.toString()); project.setSessionProperty(SESSION_PROPERTY_STORE_RULESET_PROJECT, ruleSetStoredInProject); *************** *** 779,781 **** } ! } --- 694,696 ---- } ! } \ No newline at end of file --- NEW FILE: PMDPluginConstants.java --- package net.sourceforge.pmd.eclipse; import org.eclipse.core.runtime.QualifiedName; /** * This interface groups all plugin constants * * @author Philippe Herlin * @version $Revision: 1.1 $ * * $Log: PMDPluginConstants.java,v $ * Revision 1.1 2004/06/29 22:00:30 phherlin * Adapting the plugin to the new OSGi standards * */ public interface PMDPluginConstants { public static final String PLUGIN_ID = "net.sourceforge.pmd.eclipse"; public static final String[] RULESET_ALLPMD = {"rulesets/basic.xml", "rulesets/braces.xml", "rulesets/codesize.xml", "rulesets/controversial.xml", "rulesets/coupling.xml", "rulesets/design.xml", "rulesets/finalizers.xml", "rulesets/imports.xml", "rulesets/javabeans.xml", "rulesets/junit.xml", "rulesets/naming.xml", "rulesets/scratchpad.xml", "rulesets/strictexception.xml", "rulesets/strings.xml", "rulesets/unusedcode.xml"}; public static final String[] RULESET_DEFAULTLIST = RULESET_ALLPMD; public static final String RULESET_PREFERENCE = PLUGIN_ID + ".ruleset"; public static final String RULESET_DEFAULT = ""; public static final String RULESET_FILE = "/ruleset.xml"; public static final String MIN_TILE_SIZE_PREFERENCE = PLUGIN_ID + ".CPDPreference.mintilesize"; public static final int MIN_TILE_SIZE_DEFAULT = 25; public static final String PMD_MARKER = PLUGIN_ID + ".pmdMarker"; public static final String PMD_TASKMARKER = PLUGIN_ID + ".pmdTaskMarker"; public static final QualifiedName SESSION_PROPERTY_ACTIVE_RULESET = new QualifiedName(PLUGIN_ID + ".sessprops", "active_rulset"); public static final QualifiedName PERSISTENT_PROPERTY_ACTIVE_RULESET = new QualifiedName(PLUGIN_ID + ".persprops", "active_rulset"); public static final QualifiedName SESSION_PROPERTY_WORKINGSET = new QualifiedName(PLUGIN_ID + ".sessprops", "workingset"); public static final QualifiedName PERSISTENT_PROPERTY_WORKINGSET = new QualifiedName(PLUGIN_ID + ".persprops", "workingset"); public static final QualifiedName SESSION_PROPERTY_STORE_RULESET_PROJECT = new QualifiedName(PLUGIN_ID + ".sessprops", "store_ruleset_project"); public static final QualifiedName PERSISTENT_PROPERTY_STORE_RULESET_PROJECT = new QualifiedName(PLUGIN_ID + ".persprops", "store_ruleset_project"); public static final QualifiedName SESSION_PROPERTY_RULESET_MODIFICATION_STAMP = new QualifiedName(PLUGIN_ID + ".sessprops", "ruleset_modification_stamp"); public static final String LIST_DELIMITER = ";"; public static final String ICON_ERROR = "icons/error.gif"; public static final String ICON_WARN = "icons/warn.gif"; public static final String ICON_INFO = "icons/info.gif"; public static final String ICON_PROJECT = "icons/prj.gif"; public static final String ICON_FILE = "icons/file.gif"; public static final String ICON_PRIO1 = "icons/prio_1.gif"; public static final String ICON_PRIO2 = "icons/prio_2.gif"; public static final String ICON_PRIO3 = "icons/prio_3.gif"; public static final String ICON_PRIO4 = "icons/prio_4.gif"; public static final String ICON_PRIO5 = "icons/prio_5.gif"; public static final String ICON_REMVIO = "icons/remvio.gif"; public static final String KEY_MARKERATT_RULENAME = "rulename"; public static final String SETTINGS_VIEW_FILE_SELECTION = "view.file_selection"; public static final String SETTINGS_VIEW_PROJECT_SELECTION = "view.project_selection"; public static final String SETTINGS_VIEW_ERRORHIGH_FILTER = "view.errorhigh_filter"; public static final String SETTINGS_VIEW_ERROR_FILTER = "view.high_filter"; public static final String SETTINGS_VIEW_WARNINGHIGH_FILTER = "view.warninghigh_filter"; public static final String SETTINGS_VIEW_WARNING_FILTER = "view.warning_filter"; public static final String SETTINGS_VIEW_INFORMATION_FILTER = "view.information_filter"; public static final String REVIEW_MARKER = "// @PMD:REVIEWED:"; public static final String REVIEW_ADDITIONAL_COMMENT_DEFAULT = "by {0} on {1}"; public static final String REVIEW_ADDITIONAL_COMMENT_PREFERENCE = PLUGIN_ID + ".review_additional_comment"; } |