Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
ComplexityParser
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Emmanuel Hainry
ComplexityParser
Commits
b501b2c5
Commit
b501b2c5
authored
5 years ago
by
PECHOUX Romain
Browse files
Options
Downloads
Patches
Plain Diff
fileChooser opens directly in the examples subdictory
parent
7119f565
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/complexityparser/types/FOTierList.java
+0
-25
0 additions, 25 deletions
src/main/java/complexityparser/types/FOTierList.java
src/main/java/view/EditorView.java
+2
-1
2 additions, 1 deletion
src/main/java/view/EditorView.java
with
2 additions
and
26 deletions
src/main/java/complexityparser/types/FOTierList.java
+
0
−
25
View file @
b501b2c5
...
@@ -70,31 +70,6 @@ public class FOTierList extends ArrayList<FOTier>{
...
@@ -70,31 +70,6 @@ public class FOTierList extends ArrayList<FOTier>{
add
(
new
FOTier
(
out
,
env
,
in
));
add
(
new
FOTier
(
out
,
env
,
in
));
}
}
/**
* Removes the FOTier at index i.
* @param i - the index of the FOTier to remove.
*/
// public void remove(int i) {
// remove(i);
// }
/**
* @return the number of FOTiers in the FOTierList.
*/
// public int size() {
// return results.size();
// }
/**
*
* @param i - the index of the FOTier to get.
* @return the FOTier of index i.
*/
// public FOTier get(int i) {
// return results.get(i);
// }
/**
/**
*
*
* @param in - input tiers.
* @param in - input tiers.
...
...
This diff is collapsed.
Click to expand it.
src/main/java/view/EditorView.java
+
2
−
1
View file @
b501b2c5
...
@@ -73,7 +73,8 @@ public class EditorView extends JPanel {
...
@@ -73,7 +73,8 @@ public class EditorView extends JPanel {
@Override
@Override
public
void
actionPerformed
(
ActionEvent
actionEvent
)
{
public
void
actionPerformed
(
ActionEvent
actionEvent
)
{
JFileChooser
fc
=
new
JFileChooser
();
JFileChooser
fc
=
new
JFileChooser
();
fc
.
setCurrentDirectory
(
new
File
(
System
.
getProperty
(
"user.dir"
)));
String
s
=
System
.
getProperty
(
"user.dir"
)+
System
.
getProperty
(
"file.separator"
)+
"examples"
;
fc
.
setCurrentDirectory
(
new
File
(
s
));
if
(
JFileChooser
.
APPROVE_OPTION
==
fc
.
showOpenDialog
(
parent
))
{
if
(
JFileChooser
.
APPROVE_OPTION
==
fc
.
showOpenDialog
(
parent
))
{
File
f
=
fc
.
getSelectedFile
();
File
f
=
fc
.
getSelectedFile
();
try
{
try
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment