Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vdt-plugin
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
vdt-plugin
Commits
3bb6b738
Commit
3bb6b738
authored
Feb 03, 2014
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adder %%UserName generator, set default remote Vivado server to
username@127.0.0.1
parent
a1fdf168
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
47 additions
and
16 deletions
+47
-16
VDT.java
src/com/elphel/vdt/VDT.java
+1
-0
BuildStampGenerator.java
...elphel/vdt/core/tools/generators/BuildStampGenerator.java
+11
-13
UserNameGenerator.java
...m/elphel/vdt/core/tools/generators/UserNameGenerator.java
+31
-0
SimpleGeneratorRecognizer.java
...e/tools/params/recognizers/SimpleGeneratorRecognizer.java
+2
-1
FPGA_project.xml
tools/FPGA_project.xml
+2
-2
No files found.
src/com/elphel/vdt/VDT.java
View file @
3bb6b738
...
...
@@ -148,6 +148,7 @@ public class VDT {
public
static
final
String
GENERATOR_ID_CURRENT_BASE
=
"CurrentFileBase"
;
public
static
final
String
GENERATOR_ID_CHOSEN_ACTION
=
"ChosenActionIndex"
;
public
static
final
String
GENERATOR_ID_BUILD_STAMP
=
"BuildStamp"
;
public
static
final
String
GENERATOR_ID_USERNAME
=
"UserName"
;
public
static
final
String
GENERATOR_ID_BLANK
=
"Blank"
;
public
static
final
String
GENERATOR_ID_NEWLINE
=
"NewLine"
;
}
// class VDT
src/com/elphel/vdt/core/tools/generators/BuildStampGenerator.java
View file @
3bb6b738
/*******************************************************************************
* Copyright (c) 20
06 Elphel, Inc and Excelsior, LLC
.
* Copyright (c) 20
14 Elphel, Inc
.
* This file is a part of Eclipse/VDT plug-in.
* Eclipse/VDT plug-in is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
the
*
Free Software Foundation; either version 2 of the License, or (at your option)
* any later version.
* it under the terms of the GNU General Public License as published by
*
the Free Software Foundation, either version 3 of the License, or
*
(at your option)
any later version.
*
* Eclipse/VDT plug-in is distributed in the hope that it will be useful,
but
*
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
*
FITNESS FOR A PARTICULAR PURPOSE.
*
See the
GNU General Public License for more details.
* Eclipse/VDT plug-in is distributed in the hope that it will be useful,
*
but WITHOUT ANY WARRANTY; without even the implied warranty of
*
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
along
*
with Eclipse VDT plug-in; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* You should have received a copy of the GNU General Public License
*
along with this program. If not, see <http://www.gnu.org/licenses/>.
*******************************************************************************/
package
com
.
elphel
.
vdt
.
core
.
tools
.
generators
;
...
...
@@ -30,5 +30,3 @@ public class BuildStampGenerator extends AbstractGenerator {
return
new
String
[]
{
SelectedResourceManager
.
getDefault
().
getBuildStamp
()};
}
}
src/com/elphel/vdt/core/tools/generators/UserNameGenerator.java
0 → 100644
View file @
3bb6b738
/*******************************************************************************
* Copyright (c) 2014 Elphel, Inc.
* This file is a part of Eclipse/VDT plug-in.
* Eclipse/VDT plug-in is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Eclipse/VDT plug-in is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*******************************************************************************/
package
com
.
elphel
.
vdt
.
core
.
tools
.
generators
;
import
com.elphel.vdt.VDT
;
public
class
UserNameGenerator
extends
AbstractGenerator
{
public
static
final
String
NAME
=
VDT
.
GENERATOR_ID_USERNAME
;
public
String
getName
()
{
return
NAME
;
}
protected
String
[]
getStringValues
()
{
return
new
String
[]
{
System
.
getProperty
(
"user.name"
)};
}
}
//UserNameGenerator
src/com/elphel/vdt/core/tools/params/recognizers/SimpleGeneratorRecognizer.java
View file @
3bb6b738
...
...
@@ -34,7 +34,8 @@ public class SimpleGeneratorRecognizer implements Recognizer {
new
CurrentFileGenerator
(),
new
CurrentFileBaseGenerator
(),
new
ChosenActionGenerator
(),
new
BuildStampGenerator
()
new
BuildStampGenerator
(),
new
UserNameGenerator
()
};
public
SimpleGeneratorRecognizer
(){
...
...
tools/FPGA_project.xml
View file @
3bb6b738
...
...
@@ -11,11 +11,11 @@
label=
"Common parameters for FPGA projects"
interface=
"FPGAPprojectInterface"
>
<parameter
id=
"RemoteHost"
label=
"Remote Host IP"
tooltip=
"Remote Host IP"
type=
"String"
format=
"CopyValue"
default=
"1
92.168.0.122
"
readonly=
"false"
visible=
"true"
/>
format=
"CopyValue"
default=
"1
27.0.0.1
"
readonly=
"false"
visible=
"true"
/>
<parameter
id=
"RemoteUser"
label=
"Remote user name"
tooltip=
"Remote user name"
type=
"String"
format=
"CopyValue"
default=
"
xilinx
"
readonly=
"false"
visible=
"true"
/>
format=
"CopyValue"
default=
"
%%UserName
"
readonly=
"false"
visible=
"true"
/>
<parameter
id=
"PreSSH"
label=
"pre-ssh"
tooltip=
"pre-ssh shell parameters"
type=
"String"
format=
"CopyValue"
default=
""
readonly=
"false"
visible=
"true"
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment