Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.rse.ui.view.errorlist
Class QSYSMarkerUtil

java.lang.Object
  extended by com.ibm.etools.iseries.rse.ui.view.errorlist.QSYSMarkerUtil
All Implemented Interfaces:
IQSYSMarker, IQSYSErrorListConstants

public class QSYSMarkerUtil
extends Object
implements IQSYSErrorListConstants


Field Summary
static String Copyright
           
 
Fields inherited from interface com.ibm.etools.iseries.rse.ui.view.errorlist.IQSYSErrorListConstants
ANNOTATION_IMAGE_KEY, CONNECTION_NAME_KEY, ID_KEY, KEY, keys, LINE_KEY, LOCATION_KEY, MESSAGE_KEY, MESSAGE_LEVEL_ALL, MESSAGE_LEVEL_NONE, MESSAGE_LEVEL_SELECTED, MESSAGE_LEVEL_SHOWING, SEVERITY_IMAGE_KEY, SEVERITY_KEY, SHOW_ALL_ACTION_ID, SHOW_ERROR_ACTION_ID, SHOW_INFORMATION_ACTION_ID, SHOW_NONE_ACTION_ID, SHOW_SELECTED_ACTION_ID, SHOW_SEVERE_ACTION_ID, SHOW_SHOWING_ACTION_ID, SHOW_TERMINATING_ACTION_ID, SHOW_WARNING_ACTION_ID
 
Fields inherited from interface com.ibm.etools.iseries.rse.ui.resources.IQSYSMarker
ANNOTATION, AS400_PROBLEM, ATTRIBUTE_NAMES, BROWSE_MODE, CHAR_END, CHAR_START, CONNECTION_NAME, ID, LINE, LINE_END, LINE_START, LOCATION, MESSAGE, PRIORITY, PROFILE_NAME, PROJECT_NAME, SEVERITY, SEVERITY_TEXT, SOURCE_TYPE
 
Method Summary
static void createFilteredItemsMarker(IResource resource)
          Creates the "All items filtered out" message for the error list
static void createNoErrorsMarkers(IResource resource)
          Creates the marker for the "No errors in events file" message
 String getCharEnd(IMarker marker)
          Get the ending character in the ending line which caused the error
 String getCharStart(IMarker marker)
          Get the starting character in the starting line which caused the error
 String getConnectionName(IMarker marker)
          Get the connection name which was used to execute the compile
static QSYSMarkerUtil getDefault()
          Get the singleton instance
 String getID(IMarker marker)
          Get the error ID
 String getLine(IMarker marker)
          Get the line number which caused the error
 String getLineEnd(IMarker marker)
          Get the ending line which caused the error
 String getLineStart(IMarker marker)
          Get the starting line which caused the error
 String getLocation(IMarker marker)
          Get the location of the member which caused the errors
static String getMarkerName(IMarker marker)
          retrieves the marker name to be used for the LPEX mark.
 String getMessage(IMarker marker)
          Get the error message
 IBMiRSEPlugin getPlugin()
          Get the plugin
 String getProfileName(IMarker marker)
          Get the severity text
 String getProjectName(IMarker marker)
          Get the project name
 Object getProperty(IMarker marker, String key)
          Get the property of the marker given a key.
 String getSeverity(IMarker marker)
          Get the error severity
 String getSeverityText(IMarker marker)
          Get the severity text
 Image getSeverityTextImage(IMarker marker)
          Get the image for that severity
 String getSourceType(IMarker marker)
          Get the source type associated with this marker
 boolean isReadOnly(IMarker marker)
          Returns true if the file should be opened in Browse Mode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Copyright

public static final String Copyright
See Also:
Constant Field Values
Method Detail

getDefault

public static QSYSMarkerUtil getDefault()
Get the singleton instance


getSeverityTextImage

public Image getSeverityTextImage(IMarker marker)
Get the image for that severity


getID

public String getID(IMarker marker)
Get the error ID

Parameters:
the - marker

getMessage

public String getMessage(IMarker marker)
Get the error message

Parameters:
the - marker

getSeverity

public String getSeverity(IMarker marker)
Get the error severity

Parameters:
the - marker

getLine

public String getLine(IMarker marker)
Get the line number which caused the error

Parameters:
the - marker

getLocation

public String getLocation(IMarker marker)
Get the location of the member which caused the errors

Parameters:
the - marker

getConnectionName

public String getConnectionName(IMarker marker)
Get the connection name which was used to execute the compile

Parameters:
the - marker

isReadOnly

public boolean isReadOnly(IMarker marker)
Returns true if the file should be opened in Browse Mode

Parameters:
marker -
Returns:
true, if the file is to be opened in Browse Mode. false, otherwise.

getSeverityText

public String getSeverityText(IMarker marker)
Get the severity text


getProfileName

public String getProfileName(IMarker marker)
Get the severity text


getProjectName

public String getProjectName(IMarker marker)
Get the project name


getLineStart

public String getLineStart(IMarker marker)
Get the starting line which caused the error

Parameters:
the - marker

getCharStart

public String getCharStart(IMarker marker)
Get the starting character in the starting line which caused the error

Parameters:
the - marker

getLineEnd

public String getLineEnd(IMarker marker)
Get the ending line which caused the error

Parameters:
the - marker

getCharEnd

public String getCharEnd(IMarker marker)
Get the ending character in the ending line which caused the error

Parameters:
the - marker

getSourceType

public String getSourceType(IMarker marker)
Get the source type associated with this marker


getProperty

public Object getProperty(IMarker marker,
                          String key)
Get the property of the marker given a key. Used to get attributes that are to be displayed in the Error List view

Parameters:
the - marker
the - key

getPlugin

public IBMiRSEPlugin getPlugin()
Get the plugin


getMarkerName

public static String getMarkerName(IMarker marker)
retrieves the marker name to be used for the LPEX mark. This should be unique for each mark.

Parameters:
marker - the marker to get the name of
Returns:
the unique name to use for this marker.
Since:
6.0

createNoErrorsMarkers

public static void createNoErrorsMarkers(IResource resource)
Creates the marker for the "No errors in events file" message

Parameters:
resource - the resource that should own the error.
Since:
7.1

createFilteredItemsMarker

public static void createFilteredItemsMarker(IResource resource)
Creates the "All items filtered out" message for the error list

Parameters:
resource - the resource to attach the message to
Since:
7.1

Rational Developer for Power Systems Software
V7.6

Copyright 2011 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.