Changeset 3682 for devel-tools


Ignore:
Timestamp:
Apr 9, 2008, 5:44:18 PM (13 years ago)
Author:
yura
Message:
  • Expr.toString() returns formatted representation, all references Reference class) (including Refal String) represents as &[name or classname@hash].
  • Expr.toChars() - returns string like Convert.toChars (Refal String converts to its value).
Location:
devel-tools/trunk/eclipse/org.refal.rfpdt.ui/src/org/refal/rfpdt/ui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • devel-tools/trunk/eclipse/org.refal.rfpdt.ui/src/org/refal/rfpdt/ui/RfpPerspectiveFactory.java

    r3679 r3682  
    99
    1010public class RfpPerspectiveFactory implements IPerspectiveFactory {
    11 
    1211    public void createInitialLayout (IPageLayout layout) {
    1312        createFolders(layout);
  • devel-tools/trunk/eclipse/org.refal.rfpdt.ui/src/org/refal/rfpdt/ui/RfpUI.java

    r3679 r3682  
    66import org.eclipse.core.runtime.IStatus;
    77import org.eclipse.core.runtime.Status;
    8 import org.eclipse.jdt.internal.debug.ui.IJDIPreferencesConstants;
    9 import org.eclipse.jdt.internal.debug.ui.JDIDebugUIPlugin;
    108import org.eclipse.jface.preference.IPreferenceStore;
    119import org.eclipse.swt.widgets.Shell;
     
    1816import org.refal.rfpdt.editor.preferences.ProjectPropertiesStore;
    1917
    20 @SuppressWarnings("restriction")
    2118public class RfpUI extends AbstractUIPlugin {
    22 
    2319    // The plug-in ID
    2420    public static final String PLUGIN_ID = "org.refal.rfpdt.ui";
     
    2925    public static final String RFP_ELEMENT_CREATION_ACTION_SET = "org.refal.rfpdt.ui.rfpElementCreationActionSet";
    3026
    31     private static final String formatters = "org.refal.plus.Expr,return formattedRepresentation();,1"
    32             + ",org.refal.plus.Result,return expr == null ? null : expr.formattedRepresentation();,1";
    3327    // The shared instance
    3428    private static RfpUI plugin = null;
    3529    private static HashMap<IProject, ProjectPropertiesStore> stores = null;
    3630    private static RfpPartitionScanner partitionScanner = null;
    37 
    38     static {
    39         IPreferenceStore store = JDIDebugUIPlugin.getDefault().getPreferenceStore();
    40         String str = store.getString(IJDIPreferencesConstants.PREF_DETAIL_FORMATTERS_LIST);
    41         if (str == null)
    42             str = "";
    43         if (!str.contains("org.refal.plus.Expr")) {
    44             if (str.length() != 0)
    45                 str += ",";
    46             str += formatters;
    47             store.setValue(IJDIPreferencesConstants.PREF_DETAIL_FORMATTERS_LIST, str);
    48         }
    49     }
    5031
    5132    /**
Note: See TracChangeset for help on using the changeset viewer.