mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Start working on perforce changes browser
This commit is contained in:
@@ -54,6 +54,7 @@ public class CommitMessage extends JPanel{
|
||||
setText(contentChooser.getAllContents().get(selectedIndex));
|
||||
}
|
||||
}
|
||||
myCommentArea.requestFocus();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.intellij.cvsSupport2.cvsoperations.dateOrRevision.ui;
|
||||
package com.intellij.util.ui;
|
||||
|
||||
import javax.swing.*;
|
||||
import javax.swing.event.ChangeEvent;
|
||||
+2
-4
@@ -1,10 +1,8 @@
|
||||
package com.intellij.cvsSupport2.cvsoperations.dateOrRevision.ui;
|
||||
package com.intellij.util.ui;
|
||||
|
||||
import javax.swing.*;
|
||||
|
||||
/**
|
||||
* author: lesya
|
||||
*/
|
||||
|
||||
|
||||
class IntegerSpinnerModel extends AbstractSpinnerModel {
|
||||
private final int myMinValue;
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<form xmlns="http://www.intellij.com/uidesigner/form/" version="1" bind-to-class="com.intellij.cvsSupport2.cvsoperations.dateOrRevision.ui.SelectDateDialog">
|
||||
<form xmlns="http://www.intellij.com/uidesigner/form/" version="1" bind-to-class="com.intellij.util.ui.SelectDateDialog">
|
||||
<grid id="2a032" binding="myPanel" row-count="2" column-count="1" hgap="-1" vgap="-1">
|
||||
<margin top="0" left="0" bottom="0" right="0"/>
|
||||
<constraints>
|
||||
@@ -9,7 +9,7 @@
|
||||
<properties/>
|
||||
<border type="none"/>
|
||||
<children>
|
||||
<component id="5dbd6" class="com.intellij.cvsSupport2.cvsoperations.dateOrRevision.ui.CalendarView" binding="myCalendarView">
|
||||
<component id="5dbd6" class="com.intellij.util.ui.CalendarView" binding="myCalendarView">
|
||||
<constraints>
|
||||
<xy x="0" y="0" width="185" height="66"/>
|
||||
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0"/>
|
||||
@@ -0,0 +1,32 @@
|
||||
package com.intellij.util.ui;
|
||||
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.ui.DialogWrapper;
|
||||
|
||||
import javax.swing.*;
|
||||
import java.util.Date;
|
||||
|
||||
|
||||
public class SelectDateDialog extends DialogWrapper {
|
||||
private CalendarView myCalendarView;
|
||||
private JPanel myPanel;
|
||||
|
||||
public SelectDateDialog(Project project) {
|
||||
super(project, true);
|
||||
init();
|
||||
setTitle("Choose Date");
|
||||
pack();
|
||||
}
|
||||
|
||||
protected JComponent createCenterPanel() {
|
||||
return myPanel;
|
||||
}
|
||||
|
||||
public Date getDate() {
|
||||
return myCalendarView.getDate();
|
||||
}
|
||||
|
||||
public void setDate(Date date) {
|
||||
myCalendarView.setDate(date);
|
||||
}
|
||||
}
|
||||
+1
@@ -5,6 +5,7 @@ import com.intellij.cvsSupport2.cvsoperations.cvsTagOrBranch.TagsHelper;
|
||||
import com.intellij.cvsSupport2.cvsoperations.cvsTagOrBranch.TagsProvider;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.ui.TextFieldWithBrowseButton;
|
||||
import com.intellij.util.ui.SelectDateDialog;
|
||||
|
||||
import javax.swing.*;
|
||||
import java.awt.event.ActionEvent;
|
||||
|
||||
Reference in New Issue
Block a user