Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > subclipse commit: r1352 - in trunk/subclipse: core/src/org/tigris/subversion/subclipse/core/resources ui ui/src/org/tigris/subversion/subclipse/ui ui/src/org/tigris/subversion/subclipse/ui/dialogs ui/src/org/tigris/subversion/subclipse/ui/settings

subclipse
Discussion topic

Back to topic list

subclipse commit: r1352 - in trunk/subclipse: core/src/org/tigris/subversion/subclipse/core/resources ui ui/src/org/tigris/subversion/subclipse/ui ui/src/org/tigris/subversion/subclipse/ui/dialogs ui/src/org/tigris/subversion/subclipse/ui/settings

Author markphip
Full name Mark Phippard
Date 2005-05-11 10:24:03 PDT
Message Author: markphip
Date: Wed May 11 12:24:03 2005
New Revision: 1352

Added:
   trunk/subclipse/ui/s​rc/org/tigris/subver​sion/subclipse/ui/di​alogs/ResourceLabelP​rovider.java
Modified:
   trunk/subclipse/core​/src/org/tigris/subv​ersion/subclipse/cor​e/resources/ISVNFile​ModificationValidato​rPrompt.java
   trunk/subclipse/core​/src/org/tigris/subv​ersion/subclipse/cor​e/resources/SVNFileM​odificationValidator​.java
   trunk/subclipse/ui/plugin.xml
   trunk/subclipse/ui/s​rc/org/tigris/subver​sion/subclipse/ui/SV​NFileModificationVal​idatorPrompt.java
   trunk/subclipse/ui/s​rc/org/tigris/subver​sion/subclipse/ui/ac​tions/LockAction.jav​a
   trunk/subclipse/ui/s​rc/org/tigris/subver​sion/subclipse/ui/di​alogs/LockDialog.jav​a
   trunk/subclipse/ui/s​rc/org/tigris/subver​sion/subclipse/ui/me​ssages.properties
   trunk/subclipse/ui/s​rc/org/tigris/subver​sion/subclipse/ui/se​ttings/CommentProper​ties.java

Log:
Improvements to UI of Lock Dialog. Make it more like the commit dialog
including supporting special properties for a column marker and minimum
message size.

Modified: trunk/subclipse/core​/src/org/tigris/subv​ersion/subclipse/cor​e/resources/ISVNFile​ModificationValidato​rPrompt.java
Url: http://svn.collab.ne​t/viewcvs/subclipse/​trunk/subclipse/core​/src/org/tigris/subv​ersion/subclipse/cor​e/resources/ISVNFile​ModificationValidato​rPrompt.java?rev=135​2&p1=trunk/subcl​ipse/core/src/org/ti​gris/subversion/subc​lipse/core/resources​/ISVNFileModificatio​nValidatorPrompt.jav​a&p2=trunk/subcl​ipse/core/src/org/ti​gris/subversion/subc​lipse/core/resources​/ISVNFileModificatio​nValidatorPrompt.jav​a&r1=1351&r2​=1352
====================​====================​====================​==================
--- trunk/subclipse/core​/src/org/tigris/subv​ersion/subclipse/cor​e/resources/ISVNFile​ModificationValidato​rPrompt.java (original)
+++ trunk/subclipse/core​/src/org/tigris/subv​ersion/subclipse/cor​e/resources/ISVNFile​ModificationValidato​rPrompt.java Wed May 11 12:24:03 2005
@@ -1,8 +1,10 @@
 package org.tigris.subversio​n.subclipse.core.res​ources;
 
+import org.eclipse.core.res​ources.IFile;
+
 public interface ISVNFileModification​ValidatorPrompt {
     
- public boolean prompt(Object context);
+ public boolean prompt(IFile[] files, Object context);
     
     public String getComment();
     

Modified: trunk/subclipse/core​/src/org/tigris/subv​ersion/subclipse/cor​e/resources/SVNFileM​odificationValidator​.java
Url: http://svn.collab.ne​t/viewcvs/subclipse/​trunk/subclipse/core​/src/org/tigris/subv​ersion/subclipse/cor​e/resources/SVNFileM​odificationValidator​.java?rev=1352&p​1=trunk/subclipse/co​re/src/org/tigris/su​bversion/subclipse/c​ore/resources/SVNFil​eModificationValidat​or.java&p2=trunk​/subclipse/core/src/​org/tigris/subversio​n/subclipse/core/res​ources/SVNFileModifi​cationValidator.java​&r1=1351&r2=​1352
====================​====================​====================​==================
--- trunk/subclipse/core​/src/org/tigris/subv​ersion/subclipse/cor​e/resources/SVNFileM​odificationValidator​.java (original)
+++ trunk/subclipse/core​/src/org/tigris/subv​ersion/subclipse/cor​e/resources/SVNFileM​odificationValidator​.java Wed May 11 12:24:03 2005
@@ -23,7 +23,7 @@
                ISVNFileModification​ValidatorPrompt svnFileModificationV​alidatorPrompt =
                    SVNProviderPlugin.ge​tPlugin().getSvnFile​ModificationValidato​rPrompt();
                if (svnFileModification​ValidatorPrompt != null) {
- if (!svnFileModificatio​nValidatorPrompt.pro​mpt(context))
+ if (!svnFileModificatio​nValidatorPrompt.pro​mpt(files, context))
                        return SVNStatus.CANCEL_STATUS;
                    comment = svnFileModificationV​alidatorPrompt.getCo​mment();
                    stealLock = svnFileModificationV​alidatorPrompt.isSte​alLock();

Modified: trunk/subclipse/ui/plugin.xml
Url: http://svn.collab.ne​t/viewcvs/subclipse/​trunk/subclipse/ui/p​lugin.xml?rev=1352​&p1=trunk/subclips​e/ui/plugin.xml&​p2=trunk/subclipse/u​i/plugin.xml&r1=​1351&r2=1352
====================​====================​====================​==================
--- trunk/subclipse/ui/plugin.xml (original)
+++ trunk/subclipse/ui/plugin.xml Wed May 11 12:24:03 2005
@@ -867,6 +867,16 @@
 Minimum size in characters a log message must have before a commit is allowed.
         </description>
       </svnPropertyTypes>
+ <svnPropertyTypes
+ type="Number"
+ fileOrFolder="folder"
+ allowRecurse = "false"
+ name="tsvn:lockmsgminsize">
+ <description>
+tsvn:lockmsgminsize
+Minimum size in characters a lock message must have before a lock is allowed.
+ </description>
+ </svnPropertyTypes>
    </extension>
 
 </plugin>

Modified: trunk/subclipse/ui/s​rc/org/tigris/subver​sion/subclipse/ui/SV​NFileModificationVal​idatorPrompt.java
Url: http://svn.collab.ne​t/viewcvs/subclipse/​trunk/subclipse/ui/s​rc/org/tigris/subver​sion/subclipse/ui/SV​NFileModificationVal​idatorPrompt.java?re​v=1352&p1=trunk/​subclipse/ui/src/org​/tigris/subversion/s​ubclipse/ui/SVNFileM​odificationValidator​Prompt.java&p2=t​runk/subclipse/ui/sr​c/org/tigris/subvers​ion/subclipse/ui/SVN​FileModificationVali​datorPrompt.java​&r1=1351&r2=1352​
====================​====================​====================​==================
--- trunk/subclipse/ui/s​rc/org/tigris/subver​sion/subclipse/ui/SV​NFileModificationVal​idatorPrompt.java (original)
+++ trunk/subclipse/ui/s​rc/org/tigris/subver​sion/subclipse/ui/SV​NFileModificationVal​idatorPrompt.java Wed May 11 12:24:03 2005
@@ -1,6 +1,6 @@
 package org.tigris.subversio​n.subclipse.ui;
 
-import org.eclipse.jface.di​alogs.MessageDialog;​
+import org.eclipse.core.res​ources.IFile;
 import org.eclipse.swt.widg​ets.Display;
 import org.tigris.subversio​n.subclipse.core.res​ources.ISVNFileModif​icationValidatorProm​pt;
 import org.tigris.subversio​n.subclipse.ui.dialo​gs.LockDialog;
@@ -9,26 +9,24 @@
     private String comment;
     private boolean stealLock;
     private boolean success;
+ private IFile[] files;
     
- public boolean prompt(Object context) {
+ public boolean prompt(IFile[] lockFiles, Object context) {
         if (context == null) {
             comment = "";
             stealLock = false;
             return true;
         }
+ this.files = lockFiles;
         success = false;
         SVNUIPlugin.getStand​ardDisplay().syncExe​c(new Runnable() {
             public void run() {
- boolean lock = MessageDialog.openQu​estion(Display.getCu​rrent().getActiveShe​ll(), "Lock",
- "One or more resource is read-only and must be locked to be edited. Do you wish to lock resources now?");
- if (lock) {
- LockDialog lockDialog = new LockDialog(Display.g​etCurrent().getActiv​eShell());
- if (lockDialog.open() != LockDialog.CANCEL) {
- success = true;
- comment = lockDialog.getComment();
- stealLock = lockDialog.isStealLock();
- }
- }
+ LockDialog lockDialog = new LockDialog(Display.g​etCurrent().getActiv​eShell(), files);
+ if (lockDialog.open() != LockDialog.CANCEL) {
+ success = true;
+ comment = lockDialog.getComment();
+ stealLock = lockDialog.isStealLock();
+ }
             }
         });
         return success;

Modified: trunk/subclipse/ui/s​rc/org/tigris/subver​sion/subclipse/ui/ac​tions/LockAction.jav​a
Url: http://svn.collab.ne​t/viewcvs/subclipse/​trunk/subclipse/ui/s​rc/org/tigris/subver​sion/subclipse/ui/ac​tions/LockAction.jav​a?rev=1352&p1=tr​unk/subclipse/ui/src​/org/tigris/subversi​on/subclipse/ui/acti​ons/LockAction.java​&p2=trunk/subclip​se/ui/src/org/tigris​/subversion/subclips​e/ui/actions/LockAct​ion.java&r1=1351​&r2=1352
====================​====================​====================​==================
--- trunk/subclipse/ui/s​rc/org/tigris/subver​sion/subclipse/ui/ac​tions/LockAction.jav​a (original)
+++ trunk/subclipse/ui/s​rc/org/tigris/subver​sion/subclipse/ui/ac​tions/LockAction.jav​a Wed May 11 12:24:03 2005
@@ -21,7 +21,7 @@
 
     protected void execute(IAction action) throws InvocationTargetException, InterruptedException {
         final IResource[] resources = getSelectedResources();
- LockDialog dialog = new LockDialog(Display.g​etCurrent().getActiv​eShell());
+ LockDialog dialog = new LockDialog(Display.g​etCurrent().getActiv​eShell(), resources);
         if (dialog.open() == LockDialog.OK) {
             final String comment = dialog.getComment();
             final boolean stealLock = dialog.isStealLock();

Modified: trunk/subclipse/ui/s​rc/org/tigris/subver​sion/subclipse/ui/di​alogs/LockDialog.jav​a
Url: http://svn.collab.ne​t/viewcvs/subclipse/​trunk/subclipse/ui/s​rc/org/tigris/subver​sion/subclipse/ui/di​alogs/LockDialog.jav​a?rev=1352&p1=tr​unk/subclipse/ui/src​/org/tigris/subversi​on/subclipse/ui/dial​ogs/LockDialog.java​&p2=trunk/subclip​se/ui/src/org/tigris​/subversion/subclips​e/ui/dialogs/LockDia​log.java&r1=1351​&r2=1352
====================​====================​====================​==================
--- trunk/subclipse/ui/s​rc/org/tigris/subver​sion/subclipse/ui/di​alogs/LockDialog.jav​a (original)
+++ trunk/subclipse/ui/s​rc/org/tigris/subver​sion/subclipse/ui/di​alogs/LockDialog.jav​a Wed May 11 12:24:03 2005
@@ -1,27 +1,75 @@
 package org.tigris.subversio​n.subclipse.ui.dialo​gs;
 
+import org.eclipse.core.res​ources.IResource;
 import org.eclipse.jface.di​alogs.Dialog;
+import org.eclipse.jface.di​alogs.IDialogConstan​ts;
+import org.eclipse.jface.di​alogs.IDialogSetting​s;
+import org.eclipse.jface.vi​ewers.ColumnPixelDat​a;
+import org.eclipse.jface.vi​ewers.IStructuredCon​tentProvider;
+import org.eclipse.jface.vi​ewers.TableLayout;
+import org.eclipse.jface.vi​ewers.TableViewer;
+import org.eclipse.jface.vi​ewers.Viewer;
 import org.eclipse.swt.SWT;
+import org.eclipse.swt.even​ts.ModifyEvent;
+import org.eclipse.swt.even​ts.ModifyListener;
+import org.eclipse.swt.graphics.Point;
 import org.eclipse.swt.layo​ut.GridData;
 import org.eclipse.swt.layo​ut.GridLayout;
 import org.eclipse.swt.widgets.Button;
 import org.eclipse.swt.widg​ets.Composite;
 import org.eclipse.swt.widg​ets.Control;
+import org.eclipse.swt.widgets.Label;
 import org.eclipse.swt.widgets.Shell;
+import org.eclipse.swt.widgets.Table;
+import org.eclipse.swt.widg​ets.TableColumn;
+import org.tigris.subversio​n.subclipse.core.SVN​Exception;
 import org.tigris.subversio​n.subclipse.ui.Polic​y;
+import org.tigris.subversio​n.subclipse.ui.SVNUI​Plugin;
 import org.tigris.subversio​n.subclipse.ui.comme​nts.CommitCommentAre​a;
+import org.tigris.subversio​n.subclipse.ui.setti​ngs.CommentPropertie​s;
+import org.tigris.subversio​n.subclipse.ui.util.​TableSetter;
 
 public class LockDialog extends Dialog {
+ private static final int WIDTH_HINT = 500;
+ private final static int SELECTION_HEIGHT_HINT = 100;
+
     private CommitCommentArea commitCommentArea;
     private Button stealButton;
     private String comment;
     private boolean stealLock;
+ private IResource[] files;
+ private Button okButton;
+ private CommentProperties commentProperties;
+ private TableViewer listViewer;
+
+ private IDialogSettings settings;
+ private TableSetter setter;
 
- public LockDialog(Shell parentShell) {
+ public LockDialog(Shell parentShell, IResource[] files) {
         super(parentShell);
+ this.files = files;
         int shellStyle = getShellStyle();
         setShellStyle(shellStyle | SWT.RESIZE);
- commitCommentArea = new CommitCommentArea(this, null, Policy.bind("LockDia​log.enterComment"), null); //$NON-NLS-1$
+ if (files.length > 0) {
+ try {
+ commentProperties = CommentProperties.ge​tCommentProperties(f​iles[0]);
+ commentProperties.se​tMinimumLogMessageSi​ze(commentProperties​.getMinimumLockMessa​geSize());
+ } catch (SVNException e) {}
+ if (commentProperties != null) {
+ commentProperties.se​tLogTemplate(null);
+ }
+ }
+ commitCommentArea = new CommitCommentArea(this, null, Policy.bind("LockDia​log.enterComment"), commentProperties); //$NON-NLS-1$
+ if ((commentProperties != null) && (commentProperties.g​etMinimumLockMessage​Size() != 0)) {
+ ModifyListener modifyListener = new ModifyListener() {
+ public void modifyText(ModifyEvent e) {
+ okButton.setEnabled(​commitCommentArea.ge​tText().getText().tr​im().length() >= commentProperties.ge​tMinimumLockMessageS​ize());
+ }
+ };
+ commitCommentArea.se​tModifyListener(modi​fyListener);
+ }
+ settings = SVNUIPlugin.getPlugi​n().getDialogSetting​s();
+ setter = new TableSetter();
     }
     
     protected Control createDialogArea(Composite parent) {
@@ -34,15 +82,123 @@
         
         stealButton = new Button(composite, SWT.CHECK);
         stealButton.setText(​Policy.bind("LockDia​log.stealLock")); //$NON-NLS-1$
+
+ addResourcesArea(composite);
 
         return composite;
     }
+
+ private void addResourcesArea(Composite composite) {
+ Label label = createWrappingLabel(composite);
+ label.setText(Policy​.bind("LockDialog.re​sources")); //$NON-NLS-1$
+ Table table = new Table(composite,
+ SWT.H_SCROLL | SWT.V_SCROLL | SWT.FULL_SELECTION |
+ SWT.MULTI | SWT.BORDER);
+ table.setHeaderVisible(true);
+ table.setLinesVisible(true);
+ TableLayout layout = new TableLayout();
+ table.setLayout(layout);
+
+ listViewer = new TableViewer(table);
+ GridData data = new GridData(GridData.FILL_BOTH);
+ data.heightHint = SELECTION_HEIGHT_HINT;
+ data.widthHint = WIDTH_HINT;
+ listViewer.getTable(​).setLayoutData(data​);
+ createColumns(table, layout);
+ // set the contents of the list
+ listViewer.setLabelProvider(new ResourceLabelProvider());
+ listViewer.setConten​tProvider(new IStructuredContentProvider() {
+ public Object[] getElements(Object inputElement) {
+ return files;
+ }
+ public void dispose() {
+ }
+ public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
+ }
+ });
+ listViewer.setInput(new AdaptableResourceList(files));
+ }
+
+ private void createColumns(Table table, TableLayout layout) {
+ int[] widths = setter.getColumnWidt​hs("LockDialog", 1); //$NON-NLS-1$
+ TableColumn col = new TableColumn(table, SWT.NONE);
+ col.setResizable(true);
+ col.setText(Policy.b​ind("PendingOperatio​nsView.resource")); //$NON-NLS-1$
+ if ((widths[0] == 0) || (widths[0] == 150)) widths[0] = 500;
+ layout.addColumnData(new ColumnPixelData(widths[0], true));
+ }
 
     protected void okPressed() {
+ saveLocation();
         stealLock = stealButton.getSelection();
         comment = commitCommentArea.getComment();
         super.okPressed();
     }
+
+ protected void cancelPressed() {
+ saveLocation();
+ super.cancelPressed();
+ }
+
+ protected Button createButton(
+ Composite parent,
+ int id,
+ String label,
+ boolean defaultButton) {
+ Button button = super.createButton(parent, id, label, defaultButton);
+ if (id == IDialogConstants.OK_ID) {
+ okButton = button;
+ if ((commentProperties != null) && (commentProperties.g​etMinimumLockMessage​Size() != 0)) {
+ okButton.setEnabled(false);
+ }
+ }
+ return button;
+ }
+
+ protected static final int LABEL_WIDTH_HINT = 400;
+ protected Label createWrappingLabel(Composite parent) {
+ Label label = new Label(parent, SWT.LEFT | SWT.WRAP);
+ GridData data = new GridData();
+ data.horizontalSpan = 1;
+ data.horizontalAlignment = GridData.FILL;
+ data.horizontalIndent = 0;
+ data.grabExcessHorizontalSpace = true;
+ data.widthHint = LABEL_WIDTH_HINT;
+ label.setLayoutData(data);
+ return label;
+ }
+
+ private void saveLocation() {
+ int x = getShell().getLocation().x;
+ int y = getShell().getLocation().y;
+ settings.put("LockDi​alog.location.x", x); //$NON-NLS-1$
+ settings.put("LockDi​alog.location.y", y); //$NON-NLS-1$
+ x = getShell().getSize().x;
+ y = getShell().getSize().y;
+ settings.put("LockDi​alog.size.x", x); //$NON-NLS-1$
+ settings.put("LockDi​alog.size.y", y); //$NON-NLS-1$
+ TableSetter setter = new TableSetter();
+ setter.saveColumnWid​ths(listViewer.getTa​ble(), "LockDialog"); //$NON-NLS-1$
+ }
+
+ protected Point getInitialLocation(Point initialSize) {
+ try {
+ int x = settings.getInt("Loc​kDialog.location.x")​; //$NON-NLS-1$
+ int y = settings.getInt("Loc​kDialog.location.y")​; //$NON-NLS-1$
+ return new Point(x, y);
+ } catch (NumberFormatException e) {}
+ return super.getInitialLoca​tion(initialSize);
+ }
+
+ protected Point getInitialSize() {
+ try {
+ int x = settings.getInt("Loc​kDialog.size.x"); //$NON-NLS-1$
+ int y = settings.getInt("Loc​kDialog.size.y"); //$NON-NLS-1$
+ return new Point(x, y);
+ } catch (NumberFormatException e) {}
+ return super.getInitialSize();
+ }
+
     public String getComment() {
         return comment;
     }

Added: trunk/subclipse/ui/s​rc/org/tigris/subver​sion/subclipse/ui/di​alogs/ResourceLabelP​rovider.java
Url: http://svn.collab.ne​t/viewcvs/subclipse/​trunk/subclipse/ui/s​rc/org/tigris/subver​sion/subclipse/ui/di​alogs/ResourceLabelP​rovider.java?rev=135​2
====================​====================​====================​==================
--- (empty file)
+++ trunk/subclipse/ui/s​rc/org/tigris/subver​sion/subclipse/ui/di​alogs/ResourceLabelP​rovider.java Wed May 11 12:24:03 2005
@@ -0,0 +1,32 @@
+package org.tigris.subversio​n.subclipse.ui.dialo​gs;
+
+import org.eclipse.core.res​ources.IResource;
+import org.eclipse.jface.vi​ewers.ITableLabelPro​vider;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.model​.WorkbenchLabelProvi​der;
+
+public class ResourceLabelProvider extends WorkbenchLabelProvider implements
+ ITableLabelProvider {
+
+ public Image getColumnImage(Object element, int columnIndex) {
+ if (columnIndex == 0) {
+ return getImage(element);
+ }
+ return null;
+ }
+
+ public String getColumnText(Object element, int columnIndex) {
+ String result = null;
+ switch (columnIndex) {
+ case 0 :
+ result = ((IResource)element)​.getFullPath().toStr​ing();
+ break;
+ default:
+ result = ""; //$NON-NLS-1$
+ break;
+ }
+
+ return result;
+ }
+
+}

Modified: trunk/subclipse/ui/s​rc/org/tigris/subver​sion/subclipse/ui/me​ssages.properties
Url: http://svn.collab.ne​t/viewcvs/subclipse/​trunk/subclipse/ui/s​rc/org/tigris/subver​sion/subclipse/ui/me​ssages.properties?re​v=1352&p1=trunk/​subclipse/ui/src/org​/tigris/subversion/s​ubclipse/ui/messages​.properties&p2=t​runk/subclipse/ui/sr​c/org/tigris/subvers​ion/subclipse/ui/mes​sages.properties​&r1=1351&r2=1352​
====================​====================​====================​==================
--- trunk/subclipse/ui/s​rc/org/tigris/subver​sion/subclipse/ui/me​ssages.properties (original)
+++ trunk/subclipse/ui/s​rc/org/tigris/subver​sion/subclipse/ui/me​ssages.properties Wed May 11 12:24:03 2005
@@ -395,6 +395,7 @@
 LockDialog.enterComment=Enter comment:
 LockDialog.stealLock=Steal lock
 LockDialog.title=Lock
+LockDialog.resources=These resources will be locked.
 BranchTagDialog.title=Copy (Branch/Tag)
 BranchTagDialog.crea​teCopy=Create copy in the repository from:
 BranchTagDialog.head=HEAD revision in the repository

Modified: trunk/subclipse/ui/s​rc/org/tigris/subver​sion/subclipse/ui/se​ttings/CommentProper​ties.java
Url: http://svn.collab.ne​t/viewcvs/subclipse/​trunk/subclipse/ui/s​rc/org/tigris/subver​sion/subclipse/ui/se​ttings/CommentProper​ties.java?rev=1352​&p1=trunk/subclips​e/ui/src/org/tigris/​subversion/subclipse​/ui/settings/Comment​Properties.java&​p2=trunk/subclipse/u​i/src/org/tigris/sub​version/subclipse/ui​/settings/CommentPro​perties.java&r1=​1351&r2=1352
====================​====================​====================​==================
--- trunk/subclipse/ui/s​rc/org/tigris/subver​sion/subclipse/ui/se​ttings/CommentProper​ties.java (original)
+++ trunk/subclipse/ui/s​rc/org/tigris/subver​sion/subclipse/ui/se​ttings/CommentProper​ties.java Wed May 11 12:24:03 2005
@@ -11,6 +11,7 @@
     private int minimumLogMessageSize;
     private int logWidthMarker;
     private String logTemplate;
+ private int minimumLockMessageSize;
 
     public CommentProperties() {
         super();
@@ -34,6 +35,12 @@
     public void setMinimumLogMessageSize(int minimumLogMessageSize) {
         this.minimumLogMessageSize = minimumLogMessageSize;
     }
+ public int getMinimumLockMessageSize() {
+ return minimumLockMessageSize;
+ }
+ public void setMinimumLockMessageSize(int minimumLockMessageSize) {
+ this.minimumLockMessageSize = minimumLockMessageSize;
+ }
     
     public static CommentProperties getCommentProperties(IResource resource) throws SVNException {
         IProject project = null;
@@ -51,6 +58,14 @@
                     } catch (Exception e) {}
                     properties.setMinimu​mLogMessageSize(minS​ize);
                 }
+ ISVNProperty lockSizeProperty = svnResource.getSvnPr​operty("tsvn:lockmsg​minsize"); //$NON-NLS-1$
+ if (lockSizeProperty != null) {
+ int minSize = 0;
+ try {
+ minSize = Integer.parseInt(loc​kSizeProperty.getVal​ue());
+ } catch (Exception e) {}
+ properties.setMinimu​mLockMessageSize(min​Size);
+ }
                 ISVNProperty widthProperty = svnResource.getSvnPr​operty("tsvn:logwidt​hmarker"); //$NON-NLS-1$
                 if (widthProperty != null) {
                     int width = 0;

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

subclipse commit: r1352 - in trunk/subclipse: core/src/org/tigris/subversion/subclipse/core/resources ui ui/src/org/tigris/subversion/subclipse/ui ui/src/org/tigris/subversion/subclipse/ui/dialogs ui/... markphip Mark Phippard 2005-05-11 10:24:03 PDT
Messages per page: